/* BAYBASI — red & gold nonprofit theme */
:root {
  --bg-deep: #160808;
  --bg-deep-mid: #241010;
  --bg-card: rgba(255, 248, 240, 0.06);
  --bg-card-hover: rgba(255, 248, 240, 0.11);
  --text: #fff8f0;
  --text-muted: #c9b8a8;
  --accent: #fbbf24;
  --accent-bright: #fde047;
  --accent-dim: rgba(251, 191, 36, 0.18);
  --accent-hot: #f87171;
  --red-deep: #991b1b;
  --red-glow: rgba(220, 38, 38, 0.35);
  --gold-glow: rgba(250, 204, 21, 0.28);
  --border: rgba(255, 220, 160, 0.12);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-video {
    animation: none !important;
    transform: none !important;
  }

  .hero-orbit--a,
  .hero-orbit--b,
  .hero-orbit--c {
    animation: none !important;
    opacity: 0.55;
  }

  .slide-inner:hover .slide-img {
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-deep-mid) 42%, #1a0a0a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
li {
  overflow-wrap: anywhere;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, var(--red-glow), transparent 52%),
    radial-gradient(ellipse 70% 45% at 95% 15%, var(--gold-glow), transparent 48%),
    radial-gradient(ellipse 55% 40% at 50% 105%, rgba(185, 28, 28, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(234, 179, 8, 0.08), transparent 50%),
    linear-gradient(180deg, #120606 0%, #1c0c0c 45%, #140808 100%);
  pointer-events: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(22, 8, 8, 0.92), rgba(18, 6, 6, 0.88));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #fbbf24;
  background: linear-gradient(
    180deg,
    #fff7db 0%,
    #fde68a 38%,
    #fbbf24 62%,
    #a16207 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 252, 240, 0.45),
    0 2px 0 rgba(146, 64, 14, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.38);
  transform: perspective(280px) rotateX(7deg);
}

.logo-img {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(251, 191, 36, 0.35);
  animation: pulse-soft 5s var(--ease-out) infinite;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(251, 191, 36, 0.35); }
  50% { transform: scale(1.02); box-shadow: 0 6px 28px rgba(220, 38, 38, 0.25), 0 0 0 3px rgba(253, 224, 71, 0.45); }
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle-bar::before { top: calc(50% - 6px); }
.nav-toggle-bar::after { top: calc(50% + 4px); }

.site-header.nav-open .nav-toggle-bar { background: transparent; }
.site-header.nav-open .nav-toggle-bar::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: color 0.2s;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.72em;
  line-height: 1;
  transform: translateY(1px) rotate(0deg);
  transition: transform 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(18, 6, 6, 0.96);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.nav-submenu li + li {
  margin-top: 0.35rem;
}

.nav-submenu a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  color: var(--text);
  font-size: 0.88rem;
}

.nav-submenu a:hover {
  color: var(--text);
  background: rgba(251, 191, 36, 0.2);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: translateY(1px) rotate(180deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #3f1608;
  box-shadow: 0 4px 28px rgba(250, 204, 21, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(251, 191, 36, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(251, 191, 36, 0.55);
  color: var(--accent-bright);
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 1rem;
  }

  .nav-list {
    gap: 0.75rem;
  }

  .nav-list a {
    font-size: 0.82rem;
  }

  .nav-dropdown-toggle {
    font-size: 0.82rem;
  }

  .btn {
    padding: 0.54rem 0.92rem;
    font-size: 0.82rem;
  }
}
/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 52rem);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: hero-video-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-video-drift {
  0% {
    transform: scale(1.05) translate(-1%, -0.5%);
  }
  100% {
    transform: scale(1.12) translate(1%, 0.5%);
  }
}

.hero-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(10, 4, 4, 0.94) 0%,
      rgba(18, 6, 6, 0.82) 32%,
      rgba(22, 8, 8, 0.62) 48%,
      rgba(18, 8, 8, 0.38) 62%,
      rgba(12, 5, 5, 0.28) 78%,
      rgba(8, 3, 3, 0.2) 100%
    ),
    radial-gradient(ellipse 70% 85% at 72% 42%, rgba(220, 38, 38, 0.1), transparent 58%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.78fr);
  gap: clamp(2.75rem, 7vw, 5.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 38rem;
  padding-left: clamp(0.75rem, 2.2vw, 1.75rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
  margin-right: clamp(0.5rem, 2vw, 1.5rem);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
    padding-left: clamp(0.75rem, 4vw, 1.25rem);
    padding-right: 0;
    margin-right: 0;
  }

  .hero-aside {
    margin-inline: auto;
    max-width: 22rem;
    min-height: 280px;
    padding: 0.5rem 0 1rem;
  }

  .hero-aside-decor {
    transform: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-media-scrim {
    background: linear-gradient(
      180deg,
      rgba(10, 4, 4, 0.88) 0%,
      rgba(18, 6, 6, 0.82) 45%,
      rgba(12, 4, 4, 0.75) 100%
    );
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-card {
    max-width: 170px;
    padding: 0.8rem 0.9rem;
  }

  .hero-card strong {
    font-size: 0.82rem;
  }

  .hero-aside {
    min-height: 250px;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

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

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 248, 240, 0.9);
  max-width: 36ch;
  margin: 0 0 1.75rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 220, 160, 0.2);
}

.hero-stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

.hero-aside {
  position: relative;
  min-height: min(360px, 52vw);
  min-width: 0;
  padding: 0.5rem clamp(0.25rem, 2vw, 1.25rem) 0.5rem 0;
}

.hero-aside-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  transform: translateX(6%);
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  aspect-ratio: 1;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 74% 76%, rgba(8, 3, 3, 0.45), rgba(8, 3, 3, 0) 54%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -9px 18px rgba(0, 0, 0, 0.32);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before {
  inset: -1px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-orbit::after {
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.7;
}

.hero-orbit--a {
  width: min(88%, 270px);
  border: 20px solid rgba(51, 42, 18, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 204, 0.58),
    inset 0 -12px 22px rgba(56, 32, 8, 0.56),
    0 0 0 3px rgba(255, 235, 170, 0.3),
    0 0 62px rgba(250, 204, 21, 0.45);
  animation: hero-orbit-pulse-a 5s ease-in-out infinite;
}

.hero-orbit--b {
  width: min(64%, 186px);
  border: 20px dashed rgba(66, 52, 20, 0.98);
  opacity: 0.95;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 204, 0.54),
    inset 0 -11px 18px rgba(56, 32, 8, 0.5),
    0 0 50px rgba(251, 191, 36, 0.42);
  animation: hero-orbit-spin 32s linear infinite;
}

.hero-orbit--c {
  width: min(38%, 112px);
  border: 20px solid rgba(82, 64, 22, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 204, 0.52),
    inset 0 -10px 16px rgba(56, 32, 8, 0.44),
    0 0 0 3px rgba(255, 230, 160, 0.22),
    0 0 40px rgba(250, 204, 21, 0.4);
  animation: hero-orbit-pulse-c 4.2s ease-in-out infinite 0.6s;
}

@keyframes hero-orbit-pulse-a {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.045);
    opacity: 0.72;
  }
}

@keyframes hero-orbit-pulse-c {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.88;
  }
}

@keyframes hero-orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-card {
  position: relative;
  z-index: 5;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  max-width: 220px;
  box-shadow: var(--shadow);
}

.hero-card-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-card strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-card-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: hero-card-orbit-a 44s linear infinite;
}

.hero-card-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: hero-card-orbit-b 50s linear infinite;
}

@keyframes hero-card-orbit-a {
  from {
    transform: translate(-50%, -50%) rotate(10deg) translateX(128px) rotate(-10deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(370deg) translateX(128px) rotate(-370deg);
  }
}

@keyframes hero-card-orbit-b {
  from {
    transform: translate(-50%, -50%) rotate(200deg) translateX(112px) rotate(-200deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(560deg) translateX(112px) rotate(-560deg);
  }
}

@media (max-width: 900px) {
  .hero-card-1 {
    animation: hero-card-orbit-a-mobile 38s linear infinite;
  }

  .hero-card-2 {
    animation: hero-card-orbit-b-mobile 42s linear infinite;
  }
}

@keyframes hero-card-orbit-a-mobile {
  from {
    transform: translate(-50%, -50%) rotate(16deg) translateX(92px) rotate(-16deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(376deg) translateX(92px) rotate(-376deg);
  }
}

@keyframes hero-card-orbit-b-mobile {
  from {
    transform: translate(-50%, -50%) rotate(206deg) translateX(82px) rotate(-206deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(566deg) translateX(82px) rotate(-566deg);
  }
}
/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-mission {
  border-top: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-head-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  max-width: none;
  align-items: end;
}

@media (max-width: 768px) {
  .section-head-inline {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-head-inline .section-sub {
    margin-inline: auto;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
}

.section-sub-narrow {
  max-width: 36ch;
  margin: 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.25s, background 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--bg-card-hover);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.values-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.values-list li {
  margin-bottom: 0.5rem;
}

/* Community */
.section-community {
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(220, 38, 38, 0.07) 35%,
    rgba(234, 179, 8, 0.06) 65%,
    transparent
  );
}

.community-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .community-showcase {
    grid-template-columns: 1fr;
  }
}

.showcase-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.35s var(--ease-out);
}

.showcase-item:hover {
  transform: translateY(-6px);
}

.showcase-img {
  height: 180px;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 168), 45%, 35%),
    hsl(calc(var(--hue, 168) + 40), 50%, 22%)
  );
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.showcase-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5));
}

.showcase-img span {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
}

.showcase-body {
  padding: 1.5rem;
}

.showcase-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.showcase-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Slider */
.section-activities {
  border-top: 1px solid var(--border);
}

.slider-wrap {
  position: relative;
}

.slider-viewport {
  position: relative;
  overflow: hidden;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
  touch-action: pan-y;
}

.slide {
  flex: 0 0 auto;
  padding: 0 0.65rem;
  box-sizing: border-box;
}

.slide-inner {
  height: 100%;
  min-height: 380px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.35s var(--ease-out);
}

.slide-inner:hover {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 20px 40px -18px rgba(220, 38, 38, 0.25);
}

.slide-visual {
  position: relative;
  height: clamp(140px, 22vw, 180px);
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 3, 3, 0.1) 0%,
    rgba(12, 4, 4, 0.55) 100%
  );
  pointer-events: none;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.slide-inner:hover .slide-img {
  transform: scale(1.04);
}

.slide-content {
  padding: 1.25rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.slide-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.slide-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.slide-desc {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.slide-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.slide-place {
  margin-bottom: 0.25rem;
}

.slide-time {
  margin-bottom: 1rem;
}

.slide-meta strong {
  color: var(--text);
  font-weight: 600;
}

.slide-link {
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.slide-link::after {
  content: "→";
  transition: transform 0.2s;
}

.slide-link:hover::after {
  transform: translateX(4px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(22, 8, 8, 0.92);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.slider-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--accent-bright);
}

.slider-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slider-btn-prev { left: -0.25rem; }
.slider-btn-next { right: -0.25rem; }

@media (max-width: 640px) {
  .slider-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  .slider-btn-prev { left: 0; }
  .slider-btn-next { right: 0; }
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--text-muted);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.slider-dot[aria-selected="true"] {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.15);
}

.slider-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sponsors */
.section-sponsors {
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(251, 191, 36, 0.09) 0%,
    rgba(220, 38, 38, 0.08) 38%,
    rgba(30, 41, 59, 0.08) 68%,
    transparent 100%
  );
  position: relative;
  z-index: 2;
}

.sponsor-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.sponsor-tier {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 220, 160, 0.34);
  background: linear-gradient(145deg, rgba(42, 10, 10, 0.9), rgba(14, 4, 4, 0.78));
  padding: 1.2rem;
  position: relative;
  z-index: 2;
  text-align: center;
  box-shadow: 0 16px 26px -20px rgba(0, 0, 0, 0.75);
}

.sponsor-tier h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sponsor-tier-platinum {
  box-shadow: inset 0 0 0 1px rgba(253, 224, 71, 0.3);
  background: linear-gradient(145deg, rgba(151, 108, 10, 0.82), rgba(56, 26, 8, 0.9));
}

.sponsor-tier-gold {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
  background: linear-gradient(145deg, rgba(194, 118, 12, 0.8), rgba(66, 26, 8, 0.92));
}

.sponsor-tier-silver {
  box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.2);
  background: linear-gradient(145deg, rgba(129, 145, 171, 0.72), rgba(34, 40, 56, 0.92));
}

.sponsor-tier-partner {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.2);
  background: linear-gradient(145deg, rgba(168, 44, 74, 0.78), rgba(48, 12, 18, 0.94));
}

.sponsor-tier-other {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
  background: linear-gradient(145deg, rgba(16, 131, 166, 0.78), rgba(10, 32, 78, 0.94));
}

.sponsor-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.6) rgba(0, 0, 0, 0.18);
}

.sponsor-item {
  min-width: 220px;
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.sponsor-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  border: 1px solid rgba(255, 220, 160, 0.28);
  border-radius: 0.9rem;
  background: linear-gradient(155deg, rgba(0, 0, 0, 0.36), rgba(255, 255, 255, 0.06));
  padding: 0.8rem;
  transition: border-color 0.22s, transform 0.22s, background 0.22s, box-shadow 0.22s;
  position: relative;
  z-index: 2;
  text-align: center;
}

.sponsor-link:hover {
  border-color: rgba(253, 224, 71, 0.75);
  background: linear-gradient(155deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.1));
  transform: translateY(-3px);
  box-shadow: 0 14px 24px -18px rgba(0, 0, 0, 0.9);
}

.sponsor-logo {
  height: 56px;
  border-radius: 0.7rem;
  border: 1px dashed rgba(255, 220, 160, 0.28);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.sponsor-logo-img {
  display: block;
  width: 100%;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.96);
  border-style: solid;
  padding: 0.25rem;
  opacity: 1;
  visibility: visible;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.55rem;
}

.sponsor-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.sponsor-url {
  font-size: 0.82rem;
  color: #fde68a;
  word-break: break-word;
}

.sponsor-invite {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 220, 160, 0.32);
  background: linear-gradient(140deg, rgba(18, 6, 6, 0.82), rgba(36, 14, 14, 0.66));
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  position: relative;
  z-index: 3;
}

.sponsor-badges {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.sponsor-badge {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 160, 0.36);
  background: rgba(255, 255, 255, 0.06);
  color: #fff6e8;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.sponsor-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(253, 224, 71, 0.56);
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fffdf7;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, filter 0.2s ease;
  color: #fffdf7 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sponsor-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Tablet visibility and contrast hardening */
@media (min-width: 681px) and (max-width: 1100px) {
  .section-sponsors .sponsor-tier {
    background: rgba(8, 3, 3, 0.72);
  }

  .section-sponsors .sponsor-link {
    background: linear-gradient(
      145deg,
      rgba(18, 6, 6, 0.86),
      rgba(34, 12, 12, 0.72)
    );
    border-color: rgba(255, 220, 160, 0.3);
  }

  .section-sponsors .sponsor-item {
    min-width: 260px;
    flex-basis: 260px;
  }

  .section-sponsors .sponsor-logo {
    min-height: 64px;
  }

  .section-sponsors .sponsor-logo-img {
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
  }

  .section-sponsors .sponsor-name {
    color: #fff8f0;
  }

  .section-sponsors .sponsor-url {
    color: #fde047;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  }

  .section-sponsors .sponsor-link img,
  .section-sponsors .sponsor-link span {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 680px) {
  .sponsor-list {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
    justify-content: stretch;
    align-items: stretch;
    gap: 0.7rem;
  }

  .sponsor-item {
    min-width: 0;
    flex: 1 1 auto;
  }

  .sponsor-invite {
    width: 100%;
    padding: 0.95rem;
    border-color: rgba(255, 220, 160, 0.42);
    background: linear-gradient(150deg, rgba(10, 6, 10, 0.94), rgba(34, 12, 12, 0.9));
  }

  .sponsor-badges {
    width: 100%;
  }

  .sponsor-badge {
    font-size: 0.72rem;
    color: #fff8ef;
    background: rgba(0, 0, 0, 0.28);
  }

  .sponsor-cta {
    width: 100%;
    min-height: 44px;
  }

  .sponsor-link {
    width: 100%;
  }
}

/* Safari tablet rendering hardening */
@supports (-webkit-touch-callout: none) {
  @media (min-width: 681px) and (max-width: 1100px) {
    .section-sponsors .sponsor-tier,
    .section-sponsors .sponsor-link {
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      isolation: isolate;
    }

    .section-sponsors .sponsor-logo-img {
      height: 76px;
      min-height: 76px;
      image-rendering: auto;
      filter: none;
    }
  }
}

/* Prevent sponsor cards from staying hidden on some tablet browsers */
.section-sponsors .sponsor-tier.reveal {
  opacity: 1;
  transform: none;
}

.section-sponsors .sponsor-invite.reveal {
  opacity: 1;
  transform: none;
}
/* CTA */
.section-cta {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.18),
    rgba(234, 179, 8, 0.12) 50%,
    rgba(127, 29, 29, 0.15)
  );
  border: 1px solid rgba(251, 191, 36, 0.28);
}

@media (max-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.cta-copy p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.55);
}

.cta-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.cta-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.cta-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-card li {
  margin-bottom: 0.65rem;
}

.cta-card a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cta-card a:hover {
  color: var(--accent-bright);
  border-bottom-color: rgba(251, 191, 36, 0.5);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.footer-tagline,
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.page-nextgen {
  --nextgen-cyan: #22d3ee;
  --nextgen-lime: #84cc16;
  --nextgen-orange: #fb923c;
  --nextgen-pink: #fb7185;
}

.page-nextgen .nextgen-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.page-nextgen .nextgen-hero::before,
.page-nextgen .nextgen-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.page-nextgen .nextgen-hero::before {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: -8rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0));
}

.page-nextgen .nextgen-hero::after {
  width: 22rem;
  height: 22rem;
  left: -7rem;
  bottom: -9rem;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.2), rgba(251, 146, 60, 0));
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  border-bottom-color: rgba(251, 191, 36, 0.5);
}

.nextgen-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.2rem, 4vw, 2rem);
  align-items: stretch;
}

.nextgen-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.nextgen-copy p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 248, 240, 0.9);
}

.nextgen-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nextgen-hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(132, 204, 22, 0.35);
  background:
    linear-gradient(150deg, rgba(6, 95, 70, 0.3), rgba(30, 41, 59, 0.4) 48%, rgba(127, 29, 29, 0.3)),
    var(--bg-card);
  box-shadow: 0 20px 40px -25px rgba(34, 211, 238, 0.45);
  padding: 1.35rem;
}

.nextgen-hero-card h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.nextgen-hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.nextgen-hero-card li + li {
  margin-top: 0.55rem;
}

.nextgen-section {
  border-top: 1px solid var(--border);
}

.nextgen-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.nextgen-track {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(22, 8, 8, 0.75), rgba(20, 20, 20, 0.62));
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.nextgen-track:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.6);
}

.nextgen-track h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-family: var(--font-display);
}

.nextgen-track p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.nextgen-track span {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #02111c;
  background: linear-gradient(135deg, var(--nextgen-cyan), var(--nextgen-lime));
}

.nextgen-plan {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(251, 146, 60, 0.04));
}

.nextgen-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.nextgen-timeline li {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(0, 0, 0, 0.22);
  padding: 1.1rem 1rem;
}

.nextgen-timeline h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
}

.nextgen-timeline p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.nextgen-impact {
  border-top: 1px solid var(--border);
}

.nextgen-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.nextgen-stats > div {
  border-radius: var(--radius);
  border: 1px solid rgba(251, 113, 133, 0.25);
  background: rgba(12, 4, 4, 0.46);
  padding: 1rem;
  text-align: center;
}

.nextgen-stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.nextgen-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--text);
}

@media (max-width: 980px) {
  .nextgen-hero-grid,
  .nextgen-timeline,
  .nextgen-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nextgen-hero-grid,
  .nextgen-tracks,
  .nextgen-timeline,
  .nextgen-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nextgen-actions .btn {
    width: 100%;
  }

  .nextgen-copy h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }
}
.page-givingback {
  --give-teal: #2dd4bf;
  --give-orange: #fb923c;
  --give-indigo: #818cf8;
}

.page-givingback .givingback-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.3rem, 6vw, 4.2rem);
}

.page-givingback .givingback-hero::before {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  top: -8rem;
  left: -7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0));
  pointer-events: none;
}

.givingback-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(1.2rem, 4vw, 2rem);
}

.page-givingback .breadcrumb {
  flex-wrap: wrap;
}

.givingback-copy h1 {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.givingback-copy p {
  margin: 0;
  color: rgba(255, 248, 240, 0.9);
  max-width: 48ch;
}

.givingback-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.givingback-highlight {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.34);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.3));
  padding: 1.25rem;
}

.givingback-highlight h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.givingback-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
}

.givingback-highlight li + li {
  margin-top: 0.45rem;
}

.givingback-section {
  border-top: 1px solid var(--border);
}

.donor-story-list {
  display: grid;
  gap: 1.1rem;
}

.donor-story {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 212, 191, 0.32);
  background:
    linear-gradient(140deg, rgba(13, 25, 38, 0.46), rgba(25, 12, 12, 0.52)),
    rgba(22, 8, 8, 0.5);
  box-shadow: 0 20px 44px -28px rgba(45, 212, 191, 0.35);
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.donor-story-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.donor-year {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--give-teal);
}

.donor-story-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.donor-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.story-media {
  margin: 0;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 160, 0.2);
  background: rgba(0, 0, 0, 0.22);
}

.story-media img {
  width: 100%;
  height: clamp(180px, 24vw, 230px);
  display: block;
  object-fit: cover;
  object-position: center;
}

.story-media figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.26);
}

.donor-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.story-block {
  border-radius: 0.9rem;
  border: 1px solid rgba(251, 146, 60, 0.27);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 0.9rem;
}

.story-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.story-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.story-block p + p {
  margin-top: 0.35rem;
}

.story-block strong {
  color: var(--text);
}

.story-block ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.story-block li + li {
  margin-top: 0.35rem;
}

.donor-story-all {
  border-color: rgba(129, 140, 248, 0.4);
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.34), rgba(30, 41, 59, 0.5) 42%, rgba(120, 53, 15, 0.38)),
    rgba(22, 8, 8, 0.5);
}

.donor-story-text {
  margin: 0 0 1rem;
  color: rgba(255, 248, 240, 0.9);
  max-width: 70ch;
}

.donor-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.donor-metric-strip > div {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.donor-metric-strip span {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.donor-metric-strip strong {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--text);
}

.givingback-archive {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.06), rgba(45, 212, 191, 0.05));
}

.givingback-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.archive-card {
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.26);
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

.archive-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.archive-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.givingback-current-goal {
  border-top: 1px solid var(--border);
}

.goal-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.goal-card,
.plan-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 146, 60, 0.3);
  background: rgba(12, 4, 4, 0.45);
  padding: 1.2rem;
}

.goal-card h3,
.plan-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
}

.goal-card p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.goal-card ul,
.plan-card ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.goal-card li + li,
.plan-card li + li {
  margin-top: 0.4rem;
}

@media (max-width: 1050px) {
  .givingback-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .givingback-hero-grid,
  .givingback-archive-grid,
  .goal-plan-grid {
    grid-template-columns: 1fr;
  }

  .donor-media-grid,
  .donor-story-grid,
  .donor-metric-strip {
    grid-template-columns: 1fr;
  }

  .donor-story-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

@media (max-width: 480px) {
  .givingback-actions .btn {
    width: 100%;
  }

  .givingback-copy h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }
}
.page-subscription {
  --sub-cyan: #22d3ee;
  --sub-orange: #fb923c;
  --sub-emerald: #34d399;
}

.page-subscription .sub-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.4rem, 6vw, 4.4rem);
}

.page-subscription .sub-hero::before {
  content: "";
  position: absolute;
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0));
  pointer-events: none;
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(1.2rem, 4vw, 2rem);
}

.sub-hero-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sub-hero-copy p {
  margin: 0;
  max-width: 55ch;
  color: rgba(255, 248, 240, 0.9);
}

.sub-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sub-source {
  margin-top: 0.85rem !important;
  font-size: 0.8rem;
  color: var(--text-muted) !important;
}

.sub-highlight {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: linear-gradient(145deg, rgba(6, 95, 70, 0.26), rgba(15, 23, 42, 0.35));
  padding: 1.25rem;
}

.sub-highlight h2 {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
}

.sub-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sub-highlight li + li {
  margin-top: 0.45rem;
}

.sub-plans {
  border-top: 1px solid var(--border);
}

.sub-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sub-plan {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 220, 160, 0.22);
  background: rgba(12, 4, 4, 0.46);
  padding: 1.15rem;
}

.sub-plan h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.sub-plan-tag {
  margin: 0 0 0.8rem;
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #07131b;
  background: linear-gradient(135deg, var(--sub-cyan), var(--sub-emerald));
}

.sub-plan ul {
  margin: 0;
  padding-left: 1.08rem;
}

.sub-plan li + li {
  margin-top: 0.36rem;
}

.sub-note {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sub-plan-patron {
  border-color: rgba(251, 146, 60, 0.4);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.42), rgba(127, 29, 29, 0.32));
}

.sub-fees {
  border-top: 1px solid var(--border);
}

.sub-fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sub-fee-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 220, 160, 0.26);
  background: rgba(0, 0, 0, 0.22);
  padding: 1.15rem;
}

.sub-fee-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
}

.sub-fee-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.sub-fee-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.sub-fee-card span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sub-fee-card strong {
  color: var(--text);
  font-family: var(--font-display);
}

.sub-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 1050px) {
  .sub-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .sub-hero-grid,
  .sub-plan-grid,
  .sub-fee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sub-actions .btn,
  .sub-cta .btn {
    width: 100%;
  }

  .sub-hero-copy h1 {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }
}
/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    background: rgba(8, 4, 8, 0.92);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s, visibility 0.35s;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 220, 160, 0.3);
    background: linear-gradient(
      160deg,
      rgba(10, 8, 14, 0.95),
      rgba(24, 8, 8, 0.93)
    );
    box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.95);
  }

  .nav-list li {
    width: 100%;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 220, 160, 0.32);
    background: linear-gradient(
      145deg,
      rgba(8, 8, 14, 0.95),
      rgba(28, 10, 10, 0.92)
    );
    box-shadow: 0 14px 24px -16px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    backdrop-filter: blur(3px);
  }

  .nav-list li:nth-child(1) {
    background: linear-gradient(145deg, rgba(16, 28, 48, 0.96), rgba(10, 18, 34, 0.94));
  }

  .nav-list li:nth-child(2) {
    background: linear-gradient(145deg, rgba(34, 18, 42, 0.96), rgba(22, 12, 30, 0.94));
  }

  .nav-list li:nth-child(3) {
    background: linear-gradient(145deg, rgba(22, 34, 34, 0.96), rgba(10, 24, 24, 0.94));
  }

  .nav-list li:nth-child(4) {
    background: linear-gradient(145deg, rgba(40, 28, 12, 0.96), rgba(28, 18, 8, 0.94));
  }

  .nav-list li:nth-child(5) {
    background: linear-gradient(145deg, rgba(38, 16, 16, 0.96), rgba(24, 10, 10, 0.94));
  }

  .nav-list li:nth-child(6) {
    background: linear-gradient(145deg, rgba(22, 22, 46, 0.96), rgba(12, 12, 30, 0.94));
  }

  .nav-list a,
  .nav-dropdown-toggle {
    display: block;
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 0.8rem;
    color: #fff8f0 !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list a:hover,
  .nav-dropdown-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border-radius: 0.65rem;
    background: linear-gradient(
      150deg,
      rgba(8, 8, 14, 0.9),
      rgba(23, 8, 8, 0.88)
    );
    border: 1px solid rgba(255, 220, 160, 0.28);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    max-height: 16rem;
    pointer-events: auto;
  }

  .nav-submenu a {
    font-size: 0.86rem;
    padding: 0.55rem 0.65rem;
    color: #fff8f0 !important;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 220, 160, 0.26);
    border-radius: 0.55rem;
  }

  .nav-submenu li + li {
    margin-top: 0.35rem;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .site-nav {
    padding: 1.4rem;
  }
}

.page-expense {
  --expense-cyan: #67e8f9;
  --expense-lime: #bef264;
  --expense-coral: #fb7185;
}

.page-expense .expense-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.page-expense .expense-hero::before,
.page-expense .expense-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.page-expense .expense-hero::before {
  width: 30rem;
  height: 30rem;
  right: -9rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), rgba(103, 232, 249, 0));
}

.page-expense .expense-hero::after {
  width: 24rem;
  height: 24rem;
  left: -8rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(190, 242, 100, 0.16), rgba(190, 242, 100, 0));
}

.expense-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(103, 232, 249, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.expense-nav-link:hover {
  border-color: rgba(190, 242, 100, 0.45);
  background: rgba(190, 242, 100, 0.12);
  transform: translateY(-1px);
}

.expense-hero-grid,
.expense-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.2rem, 4vw, 2rem);
  align-items: start;
}

.expense-hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.expense-hero-copy p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 248, 240, 0.88);
}

.expense-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.expense-hero-panel,
.expense-selector,
.expense-controls,
.expense-ledger {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(103, 232, 249, 0.22);
  background:
    linear-gradient(160deg, rgba(10, 16, 28, 0.68), rgba(22, 8, 8, 0.68) 56%, rgba(20, 22, 10, 0.52)),
    var(--bg-card);
  box-shadow: 0 22px 42px -28px rgba(103, 232, 249, 0.3);
}

.expense-hero-panel,
.expense-selector,
.expense-controls {
  padding: 1.35rem;
}

.expense-panel-label {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--expense-cyan);
}

.expense-panel-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.expense-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.expense-hero-metrics article,
.expense-kpis > div {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
}

.expense-hero-metrics span,
.expense-kpis dt {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.expense-hero-metrics strong,
.expense-kpis dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.expense-summary,
.expense-workspace {
  border-top: 1px solid var(--border);
}

.expense-overall-planner {
  margin-bottom: 1.4rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(190, 242, 100, 0.22);
  background:
    linear-gradient(155deg, rgba(14, 26, 28, 0.72), rgba(25, 12, 12, 0.68)),
    var(--bg-card);
  box-shadow: 0 18px 40px -30px rgba(190, 242, 100, 0.45);
}

.expense-overall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.expense-overall-card {
  display: grid;
  gap: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.expense-overall-card-primary {
  grid-column: 1 / -1;
  gap: 1rem;
  padding: 1.15rem;
  background:
    linear-gradient(155deg, rgba(10, 18, 34, 0.7), rgba(24, 10, 10, 0.64)),
    rgba(255, 255, 255, 0.04);
}

.expense-overall-card-secondary {
  align-content: start;
}

.expense-overall-detail-group {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.expense-overall-detail-group .expense-detail-list {
  gap: 0.8rem;
}

.expense-currency-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 12, 0.55);
  overflow: hidden;
}

.expense-currency-input--compact {
  border-radius: 0.85rem;
}

.expense-currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 100%;
  color: var(--expense-cyan);
  font-weight: 700;
  background: rgba(103, 232, 249, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.expense-currency-input input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.expense-currency-input input:focus {
  outline: none;
}

.expense-events {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(103, 232, 249, 0.2);
  background:
    linear-gradient(155deg, rgba(18, 16, 32, 0.64), rgba(26, 10, 10, 0.64)),
    var(--bg-card);
  box-shadow: 0 22px 42px -30px rgba(103, 232, 249, 0.28);
  padding: 1.35rem;
}

.expense-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.expense-event-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.expense-event-tab.is-active,
.expense-event-tab:hover {
  border-color: rgba(103, 232, 249, 0.52);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(190, 242, 100, 0.14));
}

.expense-event-panel-wrap {
  display: block;
}

.expense-segment {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.expense-segment-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.expense-segment-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.expense-segment-date {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.expense-segment-status {
  text-align: right;
}

.expense-segment-status strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.expense-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.expense-mini-metrics article {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  padding: 0.85rem;
}

.expense-mini-metrics span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.expense-mini-metrics strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.expense-control-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.expense-control-card {
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem;
}

.expense-control-card h4,
.expense-detail-head h4 {
  margin: 0;
  font-size: 1rem;
}

.expense-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.expense-detail-group {
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  padding: 0.9rem;
}

.expense-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.expense-overall-detail-group .expense-detail-head {
  margin-bottom: 0.95rem;
}

.expense-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
}

.expense-detail-sort {
  display: grid;
  gap: 0.35rem;
  min-width: 9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.expense-detail-sort select {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 12, 0.55);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.expense-detail-add,
.expense-detail-toggle,
.expense-detail-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 232, 249, 0.32);
  background: rgba(103, 232, 249, 0.1);
  color: var(--text);
  border-radius: 0.9rem;
  cursor: pointer;
  font: inherit;
}

.expense-detail-add {
  min-width: 0;
  min-height: 0;
  padding: 0.15rem 0;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--expense-cyan);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.expense-detail-toggle {
  min-width: 0;
  min-height: 0;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.expense-detail-remove {
  min-width: 3rem;
  min-height: 3.5rem;
  padding: 0.45rem;
  border-radius: 0.85rem;
  align-self: stretch;
}

.expense-detail-add span,
.expense-detail-toggle span,
.expense-detail-remove span {
  font-size: 0.92rem;
  line-height: 1.1;
  font-weight: 700;
}

.expense-detail-add:hover {
  background: transparent;
  color: var(--text);
}

.expense-detail-toggle:hover {
  background: transparent;
  color: var(--text);
}

.expense-detail-list {
  display: grid;
  gap: 0.7rem;
}

.expense-detail-list.is-collapsed {
  display: none;
}

.expense-detail-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 2.4fr) 140px 68px auto;
  gap: 0.65rem;
  align-items: stretch;
}

.expense-detail-text,
.expense-detail-amount {
  width: 100%;
  font: inherit;
}

.expense-detail-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(103, 232, 249, 0.08);
  color: var(--expense-cyan);
  font-weight: 700;
}

.expense-detail-text {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 12, 0.55);
  color: var(--text);
  min-height: 3.5rem;
  padding: 1rem 1rem;
}

.expense-detail-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.expense-detail-row-overall {
  grid-template-columns: 3rem minmax(0, 3fr) 132px 64px auto;
}

.expense-progress {
  margin-top: 1rem;
}

.expense-progress span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.expense-progress-bar {
  width: 100%;
  height: 0.72rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.expense-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--expense-cyan), var(--expense-lime));
  transition: width 0.25s var(--ease-out);
}

.expense-progress-bar-wide {
  margin-top: 0.75rem;
}

.expense-selector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}

.expense-selector-pill,
.expense-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.expense-selector-pill {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.expense-selector-pill.is-active,
.expense-tab.is-active {
  border-color: rgba(103, 232, 249, 0.5);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(190, 242, 100, 0.14));
}

.expense-health {
  margin-top: 1rem;
}

.expense-health > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
}

.expense-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.expense-tab {
  padding: 0.8rem 1rem;
  border-radius: 0.95rem;
  font-weight: 700;
}

.expense-panel {
  display: none;
}

.expense-panel.is-active {
  display: block;
}

.expense-field-list {
  display: grid;
  gap: 1rem;
}

.expense-field-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.95fr) minmax(150px, 0.6fr);
  gap: 1rem;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.expense-field-copy h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.expense-field-copy p,
.expense-ledger-header p {
  margin: 0;
  color: var(--text-muted);
}

.expense-field-input {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.expense-field-input input {
  width: 100%;
}

.expense-field-input input[type="number"] {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 12, 0.55);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.expense-field-input input[type="range"] {
  accent-color: #7dd3fc;
}

.expense-ledger {
  margin-top: 1.4rem;
  padding: 1.35rem;
}

.expense-ledger-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.expense-table-wrap {
  overflow-x: auto;
}

.expense-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.expense-table th,
.expense-table td {
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.expense-table thead th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.expense-status {
  font-weight: 700;
}

.expense-status.healthy {
  color: var(--expense-lime);
}

.expense-status.watch-closely {
  color: #facc15;
}

.expense-status.needs-funding,
.expense-status.over-budget {
  color: var(--expense-coral);
}

@media (max-width: 1280px) {
  .expense-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  }

  .expense-overall-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .expense-control-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .expense-detail-grid {
    grid-template-columns: 1fr;
  }

  .expense-detail-row,
  .expense-detail-row-overall {
    grid-template-columns: 2.75rem minmax(0, 2fr) 124px 60px auto;
  }
}

@media (max-width: 1050px) {
  .expense-overall-grid,
  .expense-hero-grid,
  .expense-workspace-grid {
    grid-template-columns: 1fr;
  }

  .expense-control-stack,
  .expense-detail-grid {
    grid-template-columns: 1fr;
  }

  .expense-overall-card-primary,
  .expense-overall-card-secondary {
    grid-column: auto;
  }

  .expense-overall-planner,
  .expense-events,
  .expense-segment {
    padding: 1.1rem;
  }

  .expense-event-tabs {
    gap: 0.55rem;
  }

  .expense-event-tab {
    padding: 0.62rem 0.9rem;
    font-size: 0.92rem;
  }

  .expense-mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 860px) {
  .expense-detail-actions,
  .expense-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .expense-detail-sort,
  .expense-detail-add,
  .expense-detail-toggle,
  .expense-event-tab {
    width: 100%;
  }

  .expense-segment-head,
  .expense-ledger-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .expense-segment-status {
    text-align: left;
  }

  .expense-mini-metrics {
    grid-template-columns: 1fr;
  }

  .expense-detail-row,
  .expense-detail-row-overall {
    grid-template-columns: 2.75rem minmax(0, 1fr) 112px 56px auto;
  }
}

@media (max-width: 760px) {
  .expense-hero-metrics,
  .expense-event-card dl,
  .expense-kpis {
    grid-template-columns: 1fr;
  }

  .expense-overall-grid {
    grid-template-columns: 1fr;
  }

  .expense-overall-card-primary,
  .expense-overall-card-secondary {
    padding: 1rem;
  }

  .expense-control-stack {
    gap: 0.7rem;
  }

  .expense-control-card {
    padding: 0.85rem;
  }

  .expense-detail-group {
    padding: 0.85rem;
  }

  .expense-detail-row,
  .expense-detail-row-overall {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .expense-detail-index,
  .expense-detail-share,
  .expense-detail-remove {
    min-height: 2.8rem;
  }

  .expense-detail-index {
    width: fit-content;
    min-width: 2.8rem;
    padding-inline: 0.8rem;
  }

  .expense-detail-share {
    justify-content: flex-start;
    padding-inline: 0.9rem;
  }

  .expense-detail-remove {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .expense-actions .btn,
  .expense-tab,
  .expense-selector-pill {
    width: 100%;
  }

  .expense-ledger-header {
    align-items: start;
    flex-direction: column;
  }

  .expense-overall-planner,
  .expense-events,
  .expense-segment {
    padding: 0.9rem;
  }

  .expense-event-tab {
    text-align: center;
  }

  .expense-panel-label {
    letter-spacing: 0.08em;
  }

  .expense-hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }
}
