:root {
  --midnight: #0b0b0c;
  --electric-cobalt: #2e42ff;
  --neon-cyan: #00f5d4;
  --deep-indigo: #3a1078;
  --soft-white: #f8f9fa;
  --muted-text: #c8cbcf;
  --surface-glass: rgba(248, 249, 250, 0.06);
  --surface-border: rgba(248, 249, 250, 0.16);
  --shadow-glow: 0 0 32px rgba(0, 245, 212, 0.35);
  --max-width: 1160px;
  --radius: 12px;
  --page-bg-a: #07080f;
  --page-bg-b: #12162c;
  --page-bg-c: #1a1040;
}

html[data-theme="light"] {
  --midnight: #f5f7ff;
  --soft-white: #171d2d;
  --muted-text: #39445b;
  --surface-glass: rgba(8, 34, 96, 0.08);
  --surface-border: rgba(8, 34, 96, 0.2);
  --shadow-glow: 0 0 24px rgba(46, 66, 255, 0.18);
  --page-bg-a: #eef3ff;
  --page-bg-b: #e3ebff;
  --page-bg-c: #dce5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: linear-gradient(145deg, var(--page-bg-a), var(--page-bg-b) 55%, var(--page-bg-c));
  color: var(--soft-white);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background: linear-gradient(155deg, var(--page-bg-a), var(--page-bg-b) 60%, var(--page-bg-c));
}

.site-ambient {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.45;
  transition: transform 140ms linear;
}

.ambient-blob.a {
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  top: 6%;
  left: -4%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.45), rgba(0, 245, 212, 0.02));
}

.ambient-blob.b {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  top: 38%;
  right: -8%;
  background: radial-gradient(circle, rgba(46, 66, 255, 0.42), rgba(46, 66, 255, 0.03));
}

.ambient-blob.c {
  width: min(34vw, 390px);
  height: min(34vw, 390px);
  bottom: -4%;
  left: 32%;
  background: radial-gradient(circle, rgba(58, 16, 120, 0.46), rgba(58, 16, 120, 0.02));
}

html[data-theme="light"] .ambient-blob.a {
  background: radial-gradient(circle, rgba(122, 223, 255, 0.42), rgba(122, 223, 255, 0.03));
}

html[data-theme="light"] .ambient-blob.b {
  background: radial-gradient(circle, rgba(86, 113, 255, 0.35), rgba(86, 113, 255, 0.03));
}

html[data-theme="light"] .ambient-blob.c {
  background: radial-gradient(circle, rgba(130, 114, 250, 0.3), rgba(130, 114, 250, 0.02));
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -30%, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.36) 100%);
}

html[data-theme="light"] .ambient-vignette {
  background: radial-gradient(circle at 50% -30%, transparent 0%, transparent 40%, rgba(32, 48, 92, 0.12) 100%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
}

html[data-theme="light"] .ambient-grid {
  background-image: linear-gradient(rgba(15, 39, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 94, 0.05) 1px, transparent 1px);
  opacity: 0.45;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 80;
  background: linear-gradient(90deg, var(--neon-cyan), #7fd2ff, var(--electric-cobalt));
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.45);
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 12, 0.7);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}

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

.brand img {
  width: auto;
  height: 58px;
  max-width: min(52vw, 280px);
  object-fit: contain;
}

.brand.brand--logo-lockup > div {
  display: none;
}

.brand strong {
  display: block;
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand span {
  color: var(--muted-text);
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
}

.theme-toggle {
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--soft-white);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.83rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9rem;
  margin: 0 0.7rem;
  background: rgba(248, 249, 250, 0.22);
  flex-shrink: 0;
}

.nav-tree {
  position: relative;
}

.nav-tree details {
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.2rem 0.55rem;
}

.nav-tree summary {
  cursor: pointer;
  color: var(--muted-text);
  font-size: 0.9rem;
  list-style: none;
}

.nav-tree summary::-webkit-details-marker {
  display: none;
}

.nav-tree details[open] {
  background: rgba(0, 245, 212, 0.08);
}

.nav-tree-menu {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted-text);
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0.2rem 0;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: var(--soft-white);
}

.button {
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 150ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--electric-cobalt), #4a54f9);
  color: var(--soft-white);
  box-shadow: var(--shadow-glow);
}

.button.primary:hover {
  filter: brightness(1.06);
}

.button.secondary {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(0, 245, 212, 0.1);
}

.global-video-hero {
  position: relative;
  min-height: clamp(260px, 40vw, 440px);
  overflow: hidden;
  border-bottom: 1px solid var(--surface-border);
  background: #050814;
}

.global-video-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transform-origin: center center;
  filter: saturate(1.18) contrast(1.03) brightness(1.18) blur(3.8px);
}

.global-video-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 245, 204, 0.55), rgba(255, 245, 204, 0) 38%),
    radial-gradient(circle at 78% 18%, rgba(255, 228, 148, 0.24), rgba(255, 228, 148, 0) 42%),
    linear-gradient(180deg, rgba(14, 20, 42, 0.04), rgba(14, 20, 42, 0.42));
  pointer-events: none;
}

.global-video-hero__content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.global-video-hero__kicker {
  margin: 0 0 0.35rem;
  color: rgba(248, 249, 250, 0.92);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.global-video-hero__title {
  margin: 0 0 0.45rem;
  color: #f8f9fa;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.48);
  font-size: clamp(2rem, 6.2vw, 4.4rem);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.05;
}

.global-video-hero__sub {
  margin: 0;
  color: rgba(248, 249, 250, 0.86);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.cmg-inspired-hero {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  min-height: clamp(280px, 46vw, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1023;
}

.cmg-motion-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: saturate(1.18) contrast(1.12);
}

.cmg-blob {
  position: absolute;
  border-radius: 42% 58% 60% 40% / 46% 40% 60% 54%;
  filter: blur(14px);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);
  mix-blend-mode: screen;
}

.cmg-blob-a {
  width: min(68vw, 900px);
  height: min(56vw, 650px);
  left: -14%;
  top: -24%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 107, 36, 0.94), rgba(255, 107, 36, 0) 54%),
    radial-gradient(circle at 72% 34%, rgba(234, 47, 74, 0.8), rgba(234, 47, 74, 0) 57%),
    radial-gradient(circle at 58% 74%, rgba(82, 22, 193, 0.72), rgba(82, 22, 193, 0) 62%);
  animation: cmgFloatA 17s ease-in-out infinite alternate;
}

.cmg-blob-b {
  width: min(74vw, 980px);
  height: min(60vw, 720px);
  right: -22%;
  top: -12%;
  background:
    radial-gradient(circle at 20% 62%, rgba(9, 92, 191, 0.86), rgba(9, 92, 191, 0) 54%),
    radial-gradient(circle at 64% 30%, rgba(222, 45, 61, 0.72), rgba(222, 45, 61, 0) 58%),
    radial-gradient(circle at 56% 70%, rgba(243, 106, 30, 0.8), rgba(243, 106, 30, 0) 64%);
  animation: cmgFloatB 19s ease-in-out infinite alternate;
}

.cmg-blob-c {
  width: min(62vw, 820px);
  height: min(50vw, 580px);
  left: 26%;
  bottom: -35%;
  background:
    radial-gradient(circle at 42% 40%, rgba(20, 126, 179, 0.84), rgba(20, 126, 179, 0) 50%),
    radial-gradient(circle at 68% 54%, rgba(248, 78, 43, 0.72), rgba(248, 78, 43, 0) 60%);
  animation: cmgFloatC 22s ease-in-out infinite alternate;
}

.cmg-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 44%),
    linear-gradient(160deg, rgba(1, 7, 22, 0.08), rgba(1, 7, 22, 0.36));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.cmg-inspired-hero .container {
  position: relative;
  z-index: 2;
}

.cmg-inner {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  padding: 2.2rem 1rem;
}

.cmg-inner h2 {
  font-size: clamp(2rem, 4.7vw, 3.35rem);
  margin-bottom: 0.75rem;
}

.cmg-inner .muted {
  color: rgba(248, 249, 250, 0.88);
}

.cmg-chip-row {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cmg-chip {
  text-decoration: none;
  border: 1px solid rgba(248, 249, 250, 0.64);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  color: #f8f9fa;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  transition: transform 140ms ease, background 140ms ease;
}

.cmg-chip:hover {
  transform: translateY(-1px);
  background: rgba(0, 245, 212, 0.16);
}

@keyframes cmgFloatA {
  from { transform: translate(-3%, 2%) rotate(-4deg) scale(1); }
  to { transform: translate(6%, -4%) rotate(5deg) scale(1.06); }
}

@keyframes cmgFloatB {
  from { transform: translate(0%, -2%) rotate(3deg) scale(1); }
  to { transform: translate(-6%, 4%) rotate(-4deg) scale(1.05); }
}

@keyframes cmgFloatC {
  from { transform: translate(2%, 0%) rotate(-2deg) scale(0.98); }
  to { transform: translate(-3%, -5%) rotate(3deg) scale(1.05); }
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.interactive-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46, 66, 255, 0.2), rgba(0, 245, 212, 0.16));
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform 140ms ease;
}

.interactive-hero.logo-panel-card {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 16%, rgba(121, 221, 255, 0.36), rgba(121, 221, 255, 0.05) 32%, transparent 56%),
    radial-gradient(circle at 50% 48%, rgba(43, 102, 190, 0.24), rgba(11, 22, 46, 0.04) 52%, transparent 72%),
    radial-gradient(circle at 50% 50%, rgba(8, 20, 44, 0.3), rgba(2, 8, 18, 0) 46%),
    linear-gradient(165deg, #01060f 0%, #050f23 45%, #030813 100%);
}

.interactive-hero.logo-panel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(127, 214, 255, 0.26), rgba(127, 214, 255, 0) 38%),
    linear-gradient(180deg, rgba(2, 7, 18, 0.04) 0%, rgba(2, 7, 18, 0.22) 74%, rgba(2, 7, 18, 0.58) 100%);
}

.interactive-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

.interactive-hero img.logo-panel-image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  opacity: 0.94;
}

.interactive-hero figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interactive-hero .logo-panel-caption {
  z-index: 2;
  left: auto;
  right: 0.8rem;
  bottom: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  background: rgba(2, 8, 20, 0.66);
  border-color: rgba(248, 249, 250, 0.24);
}

.welcome-reveal {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.welcome-reveal:focus-visible .welcome-reveal__frame {
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.45);
}

.welcome-reveal__frame {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  line-height: 0;
  aspect-ratio: 16 / 10;
}

.welcome-reveal__frame > img,
.welcome-reveal__overlay {
  grid-area: 1 / 1;
}

.welcome-reveal__frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transition: filter 0.45s ease, transform 0.45s ease;
}

.welcome-reveal:not(.is-revealed) .welcome-reveal__frame img {
  filter: blur(12px) brightness(0.55) saturate(1.05);
  transform: scale(1.06);
}

.welcome-reveal__overlay {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(121, 221, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.15) 0%, rgba(2, 8, 20, 0.55) 100%);
  transition: opacity 0.4s ease;
}

.welcome-reveal.is-revealed .welcome-reveal__overlay {
  opacity: 0;
}

.welcome-reveal__title {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8f9fa;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(121, 221, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-reveal img,
  .welcome-reveal__overlay {
    transition-duration: 0.01ms;
  }
}

.inspiration-hero-cinematic {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  min-height: 280px;
  background:
    radial-gradient(circle at 18% 28%, rgba(0, 245, 212, 0.22), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(46, 66, 255, 0.28), transparent 40%),
    linear-gradient(145deg, rgba(10, 14, 30, 0.92), rgba(16, 20, 42, 0.96));
}

.inspiration-hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0 2px,
    transparent 2px 26px
  );
  opacity: 0.35;
}

.inspiration-hero-cinematic::after {
  content: "";
  position: absolute;
  inset: -40% -30%;
  z-index: 0;
  background: conic-gradient(from 120deg, transparent, rgba(138, 210, 255, 0.2), transparent 55%);
  animation: cinematicSpin 16s linear infinite;
}

.inspiration-hero-glow {
  position: absolute;
  z-index: 1;
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  border-radius: 50%;
  top: -12%;
  left: -8%;
  filter: blur(26px);
  background: radial-gradient(circle, rgba(128, 201, 255, 0.42), rgba(128, 201, 255, 0));
  transition: transform 150ms ease;
}

.inspiration-hero-overlay {
  position: relative;
  z-index: 3;
  padding: 1rem;
}

.inspiration-hero-overlay h2 {
  margin: 0.65rem 0 0.5rem;
}

.inspiration-page-hero {
  padding-bottom: 2.5rem;
}

.inspiration-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.inspiration-hero-visual {
  min-height: 340px;
  display: grid;
  align-content: end;
}

.inspiration-hero-cinematic:not(:has(.inspiration-hero-portrait)) {
  min-height: 300px;
}

.inspiration-hero-cinematic:not(:has(.inspiration-hero-portrait)) .inspiration-hero-overlay {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inspiration-hero-portrait {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(52%, 280px);
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius) 0 var(--radius) 0;
  opacity: 0.92;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%);
}

.inspiration-hero-copy {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: 0.25rem 0;
}

.inspiration-hero-copy h1 {
  margin: 0;
}

.inspiration-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.inspiration-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.inspiration-channel-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inspiration-channel-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inspiration-hero-copy--solo {
  max-width: 46rem;
  margin-bottom: 0.25rem;
}

.inspiration-hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
}

.inspiration-channel-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.inspiration-channel-card--featured {
  border-color: rgba(0, 245, 212, 0.35);
  background: linear-gradient(165deg, rgba(0, 245, 212, 0.07), rgba(46, 66, 255, 0.1));
}

.inspiration-channel-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.inspiration-channel-card__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan, #00f5d4);
}

.inspiration-channel-card .button {
  margin-top: 0.35rem;
  width: fit-content;
}

.inspiration-about-panel {
  max-width: 52rem;
}

.inspiration-embed-card {
  padding: 1rem;
}

@media (max-width: 1100px) {
  .inspiration-channel-grid,
  .inspiration-channel-grid--three,
  .inspiration-channel-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .inspiration-hero-visual {
    min-height: 300px;
  }

  .inspiration-hero-portrait {
    width: min(46%, 240px);
  }
}

@media (max-width: 560px) {
  .inspiration-channel-grid {
    grid-template-columns: 1fr;
  }

  .inspiration-cta-row .button {
    width: 100%;
    text-align: center;
  }
}

.animated-text-header__background {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.24;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(248, 249, 250, 0.24);
  -webkit-text-stroke: 1px rgba(248, 249, 250, 0.36);
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.13);
  font-size: clamp(1.35rem, 4.6vw, 3rem);
  mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
  animation: inspirationTicker 22s linear infinite;
}

.animated-text-header__bg-text {
  flex: 0 0 auto;
}

.animated-text-header__separator {
  flex: 0 0 auto;
  color: rgba(0, 245, 212, 0.82);
  -webkit-text-stroke: 0;
}

@keyframes inspirationTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-44%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-text-header__background {
    animation: none;
  }

  .cmg-blob-a,
  .cmg-blob-b,
  .cmg-blob-c {
    animation: none;
  }
}

@keyframes cinematicSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.faith-banner {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 214, 123, 0.12), rgba(0, 245, 212, 0.1));
  padding: 0.9rem 1rem;
}

.faith-banner strong {
  color: #ffe6a6;
}

.eyebrow {
  color: var(--neon-cyan);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", "Inter", sans-serif;
  margin: 0 0 1rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted-text);
}

.hero-card,
.card,
.media-card,
.stat {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}

.hero-card {
  padding: 1.25rem;
}

.section {
  padding: 3.25rem 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-calendar-shell {
  display: block;
}

.event-card {
  border: 1px solid var(--surface-border);
}

.cal-shell {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: 1rem;
  align-items: start;
}

.cal-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.cal-month {
  margin: 0;
  letter-spacing: -0.02em;
}

.cal-sub {
  margin: 0.35rem 0 0;
  max-width: 38rem;
}

.cal-head__actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cal-nav {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.cal-grid {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface-glass);
  overflow: hidden;
}

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.18);
}

.cal-dow span {
  padding: 0.7rem 0.6rem;
  color: var(--muted-text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-dow span:last-child {
  border-right: 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-day {
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.6rem 0.65rem;
  min-height: 96px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.35rem;
  color: var(--soft-white);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.cal-day:focus-visible {
  outline: 2px solid rgba(0, 245, 255, 0.55);
  outline-offset: -2px;
}

.cal-day:hover {
  background: rgba(0, 245, 255, 0.04);
}

.cal-day.is-out {
  opacity: 0.55;
}

.cal-day.is-today .cal-daynum {
  border-color: rgba(0, 245, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.15);
}

.cal-day.is-selected {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.08), rgba(255, 255, 255, 0.01));
}

.cal-daynum {
  width: fit-content;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.9rem;
}

.cal-chips {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.cal-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  padding: 0.28rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.15;
  cursor: pointer;
}

.cal-chip:hover {
  border-color: rgba(0, 245, 255, 0.55);
  background: rgba(0, 245, 255, 0.08);
}

.cal-more {
  color: var(--muted-text);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.cal-panel {
  position: sticky;
  top: 104px;
}

.cal-panel__inner {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface-glass);
  padding: 1rem;
}

.cal-panel__title {
  margin: 0.35rem 0 0.75rem;
}

.cal-panel__list {
  display: grid;
  gap: 0.75rem;
}

.cal-detail {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
}

.cal-detail h4 {
  margin: 0.35rem 0 0.35rem;
}

@media (max-width: 980px) {
  .cal-shell {
    grid-template-columns: 1fr;
  }

  .cal-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .cal-head {
    align-items: start;
    flex-direction: column;
  }

  .cal-day {
    min-height: 86px;
    padding: 0.5rem 0.5rem 0.6rem;
  }

  .cal-chip {
    font-size: 0.75rem;
  }
}

.event-card__meta {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--muted-text);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card {
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.live-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
}

.video-frame {
  width: 100%;
  border: 0;
  min-height: 365px;
  border-radius: var(--radius);
  background: #09090b;
}

.embed-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  min-height: 340px;
}

.embed-frame.tall {
  min-height: 620px;
}

.embed-frame.xl {
  min-height: 820px;
}

.embed-shell {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.28);
}

.embed-shell iframe {
  width: 100%;
  min-height: inherit;
  border: 0;
  display: block;
}

.giving-embed-shell {
  /* Explicit height — generic .embed-shell iframe { min-height: inherit } collapses to ~150px */
  height: clamp(720px, 85vh, 1100px);
  min-height: 720px;
}

.giving-embed-shell iframe.giving-embed {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  border-radius: var(--radius);
  background: #fff;
}

.embed-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(6, 10, 22, 0.86), rgba(10, 16, 32, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, rgba(255, 255, 255, 0.01) 12px 24px);
  z-index: 2;
}

.embed-offline-card {
  text-align: center;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  width: min(92%, 380px);
  background: rgba(4, 8, 18, 0.75);
  backdrop-filter: blur(8px);
}

.embed-offline-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #ffd7d7;
}

.embed-offline-card p {
  margin-bottom: 0.8rem;
  color: #d5dceb;
}

.embed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 0.55rem;
  background: #ff5d6e;
  box-shadow: 0 0 10px rgba(255, 93, 110, 0.55);
}

.embed-shell.is-online .embed-offline {
  display: none;
}

.meta-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list strong {
  color: var(--soft-white);
}

.section-chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0.3rem 0 0.2rem;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(0, 245, 212, 0.08);
  color: var(--soft-white);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.media-card {
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-card .content {
  padding: 0.9rem;
}

.support-art-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  opacity: 0.9;
}

.support-art-note {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--muted-text);
}

.quote {
  padding: 1.2rem;
  border-left: 3px solid var(--neon-cyan);
}

.scroll-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.scroll-story--centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

.scroll-story--centered .story-stack {
  width: min(52rem, 100%);
}

.story-sticky {
  position: sticky;
  top: 104px;
}

.story-stack {
  display: grid;
  gap: 1rem;
}

.story-chapter {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface-glass);
  padding: 1rem;
}

.story-chapter.featured {
  border-color: rgba(0, 245, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.15), 0 14px 30px rgba(0, 245, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.story-chapter.featured .pill {
  border-color: rgba(0, 245, 255, 0.55);
  color: rgba(255, 255, 255, 0.86);
}

.media-hero-stack {
  display: grid;
  gap: 1rem;
}

.media-hero {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.media-hero img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.media-hero img.media-hero__portrait {
  max-height: 500px;
  object-position: center top;
}

.media-hero-stack .media-hero img:not(.media-hero__portrait) {
  max-height: 520px;
  object-fit: contain;
  object-position: center center;
}

.contact-map-section {
  margin-top: 1.5rem;
}

.contact-map-card {
  padding: 1.1rem 1.15rem 1.2rem;
}

.contact-map-shell {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.contact-map-embed {
  width: 100%;
  height: min(420px, 52vh);
  min-height: 280px;
  border: 0;
  display: block;
}

.contact-map-caption {
  margin: 0.85rem 0 0;
  text-align: center;
}

.contact-map-caption a {
  color: var(--neon-cyan, #00f5d4);
}

.give-cash-qr {
  display: block;
  width: min(100%, 380px);
  height: auto;
  margin: 0.5rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--surface-border);
  margin-top: 3rem;
  padding: 2.2rem 0;
}

.site-footer .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted-text);
}

.center {
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.86rem;
  color: var(--soft-white);
}

input,
textarea,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft-white);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.92rem;
}

th {
  color: var(--soft-white);
}

.status-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--surface-border);
  font-size: 0.78rem;
}

.ticker-shell {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 1rem;
}

.ticker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--surface-border);
}

.ticker-state[data-state="live"] {
  color: #62ff8a;
}

.ticker-state[data-state="starting_soon"] {
  color: #ffe073;
}

.ticker-state[data-state="offline"] {
  color: #ff7f7f;
}

.ticker-track {
  white-space: nowrap;
  overflow: hidden;
}

.ticker-runner {
  display: inline-flex;
  gap: 2.2rem;
  padding: 0.65rem 0;
  min-width: 200%;
  animation: tickerScroll 26s linear infinite;
}

.ticker-runner span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--soft-white);
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ticker-runner .k {
  color: var(--neon-cyan);
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.73rem;
}

.ticker-runner .v {
  color: var(--soft-white);
  font-weight: 600;
}

.ticker-runner span[data-kind="status"] .k {
  color: #76ffe4;
}

.ticker-runner span[data-kind="announcement"] .k {
  color: #ffd88a;
}

.ticker-runner span[data-kind="prayer"] .k {
  color: #ffb5cf;
}

.ticker-runner span[data-kind="giving"] .k {
  color: #95c0ff;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.metric h3 {
  margin-bottom: 0.35rem;
}

.metric strong {
  font-size: 1.4rem;
}

progress {
  width: 100%;
  height: 16px;
}

.notes-list li {
  margin-bottom: 0.45rem;
}

[data-qr-fallback] {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px dashed var(--surface-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.quick-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.qa-trigger {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(135deg, var(--electric-cobalt), #3a1078);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(46, 66, 255, 0.35);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.qa-trigger:hover {
  transform: scale(1.04);
}

.quick-actions--open .qa-trigger {
  background: linear-gradient(135deg, #3a1078, #2e42ff);
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.28);
}

.qa-menu {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.qa-menu[hidden] {
  display: none !important;
}

.qa-item {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.86);
  color: var(--soft-white);
  font-size: 0.78rem;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
}

.qa-item:hover {
  border-color: rgba(0, 245, 212, 0.6);
}

.qa-item--prayer {
  font-weight: 700;
  color: #f8f9fa;
  background: linear-gradient(140deg, #2e42ff, #00b8a3);
  border-color: rgba(248, 249, 250, 0.24);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.24);
  padding: 0.5rem 0.95rem;
}

.qa-item--prayer:hover {
  border-color: rgba(248, 249, 250, 0.45);
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: start center;
  padding-top: 14vh;
  background: rgba(2, 5, 17, 0.6);
  backdrop-filter: blur(6px);
}

.command-palette[hidden] {
  display: none;
}

.command-shell {
  width: min(94vw, 620px);
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: rgba(8, 11, 26, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.command-input {
  border: 0;
  border-bottom: 1px solid var(--surface-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
}

.command-list {
  display: grid;
  max-height: 48vh;
  overflow: auto;
}

.command-item {
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--soft-white);
}

.command-item:hover {
  background: rgba(0, 245, 212, 0.08);
}

.faith-widget {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 45;
  width: min(360px, calc(100vw - 5.2rem));
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: rgba(6, 9, 22, 0.84);
  backdrop-filter: blur(8px);
  padding: 0.65rem 0.78rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.faith-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faith-widget strong {
  color: #d5ecff;
  display: block;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faith-widget__toggle {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(46, 66, 255, 0.22);
  color: var(--soft-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.faith-widget__toggle:hover {
  border-color: rgba(0, 245, 212, 0.55);
}

.faith-widget__body {
  margin-top: 0.45rem;
}

.faith-widget__body[hidden] {
  display: none !important;
}

.faith-widget--collapsed {
  padding: 0.5rem 0.62rem;
}

.faith-widget p {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.faith-widget p:last-child {
  margin-bottom: 0;
}

.admin-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.staff-resource-header .container {
  min-height: 72px;
}

.staff-resource-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-left: auto;
}

.staff-resource-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted-text);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
}

.staff-resource-nav a:hover {
  color: var(--soft-white);
  border-color: rgba(0, 245, 212, 0.45);
}

@media (max-width: 768px) {
  .staff-resource-header .container {
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0.65rem;
  }

  .staff-resource-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.prayer-chat-launcher {
  display: none;
}

.prayer-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end right;
  padding: 1rem;
  background: rgba(4, 7, 16, 0.42);
  backdrop-filter: blur(4px);
}

.prayer-chat-modal[hidden] {
  display: none;
}

.prayer-chat-shell {
  width: min(95vw, 380px);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: rgba(8, 12, 28, 0.95);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.prayer-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--surface-border);
}

.prayer-chat-head button {
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft-white);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.prayer-chat-shell [data-prayer-status],
.prayer-chat-shell [data-prayer-actions] {
  padding: 0 0.8rem;
}

.prayer-chat-log {
  padding: 0.3rem 0.8rem 0.4rem;
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
}

.prayer-bubble {
  margin: 0;
  font-size: 0.84rem;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.prayer-bubble.bot {
  background: rgba(46, 66, 255, 0.16);
}

.prayer-bubble.user {
  background: rgba(0, 245, 212, 0.12);
}

.prayer-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem 0.9rem;
}

.prayer-chat-form input {
  min-width: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 420ms ease, transform 460ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.focus-mode .site-header,
body.focus-mode .site-footer,
body.focus-mode .quick-actions,
body.focus-mode .faith-widget,
body.focus-mode .ticker-shell {
  opacity: 0.25;
  transition: opacity 180ms ease;
}

.section--compact {
  padding: 1.35rem 0 1rem;
}

.section--compact-bottom {
  padding: 1.5rem 0 3.25rem;
}

.hero--home {
  padding: 3rem 0 3.25rem;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
  max-width: 1120px;
  margin-inline: auto;
}

.home-intro-grid__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.home-intro-grid__copy h1 {
  margin-bottom: 0.25rem;
}

.home-lead {
  margin-bottom: 0;
}

.home-lead--accent {
  color: var(--neon-cyan);
}

.faith-banner--home {
  margin-top: 0.15rem;
}

.faith-banner__quote {
  margin-bottom: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.home-intro-grid__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card--schedule {
  text-align: center;
}

.hero-card--schedule h2 {
  margin-top: 0;
}

.hero-card--schedule .meta-list {
  text-align: left;
  max-width: 22rem;
  margin-inline: auto;
}

.meta-list--spaced li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.meta-list--spaced li span {
  color: var(--muted-text);
  text-align: right;
}

.home-card-cta {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.button--block {
  display: block;
  width: 100%;
  text-align: center;
}

.section-title-row--balanced {
  align-items: center;
}

.grid-3--balanced {
  align-items: stretch;
}

.card--balanced {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card--balanced p:last-child {
  margin-bottom: 0;
}

.section--featured {
  padding: 2.85rem 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: rgba(6, 10, 24, 0.42);
}

.section-lead {
  max-width: 40rem;
  margin: 0 auto 1.35rem;
  text-align: center;
  color: var(--muted-text);
}

.home-featured-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.85rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.home-featured-card {
  flex: 0 0 min(100%, 300px);
  scroll-snap-align: start;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-featured-card__media {
  position: relative;
  display: block;
  background: #050814;
}

.home-featured-card__media img,
.home-featured-card__video,
.home-featured-card__embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  background: #050814;
}

.home-featured-card__badge {
  position: absolute;
  z-index: 1;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(248, 249, 250, 0.28);
  color: #f8f9fa;
}

.home-featured-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.home-featured-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.28;
}

.home-featured-card__body .button {
  margin-top: auto;
  align-self: flex-start;
}

.home-featured-card__actions {
  margin: 0;
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.home-featured-card__actions .button {
  margin-top: 0;
}

.section--connect {
  padding: 3rem 0;
}

.section-head-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-head-center h2 {
  margin-bottom: 0.35rem;
}

.section-head-center .muted {
  margin-bottom: 0;
}

.home-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin-inline: auto;
}

.home-connect-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
  min-height: 104px;
  padding: 1.1rem 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-connect-tile:hover {
  border-color: rgba(0, 245, 212, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.home-connect-tile__label {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.home-connect-tile__hint {
  font-size: 0.76rem;
  color: var(--muted-text);
}

.container--narrow {
  max-width: 32rem;
  margin-inline: auto;
}

.card--centered-notify {
  text-align: center;
  padding: 1.35rem 1.35rem;
}

.card--centered-notify h2 {
  margin-bottom: 0.35rem;
}

.gallery-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: var(--muted-text);
}

.gallery-filter-card {
  margin-top: 0.5rem;
}

.gallery-runtime-card {
  margin-top: 1rem;
}

.gallery-inline-image {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.gallery-highlights-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.gallery-library-lead {
  margin-top: 0;
}

.gallery-feeds-anchor {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .home-intro-grid,
  .live-shell,
  .grid-3,
  .grid-2,
  .event-calendar-shell,
  .metric-grid,
  .scroll-story {
    grid-template-columns: 1fr;
  }

  .home-connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    position: absolute;
    inset: 86px 1rem auto 1rem;
    border-radius: var(--radius);
    background: rgba(15, 15, 23, 0.96);
    border: 1px solid var(--surface-border);
    padding: 1rem;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li + li::before {
    display: none;
  }

  .main-nav li + li {
    border-top: 1px solid var(--surface-border);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }

  .main-nav a {
    display: block;
    padding: 0.45rem 0.15rem;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .faith-widget {
    width: min(18rem, calc(100vw - 5.5rem));
    left: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .quick-actions {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--surface-border);
    background: transparent;
    color: var(--soft-white);
    border-radius: var(--radius);
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .site-header .container {
    min-height: 72px;
  }

  .brand img {
    height: 46px;
  }

  .section {
    padding: 2.25rem 0;
  }

  .hero--home {
    padding: 2rem 0 2.25rem;
  }

  h1 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title-row .button {
    width: 100%;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .video-frame,
  .embed-shell iframe,
  .embed-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .embed-frame.tall,
  .embed-frame.xl {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .media-card .button {
    width: 100%;
    text-align: center;
  }

  .prayer-chat-modal {
    place-items: end center;
    padding: 0.75rem;
  }

  .prayer-chat-shell {
    width: min(100vw - 1.5rem, 380px);
  }

  .prayer-chat-form {
    display: grid;
    gap: 0.5rem;
  }

  .prayer-chat-form .button {
    width: 100%;
  }

  .ticker-head {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .ticker-runner span {
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
  }

  .home-featured-card {
    flex: 0 0 min(88vw, 300px);
  }

  .home-featured-card__actions .button {
    width: 100%;
    text-align: center;
  }

  input,
  select,
  textarea,
  .button,
  .qa-trigger,
  .faith-widget__toggle {
    min-height: 44px;
  }

  body.faith-widget-expanded {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .home-connect-grid {
    grid-template-columns: 1fr;
  }

  .faith-widget {
    width: min(16.5rem, calc(100vw - 4.75rem));
  }

  .site-footer .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

.blog-stack {
  display: grid;
  gap: 1rem;
}

.blog-post__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 0.65rem 0;
}

.blog-post__title {
  margin: 0 0 0.35rem 0;
}

.blog-post__body {
  color: var(--soft-white);
}

.blog-post__body p {
  color: var(--soft-white);
}

.blog-post__body h2,
.blog-post__body h3 {
  margin-top: 1.1rem;
}

.blog-post__body a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.status-page-lead {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.status-summary {
  margin-bottom: 1.25rem;
}

.status-summary__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.status-summary__meta {
  margin: 0;
}

.status-summary__uptime {
  margin: 0.35rem 0 0;
  color: var(--neon-cyan);
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--surface-border);
}

.status-badge--checking {
  background: rgba(248, 249, 250, 0.08);
  color: var(--muted-text);
}

.status-badge--ok {
  background: rgba(0, 245, 212, 0.14);
  color: var(--neon-cyan);
  border-color: rgba(0, 245, 212, 0.35);
}

.status-badge--warn {
  background: rgba(255, 193, 7, 0.12);
  color: #ffd76a;
  border-color: rgba(255, 193, 7, 0.35);
}

.status-badge--bad {
  background: rgba(255, 99, 99, 0.12);
  color: #ff9b9b;
  border-color: rgba(255, 99, 99, 0.35);
}

.status-metrics {
  margin-bottom: 1.25rem;
}

.status-metrics .metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.15rem 0;
}

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

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.status-table th,
.status-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: top;
}

.status-table th {
  color: var(--muted-text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--surface-border);
}

.status-chip--ok {
  background: rgba(0, 245, 212, 0.12);
  color: var(--neon-cyan);
}

.status-chip--warn {
  background: rgba(255, 193, 7, 0.12);
  color: #ffd76a;
}

.status-chip--bad {
  background: rgba(255, 99, 99, 0.12);
  color: #ff9b9b;
}

.status-history-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.status-history-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.status-refresh-btn {
  min-height: 2.25rem;
}

@media (max-width: 560px) {
  .status-table th:nth-child(4),
  .status-table td:nth-child(4) {
    display: none;
  }
}

.blog-post__body a:hover {
  text-decoration: underline;
}
