/* Extracted verbatim from the approved design (cjps/index.html). Theme additions are marked. */

/* ── HERO (SPLIT) ──────────────────────────────── */
/* ── HERO (FULL-WIDTH CAROUSEL) ── */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--navy-deep);
}

.hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--navy-deep);
}

.hero-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Poster still shown until the video has enough data to play */
.hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-poster, none) center/cover no-repeat; /* theme: poster set from page fields */
    opacity: 1;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.hero-video.playing::after {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg,
            rgba(6, 14, 28, 0.95) 0%,
            rgba(6, 14, 28, 0.82) 28%,
            rgba(6, 14, 28, 0.42) 55%,
            rgba(6, 14, 28, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 120px 96px 80px;
}

.hero-left-accent {
    width: 3px;
    height: 44px;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, transparent, var(--gold));
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5vw, 74px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 660px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero-inline-stats {
    display: flex;
    gap: 40px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeUp 0.8s 1s forwards;
}

.hero-stat {
    text-align: left;
}

.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-stat-num span {
    color: var(--gold);
}

.hero-stat-lbl {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

/* Sound toggle — video autoplays muted, viewer can opt in to audio */
.hero-sound {
    position: absolute;
    right: 28px;
    bottom: 32px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
}

.hero-sound:hover {
    background: rgba(201, 168, 76, 0.25);
    border-color: var(--gold);
    color: var(--gold);
}

.hero-sound svg {
    width: 18px;
    height: 18px;
}

/* Icon swaps with state */
.hero-sound .icon-unmuted {
    display: none;
}

.hero-sound.unmuted .icon-muted {
    display: none;
}

.hero-sound.unmuted .icon-unmuted {
    display: block;
}

/* ── QUICK ACCESS ──────────────────────────────── */
.quick-access {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 28px;
    color: var(--text);
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.quick-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.35s ease;
}

.quick-card:hover::after {
    width: 100%;
}

.quick-card:hover {
    background: rgba(201, 168, 76, 0.09);
}

.quick-card:last-child {
    border-right: none;
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.quick-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.quick-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.quick-arrow {
    margin-left: auto;
    color: #B6BCC7;
    transition: color 0.2s, transform 0.2s;
}

.quick-card:hover .quick-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

.quick-arrow svg {
    width: 16px;
    height: 16px;
}

/* ── STATS ─────────────────────────────────────── */
.stats-section {
    background: var(--stone);
    padding: 72px 48px;
    position: relative;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.45), transparent);
}

.stats-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid var(--stone-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-num .suffix {
    color: var(--gold);
    font-size: 0.65em;
    vertical-align: super;
}

.stat-lbl {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── ABOUT ─────────────────────────────────────── */
.about-section {
    background: var(--offwhite);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: center;
}

.about-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.a-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
    padding: 10px 18px 12px;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.a-tab.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.a-tab-content {
    display: none;
}

.a-tab-content.active {
    display: block;
}

.about-body {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Two-image collage */
.about-images {
    position: relative;
    height: 540px;
}

/* img-main and img-secondary positioning moved to .img-main-wrap / .img-secondary-wrap */
.about-badge-float {
    position: absolute;
    right: -12px;
    top: 48%;
    transform: translateY(-50%);
    background: var(--gold);
    color: var(--navy-deep);
    padding: 20px 22px;
    border-radius: 6px;
    text-align: center;
    max-width: 110px;
    box-shadow: 0 12px 36px rgba(201, 168, 76, 0.35);
}

.badge-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
    margin-top: 4px;
    opacity: 0.75;
}

/* ── PRINCIPAL ─────────────────────────────────── */
.principal-section {
    background: var(--stone);
    position: relative;
    overflow: hidden;
}

.principal-section::before {
    content: '\201C';
    position: absolute;
    top: -80px;
    left: 72px;
    font-family: 'Playfair Display', serif;
    font-size: 500px;
    color: rgba(201, 168, 76, 0.15);
    line-height: 1;
    pointer-events: none;
}

.principal-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: center;
}

.principal-photo-wrap {
    position: relative;
}

.principal-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
}

.principal-frame {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 6px;
    pointer-events: none;
}

.principal-frame-dot {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.15;
}

.principal-tag {
    position: absolute;
    bottom: -12px;
    left: 20px;
    background: var(--gold);
    color: var(--navy-deep);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.msg-body {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 18px;
}

.principal-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 28px;
    margin-bottom: 4px;
}

.principal-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── EXPLORE BENTO ─────────────────────────────── */
.explore-section {
    background: var(--white);
}

.explore-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 14px;
    margin-top: 48px;
}

.e-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--navy-deep);
    display: block;
}

.e-card-tall {
    grid-row: span 2;
}

.e-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, opacity 0.4s;
}

.e-card:hover img {
    transform: scale(1.09);
    opacity: 0.7;
}

.e-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 14, 28, 0.95) 0%, rgba(6, 14, 28, 0.2) 55%, transparent 100%);
}

.e-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 22px;
}

.e-card-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 7px;
}

.e-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 14px;
}

.e-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
}

.e-card:hover .e-card-link {
    opacity: 1;
    transform: translateY(0);
}

/* ── MARQUEE ANNOUNCEMENTS ─────────────────────── */
.news-section {
    background: var(--stone);
    padding-bottom: 0;
}

.news-section .section-inner {
    padding-bottom: 0;
}

.marquee-wrap {
    overflow: hidden;
    margin-top: 40px;
    border-top: 1px solid rgba(201, 168, 76, 0.35);
    padding: 20px 0;
    position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--stone), transparent);
}

.marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--stone), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 50s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    padding: 0 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-item::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.marquee-item strong {
    color: var(--navy);
    font-weight: 600;
}

/* ── EVENTS ─────────────────────────────────────── */
.events-section {
    background: var(--offwhite);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.ev-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.ev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.ev-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    transform: translateY(-3px);
}

.ev-card:hover::before {
    transform: scaleX(1);
}

.ev-date {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 2px;
}

.ev-month {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.ev-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 10px;
}

.ev-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.events-view-all {
    margin-top: 32px;
    text-align: right;
}

/* ── VISION / MISSION ──────────────────────────── */
.vision-section {
    background: var(--white);
    padding: 80px 48px;
}

.vision-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.v-card {
    padding: 44px;
    border-radius: 8px;
    background: var(--stone);
    border: 1px solid var(--stone-border);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.v-card:hover {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 12px 36px rgba(10, 22, 40, 0.08);
}

.v-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gold);
}

.v-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.v-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
}

.v-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--muted);
}

/* ── SAINT QUOTE ───────────────────────────────── */
.saint-section {
    background: var(--gold-pale);
    padding: 88px 48px;
}

.saint-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.saint-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--gold);
    margin: 0 auto 24px;
}

.saint-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.8vw, 28px);
    font-style: italic;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 20px;
}

.saint-attr {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── CONTACT ───────────────────────────────────── */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.c-card {
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    transition: box-shadow 0.3s;
}

.c-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.07);
}

.c-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 44px;
    right: 44px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.c-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 28px;
}

.c-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.c-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--gold-pale);
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-icon svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.c-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

.c-text strong {
    color: var(--text);
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 1px;
}

.social-row {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.soc-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--stone);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.soc-btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.soc-btn svg {
    width: 15px;
    height: 15px;
}

/* ── PARALLAX & 3D ─────────────────────────────── */

/* Hero: parallax layer */
.hero-video {
    will-change: transform;
}

.hero-content {
    will-change: transform;
}

/* Generic parallax section backgrounds */
.parallax-bg {
    position: absolute;
    inset: -20%;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
}

/* Stats: gentle float */
@keyframes floatY {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.stat-item:nth-child(1) {
    animation: floatY 4.5s ease-in-out infinite;
}

.stat-item:nth-child(2) {
    animation: floatY 4.5s ease-in-out 0.8s infinite;
}

.stat-item:nth-child(3) {
    animation: floatY 4.5s ease-in-out 1.4s infinite;
}

.stat-item:nth-child(4) {
    animation: floatY 4.5s ease-in-out 2s infinite;
}

/* All tiltable cards */
.e-card,
.ev-card,
.v-card,
.c-card,
.quick-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.4s ease;
}

/* Shine radial overlay (cursor-following) */
.tilt-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%),
            rgba(255, 255, 255, 0.18) 0%, transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 99;
}

.e-card:hover .tilt-shine,
.ev-card:hover .tilt-shine,
.v-card:hover .tilt-shine,
.c-card:hover .tilt-shine {
    opacity: 1;
}

/* Explore cards: push body forward in Z for depth */
.e-card {
    perspective: 900px;
}

.e-card-body {
    transform: translateZ(18px);
}

.e-card-overlay {
    transform: translateZ(2px);
}

/* About images: scroll parallax wrappers */
.img-main-wrap {
    position: absolute;
    right: 0;
    top: 0;
    width: 78%;
    height: 80%;
    overflow: hidden;
    border-radius: 6px;
    will-change: transform;
}

.img-secondary-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52%;
    height: 55%;
    overflow: hidden;
    border-radius: 6px;
    will-change: transform;
    border: 4px solid var(--white);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imgDrift1 20s ease-in-out infinite;
    will-change: transform;
}

.img-secondary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imgDrift2 15s ease-in-out infinite;
    will-change: transform;
}

@keyframes imgDrift1 {
    0% {
        transform: scale(1.07) translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: scale(1.10) translate(-9px, -6px) rotate(0.25deg);
    }

    55% {
        transform: scale(1.08) translate(6px, -12px) rotate(-0.2deg);
    }

    80% {
        transform: scale(1.10) translate(-4px, 5px) rotate(0.15deg);
    }

    100% {
        transform: scale(1.07) translate(0px, 0px) rotate(0deg);
    }
}

@keyframes imgDrift2 {
    0% {
        transform: scale(1.07) translate(0px, 0px) rotate(0deg);
    }

    35% {
        transform: scale(1.09) translate(8px, 7px) rotate(-0.3deg);
    }

    68% {
        transform: scale(1.07) translate(-6px, -5px) rotate(0.25deg);
    }

    100% {
        transform: scale(1.07) translate(0px, 0px) rotate(0deg);
    }
}

.about-images {
    overflow: visible;
}

/* Principal photo: Ken Burns slow pan */
@keyframes principalPan {
    0% {
        transform: scale(1.06) translate(0px, 0px);
    }

    30% {
        transform: scale(1.10) translate(7px, -10px);
    }

    65% {
        transform: scale(1.08) translate(-5px, -16px);
    }

    100% {
        transform: scale(1.06) translate(0px, 0px);
    }
}

/* Principal card: gentle float */
@keyframes principalFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    38% {
        transform: translateY(-9px) rotate(-0.35deg);
    }

    72% {
        transform: translateY(-4px) rotate(0.25deg);
    }
}

.principal-photo {
    animation: principalPan 20s ease-in-out infinite;
    will-change: transform;
}

.principal-photo-wrap {
    transform-style: preserve-3d;
    will-change: transform;
    perspective: 1000px;
    animation: principalFloat 7s ease-in-out infinite;
}

.principal-photo-wrap .tilt-shine {
    border-radius: 6px;
}

/* Quick card: remove overflow clip so 3D works */
.quick-card {
    overflow: visible;
}

/* Section bg parallax containers */
.stats-section,
.principal-section,
.vision-section {
    position: relative;
    overflow: hidden;
}

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact cards: deeper slide with spring easing, staggered */
.c-card.reveal-left {
    transform: translateX(-80px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-card.reveal-right {
    transform: translateX(80px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.18s;
}

.c-card.reveal-left.visible,
.c-card.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── VIEW-ALL LINK ─────────────────────────────── */
.view-all {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    padding-bottom: 2px;
    transition: gap 0.2s;
}

.view-all.light {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.view-all:hover {
    gap: 14px;
}

.view-all.light:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── RESPONSIVE ────────────────────────────────── */
/* ── TABLET (≤1100px) ─────────────────────────── */
@media (max-width: 1100px) {
    .hero-content {
        padding: 100px 48px 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-images {
        height: 460px;
    }

    .about-badge-float {
        right: 12px;
    }

    .principal-grid {
        grid-template-columns: 260px 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .explore-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .e-card-tall {
        grid-row: auto;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vision-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-section {
        padding: 64px 40px;
    }
}

/* ── MOBILE (≤640px) ──────────────────────────── */
@media (max-width: 640px) {

    /* Hero */
    .hero {
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(6, 14, 28, 0.55) 0%,
                rgba(6, 14, 28, 0.75) 50%,
                rgba(6, 14, 28, 0.95) 100%);
    }

    .hero-content {
        padding: 0 24px 72px;
        max-width: 100%;
    }

    .hero-left-accent {
        display: none;
    }

    .hero-eyebrow {
        font-size: 8.5px;
        letter-spacing: 2px;
        margin-bottom: 16px;
        white-space: nowrap;
    }

    .hero-title {
        font-size: clamp(32px, 8.5vw, 44px);
        margin-bottom: 16px;
        max-width: 100%;
    }

    .hero-sub {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-btns {
        gap: 10px;
        margin-bottom: 36px;
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-gold,
    .btn-outline {
        padding: 13px 24px;
        font-size: 10.5px;
    }

    .hero-inline-stats {
        gap: 24px;
        padding-top: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-num {
        font-size: 22px;
    }

    .hero-sound {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }

    .hero-sound svg {
        width: 15px;
        height: 15px;
    }

    /* Quick access */
    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-card {
        padding: 16px 14px;
        gap: 8px;
    }

    .quick-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .quick-icon svg {
        width: 15px;
        height: 15px;
    }

    .quick-title {
        font-size: 11px;
        line-height: 1.3;
    }

    .quick-label {
        font-size: 8px;
    }

    .quick-arrow {
        display: none;
    }

    /* Stats */
    .stats-section {
        padding: 52px 24px;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
    }

    .stat-num {
        font-size: 40px;
    }

    .stat-item {
        padding: 0 8px;
        border-right: none;
    }

    .stat-item::before {
        width: 24px;
        margin-bottom: 14px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        height: 320px;
        overflow: hidden;
    }

    .img-main-wrap {
        width: 100%;
        height: 65%;
        right: 0;
        top: 0;
    }

    .img-secondary-wrap {
        width: 56%;
        height: 52%;
        left: 0;
        bottom: 0;
    }

    .about-badge-float {
        right: 4px;
        padding: 14px 16px;
    }

    .badge-num {
        font-size: 26px;
    }

    .about-body {
        font-size: 14.5px;
    }

    /* Principal */
    .principal-section::before {
        font-size: 240px;
        top: -30px;
        left: 20px;
    }

    .principal-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .principal-photo {
        aspect-ratio: 4/3;
        max-height: 300px;
    }

    .principal-photo-wrap {
        padding-bottom: 20px;
    }

    .principal-tag {
        bottom: 8px;
    }

    .msg-body {
        font-size: 14.5px;
        line-height: 1.8;
    }

    /* Explore */
    .explore-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }

    .e-card {
        min-height: 240px;
    }

    /* Announcements / ticker */
    .news-section {
        padding: 48px 24px 40px;
    }

    .marquee-wrap {
        margin-top: 20px;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ev-card {
        padding: 22px 20px;
    }

    /* Vision */
    .vision-section {
        padding: 56px 24px;
    }

    .vision-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .v-card {
        padding: 28px 24px;
    }

    /* Saint quote */
    .saint-section {
        padding: 56px 24px;
    }

    .saint-quote {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .c-card {
        padding: 28px 24px;
    }

    /* Disable all animations on mobile to prevent transform overflow */
    .e-card,
    .ev-card,
    .v-card,
    .c-card,
    .quick-card,
    .principal-photo-wrap {
        transform: none !important;
        animation: none !important;
    }

    .principal-photo {
        animation: none !important;
    }

    .img-main {
        animation: none !important;
    }

    .img-secondary {
        animation: none !important;
    }

    /* Keep the video strictly inside the hero bounds */
    .hero-video {
        overflow: hidden !important;
    }

    /* Hide decorative frame/dot (overflow sources) — tag stays visible */
    .principal-frame,
    .principal-frame-dot {
        display: none !important;
    }

    /* Restore card overflow clipping (3D tilt is off) */
    .quick-card {
        overflow: hidden !important;
    }
}

/* Theme addition: events widget (requirements 4.2) — a month calendar beside the latest
   events from the JSL Events plugin, after the client's chosen layout. The design's
   .ev-card rules above are no longer used by the home template. */
.events-widget {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 40px;
}

/* One accent per row; the calendar marks that row's day in the same colour. */
.ev-accent-0 { --ev-c: #1B4FD8; --ev-t: #E3EAFF; }
.ev-accent-1 { --ev-c: #D8365C; --ev-t: #FCE5EB; }
.ev-accent-2 { --ev-c: #6B46E8; --ev-t: #EBE6FF; }
.ev-accent-3 { --ev-c: #0E9F76; --ev-t: #DCF3EC; }
.ev-accent-4 { --ev-c: #C97A06; --ev-t: #FBEEDA; }

.ev-cal {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.ev-cal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ev-cal-month {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.ev-cal-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.ev-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.ev-cal-dow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    padding-bottom: 8px;
}

.ev-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.ev-cal-day.today {
    box-shadow: inset 0 0 0 1.5px var(--gold);
}

.ev-cal-day.mark {
    background: var(--ev-t);
    color: var(--ev-c);
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ev-cal-day.mark::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ev-c);
}

.ev-cal-day.mark:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.ev-cal-day.pad {
    visibility: hidden;
}

.ev-list {
    min-width: 0;
}

.ev-row {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--ev-c);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.ev-row:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 28px rgba(10, 22, 40, 0.08);
}

.ev-row-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ev-c);
    white-space: nowrap;
}

.ev-row-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.ev-row-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.ev-more {
    margin-top: 22px;
}

@media (max-width: 1100px) {
    .events-widget {
        grid-template-columns: 1fr;
    }

    .ev-cal {
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .events-widget {
        margin-top: 28px;
    }

    .ev-cal {
        padding: 20px;
        max-width: none;
    }

    .ev-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 18px;
    }

    .ev-row:hover {
        transform: none;
    }

    .ev-row-title {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-row,
    .ev-cal-day.mark {
        transition: none;
    }

    .ev-row:hover,
    .ev-cal-day.mark:hover {
        transform: none;
    }
}

/* Theme addition: links inside announcements from the JSL Announcements plugin */
.marquee-item a {
    color: var(--navy);
    border-bottom: 1px solid rgba(201, 168, 76, 0.6);
}
