:root {
  --gold: #fbb133;
  --gold-dark: #d9932035;
  --gold-soft: #fbb13322;
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-elev: #1b1b1b;
  --ink: #f4f1ea;
  --ink-dim: #b8b3a8;
  --line: #2a2a2a;
  --radius: 14px;
  --ff-display: "Playfair Display", serif;
  --ff-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.header__inner .brand__mark {
  width: 52px;
  height: 52px;
}
.brand__text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { color: var(--ink-dim); transition: color 0.2s; position: relative; }
.nav a:hover { color: var(--gold); }
.nav__cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav__cta:hover { background: #ffc457; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  padding: 150px 0 90px;
}

/* ambient animated blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.hero__blob--a {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  animation: blobFloat 14s ease-in-out infinite;
}
.hero__blob--b {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: -60px;
  opacity: 0.16;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  animation: blobFloat 16s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(251,177,51,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__text { max-width: 680px; }
.hero__text.editorial-rule { padding-left: 18px; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.reveal-up {
  opacity: 0;
  animation: revealUp 0.9s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
.reveal-in {
  opacity: 0;
  animation: revealIn 1.1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 22px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--dark { color: var(--gold); }

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

/* editorial-rule — from design/design.md, components.editorial-rule.
   Grounds a text-only column that lacks another visual anchor (image, card grid). */
.editorial-rule {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid rgba(251,177,51,0.22);
}

/* caption-stack — from design/design.md, components.caption-stack.
   Script line overlaps the display line's cap-height; scoped to the hero title only. */
.hero__title {
  margin: 0 0 34px;
  display: flex;
  flex-direction: column;
}
.hero__title-script {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  color: #fff;
  line-height: 1;
  margin-bottom: -0.3em;
  z-index: 1;
}
.hero__title-display {
  font-family: "Anton", "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(4.2rem, 10.5vw, 7.8rem);
  line-height: 0.9;
  color: var(--gold);
  -webkit-text-stroke: 1.5px #0a0a0a;
  text-shadow:
    1.5px 0 0 #0a0a0a,
    -1.5px 0 0 #0a0a0a,
    0 1.5px 0 #0a0a0a,
    0 -1.5px 0 #0a0a0a;
}
.hero__verse {
  position: relative;
  margin: 40px 0 0;
  padding: 0 0 0 4px;
}
.hero__verse-mark {
  position: absolute;
  top: -30px;
  left: -2px;
  font-family: var(--ff-display);
  font-size: 3.4rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
}
.hero__verse p {
  margin: 0 0 12px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #ece8de;
}
.hero__verse cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__verse--lg p {
  font-size: 1.45rem;
  line-height: 1.42;
}
.hero__verse--lg cite {
  font-size: 0.85rem;
}

/* ---------- Hero media (video is a full-bleed background filling the right half) ---------- */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.35) 18%, transparent 42%, transparent 100%);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251,177,51,0.4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(251,177,51,0.6);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(251,177,51,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(251,177,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,177,51,0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn--primary {
  background: var(--gold);
  color: var(--black);
}
.btn--primary:hover {
  background: #ffc457;
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(244,241,234,0.4);
  color: #fff;
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--block { width: 100%; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 46px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 26px; }
  100% { opacity: 0; top: 26px; }
}

/* ---------- Section basics ---------- */
.section { padding: 110px 0; }
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 16px;
  color: #fff;
}
.section-lead {
  color: var(--ink-dim);
  max-width: 620px;
  font-size: 1.05rem;
  margin: 0 0 50px;
}

/* ---------- Sobre ---------- */
.sobre { background: var(--black-soft); }
.sobre__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.sobre__media { position: relative; padding: 14px; }
.sobre__media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* viewfinder-frame — from design/design.md, components.viewfinder-frame.
   Corner brackets instead of a rounded card + accent square; nods to the
   church's own footage/broadcast aesthetic (see design.md Section 1.2). */
.frame-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid var(--gold);
  pointer-events: none;
}
.frame-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.frame-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.frame-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.frame-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }
.sobre__text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 22px;
  color: #fff;
}
.sobre__text p {
  color: var(--ink-dim);
  margin: 0 0 18px;
  font-size: 1.02rem;
}
.sobre__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--ff-display);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 700;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Cultos ---------- */
.cultos { text-align: center; }
.cultos .eyebrow, .cultos .section-title, .cultos .section-lead { margin-left: auto; margin-right: auto; }
.cultos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.culto-card {
  position: relative;
  background: var(--black-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.culto-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.culto-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.culto-card:hover::before { transform: scaleX(1); }
.culto-card--highlight::before { display: none; }
.culto-card--highlight {
  background: linear-gradient(160deg, var(--gold), #e08c1f);
  color: var(--black);
}
.culto-card__day {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
}
.culto-card--highlight .culto-card__day { color: var(--black); opacity: 0.75; }
.culto-card__time {
  font-family: "Anton", "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 2.8rem;
}
.culto-card__name {
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.culto-card--highlight .culto-card__name { color: rgba(10,10,10,0.75); }

/* ---------- Galeria ---------- */
.galeria { background: var(--black-soft); padding-bottom: 90px; }
.galeria .container { margin-bottom: 10px; }
.galeria__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 0 24px 10px;
  scroll-snap-type: x mandatory;
  mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}
.galeria__strip img {
  scroll-snap-align: start;
  height: 340px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.15);
  transition: filter 0.3s ease;
}
.galeria__strip img:hover { filter: grayscale(0); }
.galeria__strip::-webkit-scrollbar { height: 8px; }
.galeria__strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
.galeria__strip::-webkit-scrollbar-track { background: var(--black-elev); }

/* ---------- App download ---------- */
.app-download {
  position: relative;
  background: var(--black-soft);
  text-align: center;
  overflow: hidden;
}
.app-download__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold), transparent 70%);
  opacity: 0.12;
  filter: blur(60px);
  pointer-events: none;
}
.app-download__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.app-download .eyebrow,
.app-download .section-title,
.app-download .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.app-download__title {
  font-family: "Anton", "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.app-download__badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid rgba(251,177,51,0.35);
  border-radius: 12px;
  background: var(--black-elev);
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: var(--black);
}
.store-badge__icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
}
.store-badge span {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.store-badge small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Legal (privacy policy) ---------- */
.legal { padding-top: 160px; }
.legal__container { max-width: 760px; }
.legal__updated {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin: 0 0 50px;
}
.legal__body h2 {
  font-family: var(--ff-display);
  color: var(--gold);
  font-size: 1.3rem;
  margin: 40px 0 14px;
}
.legal__body p {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 16px;
}
.legal__body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-dim);
}
.legal__body li { list-style: disc; margin-bottom: 8px; line-height: 1.6; }
.legal__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal__back { margin-top: 50px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-dim); }
.footer__nav a:hover { color: var(--gold); }
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer__copy { color: var(--ink-dim); font-size: 0.82rem; margin: 0; }
.footer__privacy { color: var(--ink-dim); font-size: 0.82rem; }
.footer__privacy:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sobre__grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre__media img { height: 380px; }
  .cultos__grid { grid-template-columns: repeat(2, 1fr); }

  /* below desktop the video can't hold a full-height right half without
     crowding the text — it becomes a top band instead */
  .hero { flex-direction: column; align-items: stretch; padding-top: 130px; }
  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 60vw;
    max-height: 440px;
    margin-bottom: 40px;
  }
  .hero__media-fade {
    background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,0.95) 100%);
  }
  .hero__text { max-width: 100%; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--black-soft);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--line);
  }
  .nav.is-open { right: 0; }
  .nav-toggle { display: flex; }
  .nav__cta { margin-top: 10px; }
  .section { padding: 80px 0; }
  .cultos__grid { grid-template-columns: 1fr; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__legal { justify-content: center; }
  .hero { padding: 130px 0 70px; }
  .editorial-rule { padding-left: 20px; }
  .hero__verse-mark { top: -24px; font-size: 2.8rem; }
  /* below ~600px the overlapping caption-stack clips descenders — flatten it */
  .hero__title-script { margin-bottom: 2px; }
  .hero__title-display { font-size: clamp(2.6rem, 15vw, 3.6rem); }
}
