/* ==========================================================================
   Homepage concepts A and B (local comparison only)
   Loaded only by concept-a.html and concept-b.html, after site.css.
   The palette below applies to the whole page when html[data-concept] is set.
   Rule for every hero animation here: content is visible and clickable from
   the first frame. Motion only moves, polishes or reveals light; it never
   waits to show words or buttons.
   ========================================================================== */

html[data-concept] {
  --midnight: #250a31;       /* deepest shade, used for veils over footage */
  --aubergine: #341044;      /* midnight plum: dark sections */
  --plum: #692d85;           /* vibrant royal purple: brand, buttons, plum band */
  --royal: #692d85;
  --gold: #e6a64f;           /* warm golden highlight (on dark grounds only) */
  --gold-deep: #8f5a14;      /* gold for text on ivory (5.4:1) */
  --champagne: #f6d6a0;
  --ivory: #fff7eb;
  --lavender: #f2e7f4;
  --ink: #2a0d37;
  --ink-soft: #5e4a66;       /* 7.5:1 on ivory */
  --on-dark: #fff7eb;
  --on-dark-soft: #dccbe3;
}

/* Gold is the call to action everywhere on these pages */
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--midnight); font-weight: 600; }
.btn--gold::before { background: var(--ivory); }
.btn--xl { min-height: 3.9rem; padding: 1.1rem 2.3rem; font-size: 1rem; letter-spacing: 0.01em; }
html[data-concept] .on-dark .nav .btn { --btn-bg: var(--gold); --btn-fg: var(--midnight); }
html[data-concept] .on-dark .nav .btn::before { background: var(--ivory); }
html[data-concept] .site-header.on-dark::before { background: rgba(37, 10, 49, 0.78); }

/* ---------- Shared hero pieces ---------- */

.chero {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  overflow: hidden;
}
.chero__inner { position: relative; z-index: 2; }
.chero__kicker {
  margin: 0 0 1.4rem;
  font: italic 400 var(--step-1)/1.3 var(--serif);
  color: var(--gold);
}
.chero__title {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.hl { display: block; }
/* Room for descenders and italic overhang, which background-clip would otherwise cut */
.hl__text { display: inline-block; padding: 0.04em 0.08em 0.16em 0; margin-bottom: -0.16em; }
.hl--em { font-style: italic; }
.chero__lede {
  max-width: 31rem;
  margin: 0 0 2.2rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-dark-soft);
}
.chero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Footage placeholder: a painted doorway of warm light until the video arrives */
.chero .placeholder { background: radial-gradient(70% 60% at 50% 40%, #4a1a60, var(--midnight) 75%); }
.scene { position: absolute; inset: 0; }
.scene__door {
  position: absolute;
  left: 50%; bottom: 14%;
  width: 18%; min-width: 7rem;
  aspect-ratio: 3 / 5;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #fff2d6, #f2c47c 55%, #e6a64f);
  box-shadow: 0 0 4rem 1rem rgba(230, 166, 79, 0.45), 0 0 14rem 4rem rgba(230, 166, 79, 0.22);
}
.scene__rays {
  position: absolute;
  left: 50%; bottom: 0;
  width: 70%; height: 30%;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(246, 214, 160, 0.4), transparent 70%);
}
.scene__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, rgba(37, 10, 49, 0.2), rgba(37, 10, 49, 0.85));
}
.chero .placeholder__beam { opacity: 0.35; }

/* ---------- Entrance (CSS, starts on first paint, never hides) ---------- */

.chero .hl__text { animation: hl-settle 1.6s var(--ease-out) both; animation-delay: calc(var(--i) * 0.16s + 0.05s); }
@keyframes hl-settle {
  from { transform: translateY(0.16em); letter-spacing: 0.01em; }
}
/* A glint of sunlight passes across the headline once */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chero .hl__text {
    color: transparent;
    background: linear-gradient(105deg, var(--hl-color, var(--ivory)) 0 42%, #ffe6b8 48%, #fff7eb 50%, var(--hl-color, var(--ivory)) 56% 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hl-settle 1.6s var(--ease-out) both, hl-glint 2.4s ease-in-out both;
    animation-delay: calc(var(--i) * 0.16s + 0.05s), calc(var(--i) * 0.25s + 0.6s);
  }
}
@keyframes hl-glint { to { background-position: 0% 0; } }

.chero .media--hero { animation: chero-settle 3.2s var(--ease-out) both; }
@keyframes chero-settle { from { transform: scale(1.07); } }

.chero .video-toggle { right: 1.25rem; bottom: 1.25rem; }

/* ==========================================================================
   Concept A: Immersive cinematic hero
   Full-bleed footage graded deep purple, a gold arch frames the doorway of
   light, and the type sits inside the picture.
   ========================================================================== */

.chero--a {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--midnight);
}
.chero--a .chero__media { position: absolute; inset: 0 0 0 22%; z-index: -2; }
.chero--a .media--hero { position: absolute; inset: 0; }
.chero--a .media--hero .placeholder__label {
  left: auto; right: 1.5rem; bottom: auto;
  top: calc(var(--header-h) + 1rem);
  width: min(21rem, 60%);
}
/* Purple grade: deep on the left for the words, open around the light */
.chero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--midnight) 0%, rgba(37, 10, 49, 0.94) 16%, rgba(37, 10, 49, 0.6) 36%, rgba(37, 10, 49, 0) 60%),
    linear-gradient(0deg, rgba(37, 10, 49, 0.9) 0%, rgba(37, 10, 49, 0) 34%),
    radial-gradient(55% 70% at 61% 42%, rgba(105, 45, 133, 0) 35%, rgba(105, 45, 133, 0.42) 100%);
}
.chero--a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, var(--aubergine), rgba(52, 16, 68, 0));
}
.chero__archwrap {
  position: absolute;
  z-index: 0;
  left: 61%;
  top: calc(var(--header-h) + 7vh);
  height: calc(100% - var(--header-h) - 7vh);
  aspect-ratio: 3 / 5;
  transform: translateX(-50%);
  pointer-events: none;
}
.chero__arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chero__arch path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: arch-draw 2.4s var(--ease-in-out) 0.2s both;
}
@keyframes arch-draw { from { stroke-dashoffset: 1; } }
.chero__halo {
  position: absolute;
  left: 50%; top: 22%;
  width: 190%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(246, 214, 160, 0.38), rgba(230, 166, 79, 0.12) 55%, rgba(230, 166, 79, 0));
  mix-blend-mode: screen;
  animation: halo-bloom 2.6s ease-out 0.4s both, halo-breathe 8s ease-in-out 3s infinite alternate;
}
@keyframes halo-bloom { from { opacity: 0; transform: translate(-50%, -40%) scale(0.6); } }
@keyframes halo-breathe { to { opacity: 0.75; transform: translate(-50%, -50%) scale(1.06); } }

.chero--a .chero__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 4vh);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}
.chero--a .chero__copy { align-self: center; max-width: 58rem; }
/* Sized so the words end before the doorway of light at about 61% */
.chero--a .chero__title { font-size: clamp(3.3rem, 1rem + 5.2vw, 7.6rem); }
.chero--a .hl--em { padding-left: 0.55em; }

.chero--a .chero__invite {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 166, 79, 0.4);
}
.chero__sunday {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 1.2rem;
  font-size: var(--step--1);
  color: var(--on-dark-soft);
}
.chero__sunday span:first-child { grid-column: 1 / -1; color: var(--gold); font-weight: 500; letter-spacing: 0.02em; }
.chero__sunday strong {
  font: 400 clamp(2.4rem, 1.4rem + 2.6vw, 4rem)/1 var(--serif);
  letter-spacing: -0.03em;
  color: var(--ivory);
}

/* ==========================================================================
   Concept B: Bold contemporary church branding
   A royal purple field, heavy confident type, the footage held in a tall
   arch with a gold Sunday badge, and a moving band of what we gather around.
   ========================================================================== */

.chero--b {
  --hl-color: var(--ivory);
  background: var(--royal);
}
.chero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(230, 166, 79, 0.26), rgba(230, 166, 79, 0) 65%),
    radial-gradient(70% 90% at 0% 100%, var(--aubergine), rgba(52, 16, 68, 0) 70%),
    var(--royal);
}
/* A giant architectural arch drawn faintly behind the words */
.chero__bigarch {
  position: absolute;
  left: -12vw;
  bottom: -2px;
  width: min(78vw, 70rem);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 247, 235, 0.14);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 0 3.5rem rgba(255, 247, 235, 0.025);
}
.chero--b .chero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem clamp(2rem, 4vw, 5rem);
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3vh);
}
.chero--b .chero__copy { align-self: center; padding-bottom: 6vh; }
.chero--b .chero__title {
  font-size: clamp(3.4rem, 0.8rem + 7vw, 9.6rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.chero--b .hl--em { --hl-color: var(--gold); color: var(--gold); font-weight: 600; }
/* Always break as "Find your / refuge." so the stack reads the same on every screen */
.chero--b .hl { max-width: 6.4em; }
.chero--b .chero__title { margin-bottom: 2rem; }
.chero--b .chero__lede { color: #eadcf0; }
.chero__when {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 1.6rem 0 0;
  font-size: var(--step--1);
  color: #eadcf0;
}
.chero__when strong { color: var(--ivory); font-weight: 600; }

.chero__visual { position: relative; align-self: end; justify-self: end; width: 100%; max-width: 33rem; }
.chero__window {
  position: relative;
  aspect-ratio: 4 / 5.4;
  max-height: calc(100svh - var(--header-h) - 5vh);
  margin-left: auto;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  animation: window-rise 1.8s var(--ease-out) both;
}
@keyframes window-rise { from { transform: translateY(5%); } }
.chero__visual::before {
  content: "";
  position: absolute;
  inset: -0.9rem -0.9rem 0;
  border: 1px solid rgba(230, 166, 79, 0.7);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.chero__window .media--hero { position: absolute; inset: 0; }
.chero__window .placeholder__label { right: 1.25rem; bottom: 4.5rem; }

.chero__badge {
  position: absolute;
  z-index: 3;
  left: -3.6rem;
  top: 22%;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--midnight);
  text-decoration: none;
  box-shadow: 0 1.2rem 3rem rgba(37, 10, 49, 0.35);
  transition: transform 0.5s var(--ease-out);
}
.chero__badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font: 600 9.4px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: currentColor;
  animation: badge-turn 28s linear infinite;
}
@keyframes badge-turn { to { transform: rotate(360deg); } }
.chero__badge-time { display: grid; justify-items: center; line-height: 1; }
.chero__badge-time small { font: 500 0.7rem/1.2 var(--sans); letter-spacing: 0.04em; }
.chero__badge-time b { font: 600 1.9rem/1 var(--serif); letter-spacing: -0.03em; margin: 0.15rem 0; }

/* The band of what we gather around */
.themes {
  overflow: hidden;
  background: var(--aubergine);
  color: var(--gold);
  padding-block: 1.3rem;
  border-top: 1px solid rgba(230, 166, 79, 0.25);
}
.themes__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: themes-move 48s linear infinite;
}
.themes__track span { font: italic 400 var(--step-3)/1 var(--serif); white-space: nowrap; }
.themes__track i {
  width: 0.7rem;
  height: 1rem;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.7;
}
@keyframes themes-move { to { transform: translateX(-50%); } }

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  /* The footage sits in the top of the screen so the figure and the light stay inside the arch */
  .chero--a .chero__media { inset: 0 0 auto 0; height: 58svh; }
  .chero--a .scene__door { bottom: 34%; }
  .chero--a .media--hero .placeholder__label { display: none; }
  .chero__veil {
    background:
      linear-gradient(0deg, var(--midnight) 0%, rgba(37, 10, 49, 0.96) 38%, rgba(37, 10, 49, 0.55) 56%, rgba(37, 10, 49, 0) 74%),
      linear-gradient(180deg, rgba(37, 10, 49, 0.55) 0%, rgba(37, 10, 49, 0) 18%);
  }
  .chero__archwrap { left: 50%; top: calc(var(--header-h) + 1vh); height: 36svh; }
  .chero--a .chero__inner { grid-template-rows: 1fr auto; padding-top: 34svh; padding-bottom: 1.25rem; }
  .chero--a .chero__copy { align-self: end; }
  .chero--a .chero__title { font-size: clamp(2.6rem, 11.6vw, 4.6rem); margin-bottom: 1rem; }
  .chero--a .hl--em { padding-left: 0; }
  .chero__kicker { font-size: var(--step-0); margin-bottom: 0.8rem; }
  .chero__lede { font-size: var(--step-0); margin-bottom: 1.25rem; }
  .chero--a .chero__invite { gap: 1rem; padding-top: 1rem; flex-direction: column-reverse; align-items: stretch; }
  .chero__sunday { grid-template-columns: auto 1fr; gap: 0 0.9rem; }
  .chero__sunday strong { font-size: 2rem; }
  .chero__sunday span:last-child { line-height: 1.3; }
  .chero__actions { flex-wrap: nowrap; gap: 0.6rem; }
  .chero__actions .btn { flex: 1 1 auto; padding-inline: 1rem; }
  .btn--xl { min-height: 3.4rem; font-size: 0.95rem; }

  .chero--b .chero__inner { grid-template-columns: 1fr; gap: 2rem; padding-top: calc(var(--header-h) + 2.5vh); }
  .chero--b .chero__copy { padding-bottom: 0; }
  .chero--b .chero__title { font-size: clamp(2.9rem, 13vw, 5.2rem); margin-bottom: 1.1rem; }
  .chero__when { margin-top: 1.1rem; }
  .chero__visual { justify-self: end; width: 84%; }
  .chero__window { aspect-ratio: 4 / 4.4; }
  .chero__window .placeholder__label { bottom: 4rem; left: 1rem; right: 1rem; }
  .chero__badge { left: -2.8rem; top: 14%; width: 7.2rem; height: 7.2rem; }
  .chero__badge svg { font-size: 9px; }
  .chero__badge-time b { font-size: 1.5rem; }
  .chero__bigarch { left: -30vw; width: 120vw; }
  .themes__track span { font-size: var(--step-2); }
}

@media (prefers-reduced-motion: reduce) {
  .chero .hl__text, .chero .media--hero, .chero__window, .chero__arch path, .chero__halo,
  .chero__badge svg, .themes__track { animation: none !important; }
  .chero .hl__text { background-position: 0 0; }
}
