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

/* ==========================================================================
   PREMIUM DESIGN SYSTEM TOKENS
   ========================================================================== */
:root {
  /* Colors - Sleek Corporate Dark Theme */
  --paper: #0c0c0c;        /* Deep Charcoal Base */
  --surface: #161616;      /* Graphite Surface */
  --surface-alt: #222222;  /* Elevated Graphite (Hover/Table Rows) */
  --ink: #f0f0f0;          /* Soft White Text */
  --ink-soft: #a3a3a3;     /* Muted Gray Text */
  --forest: #000000;       /* Jet Black for deep contrasts (Hero) */
  --forest-soft: #2a2a2a;  /* Subtle dark border highlight */
  --gold: #b09e6d;         /* Very Muted Gold/Bronze Accent */
  --gold-bright: #c8b991;  /* Lighter Muted Accent */
  --gold-gradient: linear-gradient(135deg, #c8b991 0%, #b09e6d 100%);
  --emerald-gradient: linear-gradient(135deg, #161616 0%, #0c0c0c 100%);
  --glow-gradient: linear-gradient(135deg, rgba(176, 158, 109, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  
  /* Borders and Shadow Gradients */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 8px;
  --max: 1200px;
  
  /* Smooth Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 8px 24px rgba(176, 158, 109, 0.1);
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   GLOBAL RESET & BASICS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body.kbpf-dynamic {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: 
    radial-gradient(circle at 10% -10%, rgba(176, 158, 109, 0.03) 0%, transparent 40rem),
    radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 50rem),
    var(--paper);
  font-family: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Typography Overrides */
h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p, span, li, dt, dd, figcaption, input, button, select, textarea {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-inner,
.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ==========================================================================
   HEADER NAVIGATION (GLASSMORPHIC)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.brand-mark span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: "Playfair Display", serif;
}

.brand-mark small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

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

/* Luxury slide indicator under nav links */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Primary buttons with gold gradients */
.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: #1a0f02;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-gold), var(--shadow-inset);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
  filter: brightness(1.1);
}

.button:active,
.nav-cta:active {
  transform: translateY(0);
}

/* Secondary Button Upgrade */
.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  border-color: var(--gold);
  background: var(--surface-alt);
  color: var(--ink);
}

.button.secondary.light {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary.light:hover {
  border-color: var(--gold);
  background: var(--surface-alt);
}

.button.closed {
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

/* ==========================================================================
   HERO SECTION (LUXURIOUS LAYOUT)
   ========================================================================== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #020c08;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, #020c08 24%, rgba(2, 12, 8, 0.6) 55%, rgba(2, 12, 8, 0.85) 100%),
    var(--home-hero-image, radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.14) 0%, transparent 60%));
  background-position: center;
  background-size: cover;
  z-index: 0;
  opacity: 0.92;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: 1;
  pointer-events: none;
}

.hero .section-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: 80px;
  align-items: center;
  padding: 100px 0 110px;
}

.hero-copy,
.hero-panel {
  animation: rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-panel {
  animation-delay: 150ms;
}

/* Eyebrow Highlight */
.eyebrow,
.panel-kicker,
.statement span,
.pillar-list > li > span,
.value-ledger dt,
.source-link span,
.package-line span,
.sponsor-line span,
.contact-lines span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold-gradient);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Heading Highlight Text Effect */
.hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head h2 span {
  color: var(--gold);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* scripture Panel Plaque Styling */
.hero-panel {
  background: rgba(10, 32, 22, 0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-content {
  display: grid;
  gap: 18px;
}

.panel-kicker {
  margin-bottom: 0;
  color: var(--gold-bright);
}

.panel-big {
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.panel-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  line-height: 1.65;
  font-style: italic;
}

/* ==========================================================================
   CONTENT BLOCKS & LAYOUT
   ========================================================================== */
.section-block {
  padding: 92px 0;
  position: relative;
}

/* Alternating background colors */
.section-block:nth-of-type(odd) {
  background: var(--paper);
}

.section-block:nth-of-type(even) {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  max-width: 720px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 480px;
}

.prose-layout {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 64px;
}

.profile-copy {
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 780px;
}

.profile-copy p + p {
  margin-top: 24px;
}

/* ==========================================================================
   STATEMENT / VISION & MISSION
   ========================================================================== */
.statement-section {
  padding-top: 0;
}

.statement-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(10, 32, 22, 0.4);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.statement {
  padding: 48px;
  position: relative;
  background: rgba(4, 18, 12, 0.2);
}

.statement + .statement {
  border-left: 1px solid var(--line-strong);
}

.statement span {
  font-size: 0.8rem;
}

.statement p {
  margin-top: 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   EDITORIAL PATRON BAND & BACKGROUNDS
   ========================================================================== */
.patron-band {
  background: 
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 40rem),
    linear-gradient(135deg, #0e0e0e 0%, #0a0a0a 100%);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 56px 0;
}

.patron-card {
  display: flex;
  align-items: center;
  gap: 40px;
}

.patron-photo {
  flex-shrink: 0;
  margin: 0;
}

.patron-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 185, 145, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.patron-quote {
  margin: 0;
  position: relative;
  flex: 1;
}

.patron-quote::before {
  content: "\201C";
  position: absolute;
  top: -28px;
  left: -12px;
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.1);
  line-height: 1;
}

.patron-quote blockquote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  position: relative;
  z-index: 2;
}

.patron-quote figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.patron-quote figcaption strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.patron-quote figcaption span {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   BENTO GRID LAYOUTS (BENEFITS & MEMBERSHIP)
   ========================================================================== */
.benefit-split {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 64px;
  align-items: center;
}

.benefit-copy .eyebrow {
  margin-bottom: 16px;
}

.benefit-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 28px;
}

/* Bento list container */
.benefit-mini-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.benefit-mini-list span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-inset);
}

.benefit-mini-list span::before {
  content: "✦";
  color: var(--gold);
  font-size: 1rem;
}

.benefit-mini-list span:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* Bento Photo Container */
.benefit-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  margin: 0;
  aspect-ratio: 4 / 3;
}

.benefit-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 18, 12, 0.45));
  z-index: 1;
}

.benefit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-photo:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   OBJECTIVES PILLARS (EDITORIAL TIMELINE LIST)
   ========================================================================== */
.pillar-list {
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  margin-top: 16px;
}

.pillar-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.pillar-list li:hover {
  background: rgba(255, 255, 255, 0.01);
}

.pillar-list li > span {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0;
}

.pillar-list h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink);
}

.pillar-list p {
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ==========================================================================
   CORE VALUES LEDGER (CLEAN SPLIT TABLE)
   ========================================================================== */
.values-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.value-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  margin: 0;
}

.value-ledger div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.value-ledger dt {
  margin-bottom: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.value-ledger dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   EVENTS MODULE (PREMIUM ROW CARDS)
   ========================================================================== */
.status-board {
  display: grid;
  gap: 40px;
}

.status-lane {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.lane-label {
  position: sticky;
  top: 120px;
}

.lane-label h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.lane-label p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.event-grid {
  display: grid;
  gap: 24px;
}

/* Homepage Vertical Grid Overrides */
.home-events {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.home-events .event-row {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  align-items: start;
}

.home-events .event-row-action {
  justify-self: start;
  width: 100%;
}

.home-events .event-row-action .button {
  width: 100%;
}

.event-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-row:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

/* Event Card Image Overlay */
.event-row-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
}

.event-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-row:hover .event-row-media img {
  transform: scale(1.05);
}

.event-row-media-empty {
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-row-media-empty::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8b991' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
  opacity: 0.4;
}

.event-row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-row h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 6px 0;
  letter-spacing: -0.01em;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-row p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.event-row-action {
  justify-self: end;
}

/* Beautiful custom status badge */
.status-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 4px;
}

.empty-state {
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   PREMIUM GALLERY SECTION (MASONRY & METADATA OVERLAYS)
   ========================================================================== */
.gallery-band {
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 100px 0;
}

.gallery-image-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.gallery-image {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.gallery-image:hover img {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.gallery-image figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-image figcaption strong {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

.gallery-image figcaption span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Home Gallery Hero */
.gallery-hero-band {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.gallery-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gallery-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* Slight zoom for hero effect */
}

.gallery-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.7) 0%, rgba(22, 22, 22, 0.85) 100%);
  z-index: 2;
}

.gallery-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 20px;
  max-width: 600px;
}

.gallery-hero-content h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  color: #ffffff;
}

.gallery-hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ==========================================================================
   GALLERY PAGE HERO & TILE SYSTEM
   ========================================================================== */
.gallery-hero {
  position: relative;
  display: flex;
  min-height: 480px;
  align-items: center;
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
  background: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40rem),
    linear-gradient(180deg, #020c08 0%, var(--paper) 100%);
  text-align: center;
}

.gallery-hero.has-cover {
  background-image: 
    linear-gradient(180deg, rgba(4, 18, 12, 0.6) 0%, rgba(4, 18, 12, 0.88) 100%),
    var(--gallery-hero-image);
  background-size: cover;
  background-position: center;
}

.gallery-hero h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.4rem);
  line-height: 1.1;
  max-width: 860px;
  margin: 0 auto;
}

.gallery-hero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 18px auto 0;
}

/* Sticky Filters */
.gallery-filter-section {
  position: sticky;
  top: 80px;
  z-index: 20;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.gallery-filter {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-filter.is-active,
.gallery-filter:hover {
  border-color: var(--gold);
  background: var(--gold-gradient);
  color: #1a0f02;
  box-shadow: var(--shadow-gold);
}

.gallery-canvas {
  padding-top: 56px;
}

/* Masonry Layout Overhaul */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-masonry.is-album-list {
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* Album Card Element */
.gallery-album-tile {
  position: relative;
  display: grid;
  min-height: 320px;
  align-content: end;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-album-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 18, 12, 0.9) 100%);
  z-index: 1;
}

.gallery-album-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.gallery-album-tile:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.gallery-album-tile:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

.gallery-album-tile span,
.gallery-album-tile strong,
.gallery-album-tile em {
  position: relative;
  z-index: 2;
}

.gallery-album-tile span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-album-tile strong {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  line-height: 1.2;
  margin-top: 8px;
}

.gallery-album-tile em {
  margin-top: 12px;
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Individual photo tile */
.gallery-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0;
}

/* Responsive masonry span rules */
.gallery-tile:nth-child(8n + 1) {
  grid-row: span 2;
  aspect-ratio: 1 / 2;
}

.gallery-tile:nth-child(8n + 5) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-tile-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-tile-download {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(4, 18, 12, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.25s ease;
}

.gallery-tile:hover .gallery-tile-download {
  opacity: 1;
}

.gallery-tile-download:hover {
  background: var(--gold-gradient);
  color: #1a0f02;
  border-color: transparent;
}

.gallery-collection-tile {
  display: grid;
  align-content: end;
  min-height: 240px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.gallery-collection-tile span {
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-collection-tile strong {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin-top: 10px;
  color: var(--ink);
}

.gallery-source-strip {
  margin-top: 64px;
}

.gallery-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 20px 0;
}

.gallery-load-more-button {
  min-height: 48px;
  padding: 0 32px;
  border-radius: 99px;
  background: var(--gold-gradient);
  border: 1px solid transparent;
  color: #1a0f02;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.gallery-load-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.gallery-load-more span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ==========================================================================
   LIGHTBOX MODULE (DARK ROOM THEME)
   ========================================================================== */
body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  padding: 40px;
  background: rgba(2, 8, 6, 0.96);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.gallery-lightbox figcaption {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-lightbox figcaption span + span {
  color: var(--ink-soft);
  font-weight: 500;
}

.gallery-lightbox-close,
.gallery-lightbox-download,
.gallery-lightbox-nav {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.gallery-lightbox-download {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.gallery-lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}

.gallery-lightbox-nav::before {
  content: "";
  width: 12px;
  height: 12px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  display: block;
  position: absolute;
  top: 20px;
}

.gallery-lightbox-nav.previous::before {
  transform: rotate(135deg);
  left: 23px;
}

.gallery-lightbox-nav.next::before {
  transform: rotate(-45deg);
  left: 17px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-download:hover,
.gallery-lightbox-nav:hover {
  background: var(--gold-gradient);
  color: #1a0f02;
  border-color: transparent;
}

/* ==========================================================================
   METRIC & SPONSOR LINES
   ========================================================================== */
.sponsor-band {
  background: var(--surface);
}

.sponsor-list {
  display: grid;
  gap: 20px;
}

.sponsor-line {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 80px;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.sponsor-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 1.1rem;
}

.sponsor-line h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.sponsor-line p {
  color: var(--ink-soft);
}

.package-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.3s ease;
}

.package-line:hover {
  background: var(--surface-alt);
  border-color: var(--line-strong);
}

.package-line h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.package-line p {
  color: var(--ink-soft);
}

.package-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.package-line .price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.metric-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: rgba(10, 32, 22, 0.4);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
}

.metric-line h3 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.metric-line p {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   CONTACT DETAILS LISTING
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.contact-card .card-icon {
  display: block;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card a,
.contact-card p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.contact-card a:hover {
  color: var(--gold);
}

/* ==========================================================================
   DETAIL PAGE SPECIFICS
   ========================================================================== */
.detail-hero {
  padding: 130px 0 72px;
  background: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40rem),
    linear-gradient(180deg, #020c08 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line-strong);
}

.detail-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.1;
  margin: 18px 0 24px;
}

.detail-copy {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 800px;
}

.event-detail-media {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  max-height: 480px;
}

.event-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registration-state {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: rgba(10, 32, 22, 0.8);
  border: 1px solid var(--line-strong);
}

.registration-state.is-open {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.registration-state strong {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.closed-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
}

.closed-notice strong {
  color: var(--gold-bright);
  font-size: 1.1rem;
}

/* ==========================================================================
   REGISTRATION FORM MODAL (POLISHED OVERLAY)
   ========================================================================== */
body.registration-modal-open {
  overflow: hidden;
}

.event-register-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.event-register-modal[hidden] {
  display: none;
}

.event-register-modal [hidden] {
  display: none !important;
}

.event-register-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.event-register-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: #091f16;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.event-register-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.event-register-close:hover {
  color: var(--gold-bright);
}

.event-register-panel h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.event-register-context {
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 24px;
}

.event-register-instructions {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.event-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.event-register-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-register-grid span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.event-register-grid input,
.event-register-grid select,
.event-register-grid textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(4, 18, 12, 0.6);
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0 16px;
  transition: all 0.25s ease;
}

.event-register-grid input:focus,
.event-register-grid select:focus,
.event-register-grid textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(4, 18, 12, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.event-register-grid textarea {
  min-height: 96px;
  padding: 12px 16px;
  resize: vertical;
}

.event-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.event-payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s ease;
}

.event-payment-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold);
}

.event-payment-option input {
  margin-top: 4px;
}

.event-payment-option strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.event-payment-option small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.event-register-message {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

.event-register-message[data-message-type="error"] {
  background: rgba(138, 47, 29, 0.15);
  color: #f7a496;
  border: 1px solid rgba(138, 47, 29, 0.3);
}

.event-register-message[data-message-type="success"] {
  background: rgba(18, 75, 53, 0.2);
  color: #92e0be;
  border: 1px solid rgba(18, 75, 53, 0.4);
}

.event-register-submit {
  width: 100%;
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET (GLASSMORPHIC CHAT CARD)
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-panel {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(9, 31, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: rise 0.3s ease;
}

.whatsapp-panel[hidden] {
  display: none;
}

.whatsapp-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.whatsapp-panel-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.whatsapp-panel-icon svg,
.whatsapp-launcher-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.whatsapp-panel-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.whatsapp-panel strong {
  display: block;
  font-size: 1.15rem;
  font-family: "Playfair Display", serif;
  margin-top: 2px;
}

.whatsapp-panel p {
  margin: 16px 0 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #04120c;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  filter: brightness(1.05);
}

.whatsapp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-close:hover {
  color: var(--gold-bright);
}

/* Floating WhatsApp Button */
.whatsapp-launcher {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  border: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-launcher:hover {
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-launcher-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   FOOTER MODULE
   ========================================================================== */
.site-footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-strong);
  background: #020c08;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
}

.footer-grid strong {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 12px;
}

.footer-grid span {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-grid a,
.footer-grid p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   ANIMATIONS AND TRANSITIONS
   ========================================================================== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .section-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 0;
  }
  
  .hero-panel {
    align-self: start;
  }
  
  .benefit-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .value-ledger {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .prose-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .statement-pair {
    grid-template-columns: 1fr;
  }
  
  .statement + .statement {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  
  .pillar-list li {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  
  .pillar-list li > span {
    font-size: 1.5rem;
  }
  
  .status-lane {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .lane-label {
    position: static;
  }
  
  .event-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .event-row-media {
    aspect-ratio: 16 / 9;
  }
  
  .event-row-action {
    justify-self: start;
  }
  
  .gallery-image-list {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-snippet {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .gallery-snippet-images {
    order: -1;
  }
  
  .patron-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .patron-quote::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .sponsor-line {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .package-line {
    grid-template-columns: 1fr;
  }
  
  .package-actions {
    justify-content: space-between;
  }
  
  .metric-list {
    grid-template-columns: 1fr;
  }
  
  .contact-lines p {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
  
  .event-register-grid {
    grid-template-columns: 1fr;
  }
  
  .event-payment-methods {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  body.kbpf-dynamic {
    font-size: 15px;
  }
  
  .nav-inner {
    min-height: 72px;
  }
  
  .nav-links a:not(.nav-cta) {
    display: none; /* Keep header clean on mobile */
  }
  
  .gallery-image-list {
    grid-template-columns: 1fr;
  }
  
  .gallery-filter-section {
    top: 72px;
  }
  
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-masonry.is-album-list {
    grid-template-columns: 1fr;
  }
  
  .gallery-tile:nth-child(8n + 5) {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }
  
  .gallery-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 24px;
  }
  
  .gallery-lightbox-nav {
    display: none; /* Hide arrows on small viewports, user swipes or clicks */
  }
  
  .gallery-lightbox img {
    max-height: calc(100vh - 200px);
  }
  
  .gallery-lightbox-close {
    top: 14px;
    right: 14px;
  }
  
  .gallery-lightbox-download {
    top: 14px;
    left: 14px;
  }
  
  .value-ledger div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .benefit-mini-list {
    grid-template-columns: 1fr;
  }
}
