@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0B0C10;
  --surface-color: #12141C;
  --surface-card: #181B26;
  --surface-border: rgba(255, 255, 255, 0.08);
  --accent-gold: #C5A880;
  --accent-olive: #5A634E;
  --text-main: #E5E2DF;
  --text-muted: #8E92A0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0C10;
}
::-webkit-scrollbar-thumb {
  background: #2A2E3D;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography Helpers */
.font-serif-headline {
  font-family: 'Libre Caslon Text', Georgia, serif;
}
.font-tech {
  font-family: 'Space Grotesk', monospace;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(18, 20, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
}

.glass-pill {
  background: rgba(24, 27, 38, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.glass-card {
  background: rgba(20, 23, 33, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Parallax Canvas */
.hero-canvas-bg {
  transform: scale(1.08);
  transition: transform 0.2s cubic-bezier(0.1, 0.2, 0.3, 1);
  will-change: transform;
}

/* Animated Scroll Indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

.scroll-indicator-dot {
  animation: scrollBounce 2s infinite ease-in-out;
}

/* Radar Pulse for Blueprint Pins */
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-ping {
  animation: radarPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

/* Pannellum Tweaks */
.pnlm-container {
  background-color: #07080A !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
}

.pnlm-load-box {
  background: rgba(18, 20, 28, 0.9) !important;
  border: 1px solid var(--accent-gold) !important;
  color: var(--text-main) !important;
  border-radius: 8px !important;
}

.pnlm-tooltip span {
  background-color: rgba(18, 20, 28, 0.95) !important;
  border: 1px solid var(--accent-gold) !important;
  color: #fff !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

/* Custom Hotspot Marker in Pannellum */
.custom-pannellum-hotspot {
  width: 26px !important;
  height: 26px !important;
  margin-left: -13px !important;
  margin-top: -13px !important;
  border-radius: 50% !important;
  background: rgba(197, 168, 128, 0.95) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 14px rgba(197, 168, 128, 0.9), 0 4px 10px rgba(0, 0, 0, 0.6) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease !important;
}

.custom-pannellum-hotspot:hover {
  transform: scale(1.3) !important;
  background: #ffffff !important;
  border-color: #C5A880 !important;
}

.custom-pannellum-tooltip {
  position: absolute !important;
  bottom: calc(100% + 12px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 220px !important;
  background: rgba(18, 20, 28, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(197, 168, 128, 0.4) !important;
  color: #E5E2DF !important;
  font-family: 'Space Grotesk', monospace !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  z-index: 50 !important;
  white-space: normal !important;
  text-align: left !important;
}

.custom-pannellum-hotspot:hover .custom-pannellum-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(-2px) !important;
}

/* Video Player Styling */
.video-scrub-bar {
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  height: 4px;
  outline: none;
  transition: height 0.15s ease;
}
.video-scrub-bar:hover {
  height: 6px;
}
.video-scrub-bar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.6);
}

/* Gallery Masonry Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 240px;
  gap: 20px;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
  }
  .gallery-item-wide {
    grid-column: span 8;
  }
  .gallery-item-tall {
    grid-column: span 4;
    grid-row: span 2;
  }
  .gallery-item-square {
    grid-column: span 4;
  }
}