/* ════════════════════════════════════════════════════════════
   JEM WhatsApp — Dedication Site
   ════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --black: #06060f;
  --ink: #0f1530;
  --navy: #00004d;
  --navy-2: #0a1568;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-l: #eff6ff;
  --green: #25d366;
  --peach: #f4b787;
  --peach-l: #fff5ec;
  --grey: #5b6478;
  --grey-2: #8a93a6;
  --lgrey: #aab1c2;
  --line: #e5e9f2;
  --line-2: #eef1f7;
  --bg: #ffffff;
  --bg-soft: #fafbff;
  --surface: #f6f8fc;

  --serif: 'Instrument Serif', Georgia, serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --d-fast: 140ms;
  --d-base: 200ms;
  --d-slow: 280ms;
  --d-entry: 520ms;

  --shadow-card: 0 1px 2px rgba(10, 22, 104, .05), 0 8px 24px rgba(10, 22, 104, .06), 0 28px 64px rgba(10, 22, 104, .08);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, .25);
  --shadow-btn: 0 2px 8px rgba(37, 99, 235, .20), 0 12px 28px rgba(37, 99, 235, .14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(37, 99, 235, .18);
  color: var(--navy);
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-l);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ── SCROLL ANIMATIONS ─────────────────────────────────────── */
.scroll-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up,
  .hero-text>*,
  .phone-scene {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── NAV ─────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: padding var(--d-base) var(--ease-out),
    background var(--d-base) var(--ease-out),
    border-color var(--d-base) var(--ease-out);
}

#nav.scrolled {
  padding: 8px 20px;
  background: rgba(255, 255, 255, .92);
  border-bottom-color: rgba(15, 21, 48, .06);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--d-fast) var(--ease-out);
}

.nav-logo:hover {
  opacity: .85;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  border-radius: 8px;
  transition: color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(15, 21, 48, .04);
}

.nav-cta {
  display: none;
  padding: 9px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--blue);
}

.nav-cta:active {
  transform: scale(.97);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--d-fast) var(--ease-out);
}

.hamburger:hover {
  background: rgba(15, 21, 48, .05);
}

.hamburger span {
  width: 20px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--d-base) var(--ease-out),
    transform var(--d-base) var(--ease-out),
    visibility var(--d-base);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  transition: background var(--d-fast) var(--ease-out);
}

.mobile-menu a:hover {
  background: var(--surface);
}

.mobile-menu .mobile-cta {
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  border-bottom: none;
  font-weight: 700;
}

.mobile-menu .mobile-cta:hover {
  background: var(--blue);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 48px 24px 32px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(37, 99, 235, .08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(244, 183, 135, .10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

/* Hero text column — centers badge, rotate-wrap, title, desc on mobile */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Initial states — GSAP animates these in */
.hero-text>* {
  opacity: 0;
}

@keyframes phoneSlideIn {
  from {
    opacity: 0;
    transform: translateY(70px) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px 6px 11px;
  border-radius: 100px;
  letter-spacing: .3px;
  box-shadow: 0 2px 14px rgba(37, 211, 102, .25);
}

.badge-icon {
  color: #fff;
  flex-shrink: 0;
}

/* Rotating word */
.rotate-wrap {
  position: relative;
  margin-top: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  transition: width 380ms var(--ease-out);
}

.rotate-sizer {
  visibility: hidden;
  white-space: nowrap;
  font-size: clamp(42px, 13vw, 60px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

.rotate-inner {
  position: relative;
  height: 64px;
  width: 100%;
}

.rotate-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: clamp(42px, 13vw, 60px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  will-change: opacity, transform;
}

.brush-stroke {
  width: 100%;
  height: 9px;
  margin-top: 5px;
  color: var(--blue);
}

.brush-stroke svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hero-title {
  font-size: clamp(28px, 8.5vw, 56px);
  font-weight: 800;
  color: var(--ink);
  line-height: .96;
  margin: 14px 0 18px;
  letter-spacing: -2.6px;
  white-space: nowrap;
}

.hero-title .blue {
  color: var(--blue);
}

.hero-desc {
  font-size: 15.5px;
  color: var(--grey);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── PHONE ───────────────────────────────────────────────── */
.phone-scene {
  position: relative;
  width: 244px;
  margin: 0 auto;
  animation: phoneSlideIn 1.6s cubic-bezier(0.25, 1, 0.5, 1) 200ms both;
}

.phone-glow {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  background: rgba(37, 99, 235, .22);
  filter: blur(32px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.iphone {
  position: relative;
  width: 244px;
  z-index: 1;
}

.iphone-frame {
  background: linear-gradient(160deg, #1c1c2e 0%, #0a0a18 100%);
  border-radius: 46px;
  padding: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 0 0 1.5px rgba(255, 255, 255, .04),
    0 30px 60px rgba(10, 22, 104, .30),
    0 12px 32px rgba(37, 99, 235, .18);
  position: relative;
}

.iphone-frame::before {
  content: none;
}

.dynamic-island {
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.iphone-screen {
  position: relative;
  border-radius: 38px;
  border-radius: 36px;
  overflow: visible;
  background: #fff;
  aspect-ratio: 9 / 19.5;
}

.iphone-side {
  position: absolute;
  background: #2a2a3a;
  border-radius: 2px;
  z-index: 0;
}

.btn-silent {
  left: -2px;
  top: 76px;
  width: 4px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}

.btn-vol-up {
  left: -2px;
  top: 108px;
  width: 4px;
  height: 38px;
  border-radius: 2px 0 0 2px;
}

.btn-vol-down {
  left: -2px;
  top: 152px;
  width: 4px;
  height: 38px;
  border-radius: 2px 0 0 2px;
}

.btn-power {
  right: -2px;
  top: 118px;
  width: 4px;
  height: 60px;
  border-radius: 0 2px 2px 0;
}



.screen-hero {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screen-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0a1647;
  border-radius: 36px;
  overflow: hidden;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 44px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: #fff;
  color: #939699;
  border: none;
  border-radius: 126px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-btn:hover {
  opacity: .85;
}

.play-btn:active {
  transform: scale(0.95);
}

.poster-mute {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 50%;
  z-index: 2;
}

.screen-caption {
  position: absolute;
  bottom: 5%;
  left: -20px;
  right: -10px;
  padding: 16px 18px 16px;
  background: rgba(255, 255, 255, .98);
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  opacity: 1;
  z-index: 10;
  text-align: left;
}

.screen-caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  border-top: 0 solid transparent;
  border-right: 10px solid rgba(255, 255, 255, .98);
  border-bottom: 10px solid transparent;
}

.cap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cap-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
}

.cap-title {
  font-size: 13px;
  font-weight: 600;
  color: #7b2931;
}

.cap-eyebrow {
  font-size: 11px;
  font-weight: 400;
  color: #5d687a;
  margin-bottom: 3px;
}

.cap-name {
  font-size: 17px;
  font-weight: 800;
  color: #50617a;
  line-height: 1.1;
  margin-bottom: 3px;
}

.cap-sub {
  font-size: 11px;
  font-weight: 400;
  color: #5d687a;
}

/* ── DEDICATE (iframe only) ──────────────────────────────── */
.card-wrap {
  padding: 0 16px 48px;
  scroll-margin-top: 80px;
  position: relative;
  z-index: 10;
  margin-top: -120px;
}

@media (max-width: 767px) {
  .card-wrap {
    margin-top: -68px;
  }
}

.donate-card {
  max-width: 460px;
  margin: 0 auto;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials {
  position: relative;
  padding: 52px 24px 44px;
  overflow: hidden;
  background: linear-gradient(148deg, #02084c 0%, #0d2282 50%, #205ae9 100%);
  scroll-margin-top: 80px;
}

.test-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(244, 183, 135, .10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(37, 99, 235, .20), transparent 60%);
  pointer-events: none;
}

.test-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.test-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.test-left {
  text-align: center;
}

.test-heading {
  font-family: var(--sans);
  font-style: normal;
  font-size: 21px;
  line-height: 25px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}

.test-right {
  width: 100%;
}

.test-carousel {
  position: relative;
  min-height: 160px;
}

.test-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.test-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bubble {
  background: #dfe5f2;
  border-radius: 20px;
  padding: 18px 16px 22px;
  font-size: 15px;
  color: #6d7b93;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  margin-right: 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 28px;
  border-width: 15px 15px 0 0;
  border-style: solid;
  border-color: #dfe5f2 transparent transparent transparent;
}

.bubble-quote {
  position: relative;
  z-index: 1;
}

.bubble-author {
  text-align: right;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: #8c97ad;
  margin-top: 10px;
}

.test-avatar {
  position: absolute;
  bottom: -14px;
  right: -28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dfe5f2;
  color: #1c4aeb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .20);
}

.test-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #fff;
  cursor: pointer;
  transition: background .3s;
  padding: 0;
  margin: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, .3);
}

.dot.active {
  background: #fff;
}

/* ── REACH ───────────────────────────────────────────────── */
.reach {
  padding: 64px 24px 40px;
  text-align: center;
  scroll-margin-top: 80px;
}

.reach h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -2px;
}

.reach h2 .blue {
  color: var(--blue);
}

.reach-line {
  width: 100px;
  border-top: 1.5px dashed #d1dbe8;
  margin: 22px auto 32px;
}

.reach-big {
  font-size: 58px;
  font-weight: 800;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -1.5px;
}

.reach-lbl {
  font-size: 13px;
  color: var(--lgrey);
  font-style: italic;
  margin: 8px 0 30px;
}

.reach-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.reach-col {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.reach-divider {
  width: 1px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, #d1dbe8, transparent);
}

.reach-num {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -1px;
}

.reach-sub {
  font-size: 12.5px;
  color: var(--lgrey);
  font-style: italic;
  margin-top: 6px;
}

/* ── GROWTH ──────────────────────────────────────────────── */
.growth {
  padding: 24px 24px 56px;
}

.growth h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -.4px;
}

.growth h2 span {
  color: var(--blue);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding: 0 4px;
  justify-content: center;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.bar {
  width: 24px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 5px 5px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease-out-strong);
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: rgba(255, 255, 255, .16);
  border-radius: 5px 5px 0 0;
}

.bar.animate {
  transform: scaleY(1);
}

.bar-yr {
  font-size: 8px;
  color: var(--lgrey);
  font-weight: 500;
  letter-spacing: .2px;
}

/* ── JOIN ────────────────────────────────────────────────── */
.join-wrap {
  padding: 24px 24px 40px;
  text-align: center;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid rgba(15, 21, 48, .1);
  border-radius: 100px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  transition: border-color var(--d-base) var(--ease-out),
    box-shadow var(--d-base) var(--ease-out),
    transform var(--d-fast) var(--ease-out);
}

.join-btn:hover {
  border-color: rgba(37, 99, 235, .4);
  box-shadow: var(--shadow-blue);
}

.join-btn:active {
  transform: scale(.97);
}

.join-text {
  background: linear-gradient(90deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── ARCHIVE ─────────────────────────────────────────────── */
.archive {
  display: block;
  border-radius: 22px;
  margin: 0 16px 48px;
  padding: 28px 22px 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(148deg, var(--navy) 0%, #0a196b 52%, #1e4fce 100%);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
  transition: transform var(--d-base) var(--ease-out),
    box-shadow var(--d-base) var(--ease-out);
}

.archive::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  right: -150px;
  top: -150px;
  pointer-events: none;
}

.archive::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(244, 183, 135, .18);
  left: -80px;
  bottom: -80px;
  filter: blur(50px);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .archive:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(37, 99, 235, .28);
  }
}

.archive:active {
  transform: scale(.99);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  letter-spacing: -.3px;
}

.archive-cta {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 800;
  padding: 11px 30px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .archive:hover .archive-cta {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 22px 24px 36px;
  font-size: 12px;
  color: var(--lgrey);
}

/* ── VIDEO MODAL ─────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.open .video-modal-content {
  transform: none;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ════════════════════════════════════════════════════════════
   DESKTOP — 768px+
   ════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  body {
    max-width: 1200px;
    margin: 0 auto;
  }

  #nav {
    padding: 14px 36px;
  }

  #nav.scrolled {
    padding: 10px 36px;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    text-align: left;
    padding: 76px 64px 80px;
    min-height: 660px;
    gap: 40px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: 1;
    grid-row: 1;
  }

  .rotate-wrap {
    margin: 22px 0 0;
    align-items: flex-start;
  }

  .rotate-inner {
    height: 80px;
  }

  .rotate-sizer {
    font-size: 76px;
  }

  .rotate-word {
    justify-content: flex-start;
    font-size: 76px;
  }

  .hero-title {
    font-size: 78px;
    letter-spacing: -3px;
    white-space: nowrap;
  }

  .hero-desc {
    margin: 0;
    max-width: 460px;
    font-size: 16.5px;
  }

  .phone-scene {
    grid-column: 2;
    grid-row: 1;
    width: 300px;
    margin: 0 auto;
    justify-self: end;
  }

  .iphone {
    width: 300px;
  }

  .iphone-frame {
    border-radius: 54px;
    padding: 10px;
  }

  .dynamic-island {
    width: 108px;
    height: 30px;
    top: 18px;
  }

  .iphone-screen {
    border-radius: 44px;
  }

  .screen-poster {
    border-radius: 44px;
  }

  .play-btn {
    font-size: 10px;
    padding: 4px 9px 4px 7px;
    top: 48px;
    left: 18px;
  }

  .cap-name {
    font-size: 14px;
  }

  .cap-sub {
    font-size: 11px;
  }

  .cap-eyebrow {
    font-size: 10px;
  }

  .cap-wa-label {
    font-size: 9px;
  }

  .card-wrap {
    padding: 0 64px 64px;
  }

  .donate-card {
    max-width: 520px;
  }

  .testimonials {
    padding: 72px 64px 60px;
  }

  .test-layout {
    flex-direction: row;
    gap: 50px;
    align-items: center;
  }

  .test-left {
    flex: 0 0 38%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .test-right {
    flex: 1;
    min-width: 0;
  }

  .test-heading {
    font-size: 46px;
    text-align: right;
    line-height: 1.1;
  }

  .test-carousel {
    min-height: 180px;
  }

  .bubble {
    font-size: 20px;
    padding: 28px 32px 28px 28px;
    margin-right: 55px;
  }

  .bubble::after {
    bottom: -20px;
    left: 42px;
    border-width: 22px 22px 0 0;
  }

  .bubble-author {
    font-size: 17px;
  }

  .test-avatar {
    width: 76px;
    height: 76px;
    font-size: 22px;
    bottom: -22px;
    right: -46px;
  }

  .reach {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 40px;
  }

  .reach h2 {
    font-size: 60px;
  }

  .reach-big {
    font-size: 72px;
  }

  .reach-num {
    font-size: 58px;
  }

  .growth {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 24px 80px;
  }

  .growth h2 {
    font-size: 28px;
  }

  .chart {
    height: 200px;
    gap: 14px;
  }

  .bar {
    width: 34px;
    border-radius: 7px 7px 0 0;
  }

  .bar-yr {
    font-size: 9.5px;
  }

  .join-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 64px;
  }

  .join-btn {
    font-size: 16px;
    padding: 14px 36px;
  }

  .archive {
    margin: 0 64px 80px;
    padding: 36px 40px 40px;
  }

  .archive-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
  }

  .archive h3 {
    font-size: 22px;
    max-width: 460px;
    margin: 0 auto 22px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 90px 80px 90px;
  }

  .archive {
    margin: 0 80px 90px;
  }
}