/* p.message <into> */
:root {
    --navy-950: #0b1320;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --slate-700: #334155;
    --blue-700: #1d3557;
    --gold: #d4af37;
    --gold-light: #f3dc7a;
    --gold-soft: #eadb9b;
    --silver: #c0c7d1;
    --silver-light: #edf1f5;
    --white: #ffffff;
    --off-white: #f8fafc;
    --ink: #172033;
    --muted: #64748b;
    --page-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 55%, #1d3557 78%, #0b1320 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body {
    height: 100vh;
    overflow: hidden !important;
    position: fixed;
    inset: 0;
    background: var(--page-gradient);
    color: var(--white);
    font-family: "Bodoni Moda", Georgia, serif;
}
button { font: inherit; }


.main-header { position: fixed; top: 0; left: 0; width: 100%; min-height: 104px; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px 110px 13px; text-align: center; background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.93) 45%, rgba(29,53,87,.95), rgba(11,19,32,.98)); border-bottom: 1px solid rgba(212,175,55,.42); box-shadow: 0 12px 36px rgba(3,8,20,.28), inset 0 -1px 0 rgba(255,255,255,.05); backdrop-filter: blur(18px); animation: headerDrop .9s cubic-bezier(.22,1,.36,1) both; }
.main-header::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: min(520px, 60vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--silver), var(--gold-light), var(--silver), transparent); opacity: .9; }
.header-kicker { color: var(--silver-light); font-family: "Bodoni Moda", serif; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .82; animation: fadeDown .8s .18s both; }
.main-header h1 { margin: 2px 0 3px; font-family: Cinzel, serif; font-size: clamp(1.65rem, 2.2vw, 2.25rem); font-weight: 700; letter-spacing: .06em; color: #fff7dc; text-shadow: 0 2px 20px rgba(212,175,55,.28); animation: fadeDown .8s .28s both; }
.header-rule { width: 86px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent); animation: ruleGrow .8s .42s both; }

.carousel-section { position: relative; width: 100%; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 110px 0 16px;
    background:
        radial-gradient(circle at 14% 24%, rgba(212,175,55,.13), transparent 25%),
        radial-gradient(circle at 84% 24%, rgba(192,199,209,.12), transparent 28%),
        radial-gradient(circle at 55% 85%, rgba(255,255,255,.07), transparent 27%),
        var(--page-gradient) !important;
    background-size: 150% 150%; animation: backgroundDrift 18s ease-in-out infinite;
}
.carousel-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .34;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 54px 54px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.carousel-section::after { content: ""; position: absolute; width: 650px; height: 650px; left: 50%; top: 53%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(212,175,55,.10); box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(192,199,209,.018); pointer-events: none; animation: haloPulse 7s ease-in-out infinite; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; opacity: .6; }
.orb-one { width: 220px; height: 220px; left: -70px; top: 24%; background: radial-gradient(circle, rgba(212,175,55,.20), transparent 70%); animation: floatOne 9s ease-in-out infinite; }
.orb-two { width: 260px; height: 260px; right: -90px; bottom: 8%; background: radial-gradient(circle, rgba(192,199,209,.17), transparent 70%); animation: floatTwo 11s ease-in-out infinite; }
.orb-three { width: 170px; height: 170px; right: 17%; top: 17%; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 70%); animation: floatOne 12s 1s ease-in-out infinite reverse; }

.scroll-alert { position: fixed; top: 121px; left: 50%; transform: translateX(-50%); z-index: 9998; display: flex; align-items: center; gap: 9px; padding: 9px 17px; border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(15,23,42,.48); border: 1px solid rgba(192,199,209,.26); box-shadow: 0 8px 28px rgba(0,0,0,.18); backdrop-filter: blur(14px); font-size: .78rem; letter-spacing: .04em; white-space: nowrap; animation: alertIn 1s .7s both, alertOut .8s 4.6s forwards; }
.scroll-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px rgba(243,220,122,.8); animation: dotPulse 1.5s infinite; }
.auto-btn { position: absolute; top: 126px; right: 30px; z-index: 999; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(243,220,122,.48); background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,241,245,.93)); color: var(--navy-900); padding: 10px 18px; border-radius: 999px; font-family: Cinzel, serif; font-size: .78rem; font-weight: 700; letter-spacing: .03em; cursor: pointer; box-shadow: 0 12px 32px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.65); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; animation: controlIn .8s .55s both; }
.auto-btn:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 36px rgba(0,0,0,.24), 0 0 24px rgba(212,175,55,.10); }
.auto-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--page-gradient); color: var(--gold-light); font-size: .62rem; box-shadow: 0 4px 12px rgba(15,23,42,.25); }
.auto-btn.is-playing .auto-icon { animation: iconPulse 1.4s infinite; }

.carousel-wrapper { width: 100%; height: min(680px, calc(100vh - 112px)); min-height: 560px; position: relative; perspective: 1800px; overflow: hidden; z-index: 2; animation: stageIn 1s .2s both; }
.carousel-track { width: 100%; height: 100%; position: relative; }
.rotating-card { position: absolute; width: 390px; height: 555px; left: 50%; top: 52%; transform-style: preserve-3d; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.985), rgba(239,243,247,.97)); border: 1px solid rgba(255,255,255,.70); box-shadow: 0 30px 65px rgba(3,8,20,.30), 0 10px 25px rgba(3,8,20,.18); transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .75s ease, filter .75s ease, box-shadow .4s ease; will-change: transform, opacity; }
.rotating-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 8; background: linear-gradient(90deg, var(--silver), var(--gold), var(--gold-light), var(--silver)); }
.rotating-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29,53,87,.06); }
.card-img { width: 100%; height: 306px; display: flex; justify-content: center; align-items: center; padding: 23px 22px 10px; background: linear-gradient(180deg, #fff 0%, #f4f7fa 100%); position: relative; }
.card-img::before { content:""; position:absolute; width:230px; height:230px; border-radius:50%; background: radial-gradient(circle, rgba(212,175,55,.12), transparent 68%); }
.card-img img { position: relative; width: 218px; height: 268px; object-fit: cover; border-radius: 20px; border: 3px solid #d5b44c; box-shadow: 0 16px 32px rgba(15,23,42,.20), 0 0 0 4px #fff, 0 0 0 5px rgba(192,199,209,.65); transition: transform .55s cubic-bezier(.22,1,.36,1), filter .4s ease; }
.center:hover .card-img img { transform: scale(1.035); }
.card-content { min-height: 249px; padding: 18px 25px 23px; text-align: center; color: var(--ink); background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%); position: relative; }
.card-content::before { content:""; display:block; width:42px; height:1px; margin:0 auto 12px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card-content h2 { margin: 0 0 10px; color: var(--blue-700); font-family: Cinzel, serif; font-size: 1.22rem; line-height: 1.3; font-weight: 700; }
.card-content p { margin: 0 auto; max-width: 330px; color: #536174; font-size: .87rem; line-height: 1.58; }
.pastor-read-btn { margin-top: 15px; padding: 9px 23px; border: 1px solid #b9942d !important; border-radius: 999px; background: linear-gradient(135deg, #b9942d, #d4af37 48%, #f3dc7a) !important; color: var(--navy-900) !important; font-family: Cinzel, serif; font-size: .76rem; letter-spacing: .05em; font-weight: 700; cursor: pointer !important; position: relative; z-index: 20; box-shadow: 0 7px 18px rgba(164,126,24,.23); transition: transform .3s ease, box-shadow .3s ease, filter .3s ease; }
.pastor-read-btn:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 11px 25px rgba(164,126,24,.32); }

.center { transform: translate(-50%,-50%) translateX(0) rotateY(0) scale(1); z-index:10; opacity:1; filter:none; border-color:rgba(243,220,122,.72); box-shadow: 0 34px 78px rgba(3,8,20,.38), 0 0 0 1px rgba(212,175,55,.12), 0 0 38px rgba(212,175,55,.08); }
.left-1 { transform: translate(-50%,-50%) translateX(-330px) rotateY(37deg) scale(.84); z-index:7; opacity:.64; filter:saturate(.78) brightness(.88); }
.right-1 { transform: translate(-50%,-50%) translateX(330px) rotateY(-37deg) scale(.84); z-index:7; opacity:.64; filter:saturate(.78) brightness(.88); }
.left-2 { transform: translate(-50%,-50%) translateX(-570px) rotateY(48deg) scale(.68); z-index:4; opacity:.24; filter:saturate(.6) brightness(.7); }
.right-2 { transform: translate(-50%,-50%) translateX(570px) rotateY(-48deg) scale(.68); z-index:4; opacity:.24; filter:saturate(.6) brightness(.7); }
.hidden-card { transform: translate(-50%,-50%) scale(.48); opacity:0; z-index:1; pointer-events:none; }
.center.card-arriving .card-img img { animation: imageReveal .65s .12s both; }
.center.card-arriving .card-content h2 { animation: contentUp .55s .16s both; }
.center.card-arriving .card-content p { animation: contentUp .55s .24s both; }
.center.card-arriving .pastor-read-btn { animation: contentUp .55s .32s both; }

.details-modal { position: fixed; inset: 0; z-index: 99999; display: none; justify-content: center; align-items: center; padding: 24px; background: rgba(7,13,24,.78); backdrop-filter: blur(14px); opacity: 0; }
.details-modal.pastor-modal-active { animation: modalFade .35s both; }
.details-box { width: min(900px, 94vw); max-height: 86vh; position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(145deg, #fff, #edf1f5); border: 1px solid rgba(243,220,122,.55); box-shadow: 0 35px 100px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.6); }
.pastor-modal-active .details-box { animation: modalBoxIn .48s cubic-bezier(.22,1,.36,1) both; }
.details-box::before { content:""; position:absolute; inset:0 0 auto; height:5px; z-index:3; background:linear-gradient(90deg, var(--blue-700), var(--silver), var(--gold), var(--gold-light), var(--silver), var(--blue-700)); }
.details-content { padding: 46px 45px 40px; overflow-y:auto; max-height:86vh; color:#3d4a5d; scrollbar-width:thin; scrollbar-color: var(--gold) #e8edf2; }
.details-content h2 { color:var(--blue-700); margin:0 0 22px; padding-right:55px; font-family:Cinzel,serif; font-weight:700; font-size:1.7rem; }
.details-content p { line-height:1.82; margin-bottom:17px; color:#4f5e70; font-size:.96rem; }
.pastor-modal-close { position:absolute; top:16px; right:16px; width:44px; height:44px; display:grid; place-items:center; border:1px solid rgba(212,175,55,.75) !important; border-radius:50%; background:var(--page-gradient) !important; color:#fff7dc !important; font-family:Arial,sans-serif; font-size:24px; line-height:1; cursor:pointer !important; z-index:100001; box-shadow:0 8px 20px rgba(15,23,42,.22); transition:transform .3s ease, box-shadow .3s ease; }
.pastor-modal-close:hover { transform:rotate(90deg) scale(1.06); box-shadow:0 10px 25px rgba(212,175,55,.25); }

.exit-btn { position:fixed; right:25px; bottom:24px; width:62px; height:62px; z-index:9999; border:1px solid rgba(243,220,122,.82); border-radius:50%; background:var(--page-gradient); color:#fff4cf; font-family:Cinzel,serif; font-size:.72rem; font-weight:700; letter-spacing:.04em; cursor:pointer; box-shadow:0 14px 34px rgba(0,0,0,.28), inset 0 0 0 3px rgba(255,255,255,.035); transition:transform .3s ease, box-shadow .3s ease; animation: exitIn .8s .85s both; }
.exit-btn::before { content:""; position:absolute; inset:5px; border-radius:50%; border:1px solid rgba(192,199,209,.24); }
.exit-btn:hover { transform:translateY(-4px) scale(1.06); box-shadow:0 18px 40px rgba(0,0,0,.34), 0 0 25px rgba(212,175,55,.16); }
.exit-btn span { position:relative; z-index:1; }
.mobile-nav { display:none; }

@keyframes headerDrop { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:none; } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
@keyframes ruleGrow { from { opacity:0; transform:scaleX(.1); } to { opacity:1; transform:scaleX(1); } }
@keyframes stageIn { from { opacity:0; transform:scale(.97) translateY(18px); } to { opacity:1; transform:none; } }
@keyframes controlIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
@keyframes exitIn { from { opacity:0; transform:translateY(18px) scale(.8); } to { opacity:1; transform:none; } }
@keyframes alertIn { from { opacity:0; transform:translate(-50%,-10px); } to { opacity:1; transform:translate(-50%,0); } }
@keyframes alertOut { to { opacity:0; visibility:hidden; transform:translate(-50%,-8px); } }
@keyframes dotPulse { 50% { transform:scale(1.45); opacity:.55; } }
@keyframes iconPulse { 50% { box-shadow:0 0 0 6px rgba(212,175,55,.10); } }
@keyframes backgroundDrift { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes haloPulse { 50% { transform:translate(-50%,-50%) scale(1.045); opacity:.65; } }
@keyframes floatOne { 50% { transform:translate(24px,-22px) scale(1.08); } }
@keyframes floatTwo { 50% { transform:translate(-28px,-18px) scale(.94); } }
@keyframes imageReveal { from { opacity:.45; transform:scale(.94); } to { opacity:1; transform:scale(1); } }
@keyframes contentUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes modalFade { from { opacity:0; } to { opacity:1; } }
@keyframes modalBoxIn { from { opacity:0; transform:translateY(26px) scale(.96); } to { opacity:1; transform:none; } }

@media (max-width: 992px) {
    .rotating-card { width:310px; height:555px; }
    .left-1 { transform:translate(-50%,-50%) translateX(-235px) rotateY(31deg) scale(.78); }
    .right-1 { transform:translate(-50%,-50%) translateX(235px) rotateY(-31deg) scale(.78); }
    .left-2,.right-2 { display:none; }
    .auto-btn { right:18px; }
}
@media (max-width: 768px) {
    .main-header { min-height:92px; padding:12px 70px; }
    .header-kicker { font-size:.58rem; letter-spacing:.16em; }
    .main-header h1 { font-size:1.38rem; }
    .carousel-section { padding-top:92px; min-height:100vh; }
    .scroll-alert { top:103px; font-size:.68rem; padding:8px 12px; }
    .auto-btn { top:103px; right:12px; padding:8px 11px; }
    .auto-label { display:none; }
    .auto-icon { width:28px; height:28px; }
    .carousel-wrapper { height:calc(100vh - 92px); min-height:540px; }
    .rotating-card { width:min(300px, 78vw); height:540px; top:53%; }
    .card-img { height:292px; }
    .card-img img { width:205px; height:254px; }
    .card-content { min-height:248px; padding:17px 20px 20px; }
    .card-content h2 { font-size:1.1rem; }
    .card-content p { font-size:.82rem; line-height:1.5; }
    .left-1,.right-1 { opacity:.12; pointer-events:none; }
    .mobile-nav { display:flex; position:absolute; width:100%; justify-content:space-between; top:52%; transform:translateY(-50%); z-index:999; padding:0 10px; pointer-events:none; }
    .mobile-nav button { pointer-events:auto; width:46px; height:46px; border-radius:50%; border:1px solid rgba(243,220,122,.65); background:rgba(15,23,42,.82); color:var(--gold-light); font-size:1.25rem; box-shadow:0 8px 22px rgba(0,0,0,.25); backdrop-filter:blur(8px); }
    .details-content { padding:58px 22px 28px; }
    .details-content h2 { font-size:1.35rem; }
    .exit-btn { width:54px; height:54px; right:15px; bottom:15px; font-size:.64rem; }
}
@media (max-height: 720px) and (min-width: 769px) {
    .main-header { min-height:86px; padding:10px 100px; }
    .header-kicker { font-size:.62rem; }
    .main-header h1 { font-size:1.65rem; }
    .carousel-section { padding-top:86px; }
    .auto-btn { top:101px; }
    .scroll-alert { top:101px; }
    .carousel-wrapper { height:calc(100vh - 86px); min-height:500px; }
    .rotating-card { width:350px; height:500px; top:53%; }
    .card-img { height:270px; }
    .card-img img { width:190px; height:235px; }
    .card-content { min-height:230px; padding:13px 22px 16px; }
    .card-content h2 { font-size:1.05rem; margin-bottom:7px; }
    .card-content p { font-size:.78rem; line-height:1.45; }
    .pastor-read-btn { margin-top:10px; padding:7px 19px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
/* p.message <outo> */