/* ==========================================================================
   JNANA DEEPA CHARITABLE TRUST — CLIENT REFERENCE LAYOUT & MOTION SYSTEM
   ========================================================================== */

:root {
  --jd-forest: #0b2926;
  --jd-forest-deep: #071c1a;
  --jd-forest-mid: #103530;
  --jd-forest-elevated: #16413b;
  --jd-navy-slate: #102b44;

  --jd-gold: #d4b16f;
  --jd-gold-bright: #ebd097;
  --jd-gold-muted: #b38945;
  --jd-gold-soft: rgba(212, 177, 111, 0.16);

  --jd-cream: #f8f2e4;
  --jd-cream-warm: #f3ead7;
  --jd-surface: #ffffff;

  --jd-ink: #122826;
  --jd-ink-body: #3c4d48;
  --jd-ink-muted: #65746e;
  --jd-on-dark: #f7f9f7;
  --jd-on-dark-muted: #d0ddd5;
  --jd-border: rgba(16, 45, 43, 0.11);
  --jd-border-strong: rgba(16, 45, 43, 0.2);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 20px rgba(10, 34, 31, 0.06);
  --shadow-md: 0 18px 40px rgba(10, 34, 31, 0.11);
  --shadow-lg: 0 28px 68px rgba(5, 22, 20, 0.24);

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
  --jd-font-scale: 1;
  --jd-custom-p-color: inherit;
  --scroll-dir: 1;
  --scroll-tilt: 0deg;
  --scroll-shift: 0px;
}

body[data-theme="midnight"] {
  --jd-cream: #0e1b1a;
  --jd-cream-warm: #132422;
  --jd-surface: #162a28;
  --jd-ink: #eef4f0;
  --jd-ink-body: #c6d4cc;
  --jd-ink-muted: #98a99f;
  --jd-border: rgba(235, 208, 151, 0.14);
  --jd-border-strong: rgba(235, 208, 151, 0.26);
}

body[data-theme="warm"] {
  --jd-forest: #38271c;
  --jd-forest-deep: #241811;
  --jd-forest-mid: #473224;
  --jd-navy-slate: #2b1e16;
  --jd-cream: #f8f0e2;
  --jd-cream-warm: #efe4cf;
  --jd-surface: #fffdf8;
  --jd-ink: #2f231a;
  --jd-ink-body: #584739;
  --jd-ink-muted: #7d6856;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--jd-cream);
  color: var(--jd-ink);
  font-family: var(--font-sans);
  font-size: calc(15px * var(--jd-font-scale));
  line-height: 1.72;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

body[data-custom-p-color="1"] main p {
  color: var(--jd-custom-p-color) !important;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--jd-gold); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 2000;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--jd-gold); color: var(--jd-forest-deep);
  font-size: 12px; font-weight: 700;
}
.skip-link:focus { top: 14px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1200;
  width: 100%; height: 3px; background: rgba(212, 177, 111, 0.14); pointer-events: none;
}
.scroll-progress span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--jd-gold-muted), var(--jd-gold-bright));
}

.cursor-glow, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none;
  border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); z-index: 9999;
}
.cursor-glow { width: 34px; height: 34px; border: 1px solid rgba(212, 177, 111, 0.55); transition: width 0.2s, height 0.2s, opacity 0.2s; }
.cursor-dot { width: 5px; height: 5px; background: var(--jd-gold-bright); }
body.has-pointer .cursor-glow, body.has-pointer .cursor-dot { opacity: 1; }
body.cursor-hover .cursor-glow { width: 52px; height: 52px; background: rgba(212, 177, 111, 0.1); }

/* ==========================================================================
   HEADER (DEEP SLATE-FOREST BAR + SEAL + DIVIDER + NAV + DONATE + THEME)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: linear-gradient(90deg, #0d263b 0%, #103242 52%, #0b2926 100%);
  border-bottom: 1.5px solid rgba(212, 177, 111, 0.52);
  box-shadow: 0 6px 24px rgba(4, 16, 24, 0.24);
  transition: height 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium);
}
.site-header.is-scrolled {
  height: 70px;
  box-shadow: 0 10px 30px rgba(4, 16, 24, 0.34);
}
body[data-theme="midnight"] .site-header {
  background: linear-gradient(90deg, #071514 0%, #0b2220 100%);
}
body[data-theme="warm"] .site-header {
  background: linear-gradient(90deg, #2d1f16 0%, #3d2a1e 100%);
}

.nav-wrap {
  max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; color: #ffffff; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; transition: transform 0.35s var(--ease-premium); }
.brand-mark svg { width: 100%; height: 100%; }
.brand:hover .brand-mark { transform: scale(1.04); }

.brand-copy {
  position: relative; display: grid; line-height: 1.15; padding-left: 16px;
}
.brand-copy::before {
  content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 1.5px;
  background: rgba(235, 208, 151, 0.55);
}
.brand-copy strong { font-family: var(--font-sans); font-size: 15px; font-weight: 800; letter-spacing: 1.6px; color: #ffffff; }
.brand-copy small { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; color: #dbe7e1; margin-top: 2px; }
.brand-copy em { font-family: var(--font-display); font-style: italic; font-size: 12px; color: var(--jd-gold-bright); margin-top: 2px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 600; color: #e9f0ec;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active {
  color: #ffffff; background: rgba(255, 255, 255, 0.1);
}
.nav-chevron { font-size: 11px; color: var(--jd-gold-bright); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px;
  border-radius: var(--radius-md); background: var(--jd-forest-deep);
  border: 1px solid rgba(235, 208, 151, 0.25); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  display: grid; gap: 2px; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px); transition: opacity 0.2s, transform 0.25s var(--ease-premium), visibility 0.2s;
  z-index: 250;
}
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-dropdown:hover .nav-dropdown,
  .nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
}
.nav-item.has-dropdown.is-open .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-dropdown a { display: grid; gap: 2px; padding: 9px 12px; border-radius: var(--radius-sm); }
.nav-dropdown a:hover { background: rgba(212, 177, 111, 0.14); }
.nav-dropdown strong { font-size: 12px; color: #fff; }
.nav-dropdown span { font-size: 10.5px; color: var(--jd-on-dark-muted); }

.nav-donate-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--jd-gold-bright), var(--jd-gold));
  color: var(--jd-forest-deep); font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 177, 111, 0.28);
  transition: transform 0.22s var(--ease-premium), box-shadow 0.22s ease;
}
.nav-donate-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212, 177, 111, 0.4); }
.donate-heart { font-size: 12px; line-height: 1; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08);
  color: #ffffff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.9px;
  text-transform: uppercase; cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--jd-gold-bright); background: rgba(212, 177, 111, 0.18); }
.theme-icon { color: var(--jd-gold-bright); font-size: 12px; }

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.06);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.menu-toggle span { width: 16px; height: 1.6px; background: #fff; }

/* ==========================================================================
   HERO SHOWCASE BANNER (FULL-BLEED PHOTO + OVERLAY TEXT & CONTROLS)
   ========================================================================== */
@keyframes heroEnterUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
.js .hero-stagger {
  opacity: 0;
  animation: heroEnterUp 0.8s var(--ease-premium) both;
  animation-delay: calc(var(--stagger, 1) * 75ms);
}

.hero { position: relative; overflow: hidden; background: var(--jd-forest-deep); }
.hero-stage { position: relative; min-height: 460px; display: flex; align-items: center; }
.slider-track { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.75s var(--ease-premium), visibility 0.75s var(--ease-premium);
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(252, 248, 238, 0.95) 0%,
    rgba(252, 248, 238, 0.86) 44%,
    rgba(252, 248, 238, 0.16) 72%,
    rgba(10, 34, 31, 0.14) 100%
  );
}
body[data-theme="midnight"] .hero-scrim {
  background: linear-gradient(
    90deg,
    rgba(10, 22, 21, 0.94) 0%,
    rgba(10, 22, 21, 0.82) 48%,
    rgba(10, 22, 21, 0.25) 100%
  );
}

.hero-content-grid {
  position: relative; z-index: 3; width: 100%; max-width: 1360px;
  margin: 0 auto; padding: 38px 36px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: 32px;
}

.hero-left-col { display: flex; align-items: center; gap: 22px; }
.hero-seal-col { width: 136px; height: 136px; flex-shrink: 0; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22)); }
.hero-seal-col svg { width: 100%; height: 100%; }

.hero-text-col { max-width: 520px; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0; color: var(--jd-ink);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--jd-ink); }

.hero-sub-rule {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 10px;
  font-size: 12px; font-weight: 700; color: var(--jd-ink-body);
}
.hero-sub-rule span { flex: 1; max-width: 90px; height: 1px; background: rgba(18, 40, 38, 0.25); }
body[data-theme="midnight"] .hero-sub-rule span { background: rgba(235, 208, 151, 0.35); }

.hero-desc {
  margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--jd-ink-body);
  max-width: 450px;
}

.hero-cta-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-hero-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: var(--jd-forest-deep); color: #ffffff;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(7, 28, 26, 0.24);
  transition: transform 0.22s var(--ease-premium), background-color 0.2s;
}
.btn-hero-dark:hover { transform: translateY(-2px); background: var(--jd-forest-elevated); }

.btn-hero-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92); color: var(--jd-ink);
  border: 1px solid rgba(18, 40, 38, 0.16);
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s var(--ease-premium);
}
.btn-hero-light:hover { transform: translateY(-2px); }

.hero-right-col {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end;
  gap: 14px; align-self: stretch; padding-bottom: 6px;
}
.hero-caption-box {
  text-align: right; color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  margin-top: auto;
}
.hero-cap-tag {
  display: block; font-size: 9px; font-weight: 800; letter-spacing: 2px;
  color: var(--jd-gold-bright); margin-bottom: 4px;
}
.hero-caption-box strong {
  font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 500; line-height: 1.15;
}

.slider-controls { display: flex; align-items: center; gap: 12px; }
.slider-count {
  display: flex; align-items: baseline; gap: 4px;
  font-size: 11px; color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.slider-count strong { font-size: 13px; font-weight: 800; color: var(--jd-gold-bright); }
.slider-dots { display: flex; align-items: center; gap: 6px; }
.slider-dot {
  width: 16px; height: 4px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55); cursor: pointer;
  transition: width 0.25s, background-color 0.25s;
}
.slider-dot.is-active { width: 28px; background: var(--jd-gold-bright); }
.slider-arrows { display: flex; gap: 6px; }
.slider-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(8, 28, 26, 0.48);
  color: #fff; font-size: 13px; display: grid; place-items: center; cursor: pointer;
}
.slider-arrow:hover { background: var(--jd-gold); color: var(--jd-forest-deep); border-color: var(--jd-gold); }

/* ==========================================================================
   PILLAR STRIP (EDUCATION / COMPASSION / SERVICE)
   ========================================================================== */
.pillar-strip {
  background: linear-gradient(180deg, #f7f0e0 0%, #efe4cc 100%);
  border-top: 1px solid rgba(180, 140, 74, 0.25);
  border-bottom: 1px solid rgba(180, 140, 74, 0.25);
  padding: 18px 36px;
}
body[data-theme="midnight"] .pillar-strip {
  background: linear-gradient(180deg, #122422 0%, #0d1b1a 100%);
}
.pillar-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.pillar-item { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(212, 177, 111, 0.22); color: #9c3d22;
  display: grid; place-items: center; flex-shrink: 0;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar-item strong { display: block; font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--jd-ink); line-height: 1.2; }
.pillar-item span { display: block; font-size: 12.5px; color: var(--jd-ink-body); }

/* ==========================================================================
   3-COLUMN EDITORIAL & FOCUS TRIAD (ABOUT / OUR FOCUS / OUR GALLERY)
   ========================================================================== */
.editorial-triad {
  background: var(--jd-cream);
  padding: 34px 36px 40px;
}
.triad-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; align-items: start;
}
.triad-col {
  background: var(--jd-surface);
  border: 1px solid var(--jd-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}
.triad-col:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.triad-media {
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--jd-cream-warm);
}
.triad-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease-premium);
}
.triad-col:hover .triad-media img { transform: scale(1.03); }
.triad-media-bottom { margin-top: 14px; }

.triad-heading {
  font-family: var(--font-sans); font-size: 19px; font-weight: 700;
  color: var(--jd-ink); margin: 14px 0 6px; letter-spacing: -0.01em;
}
.focus-top-title { margin-top: 2px; }

.triad-copy {
  margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: var(--jd-ink-body);
  transition: color 0.7s var(--ease-premium);
}
.triad-sub { margin: 0 0 10px; font-size: 12.5px; color: var(--jd-ink-body); }

.focus-checklist {
  list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 7px;
}
.focus-checklist li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--jd-ink-body);
}
.check-badge {
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(199, 152, 62, 0.22); color: #9a6918;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0;
}

.gallery-thumbs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 14px;
}
.gallery-thumbs img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-sm);
}

.triad-action { margin-top: auto; }
.btn-triad {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  background: var(--jd-forest-deep); color: #ffffff;
  font-size: 11.5px; font-weight: 700;
  transition: transform 0.22s var(--ease-premium), background-color 0.2s;
}
.btn-triad:hover { transform: translateY(-2px); background: var(--jd-forest-elevated); }

/* ==========================================================================
   QUOTE & COMMUNITY UNITY BANNER
   ========================================================================== */
.unity-quote-band {
  background: linear-gradient(180deg, #f9f3e6 0%, #f1e6cf 100%);
  border-top: 1px solid rgba(180, 140, 74, 0.22);
  padding: 24px 36px 0;
}
body[data-theme="midnight"] .unity-quote-band {
  background: linear-gradient(180deg, #112321 0%, #0b1817 100%);
}
.unity-quote-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: 24px;
}
.unity-quote-copy { text-align: center; padding-bottom: 22px; }
.unity-mark {
  font-family: var(--font-display); font-size: 32px; line-height: 0.6;
  color: var(--jd-ink); display: block; margin-bottom: 6px;
}
.unity-quote-copy blockquote {
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500; line-height: 1.3; color: var(--jd-ink); margin: 0;
}
.unity-quote-copy cite {
  display: block; margin-top: 8px; font-style: normal;
  font-size: 11px; font-weight: 600; color: var(--jd-ink-muted);
}
.unity-artwork svg { display: block; width: 100%; max-height: 115px; }

/* ==========================================================================
   FOOTER MATCHING SCREENSHOT
   ========================================================================== */
.site-footer {
  background: linear-gradient(90deg, #0d263b 0%, #103242 52%, #0b2926 100%);
  color: #dce7e1;
  border-top: 1px solid rgba(212, 177, 111, 0.35);
}
.footer-top-row {
  max-width: 1360px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer-brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-seal { width: 46px; height: 46px; }
.footer-seal svg { width: 100%; height: 100%; }
.footer-brand-text strong { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: 1.5px; }
.footer-brand-text small { display: block; font-size: 8.5px; letter-spacing: 1.8px; color: var(--jd-on-dark-muted); }

.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11.5px; font-weight: 600; }
.footer-links span { opacity: 0.35; }
.footer-links a:hover { color: var(--jd-gold-bright); }

.footer-actions-right { display: flex; align-items: center; gap: 12px; }
.footer-socials { display: flex; align-items: center; gap: 7px; }
.footer-socials a {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.footer-socials a:hover { background: var(--jd-gold); color: var(--jd-forest-deep); border-color: var(--jd-gold); }

.footer-donate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--jd-gold-bright), var(--jd-gold));
  color: var(--jd-forest-deep); font-size: 11.5px; font-weight: 800;
}

.footer-bottom-bar {
  background: rgba(5, 16, 24, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--jd-on-dark-muted);
}
.footer-bottom-bar > span { max-width: 1360px; }

/* 2s Paragraph Colour Rhythm */
p[data-p-tone="1"] { color: #9a6918 !important; }
p[data-p-tone="2"] { color: #16564e !important; }
body[data-theme="midnight"] p[data-p-tone="1"] { color: #ebd097 !important; }
body[data-theme="midnight"] p[data-p-tone="2"] { color: #9be0d2 !important; }

/* Scroll Motion */
.scroll-reactive {
  transform: translate3d(0, var(--scroll-shift), 0) perspective(900px) rotateX(var(--scroll-tilt));
  transition: transform 0.22s var(--ease-premium);
}
body.no-scroll-motion .scroll-reactive { transform: none !important; }

/* Floating Controls & Site Customizer Drawer */
.quick-connect-fab {
  position: fixed; right: 22px; bottom: 20px; z-index: 150;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 5px 5px 14px; border-radius: var(--radius-pill);
  background: var(--jd-surface); color: var(--jd-ink);
  border: 1px solid var(--jd-border-strong); box-shadow: var(--shadow-md);
  font-size: 11px; font-weight: 700;
  transition: transform 0.25s, right 0.25s;
}
.quick-connect-fab:hover { transform: translateY(-2px); }
.quick-connect-fab.shifted { right: 74px; }
.qc-badge { width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }

.back-to-top {
  position: fixed; right: 22px; bottom: 20px; z-index: 140;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--jd-gold); color: var(--jd-forest-deep); font-size: 18px; font-weight: 700;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s, transform 0.25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.studio-trigger {
  position: fixed; left: 20px; bottom: 20px; z-index: 160;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--jd-forest-deep); color: var(--jd-gold-bright);
  border: 1px solid rgba(235, 208, 151, 0.4); box-shadow: var(--shadow-md);
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.studio-backdrop {
  position: fixed; inset: 0; z-index: 490; background: rgba(4, 15, 14, 0.55);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s;
}
.studio-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.studio-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 500;
  width: min(360px, 92vw); background: var(--jd-forest-deep); color: var(--jd-on-dark);
  border-left: 1px solid rgba(235, 208, 151, 0.28);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform 0.32s var(--ease-premium), visibility 0.32s;
}
.studio-drawer.is-open { transform: translateX(0); visibility: visible; }
.studio-header { padding: 18px 20px; border-bottom: 1px solid rgba(235, 208, 151, 0.16); display: flex; align-items: center; justify-content: space-between; }
.studio-kicker { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: 2px; color: var(--jd-gold); }
.studio-header strong { font-family: var(--font-display); font-size: 20px; color: #fff; }
.studio-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(235, 208, 151, 0.25); background: transparent; color: #fff; cursor: pointer; }
.studio-body { padding: 16px 20px; overflow-y: auto; display: grid; gap: 18px; flex: 1; }
.studio-group { display: grid; gap: 8px; }
.studio-label-row { display: flex; justify-content: space-between; align-items: center; }
.studio-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--jd-on-dark-muted); }
.studio-value { font-size: 11px; font-weight: 800; color: var(--jd-gold-bright); }
.studio-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-chip { padding: 6px 11px; border-radius: var(--radius-sm); border: 1px solid rgba(235, 208, 151, 0.22); background: rgba(255, 255, 255, 0.04); color: #e6efe9; font-size: 11px; font-weight: 600; cursor: pointer; }
.studio-chip.is-active { background: var(--jd-gold); color: var(--jd-forest-deep); border-color: var(--jd-gold); font-weight: 700; }
.studio-swatches { display: flex; gap: 9px; }
.swatch-btn { width: 30px; height: 30px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.swatch-btn span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch-btn.is-active { border-color: var(--jd-gold-bright); }
.studio-toggles { display: grid; gap: 8px; }
.studio-switch { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.studio-switch input { accent-color: var(--jd-gold); }
.studio-footer { padding: 14px 20px; border-top: 1px solid rgba(235, 208, 151, 0.16); }
.studio-reset-btn { width: 100%; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(235, 208, 151, 0.35); background: transparent; color: var(--jd-gold-bright); font-size: 11px; font-weight: 700; cursor: pointer; }

.reveal-section, .reveal-card { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium); }
.reveal-section.visible, .reveal-section.is-visible, .reveal-card.visible, .reveal-card.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1020px) {
  .hero-content-grid { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  .hero-right-col { align-items: flex-start; padding-bottom: 0; }
  .hero-caption-box { text-align: left; }
  .triad-inner { grid-template-columns: minmax(0, 1fr); }
  .unity-quote-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: calc(var(--header-h) + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; padding: 14px; border-radius: var(--radius-md);
    background: var(--jd-forest-deep); border: 1px solid rgba(235, 208, 151, 0.28);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease-premium), visibility 0.2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: 0; display: none; padding-left: 12px; }
  .nav-item.has-dropdown.is-open .nav-dropdown { display: grid; }
  .nav-donate-pill { margin-left: 0; margin-top: 6px; justify-content: center; }
  .pillar-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pillar-item { justify-content: flex-start; }
  .cursor-glow, .cursor-dot { display: none !important; }
}

@media (max-width: 560px) {
  .nav-wrap { padding: 0 16px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 12.5px; }
  .brand-copy em { display: none; }
  .hero-left-col { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-seal-col { width: 96px; height: 96px; }
  .qc-label { display: none; }
  .quick-connect-fab { padding: 4px; right: 16px; bottom: 16px; }
  .quick-connect-fab.shifted { right: 64px; }
  .studio-trigger { left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .hero-stagger, .reveal-section, .reveal-card { opacity: 1 !important; transform: none !important; }
}
