/* Catholic Treasures page: the app keeps its own look (Milky Way, gold, Playfair Display and Inter)
   inside the shared Ibi Pax header and footer from site.css. */

.page-ct {
  --ct-void: #05070a;
  --ct-gold: #d4af37;
  --ct-link: #e6c65a;
  --ct-text: rgba(255, 255, 255, 0.96);
  --ct-muted: rgba(255, 255, 255, 0.72);
  --ct-dim: rgba(255, 255, 255, 0.62);
  --ct-line: rgba(212, 175, 55, 0.22);
  --ct-grid-line: #2a2516;
  --ct-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ct-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ct-void);
}
.page-ct main { font-family: var(--ct-sans); color: var(--ct-text); }
.page-ct main a { color: var(--ct-link); }

/* The night sky from the original site: the Milky Way stays fixed behind the whole page under a
   dark veil, and every section is see-through, so the stars show while the content scrolls past. */
.page-ct::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: -1;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 60, 90, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(5, 7, 10, 0.62), rgba(5, 7, 10, 0.62)),
    url(../img/catholic-treasures/milky-way.webp) center / cover no-repeat var(--ct-void);
}

/* A few gold motes drifting across the sky, also from the original site. */
.ct-motes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ct-motes span { position: absolute; border-radius: 50%; background: rgba(212, 175, 55, 0.6); opacity: 0; animation: ct-drift 20s ease-in-out infinite; }
.ct-motes span:nth-child(1) { width: 2px; height: 2px; top: 12%; left: 8%; animation-duration: 18s; animation-delay: 1s; }
.ct-motes span:nth-child(2) { width: 3px; height: 3px; top: 58%; left: 82%; animation-duration: 22s; animation-delay: 3s; }
.ct-motes span:nth-child(3) { width: 1.5px; height: 1.5px; top: 33%; left: 72%; animation-duration: 20s; animation-delay: 2s; }
.ct-motes span:nth-child(4) { width: 2px; height: 2px; top: 77%; left: 22%; animation-duration: 25s; animation-delay: 4s; }
.ct-motes span:nth-child(5) { width: 1px; height: 1px; top: 44%; left: 91%; animation-duration: 16s; animation-delay: 2.5s; }
.ct-motes span:nth-child(6) { width: 2.5px; height: 2.5px; top: 86%; left: 51%; animation-duration: 21s; animation-delay: 3.5s; }
@keyframes ct-drift {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  25% { opacity: 0.5; }
  50% { opacity: 0.7; transform: translate(15px, -40px); }
  75% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) { .ct-motes { display: none; } }

/* The shared header and footer let the sky through on this page too. */
.page-ct .site-header { background: rgba(5, 7, 10, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.page-ct .site-footer { background: rgba(0, 0, 0, 0.8); }
@media (max-width: 860px) { .js .page-ct .nav-links { background: var(--ct-void); } }

.ct-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ct-gold); }
.ct-title { font-family: var(--ct-serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; color: #fff; }
.ct-rule { width: 48px; height: 1px; background: var(--ct-gold); margin: 26px auto 0; }
.ct-text { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--ct-muted); text-wrap: pretty; }
.ct-head { max-width: 720px; margin: 0 auto; text-align: center; }
.ct-head .ct-text { margin-top: 26px; }
.ct-head .ct-text, .ct-mission .ct-text, .ct-download .ct-text { text-wrap: balance; }

/* Hero: no veil of its own beyond a shade behind the text, so the sky reads brightest here. */
.ct-hero {
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.6) 0%, rgba(5, 7, 10, 0.2) 50%, rgba(5, 7, 10, 0) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}
.ct-hero__inner {
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 104px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 88px);
}
.ct-hero__copy { flex: 1 1 420px; min-width: 0; }
.ct-hero__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ct-gold); line-height: 1.5; }
.ct-hero__eyebrow img { width: 40px; border-radius: 10px; flex: none; }
/* "Discover" over "Catholic Treasures" in gold. The size follows the text column's width
   (cqi), so the app's name keeps to one line whether the hero is side by side or stacked. */
.ct-hero__copy { container-type: inline-size; }
.ct-wordmark {
  font-family: var(--ct-serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; color: #fff;
  font-size: clamp(40px, 4.4vw, 64px);
  font-size: clamp(34px, 11.6cqi, 64px);
}
.ct-wordmark__name { display: block; color: var(--ct-gold); }
.ct-hero__lead { text-wrap: balance; margin-top: 30px; max-width: 620px; font-family: var(--ct-serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; color: #fff; }
.ct-hero__copy .ct-text { margin-top: 14px; max-width: 540px; }
.ct-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.ct-badges img { height: 48px; width: auto; }

.phone { padding: 9px; border-radius: 40px; background: #0d0f14; border: 1px solid rgba(212, 175, 55, 0.4); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75); }
.phone img { width: 100%; aspect-ratio: 560 / 1045; object-fit: cover; border-radius: 32px; }
/* Hero phones, as in Phil's V2: the Christian Art screen in front, tilted, and the Saints Calendar behind it.
   Tablets and phones show the front one alone. */
.ct-phones { flex: 1 1 420px; min-width: 0; position: relative; max-width: 550px; margin-inline: auto; }
.ct-phones .phone { padding: 6px; border-radius: 12% / 7%; background: #090c12; border-color: #a69b7a; }
.ct-phones .phone img { border-radius: 10% / 6%; }
.ct-phones .phone--front { position: relative; z-index: 1; width: 58%; margin-left: 3%; transform: rotate(-2deg); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 80px rgba(212, 175, 55, 0.12); }
.ct-phones .phone--back { position: absolute; top: 14%; right: 0; width: 46%; transform: rotate(4deg); }
@media (max-width: 860px) {
  .ct-phones { max-width: 300px; }
  .ct-phones .phone--front { width: 100%; margin: 0; transform: none; }
  .ct-phones .phone--back { display: none; }
}
@media (max-width: 670px) {
  .ct-phones { max-width: min(70vw, 280px); }
}

/* Sections: see-through veils over the sky, as on the original site. */
.ct-section { padding: clamp(80px, 10vw, 128px) 0; background: rgba(5, 7, 10, 0.68); }
.ct-section--alt { background: rgba(5, 7, 10, 0.75); border-top: 1px solid rgba(212, 175, 55, 0.12); border-bottom: 1px solid rgba(212, 175, 55, 0.12); padding: clamp(72px, 9vw, 112px) 0; }

/* Touch visitors browse at their own pace. The desktop marquee is enabled by site.js. */
.ct-strip__picker:not([hidden]) {
  display: grid; justify-items: center; gap: 8px; margin: 28px var(--gutter) 0;
}
.ct-strip__picker label { color: var(--ct-muted); font-size: 15px; }
.ct-strip__picker select {
  max-width: 100%; min-height: 44px; padding: 6px 14px; border-radius: 8px;
  font: inherit; font-size: 16px; color: var(--ct-text); color-scheme: dark;
  background: var(--ct-void); border: 1px solid var(--ct-gold);
}
.ct-strip__picker select:focus-visible { outline: 2px solid var(--ct-gold); outline-offset: 3px; }
.ct-strip {
  --shot-w: 240px; --shot-gap: 32px;
  margin-top: clamp(48px, 6vw, 64px);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}
.ct-strip__track { display: flex; width: max-content; padding: 0 var(--gutter) 8px; list-style: none; }
.ct-strip__track > li { flex: none; width: var(--shot-w); margin-right: var(--shot-gap); }
.ct-strip__picker:not([hidden]) + .ct-strip { margin-top: 20px; }
.ct-strip:not(.is-running) { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.ct-strip:not(.is-running) .ct-strip__track { padding-inline: calc((100% - var(--shot-w)) / 2); gap: var(--shot-gap); }
.ct-strip:not(.is-running) .ct-strip__track > li { margin: 0; scroll-snap-align: center; }
.ct-strip:not(.is-running) [data-clone] { display: none; }
.ct-strip figure { text-align: center; }
.ct-strip .phone { padding: 3%; border-radius: 13% / 7%; border-color: rgba(212, 175, 55, 0.3); box-shadow: none; }
.ct-strip .phone img { border-radius: 11% / 6%; }
.ct-strip figcaption { margin-top: 14px; font-family: var(--ct-serif); font-size: 18px; line-height: 1.3; color: #fff; }

.ct-strip.is-running {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ct-strip.is-running .ct-strip__track { padding: 0; animation: ct-marquee 42s linear infinite; will-change: transform; }
.ct-strip.is-paused .ct-strip__track, .ct-strip.is-offscreen .ct-strip__track { animation-play-state: paused; }
/* Dragging (site.js): the row follows the pointer, and holds still while it is held or coasting. */
.js .ct-strip { cursor: grab; -webkit-user-select: none; user-select: none; }
.js .ct-strip.is-dragging { cursor: grabbing; }
.ct-strip img { -webkit-user-drag: none; }
.ct-strip.is-running { touch-action: pan-y; }
.ct-strip.is-dragging .ct-strip__track, .ct-strip.is-gliding .ct-strip__track { animation-play-state: paused; }
.ct-strip.is-dragging, .ct-strip.is-settling { scroll-snap-type: none; }
@media (hover: hover) { .ct-strip.is-running:hover .ct-strip__track { animation-play-state: paused; } }
@keyframes ct-marquee { to { transform: translateX(-50%); } }

.ct-strip__bar { display: flex; justify-content: center; }
.ct-strip__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  margin-top: 24px;
  border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.45); background: rgba(5, 7, 10, 0.45); color: var(--ct-gold); cursor: pointer;
}
.ct-strip__toggle:hover { border-color: var(--ct-gold); }
.ct-strip__toggle[hidden] { display: none; }
.ct-strip__toggle[aria-pressed="true"] .ct-strip__icon-pause,
.ct-strip__toggle[aria-pressed="false"] .ct-strip__icon-play { display: none; }

/* Feature list: hairline grid with see-through cells, in rows of four, two or one so no cell is left empty. */
.ct-features {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(56px, 7vw, 80px); border: 1px solid var(--ct-grid-line);
  border-radius: 18px; overflow: hidden; list-style: none;
}
.ct-feature { padding: 28px 26px; background: rgba(10, 10, 12, 0.45); outline: 1px solid var(--ct-grid-line); }
.ct-feature__label { font-family: var(--ct-serif); font-size: 15px; color: var(--ct-gold); }
.ct-feature__title { margin: 10px 0 8px; font-family: var(--ct-serif); font-weight: 400; font-size: 22px; line-height: 1.25; color: #fff; }
.ct-feature__text { font-size: 15px; font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }

.ct-mission { max-width: 820px; margin: 0 auto; text-align: center; }
.ct-mission .ct-title { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; text-wrap: balance; }
.ct-mission .ct-text { margin-top: 26px; }
.ct-quote { margin: 34px 0 0; font-family: var(--ct-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--ct-gold); text-wrap: balance; }
.ct-quote-source { margin-top: 10px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ct-dim); }

.ct-pledge { max-width: 1100px; margin: 0 auto; text-align: center; }
.ct-pledge__number { font-family: var(--ct-serif); font-weight: 400; font-size: clamp(64px, 7vw, 96px); line-height: 1; color: var(--ct-gold); }
.ct-pledge__label { margin-top: 10px; font-size: 17px; color: #fff; }
.ct-pledge > .ct-text { margin: 26px auto 0; max-width: 680px; }
.ct-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 48px; text-align: left; list-style: none; }
.ct-pillar { padding: 26px; border-radius: 16px; border: 1px solid var(--ct-line); background: rgba(255, 255, 255, 0.02); }
.ct-pillar h3 { margin: 14px 0 6px; font-family: var(--ct-serif); font-weight: 400; font-size: 21px; color: #fff; }
.ct-pillar p { font-size: 15px; font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.ct-pledge__note { margin-top: 34px; font-size: 15px; font-weight: 300; color: rgba(255, 255, 255, 0.66); }

.ct-download { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ct-download__icon { width: 84px; border-radius: 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); }
.ct-download .ct-eyebrow { margin-top: 26px; }
.ct-download .ct-title { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; }
.ct-download .ct-text { margin-top: 18px; }
.ct-download .ct-badges { justify-content: center; margin-top: 30px; }

@media (max-width: 999px) {
  .ct-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ct-strip { --shot-w: min(70vw, 264px); --shot-gap: 20px; }
}
@media (max-width: 600px) {
  .ct-hero { background: none; }
  .ct-hero__inner { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
  .ct-hero__eyebrow { letter-spacing: 0.22em; }
  .ct-badges img { height: 44px; }
  .ct-section { padding: 72px 0; }
  .ct-section--alt { padding: 64px 0; }
  .ct-strip { margin-top: 40px; }
  .ct-strip figcaption { margin-top: 10px; font-size: 18px; }
  .ct-feature { padding: 24px 22px; }
  .ct-pillars { margin-top: 36px; }
}
@media (max-width: 559px) {
  .ct-features { grid-template-columns: minmax(0, 1fr); }
}
