/* ==========================================================================
   Into the Gnomon — Minimalist Visual Showcase with Cardinal Lighting
   Aesthetic: Ancient Talmar Solar-Stone, Gilded Rim-Light & Directional Shadows
   ========================================================================== */

:root {
  --bg: #070504;
  --bg-surface: #100c09;
  --border-stone: rgba(220, 190, 150, 0.15);
  --border-gold: rgba(240, 182, 85, 0.5);
  --border-gold-bright: #f0b655;
  
  --text-main: #f5eedf;
  --text-dim: #7a6e5e;
  
  --gold: #f0b655;
  --gold-glow: rgba(240, 182, 85, 0.5);

  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

/* ==========================================================================
   Cardinal Solar Flare across the Hero Chamber
   ========================================================================== */
.hero-cardinal-flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  mix-blend-mode: screen;
}

/* EAST: Sunrise from the right */
html[data-quarter="E"] .hero-cardinal-flare {
  background: 
    radial-gradient(ellipse 70% 65% at 100% 50%, rgba(240, 182, 85, 0.45) 0%, rgba(240, 150, 40, 0.18) 45%, transparent 75%),
    linear-gradient(270deg, rgba(240, 182, 85, 0.3) 0%, transparent 65%);
}

/* SOUTH: Light from below */
html[data-quarter="S"] .hero-cardinal-flare {
  background: 
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(240, 182, 85, 0.45) 0%, rgba(240, 150, 40, 0.18) 45%, transparent 75%),
    linear-gradient(0deg, rgba(240, 182, 85, 0.3) 0%, transparent 65%);
}

/* WEST: Sunset from the left */
html[data-quarter="W"] .hero-cardinal-flare {
  background: 
    radial-gradient(ellipse 70% 65% at 0% 50%, rgba(240, 182, 85, 0.45) 0%, rgba(240, 150, 40, 0.18) 45%, transparent 75%),
    linear-gradient(90deg, rgba(240, 182, 85, 0.3) 0%, transparent 65%);
}

/* NORTH: Light from above */
html[data-quarter="N"] .hero-cardinal-flare {
  background: 
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(240, 182, 85, 0.45) 0%, rgba(240, 150, 40, 0.18) 45%, transparent 75%),
    linear-gradient(180deg, rgba(240, 182, 85, 0.3) 0%, transparent 65%);
}

/* Ambient Global Viewport Rake */
.cardinal-beam {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-quarter="E"] .cardinal-beam {
  background: radial-gradient(circle at 100% 50%, rgba(240, 182, 85, 0.15) 0%, transparent 60%);
}

html[data-quarter="S"] .cardinal-beam {
  background: radial-gradient(circle at 50% 100%, rgba(240, 182, 85, 0.15) 0%, transparent 60%);
}

html[data-quarter="W"] .cardinal-beam {
  background: radial-gradient(circle at 0% 50%, rgba(240, 182, 85, 0.15) 0%, transparent 60%);
}

html[data-quarter="N"] .cardinal-beam {
  background: radial-gradient(circle at 50% 0%, rgba(240, 182, 85, 0.15) 0%, transparent 60%);
}

/* ==========================================================================
   Screenshots: High-Contrast Directional Rim Gleam & Shading
   ========================================================================== */
.shot {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
  overflow: hidden;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* EAST */
html[data-quarter="E"] .shot {
  box-shadow: 4px 0 0 #f0b655, 14px 0 35px rgba(240, 182, 85, 0.55), -20px 8px 45px rgba(0, 0, 0, 0.95);
}
html[data-quarter="E"] .shot::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}

/* SOUTH */
html[data-quarter="S"] .shot {
  box-shadow: 0 4px 0 #f0b655, 0 14px 35px rgba(240, 182, 85, 0.55), 0 -20px 45px rgba(0, 0, 0, 0.95);
}
html[data-quarter="S"] .shot::after {
  background: linear-gradient(0deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

/* WEST */
html[data-quarter="W"] .shot {
  box-shadow: -4px 0 0 #f0b655, -14px 0 35px rgba(240, 182, 85, 0.55), 20px 8px 45px rgba(0, 0, 0, 0.95);
}
html[data-quarter="W"] .shot::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}

/* NORTH */
html[data-quarter="N"] .shot {
  box-shadow: 0 -4px 0 #f0b655, 0 -14px 35px rgba(240, 182, 85, 0.55), 0 20px 45px rgba(0, 0, 0, 0.95);
}
html[data-quarter="N"] .shot::after {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.96) contrast(1.02);
}

.shot:hover {
  transform: translateY(-3px);
}

.shot:hover img {
  transform: scale(1.02);
  filter: brightness(1.02) contrast(1.05);
}

.shot-full {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

/* ==========================================================================
   Navigation & Minimal Cardinal Switch
   ========================================================================== */
.gnomon-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 2rem;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.nav-back {
  pointer-events: auto;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(7, 5, 4, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-stone);
  transition: all 0.25s ease;
}

.nav-back:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  transform: translateX(-2px);
}

.cardinal-switch {
  pointer-events: auto;
  display: flex;
  gap: 3px;
  background: rgba(7, 5, 4, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-stone);
  padding: 3px;
}

.cardinal-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #8c7d6b;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cardinal-btn:hover {
  color: #fff;
  border-color: rgba(240, 182, 85, 0.3);
}

.cardinal-btn.active {
  color: #070504;
  background: #f0b655;
  border-color: #f0b655;
  box-shadow: 0 0 15px rgba(240, 182, 85, 0.65);
}

/* ==========================================================================
   Hero Chamber
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(7, 5, 4, 0.2) 0%, rgba(7, 5, 4, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 5, 4, 0.25) 0%, rgba(7, 5, 4, 0.95) 100%),
    url('images/hero_hall.png') center center / cover no-repeat;
  filter: contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff9ef;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.btn-play {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.4rem;
  color: #ffffff;
  background: rgba(25, 18, 12, 0.85);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-play:hover {
  background: rgba(45, 32, 20, 0.95);
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
  color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  font-size: 1.2rem;
  color: var(--text-dim);
  opacity: 0.6;
  animation: bob 2.2s infinite ease-in-out;
  z-index: 3;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.8; color: var(--gold); }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

@media (max-width: 768px) {
  .shot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery {
    padding: 2rem 1.25rem;
    gap: 2rem;
  }
  .gnomon-nav {
    padding: 1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border-stone);
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}
