:root {
  --navy: #17304f;
  --navy-glass: rgba(25, 48, 76, 0.84);
  --gold: #b88634;
  --gold-light: #e2b967;
  --ivory: #fffaf2;
  --text-width: min(46vw, 52rem);
  --page-x: clamp(4rem, 8vw, 10rem);
  --scene-gap: clamp(2.5rem, 6vh, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ivory);
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main {
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(226, 185, 103, 0.18),
      transparent 34%
    ),
    var(--ivory);
}
a {
  color: inherit;
}
button {
  font: inherit;
}
.mobile-copy {
  display: none;
}
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  position: fixed;
  top: 2rem;
  right: var(--page-x);
  left: var(--page-x);
  z-index: 40;
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(30, 53, 80, 0.9),
    rgba(47, 65, 84, 0.8)
  );
  box-shadow:
    0 10px 30px rgba(21, 39, 58, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(18px);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  text-decoration: none;
}
.site-brand span {
  color: var(--gold-light);
  font-size: 1.8rem;
}
.menu-button {
  display: grid;
  width: 2.15rem;
  gap: 0.32rem;
  margin-left: auto;
  padding: 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button i {
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold-light);
}
.journey-nav {
  position: fixed;
  top: 50%;
  right: 1.4rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: var(--navy-glass);
  box-shadow: 0 10px 35px rgba(24, 39, 56, 0.2);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}
.journey-brand {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--gold-light);
  text-decoration: none;
}
.journey-dots {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.journey-dots a {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.47rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}
.journey-dots a:hover,
.journey-dots a:focus-visible,
.journey-dots a.is-active {
  border-color: var(--gold-light);
  background: rgba(226, 185, 103, 0.2);
  color: #fff;
  outline: none;
}
.scene {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.scene + .scene {
  margin-top: var(--scene-gap);
}
.scene::before,
.scene::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  height: 12vh;
  content: "";
  pointer-events: none;
}
.scene::before {
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 250, 242, 0.9),
    rgba(255, 250, 242, 0)
  );
}
.scene::after {
  bottom: 0;
  background:
    radial-gradient(
      circle at 74% 100%,
      rgba(226, 185, 103, 0),
      transparent 24%
    ),
    linear-gradient(0deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 0));
}
.scene-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  will-change: transform, opacity, clip-path, filter;
}
.scene-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}
.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(255, 251, 245, 0.97) 0%,
    rgba(255, 251, 245, 0.92) 25%,
    rgba(255, 251, 245, 0.56) 42%,
    rgba(255, 251, 245, 0.04) 67%,
    transparent 100%
  );
}

/* Desktop/tablet narrative rhythm: text alternates sides while images stay intact. */
@media (min-width: 900px) {
  .scene:nth-of-type(even) .scene-shade {
    transform: scaleX(-1);
  }

  .scene:nth-of-type(even) .scene-content,
  .scene:nth-of-type(even) .prayer-panel {
    margin-right: 1rem;
    margin-left: auto;
  }

  .scene:nth-of-type(even) .scroll-cue {
    right: var(--page-x);
    left: auto;
  }
}
.scene-content {
  position: relative;
  z-index: 3;
  width: var(--text-width);
  margin-left: 4rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
  text-wrap: balance;
}
.eyebrow {
  margin: 0 0 0.85rem;
  color: #9d681d;
  font-size: clamp(0.72rem, 0.85vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.32em;
}
.scene h1,
.scene h2 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 5.5vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.047em;
  line-height: 0.93;
}
.scene h2 {
  font-size: clamp(3.6rem, 4.8vw, 6.2rem);
}
.lead {
  max-width: 34ch;
  margin: 0.5rem 0 1rem;
  color: #263f5c;
  font-size: clamp(1.08rem, 1.3vw, 1.4rem);
  line-height: 1.5;
}
.scripture-ref {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: #ae7727;
  font-size: 1.05rem;
  margin-top: 1rem;
}
.scripture-ref span {
  width: 2.6rem;
  height: 1px;
  background: rgba(174, 119, 39, 0.65);
}
.verse {
  max-width: 36ch;
  margin: 1.5rem 0 1rem;
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 35px rgba(55, 58, 63, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  line-height: 1.5;
  backdrop-filter: blur(14px);
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  width: clamp(10rem, 16vw, 19rem);
  aspect-ratio: 1796 / 306;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: url("https://res.cloudinary.com/dzkmso2u/image/upload/f_auto,q_auto/v1788747178/la-gran-comision/assets/boton.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 14px rgba(41, 21, 8, 0.24));
  text-decoration: none;
  animation: button-float 2.8s ease-in-out infinite;
}
.scroll-cue:focus-visible {
  outline: 2px solid rgba(226, 185, 103, 0.85);
  outline-offset: 4px;
}
.scroll-cue span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.arrow-icon {
  display: none;
}
.arrow-icon::before {
  position: absolute;
  top: 0.1rem;
  left: 0.45rem;
  width: 1.5px;
  height: 0.68rem;
  border-radius: 2px;
  background: var(--gold);
  content: "";
}
.arrow-icon::after {
  position: absolute;
  right: 0.18rem;
  bottom: 0.05rem;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}
.scroll-cue--up .arrow-icon {
  transform: rotate(180deg);
}
.share-button,
.back-to-top {
  display: none;
}
.prayer-panel {
  position: relative;
  z-index: 3;
  width: min(53vw, 62rem);
  margin-left: var(--page-x);
  padding: 2.1rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 55px rgba(52, 55, 58, 0.1);
  backdrop-filter: blur(18px);
}
.prayer-panel blockquote {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.28vw, 1.4rem);
  line-height: 1.48;
}

.padding {
  padding: 10px;
  color: #000;
}

.prayer-panel blockquote::before,
.prayer-panel blockquote::after {
  position: absolute;
  color: var(--gold);
  font-size: 4rem;
  line-height: 1;
}
.prayer-panel blockquote::before {
  top: -0.4rem;
  left: -1.4rem;
  content: "“";
}
.prayer-panel blockquote::after {
  right: -0.9rem;
  bottom: -2rem;
  content: "”";
}
.prayer-panel p {
  margin: 0 0 0.9rem;
}
.prayer-panel p:last-child {
  margin-bottom: 0;
}
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.next-steps li {
  display: grid;
  min-height: 6.5rem;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
  backdrop-filter: blur(14px);
}
.next-steps span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--gold);
}
.next-steps svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene--new-life .next-steps li {
  min-height: 5.25rem;
  gap: 0.3rem;
  padding: 0.65rem 1rem;
  border: 1px solid #e3b85f;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #183553 0%, #0f2741 100%);
  box-shadow:
    inset 0 0 0 2px rgba(6, 22, 39, 0.9),
    0 0 0 1px rgba(226, 185, 103, 0.88),
    0 5px 12px rgba(14, 29, 44, 0.24);
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  line-height: 1.15;
  backdrop-filter: none;
}
.scene--new-life .next-steps span {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--gold-light);
}
.scene--new-life .next-steps svg {
  stroke-width: 1.75;
}
.scene--new-life .next-steps.next-steps--compact {
  width: min(50vw, 46rem);
  margin-right: auto;
  margin-left: 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;
}
@keyframes cue-bounce {
  0%,
  100% {
    translate: 0 -1px;
  }
  50% {
    translate: 0 3px;
  }
}

@keyframes button-float {
  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 1099px) {
  :root {
    --page-x: clamp(2rem, 5vw, 4rem);
    --text-width: min(48vw, 34rem);
  }
  .site-header {
    top: 1.25rem;
  }
  .scene h1,
  .scene h2 {
    font-size: clamp(3.2rem, 5.5vw, 5rem);
  }
  .prayer-panel {
    width: min(68vw, 48rem);
  }
}

@media (max-width: 899px) {
  :root {
    --page-x: 1rem;
    --scene-gap: 0;
    --text-width: calc(100vw - 2rem);
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .scene {
    position: fixed;
    inset: 0;
    display: none;
    height: 100svh;
    min-height: 38rem;
  }

  .scene.is-active {
    display: flex;
  }

  .scene + .scene {
    margin-top: 0;
  }

  .scene::before,
  .scene::after,
  .scene-shade {
    display: none;
  }

  .scene-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Content is visually replaced only when a legacy baked mockup is used. */
  .scene-content,
  .prayer-panel {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* The first clean scenes use real, selectable HTML over text-free artwork. */
  .scene--mobile-html .scene-content,
  .scene--mobile-html .prayer-panel {
    position: absolute;
    top: clamp(2.25rem, 6svh, 4rem);
    right: 1.25rem;
    left: 1.25rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    text-align: center;
    white-space: normal;
  }

  .scene--mobile-html .scene-content {
    top: clamp(1.5rem, 4svh, 3rem);
  }

  .scene--mobile-html .eyebrow {
    margin-bottom: 0.55rem;
    font-size: clamp(0.65rem, 2.7vw, 0.82rem);
    letter-spacing: 0.3em;
  }

  .scene--mobile-html h1,
  .scene--mobile-html h2 {
    max-width: 15ch;
    margin-inline: auto;
    font-size: clamp(2.75rem, 12vw, 4.6rem);
    line-height: 0.96;
  }

  .scene--mobile-html h2 {
    font-size: clamp(2.3rem, 9.5vw, 3.7rem);
  }

  .scene--mobile-html .scripture-ref {
    justify-content: center;
    margin-top: 0.65rem;
    font-size: clamp(0.86rem, 3.5vw, 1rem);
  }

  .scene--mobile-html .scripture-ref span {
    width: clamp(1.5rem, 8vw, 2.6rem);
  }

  .scene--mobile-html .lead {
    max-width: 36ch;
    margin: 0.7rem auto 0;
    font-size: clamp(1.05rem, 5.25vw, 2.3rem);
    line-height: 1.42;
  }

  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: block;
  }

  .scene--response .scene-content {
    padding: 1rem;
    border: 1px solid rgba(184, 134, 52, 0.35);
    border-radius: 1.25rem;
    background: rgba(255, 250, 242, 0.76);
    box-shadow: 0 12px 35px rgba(23, 48, 79, 0.1);
    backdrop-filter: blur(10px);
  }

  .scene--prayer .prayer-panel {
    top: 50%;
    right: 1rem;
    left: 1rem;
    padding: clamp(1rem, 3.5vw, 1.5rem);
    border-radius: 1.4rem;
    transform: translateY(-53%);
  }

  .scene--prayer .prayer-panel blockquote {
    font-size: clamp(1.05rem, 7vw, 2.35rem);
    line-height: 1.48;
  }

  .scene--prayer .prayer-panel p {
    margin-bottom: 0.55rem;
  }

  .scene--new-life .scene-content {
    top: clamp(1.25rem, 3svh, 2.25rem);
  }

  .scene--new-life .new-life-copy p:last-child {
    margin: 0.55rem 0 0;
    color: #ae7727;
    font-size: 0.9rem;
  }

  .scene--new-life .next-steps.next-steps--compact {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
  }

  .scene--new-life .next-steps li {
    min-height: 5.6rem;
    padding: 0.65rem 0.45rem;
    font-size: clamp(0.8rem, 3.2vw, 1rem);
  }

  .scene--new-life .next-steps li:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 0.325rem);
    justify-self: center;
  }

  .scene--new-life .next-steps span {
    width: 2.15rem;
    height: 2.15rem;
  }

  /* Accessible tap target placed over the button drawn in each mockup. */
  .scroll-cue,
  .scene:nth-of-type(even) .scroll-cue {
    right: 0;
    bottom: 2.2svh;
    left: 0;
    width: min(78vw, 22rem);
    height: auto;
    aspect-ratio: 1796 / 306;
    background: url("https://res.cloudinary.com/dzkmso2u/image/upload/f_auto,q_auto/v1788747178/la-gran-comision/assets/boton.webp") center / contain no-repeat;
    filter: drop-shadow(0 8px 12px rgba(41, 21, 8, 0.28));
    animation: button-float 2.8s ease-in-out infinite;
  }

  .scroll-cue:focus-visible {
    border-radius: 999px;
  }

  .scene--new-life .share-button {
    position: absolute;
    right: 0;
    bottom: 2.2svh;
    left: 0;
    z-index: 6;
    display: block;
    width: min(84vw, 24rem);
    aspect-ratio: 2172 / 315;
    margin-inline: auto;
    padding: 0;
    border: 0;
    background: url("https://res.cloudinary.com/dzkmso2u/image/upload/f_auto,q_auto/v1788747179/la-gran-comision/assets/compartir.webp") center / contain no-repeat;
    filter: drop-shadow(0 8px 12px rgba(59, 15, 8, 0.28));
    cursor: pointer;
  }

  .scene--new-life .share-button svg,
  .scene--new-life .share-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .scene--new-life .back-to-top {
    position: absolute;
    right: 1rem;
    bottom: calc(2.2svh + 4.5rem);
    z-index: 7;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1.5px solid var(--gold-light);
    border-radius: 50%;
    background: #173b5f;
    box-shadow: 0 8px 20px rgba(23, 48, 79, 0.3);
    color: var(--gold-light);
    text-decoration: none;
  }

  .scene--new-life .back-to-top svg {
    width: 1.45rem;
    height: 1.45rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (min-width: 900px) {
  html,
  body {
    overflow-y: hidden;
  }

  .scene:nth-of-type(even) .scroll-cue {
    right: 0;
    left: 0;
  }

  .scene h1 {
    font-size: clamp(5.4rem, 7.2vw, 8.8rem);
  }

  .scene h2 {
    max-width: 15ch;
    font-size: clamp(4.5rem, 6vw, 7.4rem);
  }

  .lead {
    max-width: 55ch;
  }

  .verse {
    max-width: 44ch;
  }

  .scene.scene--prayer .prayer-panel.prayer-panel--centered {
    width: min(60vw, 72rem);
    margin-right: auto;
    margin-left: auto;
  }

  .scene--prayer .prayer-panel--centered blockquote {
    font-size: clamp(1.25rem, 1.5vw, 1.65rem);
    line-height: 1.55;
  }

  .scene.scene--new-life .scene-content.scene-content--new-life-centered {
    width: min(72vw, 72rem);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .scene--new-life .scene-content--new-life-centered h2,
  .scene--new-life .scene-content--new-life-centered .lead {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .scene--new-life .scene-content--new-life-centered .scripture-ref {
    justify-content: center;
  }

  .scene--new-life .scene-content--new-life-centered .new-life-copy {
    position: relative;
    top: -12vh;
  }

  .scene--new-life > .scroll-cue--up {
    display: none;
  }

  .share-button {
    position: absolute;
    right: 0;
    bottom: 2rem;
    left: 0;
    z-index: 6;
    display: inline-flex;
    width: clamp(18rem, 28vw, 30rem);
    aspect-ratio: 2172 / 315;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    padding: 0;
    border: 0;
    background: url("https://res.cloudinary.com/dzkmso2u/image/upload/f_auto,q_auto/v1788747179/la-gran-comision/assets/compartir.webp") center / contain no-repeat;
    filter: drop-shadow(0 8px 12px rgba(59, 15, 8, 0.25));
    cursor: pointer;
  }

  .share-button svg,
  .share-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .back-to-top {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 6;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(226, 185, 103, 0.9);
    border-radius: 50%;
    background: rgba(23, 48, 79, 0.92);
    box-shadow: 0 6px 16px rgba(18, 35, 54, 0.24);
    color: var(--gold-light);
  }

  .back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

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

  *:not(.scroll-cue),
  *:not(.scroll-cue)::before,
  *:not(.scroll-cue)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
