/* 5 Stones Church — homepage prototype
   One typeface (Archivo). Its wide caps stand in for the Sweet Sans in the current logo. */

:root {
  --navy: #0c2340;          /* brand navy, from the current logo */
  --navy-dark: #081a31;
  --paper: #f5f2ec;
  --white: #fff;
  --muted: #55627a;
  --line: rgba(12, 35, 64, .15);

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --bar-h: 60px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 3px solid #5b9bff; outline-offset: 3px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 16px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn-lg { height: 60px; padding: 0 34px; font-size: 17.5px; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #e6ebf2; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #18396a; }
.btn-outline { box-shadow: inset 0 0 0 2px currentColor; }
.btn-outline:hover { background: rgba(127, 140, 160, .14); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Intro: the four parts of the mission, once per visit ----------
   Each phrase wipes up over the last in an event-poster color, then the whole
   stack lifts away to show the page. */
.preloader { display: none; }
html.intro { overflow: hidden; }
.intro .preloader { display: block; position: fixed; inset: 0; z-index: 90; background: var(--navy-dark); cursor: pointer; }
.pl-panel {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: var(--gutter); padding-bottom: clamp(40px, 9vh, 110px);
  clip-path: inset(100% 0 0 0);
}
.pl-panel span {
  font-size: min(21vw, 36vh); font-weight: 900; text-transform: uppercase; font-stretch: 75%;
  line-height: .84; letter-spacing: -.01em;
}
.pl-honor  { --i: 0; background: #f3c443; color: var(--navy); }
.pl-love   { --i: 1; background: #df5e3f; color: #fff; }
.pl-invite { --i: 2; background: #1f5fbf; color: #fff; }
.pl-exalt  { --i: 3; background: #fff; color: var(--navy); }
.preloader.is-playing .pl-panel { animation: pl-wipe .46s cubic-bezier(.76, 0, .24, 1) calc(var(--i) * .58s) both; }
.preloader.is-playing .pl-panel span { animation: pl-rise .46s cubic-bezier(.76, 0, .24, 1) calc(var(--i) * .58s) both; }
.preloader.is-leaving { transform: translateY(-100%); transition: transform .75s cubic-bezier(.76, 0, .24, 1); }
@keyframes pl-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pl-rise { from { transform: translateY(40%); } to { transform: none; } }

/* ---------- Top nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color .2s; }
.nav.is-solid, body.menu-open .nav { background: var(--navy); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); height: 84px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-word { font-size: 16px; font-weight: 700; text-transform: uppercase; font-stretch: 120%; letter-spacing: .08em; white-space: nowrap; }

.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary li { position: relative; }
.primary button, .nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 8px;
  font-size: 16px; font-weight: 600;
}
.primary button svg { width: 15px; height: 15px; }
.primary button:hover, .nav-link:hover { background: rgba(255,255,255,.12); }
.menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  padding: 8px; border-radius: var(--radius); background: #fff; color: var(--navy);
  box-shadow: 0 18px 40px rgba(8, 26, 49, .28);
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 16px; font-weight: 600; }
.menu a:hover { background: var(--paper); }
@media (hover: hover) { .has-menu:hover .menu { display: grid; } }
.has-menu > button[aria-expanded="true"] + .menu { display: grid; }
.nav-cta { height: 48px; padding: 0 24px; }

.menu-toggle { display: none; height: 44px; padding: 0 18px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); font-weight: 700; font-size: 16px; }
.mobile-menu { position: fixed; inset: 0; z-index: 45; overflow-y: auto; background: var(--navy); color: #fff; padding: 108px var(--gutter) calc(var(--bar-h) + 48px); }
.mobile-menu[hidden] { display: none; }
.mm-cta { width: 100%; margin-bottom: 36px; }
.mm-group { margin-bottom: 30px; }
.mm-group h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; font-stretch: 115%; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.mm-group a { display: block; padding: 7px 0; font-size: 24px; font-weight: 700; }

@media (max-width: 1060px) {
  .primary, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
}
@media (max-width: 420px) { .brand-word { font-size: 14px; letter-spacing: .05em; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-dark); }
.hero video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,26,49,.6) 0%, rgba(8,26,49,.35) 30%, rgba(8,26,49,.75) 60%, rgba(8,26,49,.92) 100%);
}
.hero-inner { width: 100%; padding-top: 140px; padding-bottom: calc(var(--bar-h) + 76px); }
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -.015em;
  color: rgba(255,255,255,.85);
}
.hero-title .line { display: block; }
.hero-title strong { font-weight: 800; text-transform: uppercase; font-stretch: 106%; letter-spacing: 0; color: #fff; white-space: nowrap; }
.hero-sub { margin-top: 20px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: rgba(255,255,255,.85); }
@media (max-width: 699px) { .hero-title { font-size: 7.4vw; } .hero-title strong { font-stretch: 100%; } }
.hero .actions { margin-top: 36px; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: calc(var(--bar-h) + 40px);
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 4px;
}
.video-toggle:hover { color: #fff; }
@media (max-width: 640px) {
  .hero .actions .btn { flex: 1; padding: 0 16px; }
  .video-toggle { top: 100px; bottom: auto; }
}

/* ---------- Mission ---------- */
.mission { background: #fff; padding: clamp(80px, 10vw, 128px) 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; margin-top: 44px; }
.pillar img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.pillar h3 { margin: 24px 0 10px; font-size: 1.4rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; font-stretch: 112%; letter-spacing: .01em; }
.pillar p { margin-bottom: 14px; font-size: 17px; color: var(--muted); }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar img { aspect-ratio: 4 / 3; } }

/* ---------- Plan a visit ---------- */
.visit { background: var(--paper); padding: clamp(80px, 10vw, 128px) 0; }
.visit-head { text-align: center; }
.visit-head .actions { justify-content: center; }
.address { margin: 16px 0 32px; font-size: 1.3rem; line-height: 1.45; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); margin-top: clamp(56px, 7vw, 88px); }
.faq { margin: 0; border-top: 1px solid var(--line); }
.faq div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 700; font-size: 1.1rem; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
/* The map stretches to the height of the questions beside it */
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: #dfe4ea url("https://storage1.snappages.site/HQ2BCK/assets/images/11184300_6000x4000_1000.jpg") center / cover; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
/* One column: the footer already has the address and directions, so drop the map */
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
  .map { display: none; }
}
@media (max-width: 560px) {
  .visit-head .actions .btn { flex: 1; padding: 0 14px; }
}

/* ---------- What's coming up ---------- */
.events { position: relative; isolation: isolate; overflow: clip; background: var(--navy-dark); color: #fff; padding: clamp(80px, 10vw, 128px) 0 calc(var(--bar-h) + 80px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.fan {
  --cw: clamp(200px, 20vw, 280px);
  position: relative; height: calc(var(--cw) * 1.75); margin-top: 56px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.fan.is-dragging { cursor: grabbing; }
.fan-stage { position: absolute; left: 50%; top: 0; width: 0; height: 100%; }
.card {
  position: absolute; top: 0; left: calc(var(--cw) / -2); width: var(--cw); aspect-ratio: 5 / 6;
  border-radius: 12px; transform-origin: 50% 60%; will-change: transform;
  container-type: inline-size; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.fan.is-dragging .card { cursor: grabbing; }
.card-face { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); transition: transform .2s, box-shadow .2s; }
.card img { -webkit-user-drag: none; pointer-events: none; }
/* A highlighted card comes to the very front (beats the inline z-index set by the fan) */
@media (hover: hover) {
  .fan:not(.is-dragging) .card:hover { z-index: 200 !important; }
  .fan:not(.is-dragging) .card:hover .card-face { transform: translateY(-14px) scale(1.04); box-shadow: 0 34px 60px -18px rgba(0,0,0,.8); }
}
.card:focus-visible { z-index: 200 !important; outline: none; }
.card:focus-visible .card-face { outline: 3px solid #5b9bff; outline-offset: 3px; }

/* Posters: one typeface, sized to the card with container units */
.poster { display: flex; flex-direction: column; gap: 2cqw; padding: 7cqw; color: #fff; }
.p-small { position: relative; z-index: 1; font-size: 5.2cqw; font-weight: 700; text-transform: uppercase; font-stretch: 115%; letter-spacing: .08em; line-height: 1.2; }
.p-title { position: relative; z-index: 1; font-weight: 900; text-transform: uppercase; font-stretch: 75%; line-height: .86; letter-spacing: -.01em; }
.p-bottom { margin-top: auto; }

.p-kids { background: #f3c443; color: var(--navy); }
.p-kids .p-title { font-size: 38cqw; }
.p-kids img { position: absolute; right: 7cqw; bottom: 7cqw; width: 50cqw; aspect-ratio: 1; object-fit: cover; border-radius: 3cqw; }
.p-kids .p-bottom { max-width: 32cqw; }

.p-students { justify-content: flex-end; background: var(--navy); }
.p-students img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .55; }
.p-students .p-title { font-size: 18cqw; }

.p-faith { background: var(--navy); }
.p-faith .p-title { font-size: 18cqw; }
.p-faith img { position: absolute; left: 0; bottom: 0; width: 100%; height: 46%; object-fit: cover; }

.p-member { background: var(--paper); color: var(--navy); padding: 5cqw; }
.p-member img { width: 100%; height: 58%; object-fit: cover; border-radius: 2cqw; margin-bottom: auto; }
.p-member .p-title { font-size: 14.5cqw; padding: 0 2cqw; }
.p-member .p-small { padding: 0 2cqw 2cqw; }

.p-baptism { background: #1f5fbf; justify-content: space-between; }
.p-baptism .p-title { font-size: 21cqw; }

.p-new { background: #df5e3f; }
.p-new .p-title { font-size: 15cqw; }
.p-new .p-small:not(.p-bottom) { color: var(--navy); }
.p-new img { position: absolute; right: 7cqw; bottom: 7cqw; width: 48cqw; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.p-groups { background: #1d4a3e; justify-content: flex-end; }
.p-groups img { position: absolute; top: 0; left: 0; width: 100%; height: 52%; object-fit: cover; }
.p-groups .p-title { font-size: 16cqw; }

.event-detail { max-width: 640px; margin: 4px auto 0; padding: 0 var(--gutter); text-align: center; }
.ed-when { font-size: 14px; font-weight: 700; text-transform: uppercase; font-stretch: 112%; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.ed-title { margin: 8px 0; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.ed-text { color: rgba(255,255,255,.8); min-height: 3.2em; }
.fan-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.arrow { width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.arrow:hover { box-shadow: inset 0 0 0 2px #fff; }
.arrow svg { width: 20px; height: 20px; }
.events .link { color: #fff; }
@media (max-width: 700px) {
  /* Phones: one big card in the middle, neighbors peeking in at the edges */
  .fan { --cw: min(80vw, 360px); height: calc(var(--cw) * 1.36); margin-top: 32px; }
  .ed-text { min-height: 4.8em; }
}

/* ---------- Latest message ---------- */
.message { background: #fff; padding: clamp(80px, 10vw, 128px) 0; }
.message-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.message-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.message-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.message-thumb:hover .play { background: #e6ebf2; }
.message-title { margin: 14px 0 6px; font-size: 1.4rem; font-weight: 700; }
.message .actions { margin-top: 28px; }
.listen { margin-top: 22px; font-size: 16px; color: var(--muted); }
.listen a { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .message-grid { grid-template-columns: 1fr; } }

/* ---------- Future location ---------- */
.future { background: var(--paper); padding: clamp(80px, 10vw, 128px) 0; }
.future-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.future img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.future .muted { margin: 18px 0 28px; max-width: 32em; }
@media (max-width: 900px) { .future-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ----------
   When the whole footer fits on screen, it sits still behind the page and the
   page lifts away to uncover it (same move as the intro). JS adds .is-reveal. */
main { position: relative; z-index: 1; background: var(--paper); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.footer { background: var(--navy-dark); color: #fff; padding: clamp(56px, 6vw, 80px) 0 24px; }
.footer.is-reveal { position: sticky; bottom: 0; z-index: 0; }

.f-top {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px 64px; align-items: end;
  padding-bottom: clamp(40px, 4vw, 52px); border-bottom: 1px solid rgba(255,255,255,.15);
}
.f-hello { font-size: clamp(4rem, 7.6vw, 7rem); font-weight: 900; text-transform: uppercase; font-stretch: 75%; line-height: .84; letter-spacing: -.01em; }
.f-times { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.f-address { margin-top: 8px; font-size: 1.15rem; line-height: 1.45; color: rgba(255,255,255,.8); }
.f-visit .actions { margin-top: 26px; }

.f-links { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 32px 24px; padding: 36px 0 clamp(40px, 4vw, 52px); }
.f-links h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; font-stretch: 115%; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.f-links a { display: block; padding: 3px 0; font-size: 16.5px; color: rgba(255,255,255,.88); }
.f-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Giant wordmark; JS sizes it to fill the column exactly */
.f-mark { container-type: inline-size; overflow: hidden; }
.f-mark span { display: inline-block; white-space: nowrap; font-size: 12.6cqw; font-weight: 900; text-transform: uppercase; font-stretch: 75%; line-height: .8; letter-spacing: -.01em; padding-top: .04em; }

.f-legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.55); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: rgba(255,255,255,.18); }
.social svg { width: 20px; height: 20px; }

@media (max-width: 1000px) {
  .f-top { grid-template-columns: 1fr; }
  .f-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .f-hello { font-size: 21vw; }
  .f-visit .actions .btn { flex: 1; padding: 0 14px; }
  .f-links { grid-template-columns: 1fr 1fr; }
  .f-links > :last-child { grid-column: 1 / -1; }
  .f-legal { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Bottom bar: service times ---------- */
.svcbar {
  position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 1280px; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 22px; border-radius: 14px;
  background: #fff; color: var(--navy);
  box-shadow: 0 14px 34px -10px rgba(8, 26, 49, .45), 0 0 0 1px rgba(12,35,64,.08);
  font-size: 13.5px; font-weight: 700; text-transform: uppercase; font-stretch: 112%; letter-spacing: .05em; line-height: 1;
  transition: transform .4s cubic-bezier(.76, 0, .24, 1);
}
/* The footer has the same info, so the bar steps aside once it shows */
.svcbar.is-away { transform: translate(-50%, calc(100% + 24px)); }
.svc-left { display: flex; align-items: center; min-width: 0; }
.svc-left > *, .svc-times > * { padding: 0 18px; border-left: 1.5px solid rgba(12,35,64,.2); white-space: nowrap; }
.svc-left > :first-child { padding-left: 0; border-left: 0; }
/* Desktop: each time is its own cell. Phones stack them as "9:00 /" over "10:45" */
.svc-times { display: contents; }
.slash { display: none; }
.svc-watch { display: inline-flex; align-items: center; gap: 8px; }
.svc-watch:hover, .svc-addr:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-watch svg { width: 14px; height: 14px; }
/* Address is phones/tablets only; on desktop that room goes to last week's sermon */
.svc-addr { display: none; align-items: center; gap: 5px; }
.svc-addr svg { width: 13px; height: 13px; flex: none; }
.live-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #d93036; }
.lbl-live { display: none; }
.svcbar.is-live .lbl-live, .svcbar.is-live .live-dot { display: inline-block; }
.svcbar.is-live .lbl-watch { display: none; }
.svcbar.is-live .svc-watch { color: #c22f35; }

.svc-right { display: flex; align-items: center; min-width: 0; }
.svc-sermon, .svc-ticker { display: none; }
.svcbar[data-variant="sermon"] .svc-sermon { display: flex; }
.svc-sermon { align-items: center; gap: 12px; height: 46px; padding: 0 6px; border-radius: 10px; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; }
.svc-sermon:hover { background: var(--paper); }
.svc-sermon img { width: 56px; height: 32px; object-fit: cover; border-radius: 5px; }
.ss-short { display: none; text-align: right; line-height: 1.2; white-space: nowrap; }
.ss-play { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.ss-play svg { width: 15px; height: 15px; margin-left: 2px; }

.svcbar[data-variant="center"] { justify-content: center; max-width: 720px; padding: 0 22px; }
.svcbar[data-variant="center"] .svc-right { display: none; }

.svcbar[data-variant="ticker"] .svc-ticker { display: block; }
.svc-ticker { padding-right: 14px; white-space: nowrap; }
.tick { display: none; }
.tick.is-active { display: inline; }
.tick:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Too narrow for the sermon title: use a short two-line label instead */
@media (max-width: 1100px) {
  .ss-text, .svc-sermon img { display: none; }
  .ss-short { display: block; }
}
@media (max-width: 860px) {
  .svcbar { --bar-h: 56px; height: 56px; gap: 10px; padding: 0 6px 0 16px; font-size: 12.5px; letter-spacing: .03em; font-stretch: 100%; }
  .svc-left > * { padding: 0 9px; }
  /* Phones: stacked times, stacked address, then last week's message */
  .svc-label, .ampm, .svc-watch { display: none; }
  .svc-addr { display: inline-flex; gap: 7px; padding-right: 0; }
  .svc-addr svg { width: 15px; height: 15px; }
  .addr-text { line-height: 1.2; }
  .svc-times { display: flex; flex-direction: column; line-height: 1.2; }
  .svc-times > * { padding: 0; border-left: 0; }
  .slash { display: inline; }
  .svc-left > :nth-child(2) { padding-left: 0; border-left: 0; }
  .svc-sermon { gap: 10px; padding: 0; }
  .svcbar[data-variant="ticker"] .svc-ticker { display: none; }
}
/* Smaller phones: tighten up, and below 355px drop the label */
@media (max-width: 374px) {
  .svcbar { gap: 8px; padding-left: 14px; font-size: 12px; letter-spacing: .02em; }
  .svc-left > * { padding: 0 7px; }
  .svc-addr { gap: 5px; }
  .svc-sermon { gap: 8px; }
}
@media (max-width: 354px) {
  .ss-short { display: none; }
}

/* ---------- Video modal ---------- */
.video-modal { width: min(1100px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible; }
.video-modal::backdrop { background: rgba(4, 10, 20, .85); }
.video-frame { aspect-ratio: 16 / 9; border-radius: inherit; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.vm-close { position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--navy); }
.vm-close svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
