@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

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

body {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: #2C2416;
  background: #FAF7F2;
  overflow-x: hidden;
}

/* ==========================================================================
   DYNAMIC HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  padding: 14px 32px; 
  z-index: 999;
  pointer-events: none; 
  background: transparent; 
}

.nav-links, .header-logo {
  pointer-events: auto;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #F5F0E8; 
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
  background: transparent;
  padding: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 14px rgba(0,0,0,0.6);
}

body.home-page .header-logo { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.nav-links a, .nav-dropdown > button {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #F5F0E8; 
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
}

.nav-links a:hover, .nav-dropdown > button:hover {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0; 
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #241811;
  border: 0.5px solid #4A3A28;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 40;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-item {
  font-size: 13px; color: #C4B49A; padding: 6px 10px; border-radius: 4px;
  cursor: pointer; border: none; background: transparent; text-align: left;
  text-shadow: none; 
}
.nav-dropdown-item:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: #F5F0E8; }

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1A1209; 
}
.hero-bg-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; object-fit: cover; object-position: center 75%; transform: scale(1.22); 
}
.hero-overlay {
  position: absolute; inset: 0; background: rgba(26, 18, 9, 0.65); z-index: 1;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(242, 235, 217, 0) 0%, #F2EBD9 100%); z-index: 2; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3; display: flex; flex-direction: column;
  align-items: center; gap: 14px; padding: 0 24px; width: 100%;
}
.hero-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #C4B49A; }
.hero-ornament { display: flex; align-items: center; gap: 0; width: 100%; max-width: 420px; margin: 4px auto -2px; }
.hero-ornament-line { flex: 1; height: 0.5px; background: linear-gradient(to right, transparent 0%, #7A6A52 40%, #7A6A52 60%, transparent 100%); }
.hero-ornament-center { display: flex; gap: 6px; padding: 0 12px; }
.hero-ornament-dot { width: 3px; height: 3px; border-radius: 50%; background: #7A6A52; }
.hero-ornament-diamond { width: 5px; height: 5px; background: #C4B49A; transform: rotate(45deg); }
.hero-title { font-family: 'Playfair Display', serif; font-size: 62px; font-weight: 400; color: #FFFFFF; line-height: 1.12; max-width: 560px; letter-spacing: -0.01em; }
.hero-title em { font-style: italic; color: #C4B49A; }

.hero-sub { 
  font-size: 15px; 
  color: #FFFFFF; 
  font-weight: 500;
  max-width: 440px; 
  line-height: 1.8; 
  text-shadow: 0 2px 4px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,0.8), 0 0 24px rgba(0,0,0,0.6);
}
.hero-sub-rule { width: 32px; height: 0.5px; background: #4A3A28; margin: 0 auto; }

/* NEWSPAPER FRONT */
.np-front { background: #F2EBD9; padding: 0 0 48px; }
.np-section-rule { display: flex; align-items: center; gap: 16px; padding: 0 40px; border-top: 2.5px solid #1A1209; border-bottom: 0.5px solid #1A1209; height: 36px; }
.np-section-rule--bottom { margin-top: 0; }
.np-section-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #1A1209; font-family: 'Lora', serif; white-space: nowrap; }

/* FIELD SITES MAP */
.field-map { 
  position: relative; 
  max-width: 1765px; 
  margin: 0 auto 8px; 
  border-top: 0.5px solid #1A1209; 
  border-bottom: 0.5px solid #1A1209; 
  overflow: visible; 
  will-change: transform; 
  transform: translateZ(0); 
}
.field-map-img { display: block; width: 100%; height: auto; filter: sepia(35%) saturate(115%) brightness(0.94) contrast(1.05); }

.field-map-pin { 
  position: absolute; 
  transform: translate(-50%, -88%); 
  transition: transform 0.2s, z-index 0s; 
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: none; background: none; cursor: pointer; z-index: 5; 
}
.field-map-pin:hover { transform: translate(-50%, -95%); z-index: 60;}
@keyframes field-pin-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-4px) rotate(-3deg); } 60% { transform: translateY(-1px) rotate(2deg); } 85% { transform: translateY(-3px) rotate(-1deg); } }

.field-map-pin-icon { 
  width: 168px !important; 
  height: 168px !important; 
  display: block; 
  flex-shrink: 0;
  object-fit: contain; 
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.65)); 
  animation: field-pin-bob 3.2s ease-in-out infinite; 
}
.field-map-pin-label { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.03em; color: #FFFFFF; text-shadow: 0 2px 4px rgba(0,0,0,0.95), 0 0 12px rgba(0,0,0,0.55); white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity 0.18s, transform 0.18s; pointer-events: none; background: rgba(14, 10, 6, 0.78); padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(245, 240, 232, 0.25); }
.field-map-pin:hover .field-map-pin-label { opacity: 1; transform: translateY(0); }
.field-map-caption { font-family: 'Lora', serif; font-size: 12px; letter-spacing: 0.03em; color: #F2EBD9; background: rgba(26, 18, 9, 0.78); padding: 8px 16px; position: absolute; left: 0; bottom: 0; right: 0; margin: 0; pointer-events: none; text-align: center; }
@media (max-width: 640px) { .field-map-pin-icon { width: 100px !important; height: 100px !important; } .field-map-pin-label { font-size: 16px; padding: 6px 12px; } }

/* KEY FINDINGS ON AREA PAGE */
.area-key-findings {
  max-width: 1000px;
  margin: 0 auto 60px;
  background: rgba(20, 16, 11, 0.95);
  border-left: 4px solid var(--area-color, #C4B49A);
  padding: 40px 50px;
  border-radius: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.key-findings-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--area-color, #C4B49A);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(196, 180, 154, 0.15);
  padding-bottom: 16px;
}

.key-findings-content p {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #F5F0E8;
  font-weight: 400;
}

.key-findings-content p:last-child {
  margin-bottom: 0;
}

/* THEMES STRIP */
.themes-film-wrapper { position: relative; width: 100%; overflow-x: auto; background-color: #F2EBD9; scrollbar-width: none; cursor: grab; }
.themes-film-wrapper::-webkit-scrollbar { display: none; }
.themes-film-track { 
  display: flex; gap: 16px; width: max-content; padding: 48px 16px; background-color: #151515; 
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48'%3E%3Crect x='8' y='12' width='24' height='18' rx='4' fill='%23F2EBD9'/%3E%3C/svg%3E"), 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48'%3E%3Crect x='8' y='18' width='24' height='18' rx='4' fill='%23F2EBD9'/%3E%3C/svg%3E"); 
  background-position: top left, bottom left; background-repeat: repeat-x, repeat-x; 
}
.theme-film-card { flex: 0 0 540px; height: 350px; position: relative; cursor: pointer; border-radius: 28px; background: #000; overflow: hidden; border: none; filter: grayscale(100%) contrast(1.1); transform: scale(1); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.theme-film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; z-index: 0; display: block; border: none; }
.theme-film-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%); opacity: 0; transition: opacity 0.4s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; text-align: left; z-index: 1; }
.theme-film-title { color: #ffffff; font-family: 'Lora', serif; font-size: 1.6rem; font-weight: 500; margin: 0; line-height: 1.2; }
.theme-film-notes { 
  color: #F5F0E8; font-family: 'Lora', serif; font-size: 0.95rem; line-height: 1.6; margin: 12px 0 0; 
  border-left: 2px solid #C4B49A; padding-left: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.8);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
}
.theme-film-card:hover { filter: grayscale(0%) contrast(1.05); transform: scale(1.02); box-shadow: 0 15px 35px rgba(0,0,0,0.7); }
.theme-film-card:hover .theme-film-bg { transform: scale(1.05); }
.theme-film-card:hover .theme-film-overlay { opacity: 1; }

/* FEATURES ROW */
.np-features { display: flex; align-items: stretch; padding: 0 40px; border-bottom: 2.5px solid #1A1209; }
.np-feature { flex: 1; padding: 28px 28px 32px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: background 0.2s; }
.np-feature-full { flex: 1 1 100%; text-align: center; align-items: center; } 
.np-feature:hover { background: rgba(26,18,9,0.04); }
.np-feature-divider { width: 0.5px; background: #1A1209; margin: 20px 0; }
.np-feature-kicker { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: #8B7355; font-family: 'Lora', serif; }
.np-feature-title { font-family: 'IM Fell English', serif; font-size: 26px; font-weight: 400; color: #1A1209; margin: 0; line-height: 1.15; }
.np-feature-desc { font-family: 'Lora', serif; font-size: 12px; color: #5C4A30; line-height: 1.7; margin: 4px 0 0; max-width: 600px; }

/* Landing Soundscapes feature */
.np-feature-soundscapes {
  position: relative;
  overflow: hidden;
  gap: 10px;
  padding-bottom: 52px;
}
.np-feature-soundscapes .np-feature-kicker,
.np-feature-soundscapes .np-feature-title,
.np-feature-soundscapes .np-feature-desc {
  position: relative;
  z-index: 2;
}
.np-feature-soundscapes .np-feature-title,
.np-feature-soundscapes .np-feature-desc {
  text-shadow:
    0 0 12px rgba(242, 235, 217, 0.95),
    0 0 28px rgba(242, 235, 217, 0.75),
    0 1px 0 rgba(242, 235, 217, 0.9);
}
.np-feature-soundscapes .np-feature-kicker {
  text-shadow: 0 0 10px rgba(242, 235, 217, 0.85);
}
.np-feature-soundscapes .sound-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  height: 64px;
  padding: 0 0 4px; 
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}
.np-feature-soundscapes .sound-bars span {
  display: block;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 14px;
  border-radius: 2px 2px 0 0;
  background: #6B4E2E;
  opacity: 0.35;
  transform-origin: bottom center;
  transform: scaleY(0.2);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease;
}
.np-feature-soundscapes:hover .sound-bars span {
  opacity: 0.88;
  animation: sound-bar-pulse 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.np-feature-soundscapes .sound-bars span:nth-child(1) { animation-delay: 0.00s; height: 18px; }
.np-feature-soundscapes .sound-bars span:nth-child(2) { animation-delay: 0.06s; height: 32px; }
.np-feature-soundscapes .sound-bars span:nth-child(3) { animation-delay: 0.12s; height: 22px; }
.np-feature-soundscapes .sound-bars span:nth-child(4) { animation-delay: 0.18s; height: 42px; }
.np-feature-soundscapes .sound-bars span:nth-child(5) { animation-delay: 0.24s; height: 26px; }
.np-feature-soundscapes .sound-bars span:nth-child(6) { animation-delay: 0.30s; height: 48px; }
.np-feature-soundscapes .sound-bars span:nth-child(7) { animation-delay: 0.36s; height: 30px; }
.np-feature-soundscapes .sound-bars span:nth-child(8) { animation-delay: 0.42s; height: 38px; }
.np-feature-soundscapes .sound-bars span:nth-child(9) { animation-delay: 0.48s; height: 20px; }
.np-feature-soundscapes .sound-bars span:nth-child(10) { animation-delay: 0.54s; height: 44px; }
.np-feature-soundscapes .sound-bars span:nth-child(11) { animation-delay: 0.60s; height: 28px; }
.np-feature-soundscapes .sound-bars span:nth-child(12) { animation-delay: 0.66s; height: 36px; }
.np-feature-soundscapes .sound-bars span:nth-child(13) { animation-delay: 0.72s; height: 24px; }
.np-feature-soundscapes .sound-bars span:nth-child(14) { animation-delay: 0.78s; height: 40px; }
.np-feature-soundscapes .sound-bars span:nth-child(15) { animation-delay: 0.00s; height: 30px; }
.np-feature-soundscapes .sound-bars span:nth-child(16) { animation-delay: 0.06s; height: 34px; }
.np-feature-soundscapes .sound-bars span:nth-child(17) { animation-delay: 0.12s; height: 19px; }
.np-feature-soundscapes .sound-bars span:nth-child(18) { animation-delay: 0.18s; height: 46px; }
.np-feature-soundscapes .sound-bars span:nth-child(19) { animation-delay: 0.24s; height: 25px; }
.np-feature-soundscapes .sound-bars span:nth-child(20) { animation-delay: 0.30s; height: 37px; }
.np-feature-soundscapes .sound-bars span:nth-child(21) { animation-delay: 0.36s; height: 21px; }
.np-feature-soundscapes .sound-bars span:nth-child(22) { animation-delay: 0.42s; height: 43px; }
.np-feature-soundscapes .sound-bars span:nth-child(23) { animation-delay: 0.48s; height: 27px; }
.np-feature-soundscapes .sound-bars span:nth-child(24) { animation-delay: 0.54s; height: 39px; }
.np-feature-soundscapes .sound-bars span:nth-child(25) { animation-delay: 0.60s; height: 23px; }
.np-feature-soundscapes .sound-bars span:nth-child(26) { animation-delay: 0.66s; height: 41px; }
.np-feature-soundscapes .sound-bars span:nth-child(27) { animation-delay: 0.72s; height: 29px; }
.np-feature-soundscapes .sound-bars span:nth-child(28) { animation-delay: 0.78s; height: 35px; }
.np-feature-soundscapes .sound-bars span:nth-child(29) { animation-delay: 0.00s; height: 31px; }
.np-feature-soundscapes .sound-bars span:nth-child(30) { animation-delay: 0.06s; height: 45px; }
.np-feature-soundscapes .sound-bars span:nth-child(31) { animation-delay: 0.12s; height: 17px; }
.np-feature-soundscapes .sound-bars span:nth-child(32) { animation-delay: 0.18s; height: 33px; }
.np-feature-soundscapes .sound-bars span:nth-child(33) { animation-delay: 0.24s; height: 18px; }
.np-feature-soundscapes .sound-bars span:nth-child(34) { animation-delay: 0.30s; height: 32px; }
.np-feature-soundscapes .sound-bars span:nth-child(35) { animation-delay: 0.36s; height: 22px; }
.np-feature-soundscapes .sound-bars span:nth-child(36) { animation-delay: 0.42s; height: 42px; }
.np-feature-soundscapes .sound-bars span:nth-child(37) { animation-delay: 0.48s; height: 26px; }
.np-feature-soundscapes .sound-bars span:nth-child(38) { animation-delay: 0.54s; height: 48px; }
.np-feature-soundscapes .sound-bars span:nth-child(39) { animation-delay: 0.60s; height: 30px; }
.np-feature-soundscapes .sound-bars span:nth-child(40) { animation-delay: 0.66s; height: 38px; }
.np-feature-soundscapes .sound-bars span:nth-child(41) { animation-delay: 0.72s; height: 20px; }
.np-feature-soundscapes .sound-bars span:nth-child(42) { animation-delay: 0.78s; height: 44px; }
.np-feature-soundscapes .sound-bars span:nth-child(43) { animation-delay: 0.00s; height: 28px; }
.np-feature-soundscapes .sound-bars span:nth-child(44) { animation-delay: 0.06s; height: 36px; }
.np-feature-soundscapes .sound-bars span:nth-child(45) { animation-delay: 0.12s; height: 24px; }
.np-feature-soundscapes .sound-bars span:nth-child(46) { animation-delay: 0.18s; height: 40px; }
.np-feature-soundscapes .sound-bars span:nth-child(47) { animation-delay: 0.24s; height: 30px; }
.np-feature-soundscapes .sound-bars span:nth-child(48) { animation-delay: 0.30s; height: 34px; }
.np-feature-soundscapes .sound-bars span:nth-child(49) { animation-delay: 0.36s; height: 19px; }
.np-feature-soundscapes .sound-bars span:nth-child(50) { animation-delay: 0.42s; height: 46px; }
.np-feature-soundscapes .sound-bars span:nth-child(51) { animation-delay: 0.48s; height: 25px; }
.np-feature-soundscapes .sound-bars span:nth-child(52) { animation-delay: 0.54s; height: 37px; }
.np-feature-soundscapes .sound-bars span:nth-child(53) { animation-delay: 0.60s; height: 21px; }
.np-feature-soundscapes .sound-bars span:nth-child(54) { animation-delay: 0.66s; height: 43px; }
.np-feature-soundscapes .sound-bars span:nth-child(55) { animation-delay: 0.72s; height: 27px; }
.np-feature-soundscapes .sound-bars span:nth-child(56) { animation-delay: 0.78s; height: 39px; }
.np-feature-soundscapes .sound-bars span:nth-child(57) { animation-delay: 0.00s; height: 23px; }
.np-feature-soundscapes .sound-bars span:nth-child(58) { animation-delay: 0.06s; height: 41px; }
.np-feature-soundscapes .sound-bars span:nth-child(59) { animation-delay: 0.12s; height: 29px; }
.np-feature-soundscapes .sound-bars span:nth-child(60) { animation-delay: 0.18s; height: 35px; }
.np-feature-soundscapes .sound-bars span:nth-child(61) { animation-delay: 0.24s; height: 31px; }
.np-feature-soundscapes .sound-bars span:nth-child(62) { animation-delay: 0.30s; height: 45px; }
.np-feature-soundscapes .sound-bars span:nth-child(63) { animation-delay: 0.36s; height: 17px; }
.np-feature-soundscapes .sound-bars span:nth-child(64) { animation-delay: 0.42s; height: 33px; }
@keyframes sound-bar-pulse {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

.np-feature-soundscapes:hover {
  background: rgba(107, 78, 46, 0.06);
  transition: background 0.4s ease;
}

/* ==========================================================================
   BIO SECTION — INDIVIDUAL CARDS (SYMMETRICAL)
   ========================================================================== */
.bio-section {
  position: relative;
  padding: 0 0 80px 0;
  width: 100%;
  background-color: #6B4A30;
  background-image:
    linear-gradient(180deg, rgba(30, 18, 8, 0.2) 0%, rgba(30, 18, 8, 0.06) 50%, rgba(30, 18, 8, 0.25) 100%),
    url('../img/vecteezy_wooden-rack-piece-on-transparent-background_46400297.png');
  background-size: auto, 130% 140%;
  background-position: center, center center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: inset 0 16px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.bio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 230, 190, 0.08), transparent 55%);
  z-index: 0;
}
.bio-section > * {
  position: relative;
  z-index: 1;
}
.bio-section .np-section-rule {
  border-top-color: rgba(245, 240, 232, 0.35);
  border-bottom-color: rgba(245, 240, 232, 0.2);
  background: transparent;
}
.bio-section .np-section-label {
  color: #F5F0E8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.bio-list {
  max-width: 960px; /* Constrained to gently wrap exactly 3 top, 2 bottom */
  margin: 40px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Allows cards to center symmetrically */
  gap: 24px;
}

.bio-row {
  flex: 0 0 260px; /* Noticeably smaller width, fixed to retain portrait shape */
  padding: 28px 22px; /* Scaled down padding to match the smaller width */
  background-image: url('../img/DD Grunge Frame Background 44090_DD-Grunge-Frame-Background-44090-Preview.jpg');
  background-size: 100% 100%; /* Stretches the frame to exactly match the edges without cropping */
  background-repeat: no-repeat;
  border: none;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform-style: preserve-3d;
  /* Basic 3D perspective is managed by JS to allow smooth transitions */
}

.bio-row-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: none; /* Image provides the frame natively */
}

.bio-row-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px; /* Scaled down slightly */
  font-weight: 500;
  color: #1A1209;
  letter-spacing: 0.01em;
}

.bio-row-role {
  font-family: 'Lora', serif;
  font-size: 10px; /* Scaled down slightly */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
}

.bio-row-links {
  margin: 4px 0 0;
  font-family: 'Lora', serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.bio-row-links a {
  color: #8B5A2B;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 90, 43, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.bio-row-links a:hover {
  color: #B54A2A;
  border-bottom-color: #B54A2A;
}
.bio-link-sep {
  margin: 0 6px;
  color: #A89070;
}
.bio-row-text {
  font-family: 'Lora', serif;
  font-size: 12.5px; /* Scaled down slightly to fit the smaller OG shape card */
  line-height: 1.6;
  color: #2C2416;
  margin: 0;
}

@media (max-width: 900px) {
  .bio-list { margin: 28px 16px 0; gap: 20px; }
  .bio-row { flex: 0 0 280px; }
}

@media (max-width: 560px) {
  .bio-list { margin: 24px 16px 0; flex-direction: column; align-items: center; }
  .bio-row { flex: 0 0 auto; width: 100%; max-width: 320px; padding: 32px 24px; }
  .bio-row-name { font-size: 16px; }
  .bio-row-text { font-size: 13.5px; }
}

/* Soundscapes scroll hint */
.soundscapes-scroll-hint {
  margin-top: 20px;
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #F5F0E8;
  background: rgba(181, 74, 42, 0.88);
  border: 1px solid rgba(245, 240, 232, 0.25);
  padding: 10px 18px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  text-shadow: none;
  max-width: 420px;
}

/* ABOUT PAGE */
.about-page { padding: 120px 24px 80px; max-width: 800px; margin: 0 auto; background: #FAF7F2; min-height: 100vh; }
.about-header { margin-bottom: 48px; border-bottom: 2px solid #1A1209; padding-bottom: 16px; }
.about-page-title { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 400; color: #1A1209; }
.about-section { margin-bottom: 36px; }
.about-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #9A8468; margin-bottom: 12px; }
.about-text { font-family: 'Lora', serif; font-size: 15px; color: #2C2416; line-height: 1.8; }

/* ==========================================================================
   AREA DETAIL PAGE & DARK HEADER
   ========================================================================== */
#page-area, #page-area .subpage { background: #14100B; }

.area-page-header { 
  position: relative; 
  padding: 120px 40px 50px; 
  background: #14100B; 
  color: #F5F0E8; 
  overflow: hidden; 
  border-bottom: 1px solid rgba(196, 180, 154, 0.15); 
}
.area-page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(196, 180, 154, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4; pointer-events: none;
}
.area-watermark {
  position: absolute; top: -30px; right: -5%;
  font-family: 'Playfair Display', serif; font-size: 22vw; font-weight: 700;
  color: rgba(255,255,255,0.015); text-transform: uppercase; white-space: nowrap; pointer-events: none;
}
.back-btn { 
  position: relative; z-index: 2; font-size: 12px; font-family: 'Lora', serif; 
  letter-spacing: 0.1em; text-transform: uppercase; color: #C4B49A; 
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; 
  background: none; border: none; padding: 0; margin-bottom: 24px; transition: color 0.2s; 
}
.back-btn:hover { color: #F5F0E8; }
.area-title-wrap { position: relative; z-index: 2; }
.area-title { 
  font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 400; 
  color: #F5F0E8; margin-bottom: 12px; line-height: 1.1; 
}
.area-subtitle { 
  font-family: 'Lora', serif; font-size: 15px; color: #C4B49A; letter-spacing: 0.05em; 
  display: inline-block; padding-bottom: 16px; 
  border-bottom: 2px solid var(--area-color, #C4B49A); 
}

.subpage { display: none; padding: 40px 40px 80px; min-height: 60vh; }
.subpage.active { display: block; }
.anon-note { font-family: 'Lora', serif; font-size: 12px; color: #9A8468; display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 40px;}

/* ==========================================================================
   PHOTO GALLERY & PANORAMIC OVERHAUL
   ========================================================================== */
.photo-gallery { display: flex; flex-direction: column; gap: 60px; }
.gallery-item {
  position: relative; width: 100%; border-radius: 16px; 
  background: #0A0806;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(196, 180, 154, 0.15);
}

.gallery-panorama { 
  border-radius: 16px 16px 0 0;
  position: relative; width: 100%; height: 65vh; min-height: 450px; max-height: 750px;
  overflow-x: auto; overflow-y: hidden; cursor: grab; background: #0A0806;
  scrollbar-width: none; scroll-behavior: auto; 
}
.gallery-panorama:active { cursor: grabbing; }
.gallery-panorama::-webkit-scrollbar { display: none; }

.panorama-inner { 
  --pano-scale: 1;
  position: relative; display: inline-block;
  height: calc(400px * var(--pano-scale));
}
.panorama-inner > img { 
  height: 100%; width: auto; max-width: none; display: block;
  user-select: none; -webkit-user-drag: none; 
  opacity: 0; transition: opacity 0.5s ease;
}
.panorama-inner > img.loaded { opacity: 1; }
.panorama-placeholder { display: flex; align-items: center; justify-content: center; width: 100vw; height: 100%; color: #9A8468; font-size: 13px; font-family: 'Lora', serif; }

.gallery-caption {
  border-radius: 0 0 16px 16px;
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  background: #14100B; border-top: 1px solid rgba(196, 180, 154, 0.15);
}
.gallery-caption-title { font-family: 'Playfair Display', serif; font-size: 16px; color: #F5F0E8; letter-spacing: 0.02em; margin: 0;}
.gallery-caption-meta { font-family: 'Lora', serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8B7355; margin: 0; }

/* Immersive Drag HUD */
.pano-hud {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(14, 10, 6, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 8px 20px; border-radius: 40px; border: 1px solid rgba(245, 240, 232, 0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 20; pointer-events: none;
}
.pano-hud-hint {
  font-family: 'Lora', serif; font-size: 11px; color: #C4B49A;
  text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 6px;
}

/* Hotspots */
@keyframes pin-float { 
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); } 
  50% { transform: translate(-50%, -50%) translateY(-6px); } 
}
@keyframes sun-pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.hotspot-pin {
  position: absolute; width: 44px; height: 44px;
  left: calc(var(--hotspot-x) * var(--pano-scale)); top: calc(var(--hotspot-y) * var(--pano-scale));
  background: none; border: none; cursor: pointer; z-index: 10;
  animation: pin-float 3s ease-in-out infinite; padding: 0; outline: none;
}
.hotspot-pin-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative; z-index: 2;
}
.hotspot-pin::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 240, 232, 0.4) 0%, transparent 70%);
  z-index: 1; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.hotspot-pin:hover .hotspot-pin-img { 
  transform: scale(1.15) rotate(10deg); 
  filter: drop-shadow(0 0 12px rgba(245, 240, 232, 0.6)); 
}
.hotspot-pin:hover::after { 
  opacity: 1; 
  animation: sun-pulse 1.5s infinite; 
}

/* Glassmorphism Popup */
.hotspot-popup {
  position: absolute; width: 340px; background: rgba(14, 10, 6, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196, 180, 154, 0.25); border-left: 3px solid #B54A2A; border-radius: 4px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  z-index: 50; padding: 16px 20px; color: #F5F0E8; white-space: normal;
  opacity: 0; transform: translateY(10px); animation: popup-reveal 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes popup-reveal { to { opacity: 1; transform: translateY(0); } }
.popup-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 20px; font-family: 'Lora', serif; color: #C4B49A; cursor: pointer; padding: 4px; transition: color 0.2s;}
.popup-close:hover { color: #FFF; }
.popup-kicker { font-family: 'Lora', serif; font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #C4B49A; border-bottom: 0.5px solid rgba(196, 180, 154, 0.3); padding-bottom: 8px; margin: 4px 22px 10px 0; }
.popup-quote { font-family: 'IM Fell English', serif; font-style: italic; font-size: 17px; color: #F5F0E8; border-left: 2px solid #C4B49A; padding-left: 12px; margin: 0 0 8px; }
.popup-cite { font-family: 'Lora', serif; font-size: 11px; color: #9A8468; }
.popup-text { font-family: 'Lora', serif; font-size: 13.5px; color: #E8E0D0; line-height: 1.7; margin: 0; }
.popup-img { width: 100%; max-height: 260px; object-fit: contain; background: rgba(0,0,0,0.4); border: 1px solid rgba(196, 180, 154, 0.2); border-radius: 4px; margin-bottom: 8px; }
.popup-caption { font-family: 'Lora', serif; font-size: 11px; color: #9A8468; margin: 0; }

/* AUDIO */
.popup-audio-label { font-family: 'Lora', serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #C4B49A; margin: 0 0 12px; }
.popup-audio-controls { display: flex; align-items: center; gap: 12px; }
.audio-play-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #C4B49A; background: none; color: #F5F0E8; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.audio-progress-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.audio-progress-track { height: 3px; background: rgba(196, 180, 154, 0.3); border-radius: 2px; cursor: pointer; }
.audio-progress-fill { height: 100%; width: 0%; background: #C4B49A; transition: width 0.1s linear; }
.audio-waveform { display: flex; align-items: center; gap: 2px; height: 28px; }
.audio-waveform span { width: 2px; background: rgba(196, 180, 154, 0.3); transition: background 0.15s; }
.audio-waveform span.passed { background: #C4B49A; }
.audio-time { font-family: 'Lora', serif; font-size: 10px; color: #C4B49A; }


/* ==========================================================================
   SCROLLYTELLING: Exact Wipe & Audio Sync
   ========================================================================== */
.scrolly-container {
  position: relative;
  background: #0A0806;
}

.scrolly-step {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  background: #0A0806;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Last sustenance cluster only: a bit more scroll so captions can be read */
.scrolly-step.scrolly-hold {
  min-height: 140vh;
}

/* Still images: natural height */
img.scrolly-media {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* Videos */
video.scrolly-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
  background: #0A0806;
  z-index: 0;
}

.scrolly-step.scrolly-hold video.scrolly-media {
  transform: scale(1.22);
  transform-origin: center center;
}

.scrolly-title-wrapper {
  position: absolute;
  top: 15vh;
  left: 8vw;
  z-index: 2;
  pointer-events: none;
}

.scrolly-title {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #F5F0E8;
  margin: 0;
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
  letter-spacing: 0.05em;
}

.scrolly-caption-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 15;
}

.scrolly-caption {
  position: sticky;
  top: auto;
  bottom: 10vh; 
  margin-left: max(6vw, 32px);
  margin-top: 50vh; 
  background: rgba(14, 10, 6, 0.65);
  border-left: 2px solid #B54A2A;
  padding: 1.8rem 2.2rem;
  border-radius: 2px;
  max-width: 480px;
  color: #F5F0E8;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
}

.scrolly-caption p {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #E8E0D0;
  font-style: italic;
  margin: 0;
}

/* Nuance Popup Box */
.nuance-popup {
  position: absolute;
  right: max(6vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background: rgba(14, 10, 6, 0.85);
  border-left: 3px solid #B54A2A;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.nuance-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #B54A2A;
  margin-bottom: 12px;
}

.nuance-popup-text {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #F5F0E8;
  line-height: 1.6;
}

/* Warning Banner */
.scrolly-warning {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(181, 74, 42, 0.9);
  color: #FFF;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Time-remaining overlay on video steps */
.scrolly-timer {
  position: absolute;
  top: 28px;
  right: max(24px, 4vw);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  background: rgba(14, 10, 6, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 6px;
  padding: 10px 16px 12px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.scrolly-timer-label {
  font-family: 'Lora', serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C4B49A;
}
.scrolly-timer-value {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #F5F0E8;
  letter-spacing: 0.04em;
  line-height: 1.1;
}



/* THEME PAGE */
.theme-hero { position: relative; min-height: 100vh; background-size: cover; background-position: center; background-color: #241811; }
.theme-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,14,9,0.9) 0%, rgba(20,14,9,0.6) 32%, rgba(20,14,9,0.1) 58%, rgba(20,14,9,0.45) 100%); pointer-events: none; }
.theme-hero-content { position: relative; z-index: 2; padding: 108px 40px 48px; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.theme-hero-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #C4B49A; }
.theme-hero-title { font-family: 'Playfair Display', serif; font-size: 46px; color: #FFFFFF; margin: 8px 0 14px; }
.theme-hero-desc { 
  font-family: 'Lora', serif; 
  font-size: 15px; 
  line-height: 1.8; 
  color: #F5F0E8; 
  max-width: 640px; 
  background: rgba(20, 14, 9, 0.65);
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(245, 240, 232, 0.15);
  text-shadow: 0 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
}
.theme-thumbs { display: flex; gap: 16px; margin-top: 32px; padding-bottom: 12px; width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(245,240,232,0.3) transparent; }
.theme-thumb { width: 140px; height: 140px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 1px solid rgba(245,240,232,0.35); background: rgba(0,0,0,0.2); flex-shrink: 0; transition: transform 0.2s ease, border-color 0.2s ease; }
.theme-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-thumb:hover { transform: translateY(-4px); border-color: #C4B49A; }

/* LIGHTBOX — photo + caption side by side, group centered */
.lightbox {
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,7,4,0.92);
  z-index: 100;
  padding: 40px 72px;
}
.lightbox.active { display: flex; }
.lightbox-content-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  width: fit-content;
  max-height: 90vh;
  margin: 0 auto;
}
.lightbox-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 85vh;
  flex: 0 1 auto;
  min-width: 0;
}
.lightbox-img {
  max-height: 85vh;
  max-width: min(72vw, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(245,240,232,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
}
.lightbox-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: #F4ECD8;
  padding: 28px 24px;
  border: 1px solid #1A1209;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.55);
  position: relative;
  align-self: center;
}
.lightbox-sidebar::before {
  content: '';
  position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(26,18,9,0.2);
  pointer-events: none;
}
.lightbox-caption {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #1A1209;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: left;
}
.lightbox-caption::before {
  content: 'NOTES FROM THE FIELD';
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
  border-top: 3px double #1A1209;
  border-bottom: 1px solid #1A1209;
  padding: 8px 0;
  margin-bottom: 14px;
  text-align: center;
}
.lightbox-close { position: absolute; top: 20px; right: 28px; background: none; border: none; font-size: 36px; color: #F5F0E8; cursor: pointer; padding: 6px; z-index: 105; }

/* Lightbox prev / next */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.35);
  background: rgba(14, 10, 6, 0.65);
  color: #F5F0E8;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-nav:hover {
  background: rgba(26, 18, 9, 0.9);
  border-color: #C4B49A;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  font-family: 'Lora', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
  margin-top: 12px;
  text-align: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .lightbox { padding: 56px 16px 24px; }
  .lightbox-content-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-height: 94vh;
    width: 100%;
  }
  .lightbox-img { max-height: 48vh; max-width: 100%; }
  .lightbox-sidebar { width: 100%; max-width: 420px; padding: 16px 18px 14px; }
  .lightbox-caption { font-size: 13.5px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 26px; }
}