/* EGW Home (front-page.php): the section styles of the Home preview v3.15.1 that Dennis approved on 2026-10-03 at 20:28 UTC.
   Loaded on the front page only, after the design kit (handle egw-kit: tokens, cards, wells, pills, buttons, the motion
   system, the lightbox, the line masks and rolling digits), which this file never repeats. Every rule is scoped to the Home
   body, <div class="egw-kit egw-home" id="egw-home">. Colours come from the kit's tokens only, so light and dark both work.
   The live state is a class on that wrapper: .is-live (set in PHP, decided again at view time by the inline script that
   follows the wrapper; the page is cached), and .live-swap while a change plays. The preview put both on html. */

/* ---------- page frame ---------- */
.egw-home { padding-top: var(--nav-height, 72px); } /* the site header is fixed; the chrome keeps --nav-height at its height */
.egw-home .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- answers to the theme's older global.css, inside Home only ---------- */
.egw-home .meta { font-size: inherit; font-weight: inherit; letter-spacing: normal; color: inherit; } /* global: .meta small, medium weight, tracked, subtle colour */
.egw-home .card.lift:active:not(:hover) { transform: none; } /* global: .lift:active nudges cards on touch */
.egw-home .founder blockquote { background: none; border-radius: 0; box-shadow: none; } /* global: blockquote panel, accent edge, shadow */

/* ---------- 02 hero ---------- */
.egw-home .hero { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section); }
.egw-home .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.egw-home .slide-text { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.egw-home .slide-text h1 em { font-style: normal; display: block; color: var(--muted); }
.egw-home .slide-text.swap > :not(h1) { opacity: 0; translate: 0 8px; }
.egw-home .when { display: flex; flex-wrap: wrap; gap: var(--s-2); min-height: 28px; } /* min-height: a slide without date pills keeps the row the Live now pill fills */
.egw-home .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.egw-home .pager { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-7); }
.egw-home .dots { display: flex; gap: 6px; align-items: center; }
.egw-home .dots button { width: 10px; height: 6px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--dot); cursor: pointer; transition: width .35s var(--ease-spring), background-color .3s ease; }
.egw-home .dots button[aria-current="true"] { width: 26px; background: var(--ink); }
.egw-home .pager .ctl { display: flex; gap: var(--s-2); margin-left: auto; }
/* The frame sizes itself to what it holds: the script reads each slide's natural shape (photo, flyer or video), clamps it between
   2:3 portrait and 16:9, caps the height and eases the frame between shapes. The text column never changes width. */
.egw-home .poster-wrap { justify-self: end; width: 100%; max-width: 500px; display: grid; justify-items: end; }
.egw-home .poster-stack { position: relative; aspect-ratio: var(--ar, 1); height: var(--ph); transition: height .65s var(--ease-out); overflow: clip; }
.egw-home .poster { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.egw-home .poster.on { opacity: 1; transform: none; }
.egw-home .poster img { width: 100%; height: 100%; object-fit: cover; }
.egw-home .poster.on img { animation: egwh-kb 8s linear forwards; }
@keyframes egwh-kb { from { scale: 1; } to { scale: 1.07; } }
.egw-home .hero .frame { width: var(--fw, 100%); transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: width .65s var(--ease-out), transform .7s var(--ease-out), box-shadow .4s ease; will-change: transform; }
.egw-home .hero .frame.tilt { transition: width .65s var(--ease-out), transform .15s linear, box-shadow .4s ease; }
.egw-home .hero .frame-in::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.26), transparent 48%); transition: opacity .45s ease; }
.egw-home .hero .frame.tilt .frame-in::after { opacity: 1; }
.egw-home .frame-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 14px 18px; }
.egw-home .frame-foot .count { font-weight: 600; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.egw-home .frame-foot .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--well-2); position: relative; overflow: hidden; margin-inline: var(--s-3); }
.egw-home .frame-foot .bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.egw-home .frame-foot .bar i.run { animation: egwh-bar var(--dur, 7s) linear forwards; } /* the script sets --dur to the slide's time less a second, as the preview's 7s bar on 8s slides */
.egw-home .frame-foot .bar i.vid { transition: transform .25s linear; } /* a video slide's bar follows its playback */
@keyframes egwh-bar { to { transform: scaleX(1); } }
.egw-home .frame-foot .one { visibility: hidden; } /* one slide: no bar or counter, the strip keeps its height */

/* ---------- 02b countdown card ---------- */
.egw-home #s-ticket { padding-bottom: var(--section); }
.egw-home .ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--s-5); align-items: center; }
.egw-home .ticket.go-card { cursor: pointer; } /* the whole card opens the online service, as the old one did */
.egw-home .ticket .cd { display: flex; gap: var(--s-2); align-items: center; font-variant-numeric: tabular-nums; }
.egw-home .ticket .cd .well { display: grid; justify-items: center; min-width: 68px; padding: 10px 8px 8px; }
.egw-home .ticket .cd b { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; display: flex; }
.egw-home .ticket .cd small { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.egw-home .ticket .cd .sep { color: var(--muted); font-weight: 600; } /* kit v1.7: the colons are text, 4.5:1 */
.egw-home .ticket h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.egw-home .ticket .meta { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
/* The live state (Dennis 06:51, 2026-10-03: "include a demo when an event/service is live. no need to show timestamp of when a live
   event/service will event."): each text has one element per state. Live: "Happening now" and a red "Live now" pill, the on-air block
   in place of the wells, a slow halo on Join live service; in the hero a leading "Live now" pill, "Watch live" on the first button, the
   date and time pills, Watch online and the pager out of sight. Nothing changes height when the state flips. */
.egw-home:not(.is-live) .live-on, .egw-home.is-live .live-off, .egw-home.is-live #cdState { display: none; opacity: 0; }
.egw-home.is-live #sWhen > .pill.soft { display: none; }
.egw-home.live-swap #sWhen > .pill.soft { transition: opacity .25s ease; }
@starting-style { .egw-home.live-swap #sWhen > .pill.soft { opacity: 0; } }
.egw-home.live-swap :is(.live-on, .live-off) { transition: opacity .25s ease; }
@starting-style { .egw-home.live-swap :is(.live-on, .live-off) { opacity: 0; } }
.egw-home .cd-pill { display: inline-grid; justify-items: start; }
.egw-home .cd-pill > .pill { grid-area: 1 / 1; }
.egw-home.live-swap .cd-pill > .pill { transition: opacity .25s ease, display .25s allow-discrete; }
@starting-style { .egw-home.live-swap .cd-pill > .pill { opacity: 0; } }
/* the card's two titles share one cell, so a longer name in either state never changes the card's height */
.egw-home .tk-t { display: grid; }
.egw-home .tk-t > h2 { grid-area: 1 / 1; }
.egw-home.is-live .tk-off, .egw-home:not(.is-live) .tk-on { visibility: hidden; opacity: 0; }
.egw-home.live-swap .tk-t > h2 { transition: opacity .25s ease, visibility .25s; }
/* the wells give way to the on-air block in the same place: the wells keep their box (hidden, not removed) */
.egw-home .cd-slot { position: relative; display: grid; align-items: center; min-height: calc(22px + 1.75rem + var(--t-micro) * 1.6); }
.egw-home.is-live .cd-slot > .cd { visibility: hidden; opacity: 0; translate: 0 8px; }
.egw-home.live-swap .cd-slot > .cd { transition: opacity .5s var(--ease-out), translate .5s var(--ease-out), visibility .5s; }
.egw-home.live-swap.is-live .cd-slot > .cd { transition-duration: .3s; transition-timing-function: ease; }
.egw-home .onair { position: absolute; inset: 0; display: none; align-items: center; justify-content: flex-end; gap: 14px; opacity: 0; translate: 0 8px; }
.egw-home.is-live .onair { display: flex; opacity: 1; translate: none; }
.egw-home.live-swap .onair { transition: opacity .3s ease, translate .3s ease, display .3s allow-discrete; }
.egw-home.live-swap.is-live .onair { transition: opacity .5s var(--ease-out), translate .5s var(--ease-out), display .5s allow-discrete; }
@starting-style { .egw-home.live-swap.is-live .onair { opacity: 0; translate: 0 8px; } }
/* on-air level: five 3px bars breathing on a slow 1.6s loop, staggered; at rest (reduced motion) each stands at its mid height */
.egw-home .onair-bars { display: inline-flex; align-items: center; gap: 4px; height: 22px; flex: none; }
.egw-home .onair-bars i { width: 3px; height: var(--m); border-radius: 3px; background: var(--ink); animation: egwh-onair 1.6s ease-in-out var(--d) infinite; }
.egw-home .onair-bars i:nth-child(1) { --lo: 8px; --hi: 14px; --m: 11px; --d: -.2s; }
.egw-home .onair-bars i:nth-child(2) { --lo: 9px; --hi: 21px; --m: 15px; --d: -.9s; }
.egw-home .onair-bars i:nth-child(3) { --lo: 12px; --hi: 22px; --m: 17px; --d: -.5s; }
.egw-home .onair-bars i:nth-child(4) { --lo: 9px; --hi: 19px; --m: 14px; --d: -1.3s; }
.egw-home .onair-bars i:nth-child(5) { --lo: 8px; --hi: 12px; --m: 10px; --d: -.7s; }
@keyframes egwh-onair { 0%, 100% { height: var(--lo); } 50% { height: var(--hi); } }
.egw-home .onair-txt { min-width: 0; text-align: start; }
.egw-home .onair-txt b { display: block; font-size: var(--t-base); font-weight: 600; color: var(--ink); }
.egw-home .onair-txt p { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
/* Join live service keeps its text, hover and press, and gains a slow halo: a ring at its edge growing to 1.12 as it fades */
.egw-home.is-live .ticket > .btn { position: relative; }
.egw-home.is-live .ticket > .btn::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--ink); border-radius: inherit; opacity: 0; pointer-events: none; animation: egwh-halo 2.4s ease-out infinite; }
@keyframes egwh-halo { from { opacity: .25; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
.egw-home.is-live .ticket { column-gap: var(--s-6); } /* the halo at its widest stays clear of the on-air text in every language */
/* the hero's frame strip reads Live now; bar and counter keep their space so the frame never changes height */
.egw-home .frame-live { align-items: center; gap: 6px; color: var(--live); }
.egw-home.is-live .frame-live { display: inline-flex; }
.egw-home .frame-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: egwh-blink 1.8s ease-in-out infinite; }
@keyframes egwh-blink { 50% { opacity: .35; } }
.egw-home.is-live .frame-foot .bar, .egw-home.is-live .frame-foot .count { visibility: hidden; }
/* while live the pager keeps its box, invisible and inert, so the hero keeps its height */
.egw-home.is-live .pager { visibility: hidden; opacity: 0; pointer-events: none; }
.egw-home.live-swap .pager { transition: opacity .25s ease, visibility 0s linear 0s; }
.egw-home.live-swap.is-live .pager { transition: opacity .25s ease, visibility 0s linear .25s; }

/* ---------- 03 worship times + join ---------- */
.egw-home .grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.egw-home .sec-head { display: grid; gap: var(--s-4); }
.egw-home .sec-head h2 span { color: var(--muted); }
.egw-home .join { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); display: grid; gap: var(--s-3); }
.egw-home .join .lead { font-size: var(--t-base); }
.egw-home .tt-col { min-width: 0; }
.egw-home .tt-all { margin-top: var(--s-5); }
.egw-home .card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-2) var(--s-2) var(--s-3); }
.egw-home .card-head .micro { display: flex; align-items: center; gap: var(--s-2); }
.egw-home .card-head .micro .i { width: 16px; height: 16px; }
.egw-home .rows .row .ctl .pill { height: 32px; font-size: var(--t-sm); font-weight: 600; }

/* ---------- 04 welcome ---------- */
.egw-home .welcome-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); align-items: stretch; }
.egw-home .welcome-photo { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.egw-home .welcome-photo .clip { overflow: hidden; border-radius: var(--r-xl); flex: 1; display: flex; }
.egw-home .welcome-photo img { width: 100%; height: auto; flex: 1; min-height: 0; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--r-xl); transition: scale 1.6s var(--ease-out); }
html.js-armed .egw-home .welcome-photo.rv:not(.in) img { scale: 1.12; }
.egw-home .welcome-card { display: grid; gap: var(--s-4); align-content: center; box-shadow: var(--shadow-card); padding: var(--s-7); }
.egw-home .welcome-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.egw-home .welcome-card > p:not(.eyebrow):not(.pillars) { color: var(--ink-2); }
.egw-home .pillars { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.egw-home .pillars .pill { height: 34px; padding-inline: 12px 14px; background: var(--well); color: var(--ink); }

/* ---------- 05 founder ---------- */
.egw-home .founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: var(--s-7); }
.egw-home .founder.no-photo { grid-template-columns: minmax(0, 1fr); }
.egw-home .founder .frame { max-width: 380px; }
.egw-home .founder .frame-in { aspect-ratio: 4/5; }
/* his posters (2026-10-03, 22:42): the 4:5 frame trims only the empty black band at the top; the whole figure and the lettering stay */
.egw-home .founder .frame-in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* 3.13.0: one photo for both appearances, no dark version; the dark theme shows it in black and white through .photo (kit rule 49). */
.egw-home .founder h2 { margin-top: var(--s-3); }
.egw-home .founder .role { margin-top: var(--s-3); font-weight: 600; color: var(--ink-2); }
.egw-home .founder blockquote { margin: var(--s-5) 0 0; padding: var(--s-4) var(--s-5); border-left: 2px solid var(--line-strong); font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.egw-home .founder .actions { margin-top: var(--s-6); }

/* ---------- 06 coming up ---------- */
.egw-home .up-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-5); }
.egw-home .ev-date { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; align-content: center; line-height: 1; }
.egw-home .ev-date b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.egw-home .ev-date small { font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.egw-home .ev { grid-template-columns: 56px minmax(0, 1fr) auto; }
.egw-home .ev .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); transition: transform .3s var(--ease-spring), background-color .25s ease, color .25s ease; }
.egw-home .ev .go .i { width: 16px; height: 16px; }
.egw-home .ev:hover .go { transform: translateX(3px); background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }

/* ---------- 07 latest activities ---------- */
.egw-home #s-acts { overflow: clip; } /* the preview's overflow: hidden, as clip: never hidden on a section (kit rule 42) */
.egw-home .acts-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; }
.egw-home .acts-head .ctl { display: flex; gap: var(--s-2); }
/* cards are centred by default: the row centres when it fits, cards snap to the centre, and the script starts on the middle card */
.egw-home .strip { --bleed: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); display: flex; justify-content: safe center; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); padding: var(--s-6) var(--bleed) var(--s-4); scrollbar-width: none; cursor: grab; }
.egw-home .strip::-webkit-scrollbar { display: none; }
.egw-home .strip.drag { cursor: grabbing; scroll-snap-type: none; }
.egw-home .shot { flex: 0 0 clamp(220px, 24vw, 290px); aspect-ratio: 3/4; scroll-snap-align: center; position: relative; overflow: hidden; border: 0; padding: 0; border-radius: var(--r-lg); background: var(--card); cursor: zoom-in; color: inherit; transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.egw-home .shot:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-float); }
.egw-home .shot img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; }
.egw-home .strip > .shot { transition: transform .35s var(--ease-out), box-shadow .35s ease, opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.egw-home .shot .cap { position: absolute; left: 12px; bottom: 12px; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-pill); background: var(--page); color: var(--ink); font-size: var(--t-xs); font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .35s var(--ease-spring); }
.egw-home .shot:hover .cap, .egw-home .shot:focus-visible .cap { opacity: 1; transform: none; }
.egw-home .acts-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.egw-home .progress { flex: 1; max-width: 220px; height: 4px; border-radius: 4px; background: var(--well-2); position: relative; }
.egw-home .progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 4px; background: var(--ink); transition: left .15s linear; }

/* ---------- 08 salvation call (the one inverted block) ---------- */
.egw-home .salvation { background: var(--inv-bg); color: var(--inv-fg); border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); align-items: center; overflow: hidden; }
.egw-home .salvation h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 14ch; }
.egw-home .salvation h2 span { color: var(--inv-fg-2); }
.egw-home .salvation p { font-size: var(--t-lead); color: var(--inv-fg-2); margin-top: var(--s-4); }
.egw-home .salvation .btn { margin-top: var(--s-6); }
.egw-home .salvation .cross { width: clamp(110px, 16vw, 200px); color: var(--inv-fg); opacity: .9; }
.egw-home .cross path { stroke-dasharray: 600; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out) .25s; }
html.js-armed .egw-home .salvation:not(.in) .cross path { stroke-dashoffset: 600; }

/* ---------- 09 testimonies + partner ---------- */
.egw-home #s-tp { padding-bottom: var(--section); }
.egw-home .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.egw-home .feature { display: grid; gap: var(--s-4); align-content: start; }
.egw-home .feature h3 { font-size: 1.35rem; }
.egw-home .feature > p { color: var(--ink-2); }
.egw-home .feature .well { padding: 14px 16px; display: flex; align-items: center; gap: var(--s-3); }
.egw-home .feature .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pill); color: var(--pill-fg); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; flex: none; } /* kit entry 45: a chip on a well takes the pill pair */
.egw-home .feature .avatar .i { width: 16px; height: 16px; }
.egw-home .feature .well b { display: block; font-size: var(--t-sm); font-weight: 600; }
.egw-home .feature .well small { display: block; font-size: var(--t-xs); color: var(--muted); }
.egw-home .feature .well .grow { flex: 1; min-width: 0; }

/* ---------- 10 EGW Music (#radio) ---------- */
.egw-home .now { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; }
.egw-home .now .art { width: 96px; height: 96px; border-radius: var(--r-md); overflow: hidden; }
.egw-home .now .art img { width: 100%; height: 100%; object-fit: cover; }
.egw-home .now .no-art { display: grid; place-items: center; background: var(--well); color: var(--muted); } /* no cover art: a music note on the well */
.egw-home .now .no-art .i { width: 32px; height: 32px; }
.egw-home .now-txt { min-width: 0; }
.egw-home .now h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.egw-home .now .micro { display: flex; align-items: center; gap: var(--s-2); }
.egw-home .eq { display: inline-flex; gap: 2px; align-items: end; height: 12px; }
.egw-home .eq i { width: 3px; border-radius: 2px; background: var(--ink); animation: egwh-eq 1s ease-in-out infinite; }
.egw-home .eq i:nth-child(2) { animation-delay: -.3s; }
.egw-home .eq i:nth-child(3) { animation-delay: -.6s; }
.egw-home .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes egwh-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.egw-home .now .meta { color: var(--ink-2); font-size: var(--t-sm); margin-top: 4px; }

/* ---------- reduced motion: every effect stops (the kit's own block stops its parts and shortens every transition) ---------- */
@media (prefers-reduced-motion: reduce) {
  .egw-home .onair-bars i, .egw-home .pill.live i, .egw-home .pill.ok i, .egw-home .frame-live i, .egw-home .eq i, .egw-home .poster.on img { animation: none; }
  .egw-home.is-live .ticket > .btn::after { content: none; }
  .egw-home .eq i { height: 7px; }
  .egw-home .eq i:nth-child(2) { height: 11px; }
  .egw-home .eq i:nth-child(3) { height: 5px; }
  .egw-home .eq i:nth-child(4) { height: 9px; }
  html.js-armed .egw-home .welcome-photo.rv:not(.in) img { scale: none; }
  html.js-armed .egw-home .salvation:not(.in) .cross path { stroke-dashoffset: 0; }
}

/* ---------- small screens: whenever a holder stacks into one column, everything inside it is centred
   (Dennis, 2026-10-02); table-like rows (the timetable, event rows, the testimony well) stay as rows ---------- */
@media (max-width: 960px) {
  .egw-home .hero-grid, .egw-home .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .egw-home .hero-grid > div:first-child { text-align: center; }
  .egw-home .slide-text { justify-items: center; }
  .egw-home .slide-text .lead { margin-inline: auto; }
  .egw-home .when, .egw-home .actions, .egw-home .pager { justify-content: center; }
  .egw-home .pager { flex-wrap: wrap; }
  .egw-home .pager .ctl { margin-left: 0; }
  .egw-home .poster-wrap { justify-self: center; max-width: 440px; justify-items: center; }
  .egw-home .ticket { grid-template-columns: 1fr; }
  .egw-home .ticket .cd { justify-content: center; }
  .egw-home .onair { justify-content: center; }
  .egw-home .ticket, .egw-home .sec-head, .egw-home .join, .egw-home .acts-head, .egw-home .acts-foot { text-align: center; justify-items: center; justify-content: center; }
  .egw-home .ticket > .ic { margin-inline: auto; }
  .egw-home .ticket .meta, .egw-home .acts-head .ctl { justify-content: center; }
  .egw-home .sec-head .lead, .egw-home .join .lead { margin-inline: auto; }
  .egw-home .up-head { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 860px) {
  .egw-home .welcome-grid { grid-template-columns: 1fr; }
  .egw-home .welcome-card { padding: var(--s-5); }
  .egw-home .welcome-photo img { aspect-ratio: 16/10; flex: none; }
  .egw-home .founder { grid-template-columns: 1fr; padding: var(--s-5); }
  .egw-home .founder .frame { max-width: 300px; }
  .egw-home .welcome-card, .egw-home .founder, .egw-home .founder > div { text-align: center; justify-items: center; }
  .egw-home .founder .frame { margin-inline: auto; }
  .egw-home .founder blockquote { margin-inline: auto; padding-inline: 0; border-left: 0; border-top: 2px solid var(--line-strong); }
  .egw-home .founder .actions, .egw-home .welcome-card .actions { justify-content: center; }
  .egw-home .welcome-card p { margin-inline: auto; }
}
@media (max-width: 760px) {
  .egw-home .salvation { grid-template-columns: 1fr; }
  .egw-home .salvation .cross { order: -1; width: 72px; }
  .egw-home .two { grid-template-columns: 1fr; }
  .egw-home .now { grid-template-columns: auto minmax(0, 1fr); }
  .egw-home .now > :last-child { grid-column: 1 / -1; }
  .egw-home .now .art { width: 72px; height: 72px; }
  .egw-home .salvation, .egw-home .feature { text-align: center; justify-items: center; }
  .egw-home .salvation h2, .egw-home .salvation p, .egw-home .feature > p { margin-inline: auto; }
  .egw-home .feature .well { width: 100%; justify-self: stretch; text-align: left; }
}
@media (max-width: 640px) {
  .egw-home .row { grid-template-columns: 40px minmax(0, 1fr); }
  .egw-home .row .ctl { grid-column: 2; justify-content: flex-start; }
  .egw-home .ev { grid-template-columns: 56px minmax(0, 1fr); }
  .egw-home .ev .ctl { grid-column: 2; }
  .egw-home .now { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .egw-home .now > :last-child { grid-column: auto; }
  .egw-home .now .micro { justify-content: center; }
  .egw-home .now .art { width: 96px; height: 96px; }
  .egw-home .acts-foot { flex-direction: column; gap: var(--s-4); }
  .egw-home .acts-foot .progress { flex: none; width: min(100%, 320px); max-width: none; }
}
@media (max-width: 420px) {
  .egw-home .cd-slot { min-height: calc(22px + 1.5rem + var(--t-micro) * 1.6); }
  .egw-home .ticket .cd .well { min-width: 58px; }
  .egw-home .ticket .cd b { font-size: 1.5rem; }
}
/* ---------- 02 hero, landscape layout + focus mode (design preview, Dennis 05:32 Oct 10) ----------
   .hero.is-wide is set by the script while the active slide's media is landscape (aspect 1.25 or wider). Portrait and square slides keep the
   original card beside the text. Everything below is scoped to .hero, nothing here touches the chrome. */
.egw-home .poster-stack { background: #141412; }
.egw-home .poster { --dx: 1; transform: translateX(calc(var(--dx) * 26px)) scale(1.01); }
.egw-home .poster.on { transform: none; }
.egw-home .poster.leave { transform: translateX(calc(var(--dx) * -26px)) scale(1.01); }
.egw-home .poster.land img, .egw-home .poster.land video { object-fit: contain; }
.egw-home .poster.land.on img { animation: none; }
.egw-home .hero-grid { transition: opacity .3s ease, translate .3s var(--ease-out); }
.egw-home .hero-grid.morph { opacity: 0; translate: 0 8px; }
.egw-home .slide-text:not(.swap) > :not(h1) { transition: opacity .55s var(--ease-out), translate .55s var(--ease-out); }
.egw-home .slide-text:not(.swap) > :nth-child(2) { transition-delay: .08s; }
.egw-home .slide-text:not(.swap) > :nth-child(3) { transition-delay: .16s; }
.egw-home .slide-text:not(.swap) > :nth-child(4) { transition-delay: .24s; }

.egw-home .hero.is-wide { padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(2.5rem, 4.5vw, 4rem); }
.egw-home .hero.is-wide .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 2.8vw, 2.5rem); align-items: center; }
.egw-home .hero.is-wide h1 { font-size: clamp(1.9rem, 3vw, 2.9rem); }
.egw-home .hero.is-wide .slide-text .lead { font-size: 1rem; }
.egw-home .hero.is-wide .poster-wrap { grid-column: 2; grid-row: 1; max-width: none; justify-self: stretch; justify-items: stretch; align-content: start; }
.egw-home .hero.is-wide .frame { width: 100%; padding: 6px; border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 32px -18px rgba(0,0,0,.28); }
.egw-home .hero.is-wide .frame-in { border-radius: calc(var(--r-lg) - 4px); }
.egw-home .hero.is-wide .frame-foot { padding: 6px 14px 6px 10px; }
.egw-home .hero.is-wide .poster-stack { height: auto; aspect-ratio: 16 / 9; max-height: 78vh; }
@media (min-width: 1001px) { .egw-home .hero.is-wide .hero-grid > div:first-child { grid-column: 1; grid-row: 1; } }
.egw-home .hero .round:focus-visible, .egw-home .hero .dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.egw-home .hero .dots button { position: relative; }
.egw-home .hero .dots button::after { content: ""; position: absolute; inset: -19px -3px; }
.egw-home .hero .dots button:not([aria-current="true"]):hover { background: var(--ink-2); }

.egw-home .xbtn { position: absolute; top: 12px; left: 12px; z-index: 4; height: 44px; min-width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.38); background: rgba(14,14,12,.66); color: #FFFFFF; font: inherit; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s ease, transform .3s var(--ease-out), padding .3s var(--ease-out); }
.egw-home .xbtn:hover { background: rgba(14,14,12,.84); transform: scale(1.06); }
.egw-home .xbtn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(14,14,12,.8); }
.egw-home .xbtn .i { width: 20px; height: 20px; }
.egw-home .xbtn .ic-close, .egw-home .xbtn .xlbl { display: none; }
.egw-home .xbtn::after { content: attr(data-tip); position: absolute; left: calc(100% + 8px); top: 50%; translate: -6px -50%; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(14,14,12,.84); color: #FFFFFF; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .25s var(--ease-out); }
.egw-home .xbtn:hover::after, .egw-home .xbtn:focus-visible::after { opacity: 1; translate: 0 -50%; }
@media (hover: none) { .egw-home .xbtn::after { display: none; } }
.egw-home .frame.is-open .xbtn .ic-open { display: none; }
.egw-home .frame.is-open .xbtn .ic-close, .egw-home .frame.is-open .xbtn .xlbl { display: block; }
.egw-home .frame.is-open .xbtn::after { display: none; }

.egw-home .vol .p-play, .egw-home .vol #vppBtn.paused .p-pause { display: none; }
.egw-home .vol #vppBtn.paused .p-play { display: block; }
.egw-home .hero .vol .round { width: 44px; height: 44px; }
.egw-home .hero .vol .round .i { width: 18px; height: 18px; }
.egw-home .xrow { display: none; }


.egw-home .xctl { display: flex; align-items: center; justify-content: center; gap: var(--s-3); }
.egw-home .xcap { min-width: 0; display: grid; gap: 2px; color: #F4F3EE; }
.egw-home .xcap b { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.egw-home .xcap span { font-size: var(--t-sm, .9rem); color: #D6D3CA; }
.egw-home .xct { justify-self: end; font-weight: 600; font-size: var(--t-sm, .9rem); font-variant-numeric: tabular-nums; color: #F4F3EE; }

@media (max-width: 1000px) {
  /* 3.35.0: text first, like portrait and square slides: label, title, copy, tags, buttons, then the dots and arrows, then the wide media (Dennis) */
  .egw-home .hero.is-wide .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .egw-home .hero.is-wide .hero-grid > div:first-child { display: contents; text-align: center; }
  .egw-home .hero.is-wide .hero-grid > div:first-child > .eyebrow { order: 1; justify-self: center; margin-top: 0; }
  .egw-home .hero.is-wide .slide-text { order: 2; justify-items: center; margin-top: 0; text-align: center; }
  .egw-home .hero.is-wide .pager { order: 3; margin-top: 0; justify-content: center; flex-wrap: wrap; }
  .egw-home .hero.is-wide .pager .ctl { margin-left: 0; }
  .egw-home .hero.is-wide .poster-wrap { grid-column: 1; grid-row: auto; order: 4; justify-self: stretch; max-width: none; }
  .egw-home .hero.is-wide .slide-text .lead { margin-inline: auto; }
  .egw-home .hero.is-wide .when, .egw-home .hero.is-wide .actions { justify-content: center; }
  .egw-home .hero.is-wide h1 { font-size: var(--t-hero); }
}
/* 3.35.0: stacked hero (<=960px): the text block is exactly as tall as the active slide's own text. The script's equalising room (title and lead
   min-height, kept so the page below never moves at a live flip beside the card) is off here, and an empty lead or an empty date row leaves no
   grid row and no gap behind it. A live flip may move the page below on a phone; that is the price of no empty space. */
@media (max-width: 960px) {
  .egw-home .hero #sTitle, .egw-home .hero #sSub { min-height: 0 !important; }
  .egw-home .hero #sSub:empty { display: none; }
  .egw-home:not(.is-live) .hero #sWhen:not(:has(.pill.soft)) { display: none; }
  .egw-home .hero .when { min-height: 0; }
}
@media (max-width: 600px) {
  .egw-home .hero.is-wide .frame { padding: 4px; }
  .egw-home .hero.is-wide .actions { width: 100%; }
  .egw-home .hero.is-wide .actions .btn { flex: 1 1 100%; min-height: 48px; }
  .egw-home .hero.is-wide .frame-foot { padding: 10px 8px 8px; gap: var(--s-2); }
  .egw-home .hero .frame-foot .micro:not(.frame-live) { display: none; }
  .egw-home .hero .frame-foot .bar { margin-inline: var(--s-2); }
}
@media (prefers-reduced-motion: reduce) {
  .egw-home .poster, .egw-home .poster.leave { transform: none; }
  .egw-home .hero-grid.morph { translate: none; }
}

/* focus mode, in place (Dennis 09:26): the frame grows inside the hero box, text column fades out, nothing is fixed to the viewport */
.egw-home .hero .frame { position: relative; z-index: 2; }
.egw-home .hero-grid { position: relative; }
.egw-home .hero .hero-grid > div:first-child { transition: opacity .3s ease; }
.egw-home .hero.focus .hero-grid > div:first-child { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility 0s .22s; }
.egw-home .hero.focus .hero-grid, .egw-home .hero.is-wide.focus .hero-grid { grid-template-columns: minmax(0, 1fr); }
.egw-home .hero.focus .poster-wrap, .egw-home .hero.is-wide.focus .poster-wrap { grid-column: 1; grid-row: 1; justify-self: center; justify-items: center; width: 100%; max-width: none; }
.egw-home .hero .frame.is-open { width: var(--xw); max-width: 100%; transform: none; will-change: auto; }
.egw-home .hero .frame.is-open .frame-in { background: #11110F; color: #F4F3EE; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s-3); row-gap: 8px; padding-bottom: 10px; }
.egw-home .hero .frame.is-open .frame-in::after { display: none; }
.egw-home .hero .frame.is-open .poster-stack { grid-column: 1 / -1; height: var(--xh); max-height: none; aspect-ratio: auto; }
.egw-home .hero .frame.is-open .frame-foot, .egw-home .hero .frame.is-open .xrow { display: contents; }
.egw-home .hero .frame.is-open .frame-foot .count, .egw-home .hero .frame.is-open .frame-foot .micro, .egw-home .hero .frame.is-open .frame-foot .bar { display: none; }
.egw-home .hero .frame.is-open .vol { grid-column: 1; grid-row: 2; margin: 0 0 0 10px; }
.egw-home .hero .frame.is-open .xcap { grid-column: 2; grid-row: 2; padding-left: 8px; }
.egw-home .hero .frame.is-open .xctl { grid-column: 3; grid-row: 2; }
.egw-home .hero .frame.is-open .xct { grid-column: 4; grid-row: 2; padding-right: 14px; }
.egw-home .hero .frame.is-open .poster img, .egw-home .hero .frame.is-open .poster video { object-fit: contain; }
.egw-home .hero .frame.is-open .poster.on img { animation: none; }
.egw-home .hero .frame.is-open .round { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #FFFFFF; box-shadow: none; }
.egw-home .hero .frame.is-open .round:hover { background: rgba(255,255,255,.22); }
.egw-home .hero .frame.is-open .vol input::-webkit-slider-thumb { background: #FFFFFF; }
.egw-home .hero .frame.is-open .vol input { background: rgba(255,255,255,.35); }
.egw-home .hero .frame.is-open .dots button { background: rgba(255,255,255,.5); }
.egw-home .hero .frame.is-open .dots button[aria-current="true"] { background: #FFFFFF; }
.egw-home .hero .frame.is-open .xctl .dots { margin-inline: var(--s-2); }
.egw-home .hero .frame.is-open .xbtn { top: 12px; left: 12px; height: 48px; padding: 0 20px 0 16px; background: #FFFFFF; color: #11110F; border-color: #FFFFFF; font-size: .9375rem; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.egw-home .hero .frame.is-open .xbtn:hover { background: #E9E7E0; }
.egw-home .hero .frame.is-open .xbtn:focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 5px rgba(14,14,12,.9); }
.egw-home .xbtn.hint::after { opacity: 1; translate: 0 -50%; }
.egw-home .hero.focus.is-wide .hero-grid > div:first-child > :not(.pager), .egw-home .hero.focus .pager { }
@media (max-width: 1000px) {
  .egw-home .hero.focus .hero-grid > div:first-child > * { display: none; }
}
@media (max-width: 700px) {
  .egw-home .hero .frame.is-open .frame-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .egw-home .hero .frame.is-open .xcap { grid-column: 1 / -1; grid-row: 3; padding: 0 10px; }
  .egw-home .hero .frame.is-open .xctl { grid-column: 1 / -1; grid-row: 4; padding-bottom: 4px; }
  .egw-home .hero .frame.is-open .xct { grid-column: 3; padding-right: 10px; }
  .egw-home .hero .frame.is-open .xbtn { top: 8px; left: 8px; }
}
/* the theme's tilt and glare belong to the card layout: a wide or expanded frame stays flat; the one-slide counter keeps its space */
.egw-home .hero.is-wide .frame, .egw-home .hero.focus .frame { transform: none; will-change: auto; }
.egw-home .hero.is-wide .frame-in::after, .egw-home .hero.focus .frame-in::after { display: none; }
.egw-home .xct.one { visibility: hidden; }

/* ---------- image captions (3.35.0): a hero slide whose image has a saved caption shows it as a strip at the bottom of the slide ----------
   The strip lives inside its own .poster, so it comes and goes with the slide (and stays in the Expand view). The Expand button keeps the
   top-left corner and the text column and controls are not touched; the hero needs no separate enlarge button because Expand enlarges.
   Only the slide on show can be read or reached: the others are hidden once their fade is done. A slide with no caption is drawn as before. */
.egw-home .poster.egw-capfig { position: absolute; }
.egw-home .poster.egw-cap-over > .cap { padding-top: 40px; border-radius: 0; max-height: 70%; overflow: auto; }
.egw-home .poster:not(.on) > .cap { visibility: hidden; transition: visibility 0s linear .6s; }
.egw-home .poster.on > .cap { visibility: visible; }
.egw-home .poster > .cap .cap-title { font-size: clamp(.9375rem, 1.6vw, 1.125rem); }

/* ---------- 3.54.9: the flyer viewer's previous and next buttons (Dennis 2026-10-24 06:35 UTC).
   The Join Us viewer's pattern (approved): on desktop and wide tablets the buttons sit either side of the open flyer and
   the count sits top left; at 960px and below they move under the flyer, centred, with the count between them (R24).
   Swipe and the arrow keys also step; the flyer keeps its own proportions inside the gutters (R27). ---------- */
.egw-home .lb { grid-template-columns: auto minmax(0, max-content) auto; grid-template-rows: minmax(0, auto); column-gap: var(--s-5); justify-content: center; align-content: center; touch-action: pan-y pinch-zoom; }
.egw-home .lb #lbImg { grid-column: 2; grid-row: 1; max-width: calc(100vw - 2 * var(--gutter) - 88px - 2 * var(--s-5)); }
.egw-home .lb .lb-prev { grid-column: 1; grid-row: 1; }
.egw-home .lb .lb-next { grid-column: 3; grid-row: 1; }
.egw-home .lb .lb-count { position: absolute; top: calc(env(safe-area-inset-top, 0px) + var(--s-4) + 11px); left: var(--s-5); color: #FFFFFF; font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width: 960px) {
  .egw-home .lb { grid-template-columns: auto auto auto; grid-template-rows: auto auto; row-gap: var(--s-5); column-gap: var(--s-4); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s-5)); }
  .egw-home .lb #lbImg { grid-column: 1 / -1; max-width: calc(100vw - 2 * var(--gutter)); max-height: 70vh; max-height: 70dvh; }
  .egw-home .lb .lb-prev { grid-row: 2; justify-self: end; }
  .egw-home .lb .lb-next { grid-row: 2; justify-self: start; }
  .egw-home .lb .lb-count { position: static; grid-column: 2; grid-row: 2; min-width: 56px; text-align: center; }
}
