/* Sandbox Seminary front page (checkpoint B; ux/palette.md, "Sky").
   Tokens come from cbe_tokens.css. Layout and order follow
   ux/specimens/01-front-page.html; color only from the token set.
   Every animation sits in the reduced-motion block at the end. */
main.cbe-main.cbe-main--landing { padding: 0; }
main.cbe-main--landing a { color: var(--cbe-cobalt); }
main.cbe-main--landing .cbe-lp-btn { text-decoration: none; }
.cbe-lp-hero { background: linear-gradient(to bottom, var(--cbe-sky) calc(100% - 5rem), transparent 0); overflow-x: clip; }
.cbe-lp-hero__in { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 0; display: grid; gap: 1.75rem; }
body.seminary-cbe-demo.cbe-page main .cbe-lp-hero h1 { font-size: 3rem; line-height: 0.98; font-weight: 800; margin: 0; }
.cbe-lp-hero h1 span { display: block; }
.cbe-lp-accent { color: var(--cbe-cobalt); }
.cbe-lp-lede { font-size: 1.125rem; line-height: 1.55; color: var(--cbe-ink); max-width: 34rem; margin: 1.5rem 0 0; }
.cbe-lp-slides { position: relative; overflow: hidden; margin: 0 -1rem; aspect-ratio: 3 / 2; background: var(--cbe-sky-soft); }
.cbe-lp-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cbe-lp-slides img + img { display: none; }
.cbe-lp-pause { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--cbe-page); color: var(--cbe-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--cbe-shadow); }
.cbe-lp-pause[hidden] { display: none; }
.cbe-lp-pause svg { width: 16px; height: 16px; fill: currentColor; }
.cbe-lp-play { display: none; }
.cbe-lp-pause[aria-pressed="true"] .cbe-lp-bars { display: none; }
.cbe-lp-pause[aria-pressed="true"] .cbe-lp-play { display: inline; }
.cbe-lp-doors { display: grid; gap: 0.875rem; }
.cbe-lp-door { position: relative; border-radius: 1.1rem; padding: 1.4rem; background: var(--cbe-page); border: 1px solid var(--cbe-divider); box-shadow: var(--cbe-shadow); }
.cbe-lp-door h2 { margin: 0 0 0.4rem; }
.cbe-lp-door p { max-width: 36rem; margin: 0.5rem 0; color: var(--cbe-slate-dark); }
.cbe-lp-door--primary { background: var(--cbe-cobalt); border-color: var(--cbe-cobalt); }
body.seminary-cbe-demo.cbe-page main .cbe-lp-door--primary h2, .cbe-lp-door--primary p, .cbe-lp-door--primary li { color: var(--cbe-page); }
.cbe-lp-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cbe-lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6rem 1.25rem; border-radius: 12px; font-weight: 800; border: 2px solid var(--cbe-ink); background: var(--cbe-ink); color: var(--cbe-page); margin-top: 0.75rem; }
main.cbe-main--landing a.cbe-lp-btn--light { background: var(--cbe-page); border-color: var(--cbe-page); color: var(--cbe-cobalt-dark); }
main.cbe-main--landing a.cbe-lp-btn--outline { background: var(--cbe-page); border-color: var(--cbe-ink); color: var(--cbe-ink); }
main.cbe-main--landing a.cbe-lp-btn--outline:hover { background: var(--cbe-ink); color: var(--cbe-page); }
.cbe-lp-steps { list-style: none; margin: 0.875rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.cbe-lp-steps li { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; }
.cbe-lp-steps span { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--cbe-page); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; }
.cbe-lp-sec { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1rem 1.75rem; }
.cbe-lp-sec h2, .cbe-lp-band h2 { font-size: 2rem; }
body.seminary-cbe-demo.cbe-page main .cbe-lp-sec h2, body.seminary-cbe-demo.cbe-page main .cbe-lp-band h2 { font-size: 2rem; }
.cbe-lp-sec__lead { max-width: 44rem; color: var(--cbe-slate-dark); font-size: 1.0625rem; }
.cbe-lp-cards { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.75rem; }
.cbe-lp-photo { overflow: hidden; border-radius: 12px; background: var(--cbe-sky-soft); }
.cbe-lp-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cbe-lp-rule { border-top: 2px solid var(--cbe-ink); padding-top: 0.875rem; margin-top: 1.1rem; }
.cbe-lp-rule p { color: var(--cbe-slate-dark); }
.cbe-lp-band { background: var(--cbe-sky); margin-top: 2rem; }
.cbe-lp-band__in { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem; display: grid; gap: 1.75rem; }
.cbe-lp-two { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cbe-lp-two li { background: var(--cbe-page); border: 1px solid var(--cbe-divider); border-radius: var(--cbe-radius); box-shadow: var(--cbe-shadow); padding: 1rem; }
.cbe-lp-two p { color: var(--cbe-slate-dark); font-size: 0.9375rem; margin: 0.4rem 0 0; }
.cbe-lp-circles { position: relative; height: 15rem; max-width: 26rem; }
.cbe-lp-circles div { position: absolute; overflow: hidden; border-radius: 999px; border: 5px solid var(--cbe-page); background: var(--cbe-sky-soft); }
.cbe-lp-circles img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbe-lp-circles div:nth-child(1) { left: 0; top: 1.5rem; width: 12rem; height: 12rem; }
.cbe-lp-circles div:nth-child(2) { left: 10rem; top: 0; width: 9rem; height: 9rem; }
.cbe-lp-circles div:nth-child(3) { left: 13.5rem; top: 7.5rem; width: 7rem; height: 7rem; }
main.cbe-main--landing .cbe-foot { margin: 2rem 1rem 0; padding-bottom: 2rem; }
@media (max-width: 380px) { body.seminary-cbe-demo.cbe-page main .cbe-lp-hero h1 { font-size: 2.6rem; } }
@media (min-width: 760px) { .cbe-lp-two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .cbe-lp-cards { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .cbe-lp-sec, .cbe-lp-band__in { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .cbe-lp-hero { background: linear-gradient(to bottom, var(--cbe-sky) calc(100% - 6rem), transparent 0); }
  .cbe-lp-hero__in { grid-template-columns: 7fr 5fr; column-gap: 3rem; padding-top: 3.5rem; }
  body.seminary-cbe-demo.cbe-page main .cbe-lp-hero h1 { font-size: 5.5rem; }
  .cbe-lp-hero__copy { align-self: center; }
  .cbe-lp-doors { grid-column: 1 / -1; grid-template-columns: 2fr 1fr; }
  .cbe-lp-doors > :only-child { grid-column: 1 / -1; }
  .cbe-lp-slides { margin: 0 calc(-1 * max(1.5rem, (100vw - 72rem) / 2 + 1rem)) 0 0; border-radius: 2rem 0 0 2rem; align-self: center; }
}

/* Motion: the hero crossfade, then the rise, fade and pop entrances. The
   waiting state and the crossfade's is-live are set by cbe_motion.js only,
   so without it the hero is a still first photo (WCAG 2.2.2: no loop without
   its pause button); nothing is hidden by default. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cbe-lp-slide { 0% { opacity: 0; transform: scale(1); } 5% { opacity: 1; } 33.3% { opacity: 1; } 38.3% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.08); } }
  @keyframes cbe-lp-rise { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
  @keyframes cbe-lp-fade { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
  @keyframes cbe-lp-pop { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
  .is-waiting { opacity: 0; }
  .cbe-lp-slides.is-live img + img { display: block; }
  .cbe-lp-slides.is-live img { opacity: 0; animation: cbe-lp-slide 36s linear infinite both; }
  .cbe-lp-slides img:nth-of-type(1) { animation-delay: -1.8s; }
  .cbe-lp-slides img:nth-of-type(2) { animation-delay: 10.2s; }
  .cbe-lp-slides img:nth-of-type(3) { animation-delay: 22.2s; }
  .cbe-lp-slides.is-paused img, .cbe-lp-slides.is-away img { animation-play-state: paused; }
  .ms-cbe-hero { animation: cbe-lp-rise 1350ms cubic-bezier(0.19, 1, 0.22, 1) both; }
  .ms-cbe-hero:nth-child(2) { animation-delay: 135ms; }
  .ms-cbe-hero:nth-child(3) { animation-delay: 270ms; }
  .ms-cbe-fade img { animation: cbe-lp-fade 1650ms cubic-bezier(0.19, 1, 0.22, 1) both; }
  .ms-cbe-pop { animation: cbe-lp-pop 1200ms cubic-bezier(0.19, 1, 0.22, 1) both; }
  .cbe-lp-steps .ms-cbe-pop { animation-name: cbe-lp-rise; }
  .cbe-lp-circles div:nth-child(2) { animation-delay: 200ms; }
  .cbe-lp-circles div:nth-child(3) { animation-delay: 400ms; }
  .cbe-lp-btn { transition: background-color 200ms ease, color 200ms ease; }
  .is-waiting .ms-cbe-fade img, .is-waiting .ms-cbe-pop { animation-play-state: paused; }
}
