/* ==========================================================================
   Raja Shahi — Himalayan Field Journal
   Design Tokens & Modern Styling
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-ink: #0a0d16;
  --bg-card: #101622;
  --bg-glass: rgba(245, 239, 226, 0.035);
  --bg-glass-hover: rgba(245, 239, 226, 0.06);
  --border-color: #2a3346;
  --border-glass: rgba(245, 239, 226, 0.08);
  --border-glass-hover: rgba(226, 161, 58, 0.4);

  --text-paper: #f5efe2;
  --text-paper-dim: #d9d1c1;
  --text-muted: #8791a8;

  --accent-saffron: #e2a13a;
  --accent-gold: #d08a2e;
  --accent-himal: #6f9fbd;
  --accent-maroon: #8a282f;
  --accent-maroon-hover: #6a1e24;

  /* Tibetan Prayer Flag Colors */
  --flag-blue: #33507a;
  --flag-white: #c96a9a;
  --flag-red: #9c3138;
  --flag-green: #4f9b74;
  --flag-yellow: #e6c94a;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --max-width: 80rem; /* 1280px */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-ink);
  color: var(--text-paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-ink);
  color: var(--text-paper);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

/* Fluid Aurora Background Effect */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  animation: auroraShift 22s ease-in-out infinite;
}

.aurora-a {
  background: radial-gradient(40% 40% at 20% 30%, #8a282f 0%, rgba(0, 0, 0, 0) 70%);
}

.aurora-b {
  background: radial-gradient(45% 45% at 80% 20%, #4f9b74 0%, rgba(0, 0, 0, 0) 70%);
  animation-delay: -6s;
}

.aurora-c {
  background: radial-gradient(50% 50% at 60% 70%, #6f9fbd 0%, rgba(0, 0, 0, 0) 70%);
  animation-delay: -12s;
}

.aurora-d {
  background: radial-gradient(35% 35% at 30% 80%, #e2a13a 0%, rgba(0, 0, 0, 0) 70%);
  animation-delay: -18s;
}

@keyframes auroraShift {
  0% {
    opacity: 0.35;
    transform: translate(-8%, -4%) rotate(0deg);
  }
  50% {
    opacity: 0.52;
    transform: translate(10%, 6%) rotate(8deg);
  }
  100% {
    opacity: 0.35;
    transform: translate(-8%, -4%) rotate(0deg);
  }
}

/* Page Layout Container */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Prayer Flag Accent Ribbon */
.prayer-flags-bar {
  display: flex;
  height: 6px;
  width: 100%;
  overflow: hidden;
}

.flag-segment {
  flex: 1;
  height: 100%;
}

.flag-blue { background-color: var(--flag-blue); }
.flag-white { background-color: var(--flag-white); }
.flag-red { background-color: var(--flag-red); }
.flag-green { background-color: var(--flag-green); }
.flag-yellow { background-color: var(--flag-yellow); }

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-maroon);
  font-family: var(--font-display);
  color: var(--text-paper);
  font-size: 1.125rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(138, 40, 47, 0.3);
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-paper);
}

.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--text-paper-dim);
}

@media (min-width: 768px) {
  .nav-links-desktop {
    display: flex;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-paper-dim);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-paper);
}

.nav-cta-btn {
  background-color: var(--accent-saffron);
  color: var(--bg-ink);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 14px rgba(226, 161, 58, 0.25);
}

.nav-cta-btn:hover {
  background-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-paper);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-drawer {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgba(16, 22, 34, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-drawer.is-open {
  display: flex;
}

.mobile-menu-drawer .nav-link {
  font-size: 1.125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-glass);
}

/* Glassmorphism Classes */
.glass {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 2.5rem;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-status-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-saffron);
  font-weight: 600;
}

.status-line {
  display: inline-block;
  height: 1px;
  width: 2rem;
  background-color: var(--accent-saffron);
}

.hero-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 3.75rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title .italic-himal {
  font-style: italic;
  color: var(--accent-himal);
}

.hero-description {
  margin-top: 1.5rem;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-paper-dim);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-maroon);
  color: var(--text-paper);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(138, 40, 47, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-maroon-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 40, 47, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-paper-dim);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-saffron);
  color: var(--text-paper);
  transform: translateY(-2px);
}

.hero-stats-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  max-width: 24rem;
  font-family: var(--font-mono);
}

.stat-item-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-paper);
  line-height: 1.2;
}

.stat-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.stat-item-label {
  margin-top: 0.25rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

@media (min-width: 1024px) {
  .hero-media-wrapper {
    justify-self: end;
  }
}

.hero-img-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: rgba(16, 22, 34, 0.8);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.hero-media-wrapper:hover .hero-image.is-loaded {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: -1.25rem;
  left: 1.25rem;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.badge-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-saffron);
  font-weight: 600;
}

.badge-title {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-paper);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-wrapper {
  padding-bottom: 5rem;
  scroll-margin-top: 2rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.section-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-himal);
  font-weight: 600;
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw + 1rem, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text-paper);
}

.section-link-more {
  display: none;
  font-size: 0.875rem;
  color: var(--text-paper-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (min-width: 640px) {
  .section-link-more {
    display: inline-block;
  }
}

.section-link-more:hover {
  color: var(--accent-saffron);
}

/* ==========================================================================
   01 · Stories Section
   ========================================================================== */
.stories-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  color: inherit;
}

.story-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.story-img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background-color: rgba(16, 22, 34, 0.6);
}

.story-card-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card-image.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.story-card:hover .story-card-image.is-loaded {
  transform: scale(1.04);
}

.story-meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.story-heading {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text-paper);
}

.story-snippet {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-paper-dim);
}

/* ==========================================================================
   02 · Moments Photo Gallery (Responsive Bento Grid)
   ========================================================================== */
.moments-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.moment-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background-color: rgba(16, 22, 34, 0.6);
  min-height: 240px;
}

/* Tablet (2 Columns) */
@media (min-width: 640px) and (max-width: 1023px) {
  .moments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .moment-item.moment-tall {
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 500px;
  }

  .moment-item.moment-wide-top {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .moment-item.moment-full {
    grid-column: span 2;
    aspect-ratio: 21 / 10;
    max-height: 380px;
  }
}

/* Desktop (3 Columns - 100% Filled Bento Layout with Zero Gaps) */
@media (min-width: 1024px) {
  .moments-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px 280px 340px;
    gap: 1.5rem;
  }

  .moment-item {
    aspect-ratio: auto;
    height: 100%;
    min-height: unset;
  }

  /* Waterfall: Left Column spanning Row 1 & 2 (Tall Portrait) */
  .moment-item.moment-tall {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  /* Ride: Top Right spanning Col 2 & 3 (Wide Adventure) */
  .moment-item.moment-wide-top {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
  }

  /* View: Bottom Middle Col 2 */
  .moment-item[data-index="2"] {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  /* Huhu: Bottom Right Col 3 */
  .moment-item[data-index="3"] {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }

  /* Raja: Full Width Bottom Row spanning Col 1, 2, 3 (Panoramic) */
  .moment-item.moment-full {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
  }
}

.moment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  display: block;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.moment-image.portrait-focus {
  object-position: center 25%;
}

.moment-image.center-focus {
  object-position: center 35%;
}

.moment-image.top-focus {
  object-position: center 30%;
}

.moment-image.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.moment-item:hover .moment-image.is-loaded {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.moment-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.moment-item:hover .moment-overlay-hint {
  opacity: 1;
}

.moment-overlay-icon {
  background: rgba(16, 22, 34, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  color: var(--text-paper);
}

/* ==========================================================================
   03 · About Section
   ========================================================================== */
.about-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-card {
    padding: 3rem;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }
}

.about-title {
  margin-top: 0.75rem;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw + 1rem, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-title .italic-saffron {
  font-style: italic;
  color: var(--accent-saffron);
}

.about-bio {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-paper-dim);
  text-wrap: pretty;
}

.about-media-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.about-img-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  background-color: rgba(16, 22, 34, 0.6);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.about-darkroom-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center 70%;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-darkroom-img.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.about-card:hover .about-darkroom-img.is-loaded {
  transform: scale(1.03);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.tag-pill {
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  color: var(--text-paper-dim);
  background: rgba(16, 22, 34, 0.4);
}

/* ==========================================================================
   Footer & Contact
   ========================================================================== */
.site-footer {
  position: relative;
  scroll-margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw + 1rem, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.footer-heading .italic-himal {
  font-style: italic;
  color: var(--accent-himal);
}

.footer-btn {
  margin-top: 2rem;
  display: inline-block;
  background-color: var(--accent-saffron);
  color: var(--bg-ink);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 16px rgba(226, 161, 58, 0.3);
}

.footer-btn:hover {
  background-color: var(--accent-gold);
  transform: translateY(-2px);
}

.footer-connect-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-paper-dim);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-link-row:last-child {
  border-bottom: none;
}

.footer-link-row:hover {
  color: var(--accent-saffron);
  border-color: var(--accent-saffron);
}

.footer-link-row .link-meta {
  color: var(--text-muted);
}

.footer-bottom-bar {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
  }
}

/* ==========================================================================
   Interactive Scroll Reveals & Rise Animations
   ========================================================================== */
.rise {
  opacity: 0;
  animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.delay-50 { animation-delay: 50ms; }
.delay-150 { animation-delay: 150ms; }
.delay-250 { animation-delay: 250ms; }
.delay-350 { animation-delay: 350ms; }

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Modals & Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: rgba(26, 34, 51, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-maroon);
  transform: scale(1.08);
}

/* Lightbox Specifics */
.lightbox-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-paper-dim);
  text-align: center;
  font-family: var(--font-sans);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: rgba(26, 34, 51, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--accent-saffron);
  color: var(--bg-ink);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -1rem; }
.lightbox-next { right: -1rem; }

@media (min-width: 768px) {
  .lightbox-prev { left: -4rem; }
  .lightbox-next { right: -4rem; }
}

/* Story Reader Modal Specifics */
.story-modal-card {
  max-width: 44rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: rgba(16, 22, 34, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .story-modal-card {
    padding: 3rem;
  }
}

.story-modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.story-modal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-himal);
}

.story-modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  margin-top: 0.5rem;
  color: var(--text-paper);
}

.story-modal-body {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-paper-dim);
}

.story-modal-body p {
  margin-bottom: 1rem;
}
