/* =========================================================
   Lewisham Church of Christ — modern, bright & friendly theme
   Hand-written. No frameworks. ~1 file, loads light.
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold:       #E8A72C;
    --gold-deep:  #C6871A;
    --gold-soft:  #FBEFD6;
    --teal:       #1FA6A0;
    --teal-soft:  #DDF2F1;
    --coral:      #FF6B5B;
    --ink:        #26232B;
    --muted:      #5F5B68;
    --cream:      #FFFBF2;
    --paper:      #FFFFFF;
    --line:       rgba(38, 35, 43, .10);

    --radius:     22px;
    --radius-sm:  14px;
    --shadow-sm:  0 6px 20px -8px rgba(38, 35, 43, .18);
    --shadow-lg:  0 30px 60px -24px rgba(38, 35, 43, .28);

    --maxw:       1180px;
    --ease:       cubic-bezier(.22, 1, .36, 1);

    --font-head:  "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 1.02rem;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

::selection { background: var(--gold); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    max-width: 20ch;
}
.section-lead {
    margin-top: 1rem;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.08rem;
}
.center { text-align: center; }
.center .section-title,
.center .section-lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
    --btn-bg: var(--gold);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(232, 167, 44, .6); }
.btn:active { transform: translateY(-1px); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: #fff; --btn-fg: var(--ink); border-color: #fff; box-shadow: var(--shadow-lg); }

.btn--yt { --btn-bg: #FF3D3D; }
.btn--yt:hover { box-shadow: 0 16px 30px -12px rgba(255, 61, 61, .6); }

.btn--ink { --btn-bg: var(--ink); }
.btn--ink:hover { box-shadow: 0 16px 30px -12px rgba(38, 35, 43, .5); }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--line);
}
.btn--outline:hover { --btn-fg: var(--gold-deep); border-color: var(--gold); box-shadow: var(--shadow-sm); }

/* ---------- announcement bar ---------- */
.announce {
    background: var(--ink);
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
}
.announce .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem 1.4rem;
    padding-block: .55rem;
}
.announce a { transition: color .2s; }
.announce a:hover { color: var(--gold); }
.announce .announce-info { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; }
.announce .announce-info span { display: inline-flex; align-items: center; gap: .45rem; }
.announce svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; }
.announce-social { display: flex; gap: .35rem; }
.announce-social a {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.announce-social a:hover { background: var(--gold); color: #fff; }
.announce-social svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 860px) { .announce { display: none; } }

/* ---------- header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 242, .0);
    transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
    
}
.site-header.is-stuck {
    background: rgba(255, 251, 242, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    padding:10px
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .7rem;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.nav-links a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .93rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: var(--ink);
    transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-deep); background: var(--gold-soft); }

/* header sitting over the dark hero: light text until stuck */
.site-header:not(.is-stuck) .nav-links a { color: rgba(255, 255, 255, .92); }
.site-header:not(.is-stuck) .nav-links a:hover,
.site-header:not(.is-stuck) .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .16); }
.site-header:not(.is-stuck) .nav-toggle span { background: #fff; }

.nav-cta { margin-left: .4rem; padding: .7rem 1.3rem; }

/* menu footer is injected by JS on every page; only shown inside the mobile menu */
.m-menu-foot { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav lives in the "MOBILE — app-like treatment" block lower down */

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    margin-top: -74px;      /* pull under the transparent header */
    padding-top: 74px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s var(--ease);
}
.hero-slide.is-active {
    opacity: 1;
    animation: kenburns 9s ease-out forwards;
}
@keyframes kenburns {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}
.hero::after {   /* readability wash */
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(38, 35, 43, .55) 0%, rgba(38, 35, 43, .35) 40%, rgba(38, 35, 43, .78) 100%),
        radial-gradient(120% 80% at 15% 20%, rgba(232, 167, 44, .28), transparent 60%);
}

.hero-inner { max-width: 760px; padding-block: 5rem; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 {
    font-size: clamp(2.4rem, 6.2vw, 4.4rem);
    margin-bottom: 1.2rem;
    text-wrap: balance;
}
.hero p.lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, .9);
    max-width: 54ch;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-rotator {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}
.hero-rotator b { color: #fff; font-weight: 600; }

.hero-dots {
    position: absolute;
    left: 22px; bottom: 26px;
    display: flex; gap: .5rem;
    z-index: 2;
}
.hero-dots button {
    width: 30px; height: 4px;
    border: 0; border-radius: 4px;
    background: rgba(255, 255, 255, .35);
    transition: background .3s;
}
.hero-dots button.is-active { background: var(--gold); }

.scroll-cue {
    position: absolute;
    right: 26px; bottom: 24px;
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.scroll-cue span {
    width: 1px; height: 42px;
    background: linear-gradient(rgba(255, 255, 255, .7), transparent);
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* soft floating blob (decor, reused across sections) */
.blob {
    position: absolute;
    border-radius: 42% 58% 63% 37% / 44% 45% 55% 56%;
    filter: blur(2px);
    opacity: .5;
    z-index: 0;
    animation: float 14s ease-in-out infinite;
    pointer-events: none;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-24px) rotate(12deg); }
}

/* ---------- values / feature cards ---------- */
.values { position: relative; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-top: 2.6rem;
}
.value-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem 1.6rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.value-ico {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: var(--gold-soft);
    color: var(--gold-deep);
}
.value-card:nth-child(2) .value-ico { background: var(--teal-soft); color: var(--teal); }
.value-card:nth-child(3) .value-ico { background: #FFE7E3; color: var(--coral); }
.value-card:nth-child(4) .value-ico { background: #E7E9FF; color: #5B63C9; }
.value-ico svg { width: 26px; height: 26px; fill: currentColor; }
.value-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.value-card p { font-size: .92rem; color: var(--muted); }

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- sermon video ---------- */
.sermon { background: var(--paper); }
.video-frame {
    position: relative;
    margin-top: 2.4rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    aspect-ratio: 16 / 9;
    border: 6px solid #fff;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note {
    margin-top: 1.1rem;
    font-size: .95rem;
    color: var(--muted);
    display: flex; gap: .5rem; align-items: flex-start;
}
.video-note svg { width: 18px; height: 18px; fill: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }

/* ---------- split (about / feature) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media {
    position: relative;
}
.split-media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.split-media .badge-float {
    position: absolute;
    bottom: -22px; right: -18px;
    background: var(--paper);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.2rem;
    display: flex; gap: .7rem; align-items: center;
    font-family: var(--font-head);
    max-width: 240px;
}
.badge-float svg { width: 30px; height: 30px; fill: var(--gold); flex-shrink: 0; }
.badge-float b { display: block; font-size: .95rem; }
.badge-float small { color: var(--muted); font-weight: 400; }

.split-media::before {   /* accent shape behind image */
    content: "";
    position: absolute;
    inset: -18px -18px auto auto;
    width: 60%; height: 60%;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    z-index: -1;
    opacity: .18;
}
.split--reverse .split-media::before {
    inset: auto auto -18px -18px;
    background: linear-gradient(135deg, var(--teal), #12807b);
}

.split-body p { color: var(--muted); margin-bottom: 1.2rem; }
.split-body .callout {
    background: var(--gold-soft);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.2rem;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 1.6rem;
    font-size: .98rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.4rem 0 1.8rem;
}
.mini {
    display: flex; gap: .8rem; align-items: flex-start;
}
.mini-ico {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--teal-soft);
    color: var(--teal);
}
.mini-ico svg { width: 22px; height: 22px; fill: currentColor; }
.mini b { display: block; font-family: var(--font-head); font-size: 1rem; }
.mini small { color: var(--muted); }

@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split-media { order: 0; }
    .split-media .badge-float { right: 12px; }
}

/* ---------- scripture band ---------- */
.scripture {
    position: relative;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 60%, #a06f12 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.scripture .blob { opacity: .18; background: #fff; }
.scripture blockquote {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.6vw, 2.5rem);
    line-height: 1.35;
    max-width: 20ch;
    margin: 0 auto 1rem;
    text-wrap: balance;
}
.scripture .mark {
    font-size: 3.5rem;
    line-height: 0;
    display: block;
    margin-bottom: 1.4rem;
    opacity: .5;
    font-family: Georgia, serif;
}
.scripture cite {
    font-style: normal;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem;
    opacity: .9;
}

/* ---------- gallery bento ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 14px;
    margin-top: 2.6rem;
}
.gallery-grid figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
}
.gallery-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(transparent 55%, rgba(38, 35, 43, .5));
    opacity: 0;
    transition: opacity .3s;
}
.gallery-grid figure:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-big  { grid-column: span 2; grid-row: span 2; }

@media (max-width: 820px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .g-big { grid-column: span 2; }
    .g-wide { grid-column: span 2; }
}

/* ---------- question form ---------- */
.ask { background: var(--paper); }
.ask-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}
.ask-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ask-form .full { grid-column: 1 / -1; }
.ask-form input,
.ask-form textarea {
    width: 100%;
    padding: .95rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font: inherit;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.ask-form textarea { min-height: 130px; resize: vertical; }
.ask-form input:focus,
.ask-form textarea:focus {
    outline: 0;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 167, 44, .16);
}
.ask-form .btn { justify-content: center; }
.ask-form button[disabled] { opacity: .6; cursor: default; }
.ask-field { display: flex; flex-direction: column; gap: .35rem; }
.ask-field span { font-size: .82rem; font-weight: 500; color: var(--muted); padding-left: .2rem; }
.ask-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.form-status {
    margin: 0;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 500;
}
.form-status.ok  { background: var(--teal-soft); color: #0f6f6a; border: 1px solid rgba(31, 166, 160, .35); }
.form-status.err { background: #FFE7E3; color: #b23b2c; border: 1px solid rgba(255, 107, 91, .4); }
[data-form-flash] { margin-bottom: 1.2rem; }

@media (max-width: 820px) {
    .ask-card { grid-template-columns: 1fr; }
    .ask-media { display: none; }
}
@media (max-width: 560px) {
    .ask-form { grid-template-columns: 1fr; }
}

/* ---------- location band ---------- */
.location .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.location-card {
    background: linear-gradient(150deg, var(--ink), #322d3b);
    color: #fff;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: clamp(2rem, 5vw, 3.4rem);
    display: flex; flex-direction: column; justify-content: center;
}
.location-card .eyebrow { color: var(--gold); }
.location-card h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 1.4rem; }
.location-card .row {
    display: flex; gap: .7rem; align-items: center;
    padding: .7rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.location-card .row svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }
.location-map {
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
    min-height: 360px;
    box-shadow: var(--shadow-lg);
}
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 820px) {
    .location .wrap { grid-template-columns: 1fr; }
    .location-card { border-radius: var(--radius) var(--radius) 0 0; }
    .location-map { border-radius: 0 0 var(--radius) var(--radius); min-height: 300px; }
}

/* ---------- footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
    font-size: .93rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2.4rem;
}
.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.1rem;
    letter-spacing: .02em;
}
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-grid p { margin-bottom: .5rem; display: flex; gap: .6rem; align-items: flex-start; }
.footer-grid p svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .84rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- back to top ---------- */
.to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s, transform .3s, background .2s;
    z-index: 80;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold-deep); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- scroll reveal ---------- */
/* only hide when JS is present to run the observer */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-slide.is-active { animation: none; }
}

/* =========================================================
   Ambient generative backdrop + stacking
   ========================================================= */
#ambient {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* keep every real block above the fixed canvas */
.announce { position: relative; z-index: 3; }
section, main, .site-footer, .page-hero { position: relative; z-index: 1; }
/* opaque bands hide the backdrop; transparent ones let it drift through */
body { background: var(--cream); }

/* =========================================================
   Interior page hero (about / resources / contact / visiting / 404)
   ========================================================= */
.page-hero {
    margin-top: -74px;
    padding: calc(74px + clamp(3rem, 8vw, 5.5rem)) 0 clamp(3rem, 8vw, 5.5rem);
    color: #fff;
    background: linear-gradient(128deg, rgba(33, 30, 39, .93) 0%, rgba(48, 42, 58, .70) 55%, rgba(38, 34, 46, .88) 100%);
    overflow: hidden;
    isolation: isolate;
}
.page-hero .blob { opacity: .28; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    margin-bottom: .8rem;
    text-wrap: balance;
}
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 60ch; }
.crumb {
    margin-top: 1.2rem;
    font-size: .82rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .6);
    display: flex; gap: .5rem; flex-wrap: wrap;
}
.crumb a { color: rgba(255, 255, 255, .82); }
.crumb a:hover { color: var(--gold); }
.crumb span { opacity: .5; }

/* =========================================================
   Rich text / prose
   ========================================================= */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1rem; color: var(--muted); }
.prose strong { color: var(--ink); }
.prose--center { margin-inline: auto; text-align: center; }

.versecard {
    max-width: 760px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow-sm);
    font-size: 1.06rem;
}
.versecard p { color: var(--muted); }
.versecard strong { color: var(--ink); }
.versecard cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--gold-deep);
    text-align: right;
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq { max-width: 780px; margin: 2.6rem auto 0; }
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .8rem;
    overflow: hidden;
    transition: box-shadow .3s var(--ease), border-color .3s;
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
}
.faq-q .pm {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-deep);
    transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-q .pm svg { width: 14px; height: 14px; fill: currentColor; }
.faq-item.open .pm { transform: rotate(135deg); background: var(--gold); color: #fff; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}
.faq-a p {
    padding: 0 1.3rem 1.3rem;
    color: var(--muted);
    font-size: .97rem;
}

/* =========================================================
   Meeting times (visiting page)
   ========================================================= */
.times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 2.4rem;
}
.time-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.time-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.time-card .kicker {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.time-card .big {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    margin: .35rem 0 .2rem;
}
.time-card small { color: var(--muted); }
@media (max-width: 760px) { .times-grid { grid-template-columns: 1fr; } }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2.4rem;
    counter-reset: step;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   CTA band
   ========================================================= */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--teal) 0%, #147c77 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(2.4rem, 6vw, 4rem);
    overflow: hidden;
    isolation: isolate;
    position: relative;
}
.cta .blob { opacity: .16; background: #fff; }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .8rem; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 52ch; margin: 0 auto 1.6rem; }
.cta .btn--primary:hover { box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .35); }

/* =========================================================
   404
   ========================================================= */
.err {
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;
}
.err-code {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(5rem, 20vw, 11rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--gold), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.err h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: .4rem 0 .8rem; }
.err p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.6rem; }

/* =========================================================
   Video (interior pages reuse .video-frame from homepage)
   ========================================================= */
.resource-links {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

/* =========================================================
   YouTube — latest sermons
   ========================================================= */
.sermon-player { margin-top: 2.4rem; }
[data-yt-title] { display: block; }
.yt-live-tag {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-head); font-weight: 600;
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-deep);
}
.yt-live-tag::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #FF3D3D; box-shadow: 0 0 0 0 rgba(255, 61, 61, .5);
    animation: ytpulse 2s infinite;
}
@keyframes ytpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 61, .5); } 70% { box-shadow: 0 0 0 8px rgba(255, 61, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 61, 0); } }

.yt-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 12px;
    margin-top: 1rem;
    padding-bottom: .6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.yt-strip::-webkit-scrollbar { height: 6px; }
.yt-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.yt-thumb {
    position: relative;
    scroll-snap-align: start;
    border: 0; padding: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .25s; }
.yt-thumb:hover img { opacity: 1; }
.yt-thumb.is-active { box-shadow: 0 0 0 3px var(--gold); }
.yt-play {
    position: absolute; inset: 0; margin: auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: rgba(255, 61, 61, .92);
    border-radius: 50%;
    transition: transform .25s var(--ease);
}
.yt-thumb:hover .yt-play { transform: scale(1.12); }
.yt-play svg { width: 18px; height: 18px; fill: #fff; }
.yt-thumb-title {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.4rem .7rem .5rem;
    font-size: .76rem; font-weight: 500; color: #fff;
    text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================================
   Events — big cards, swipe left / right
   ========================================================= */
.events-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}

/* horizontal scroller (homepage widget + each month on the events page) */
.events-scroll,
.ev-list {
    display: flex;
    gap: 1.1rem;
    margin-top: 2rem;
    padding: .4rem 0 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.events-scroll::-webkit-scrollbar,
.ev-list::-webkit-scrollbar { height: 8px; }
.events-scroll::-webkit-scrollbar-thumb,
.ev-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.ev-empty { color: var(--muted); margin-top: 1rem; font-size: .9rem; }

.ev {
    flex: 0 0 clamp(260px, 78vw, 320px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.ev:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ev--next { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.ev--past { opacity: .5; }
.ev--past:hover { transform: none; box-shadow: none; }

.ev-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
}
.ev-chip {
    flex-shrink: 0;
    width: 68px; height: 68px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-deep);
    border-radius: 16px;
    font-family: var(--font-head);
    position: relative;
}
.ev-chip svg { width: 15px; height: 15px; fill: currentColor; opacity: .7; margin-bottom: 1px; }
.ev-chip b { font-size: 1.5rem; line-height: 1; font-weight: 700; }
.ev-chip span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.ev--worship  .ev-chip { background: var(--teal-soft); color: var(--teal); }
.ev--prayer   .ev-chip { background: #E7E9FF; color: #5B63C9; }
.ev--group    .ev-chip { background: #FFE7E3; color: var(--coral); }
.ev--special  .ev-chip { background: #FBEFD6; color: #A96F12; }
.ev--notice   .ev-chip { background: #ECEAEF; color: var(--muted); }

.ev-tag {
    font-family: var(--font-head); font-weight: 600;
    font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
    background: var(--cream);
    padding: .3rem .6rem; border-radius: 999px;
    text-align: center;
}
.ev-tag.ev-nexttag { color: var(--gold-deep); background: var(--gold-soft); }
.ev-tag.ev-now { color: var(--teal); background: var(--teal-soft); }

.ev h3 { font-size: 1.15rem; line-height: 1.3; }
.ev-meta { margin-top: .4rem; font-size: .88rem; color: var(--muted); }

.ev-add {
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex; align-items: center; gap: .8rem;
}
.ev-add-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .7rem .8rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-family: var(--font-head); font-weight: 600; font-size: .82rem;
    color: var(--ink);
    transition: border-color .2s, background .2s, color .2s;
}
.ev-add-btn svg { width: 15px; height: 15px; fill: currentColor; }
.ev-add-btn:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.ev-add-g {
    font-family: var(--font-head); font-weight: 600; font-size: .82rem;
    color: var(--muted);
    flex-shrink: 0;
}
.ev-add-g:hover { color: var(--gold-deep); }
.ev-add--done { margin-top: auto; padding-top: 1.1rem; font-size: .82rem; color: var(--muted); font-style: italic; }

.ev-month { margin-bottom: 1rem; }
.ev-month-title {
    font-size: 1.35rem;
    padding-bottom: .5rem;
    margin-bottom: .2rem;
}
.ev-month-title span { color: var(--muted); font-weight: 500; }
.ev-month-title.is-past { opacity: .5; }

.ev-legend {
    display: flex; flex-wrap: wrap; gap: .7rem 1.2rem;
    margin-top: 1.4rem;
    font-size: .82rem; color: var(--muted);
}
.ev-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ev-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-gathering { background: var(--gold); }
.lg-worship { background: var(--teal); }
.lg-prayer { background: #5B63C9; }
.lg-group { background: var(--coral); }
.lg-special { background: #A96F12; }
.lg-notice { background: var(--muted); }

/* =========================================================
   MOBILE — app-like treatment
   ========================================================= */

/* slim info strip (replaces the hidden announce bar on small screens) */
.m-info {
    display: none;
    position: relative;
    z-index: 3;
    background: var(--ink);
    color: rgba(255, 255, 255, .82);
    font-size: .72rem;
}
.m-info ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem .9rem;
    list-style: none;
    padding: .45rem 16px;
    margin: 0;
}
.m-info li { display: inline-flex; align-items: center; gap: .35rem; }
.m-info svg { width: 11px; height: 11px; fill: var(--gold); flex-shrink: 0; }
.m-info a { color: inherit; }

/* bottom action bar */
.m-dock {
    display: none;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 85;
    background: rgba(255, 251, 242, .92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    grid-template-columns: repeat(3, 1fr);
    gap: .3rem;
    transform: translateY(220%);
    transition: transform .4s var(--ease);
    pointer-events: none;
}
.m-dock.show { transform: translateY(0); pointer-events: auto; }
.m-dock a {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    padding: .55rem .3rem;
    border-radius: 12px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .7rem;
    color: var(--ink);
    transition: background .2s;
}
.m-dock a:active { background: var(--gold-soft); }
.m-dock a svg { width: 20px; height: 20px; fill: var(--gold-deep); }
.m-dock a.m-dock-primary { background: var(--gold); color: #fff; }
.m-dock a.m-dock-primary svg { fill: #fff; }

@media (max-width: 860px) {
    .m-info { display: block; }
}

@media (max-width: 1040px) {
    /* ---- nav collapses: the whole header becomes a full-screen menu ---- */
    .nav-toggle { display: flex; position: relative; z-index: 5; }

    .nav-links { display: none; }

    body.menu-open { overflow: hidden; }

    body.menu-open .site-header {
        position: fixed;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        background: linear-gradient(160deg, #fffaf0 0%, #fff3df 100%);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        top: 0;                       /* override the sticky offset */
    }
    body.menu-open .nav {
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: center;
        min-height: 100%;
        padding-block: .6rem;
    }
    body.menu-open .site-header .nav-toggle span { background: var(--ink); }

    body.menu-open .nav-links {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.4rem 0 2rem;
    }

    body.menu-open .site-header .nav-links a {
        font-family: var(--font-head);
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--ink);
        padding: .8rem 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        animation: menuItemIn .4s var(--ease) backwards;
    }
    body.menu-open .nav-links a:nth-child(1) { animation-delay: .05s; }
    body.menu-open .nav-links a:nth-child(2) { animation-delay: .09s; }
    body.menu-open .nav-links a:nth-child(3) { animation-delay: .13s; }
    body.menu-open .nav-links a:nth-child(4) { animation-delay: .17s; }
    body.menu-open .nav-links a:nth-child(5) { animation-delay: .21s; }
    body.menu-open .nav-links a:nth-child(6) { animation-delay: .25s; }
    body.menu-open .nav-links a:nth-child(7) { animation-delay: .29s; }

    body.menu-open .nav-links a.active {
        color: var(--gold-deep);
        padding-left: 14px;
        box-shadow: inset 3px 0 0 var(--gold);
    }

    body.menu-open .nav-links .nav-cta {
        margin-top: 1.4rem;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem;
        border-radius: 999px;
        border-bottom: 0;
        color: #fff;
    }

    /* menu footer injected by JS — only visible inside the open menu */
    .m-menu-foot { display: none; }
    body.menu-open .m-menu-foot {
        display: flex;
        margin-top: 1.8rem;
        padding-top: 1.6rem;
        border-top: 1px solid var(--line);
        flex-direction: column; gap: 1rem;
        animation: menuItemIn .4s .32s var(--ease) backwards;
    }
    .m-menu-foot .m-menu-line { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--muted); }
    .m-menu-foot .m-menu-line svg { width: 15px; height: 15px; fill: var(--gold-deep); flex-shrink: 0; }
    .m-menu-foot .m-menu-line a { color: inherit; }
    .m-menu-foot .m-menu-social { display: flex; gap: .6rem; }
    .m-menu-foot .m-menu-social a {
        width: 42px; height: 42px; display: grid; place-items: center;
        border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
    }
    .m-menu-foot .m-menu-social a:active { background: var(--gold); color: #fff; border-color: var(--gold); }
    .m-menu-foot .m-menu-social svg { width: 16px; height: 16px; fill: currentColor; }

    .m-dock { display: grid; }
    .site-footer { padding-bottom: 6rem; }   /* clear the dock */
}

@keyframes menuItemIn {
    from { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 640px) {
    :root { --radius: 18px; }
    .nav-logo img { height: 38px; }
    .site-header { padding: 12px; }
    .hero { min-height: 100svh; }
    .hero-inner { padding-block: 3.5rem; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .hero-rotator { margin-top: 1.6rem; }
    .section { padding-block: clamp(2.8rem, 12vw, 4rem); }
    .split-media .badge-float { position: static; margin-top: 1rem; max-width: none; box-shadow: var(--shadow-sm); }
    .split-media::before { display: none; }
    .value-card, .time-card, .step, .ev { border-radius: 16px; }
    .section-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
    .footer-bottom { flex-direction: column; }
    .cta { border-radius: 18px; }
}

/* touch devices: tactile press feedback, no sticky hover */
@media (hover: none) {
    .value-card:active, .ev:active, .time-card:active, .step:active,
    .yt-thumb:active, .gallery-grid figure:active { transform: scale(.975); }
    .value-card:hover, .ev:hover, .time-card:hover, .step:hover { transform: none; box-shadow: var(--shadow-sm); }
    .gallery-grid figure:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-links a, .m-menu-foot, .m-dock { animation: none !important; opacity: 1 !important; transform: none !important; }
    .yt-live-tag::before { animation: none; }
}
