@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-cyrillic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Grot"; src: url(assets/fonts/inter-tight-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Disp"; src: url(assets/fonts/eb-garamond-cyrillic-500-italic.woff2) format("woff2"); size-adjust: 112%; font-weight: 500; font-style: italic; font-display: block; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Disp"; src: url(assets/fonts/eb-garamond-latin-500-italic.woff2) format("woff2"); size-adjust: 112%; font-weight: 500; font-style: italic; font-display: block; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --g: 32px;
  --hdr: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --line: color-mix(in srgb, currentColor 24%, transparent);
  --cream: #FBF5EA;
}
[data-theme="blue"] {
  --accent: #252C5A;
  --gl-deep: #1F2550;
  --gl-bright: #3B4582;
  --on-accent: #F8F2E7;
  --on-accent-2: #F8F2E7;
  --surface: #F6F0E5;
  --ink: #252C5A;
  --card: #F6F0E5;
  --card-2: #E9E0CF;
  --on-card: #252C5A;
  --bar: #252C5A;
  --round: #F6F0E5;
  --round-ink: #252C5A;
  --sel: #252C5A;
  --hero-word: #FBF5EA;
  --hero-tint: linear-gradient(rgba(37,44,90,.22), rgba(37,44,90,.22));
  --btn-bg: #252C5A;
  --btn-ink: #FBF5EA;
  --cta-bg: #FBF5EA;
  --cta-ink: #252C5A;
}
[data-theme="yellow"] {
  --accent: #EDCB74;
  --gl-deep: #E6C062;
  --gl-bright: #F6DE9A;
  --on-accent: #2A2116;
  --on-accent-2: #2A2116;
  --surface: #1C1812;
  --ink: #F1D284;
  --card: #1C1812;
  --card-2: #2C2519;
  --on-card: #F5ECD6;
  --bar: #F1D284;
  --round: #2A2116;
  --round-ink: #F1D284;
  --sel: #F1D284;
  --hero-word: #F7DF9E;
  --hero-tint: linear-gradient(rgba(120,90,20,.12), rgba(120,90,20,.12));
  --btn-bg: #EDCB74;
  --btn-ink: #2A2116;
  --cta-bg: #EDCB74;
  --cta-ink: #2A2116;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.42 "Grot", system-ui, sans-serif; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html.is-loading, html.is-loading body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
p, h1, h2, h3, figure { margin: 0; font: inherit; }
em { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--sel); color: var(--surface); }

.serif { font-family: "Disp", Georgia, serif; font-weight: 500; font-style: italic; letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.caps { text-transform: uppercase; font-size: 13.5px; line-height: 1.4; letter-spacing: .045em; font-weight: 500; }
.tag { font-family: "Disp", Georgia, serif; font-weight: 500; font-style: italic; font-size: 21px; letter-spacing: 0; }
.lead { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.36; letter-spacing: -.012em; }
.h3 { font-family: "Disp", Georgia, serif; font-weight: 500; font-style: italic; font-size: clamp(29px, 2.7vw, 39px); line-height: 1.16; letter-spacing: -.01em; }
.display { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.08; letter-spacing: -.025em; font-weight: 400; }
.display .serif { letter-spacing: -.012em; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; display: block; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .1em .16em; margin: -.12em -.1em -.16em; }
.ch { display: inline-block; transform: translateY(46%); opacity: 0; transition: transform 1.5s var(--ease), opacity 1.1s ease; transition-delay: calc(var(--i) * 14ms); will-change: transform; }
.in .ch { transform: none; opacity: 1; }

/* Loader */
.loader { display: none; }
.is-loading .loader, .loader.leaving {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 50;
  background: var(--accent); color: var(--on-accent);
}
.loader.leaving { transform: translateY(-100%); transition: transform .95s cubic-bezier(.76, 0, .24, 1); }
.loader__ring { position: absolute; width: min(450px, 78vw); aspect-ratio: 1; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: currentColor; stroke-opacity: .7; stroke-width: .18; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring 2.3s cubic-bezier(.45, 0, .2, 1) .1s forwards; vector-effect: none; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.loader__mask { height: 1.17em; overflow: hidden; font-size: clamp(34px, 3.06vw, 44px); -webkit-mask-image: linear-gradient(#000 0, #000 100%); position: relative; }
.loader__days { display: flex; flex-direction: column; align-items: center; animation: days 2.4s cubic-bezier(.62, .02, .12, 1) forwards; }
.loader__days span { height: 1.17em; line-height: 1.17; flex: none; letter-spacing: -.03em; }
.loader__days .serif { font-size: 1.14em; height: 1.026em; line-height: 1.026; }
@keyframes days { from { transform: translateY(0); } to { transform: translateY(calc(-6 * 1.17em)); } }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--hdr); padding: 0 var(--g);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink); background: var(--surface); transition: color .2s, background-color .2s;
}
.hdr[data-tone="accent"] { color: var(--on-accent); background: var(--accent); }
.hdr.is-top { background: transparent; color: var(--cream); }
.hdr__side { display: flex; gap: 44px; font-size: 14px; letter-spacing: .05em; font-weight: 500; }
.hdr__side--r { justify-content: flex-end; padding-right: 84px; }
.hdr__logo { display: block; }
.logo { display: block; height: 50px; width: auto; fill: currentColor; }
.hdr__burger { display: none; }
.hdr__tools { position: absolute; right: var(--g); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.tgl { display: grid; place-items: center; width: 56px; height: 44px; }
.tgl__track { position: relative; display: block; width: 56px; height: 28px; border-radius: 28px; background: #1F1A17; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.tgl__dot { position: absolute; top: 7px; width: 14px; height: 14px; border-radius: 50%; }
.tgl__dot--blue { left: 7px; background: #5563B8; }
.tgl__dot--yellow { right: 7px; background: #EDCB74; }
.tgl__ring { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #F6F0E5; transition: transform .45s var(--ease); }
.tgl[aria-checked="true"] .tgl__ring { transform: translateX(28px); }
.roll { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.roll span { display: block; position: relative; transition: transform .6s var(--ease); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
@media (hover: hover) { .roll:hover span { transform: translateY(-100%); } }

.menu { position: fixed; inset: 0; z-index: 29; background: var(--accent); color: var(--on-accent); padding: 110px 20px 32px; display: flex; flex-direction: column; gap: 12px; font: italic 500 48px/1.12 "Disp", Georgia, serif; }
.menu[hidden] { display: none; }
.menu .caps { margin-top: auto; font-family: "Grot", system-ui, sans-serif; font-style: normal; }

/* Intro and hero */
.intro { position: relative; }
.hero { --on-accent: var(--cream); --on-accent-2: var(--cream); position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 1; background: #120E0C; color: var(--cream); overflow: hidden; will-change: clip-path; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gl--low { -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.hero__bg { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero__bg img { object-position: 50% 62%; transform: scale(var(--hz, 1.08)); transform-origin: 50% 60%; will-change: transform; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,12,8,.46) 0, rgba(18,12,8,.08) 36%, rgba(18,12,8,.12) 54%, rgba(18,12,8,.8) 100%), var(--hero-tint); }
.hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 0 var(--g) 32px; }
.hero__word { color: var(--hero-word); font-size: 28vw; line-height: 1; white-space: nowrap; margin-top: 7vh; letter-spacing: -.015em; }
.hero__foot { margin-top: auto; display: grid; grid-template-columns: 5fr 1.8fr 2fr; gap: 24px 32px; align-items: end; }
.hero__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__lead { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.012em; max-width: 20em; color: var(--on-accent-2); }
.hero__h1 { display: inline; }
.hero__col { display: grid; gap: 16px; }

/* Buttons */
.ico-s { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ico-s--go { transition: transform .35s var(--ease); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 20px; border-radius: 50px; background: var(--btn-bg); color: var(--btn-ink); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.1; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 6px 18px -8px rgba(18,12,8,.5); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(18,12,8,.6); } .btn:hover .ico-s--go { transform: translate(2px, -2px); } }
.btn--main { background: var(--cta-bg); color: var(--cta-ink); }
.btn--photo { background: rgba(18,12,8,.42); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(251,245,234,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btns--2 { display: grid; grid-template-columns: 1fr 1fr; }
.btns--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btns--3 .btn { flex-direction: column; gap: 6px; min-height: 68px; padding: 8px 4px; font-size: 14.5px; border-radius: 18px; }
.btns--3 .ico-s { width: 21px; height: 21px; }
.btns:not(.btns--3) .btn { flex: 1 1 auto; }
.lnk { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lnk .ico-s { width: 16px; height: 16px; }

/* About */
.about { position: relative; z-index: 2; padding: 100px var(--g) 0; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); }
.ticker__run { display: flex; width: max-content; animation: run 90s linear infinite; padding: 12px 0; }
.ticker__run span { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker__run span::after { content: ""; width: 5px; height: 5px; margin: 0 56px; border-radius: 50%; background: currentColor; }
@keyframes run { to { transform: translateX(-33.3333%); } }
.about__title { display: flex; justify-content: space-between; gap: 32px; margin-top: 16vh; }
.about__r { margin-top: 62vh; }
.about__meta { display: grid; grid-template-columns: 5fr 1.5fr 3fr; gap: 32px; margin-top: 40vh; align-items: start; }
.about__facts { display: contents; }
.about__facts .ico--arrow { grid-column: 2; justify-self: end; }
.about__facts .caps { grid-column: 3; }
.about__lead { grid-column: 3; margin-top: 40px; }
.grow-space { height: 170vh; }

.reel-rail { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.reel-stage { position: sticky; top: 0; height: 100vh; }
.reel { position: absolute; left: 50%; top: 56%; width: 300px; height: 236px; transform: translateX(-50%); background: var(--card-2); border-radius: 18px; overflow: hidden; color: var(--on-card); pointer-events: auto; }
.reel__head { position: absolute; inset: 12px 15px auto; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-card); }
.reel__media { position: absolute; inset: var(--head, 88px) var(--pad, 12px) var(--pad, 20px); overflow: hidden; border-radius: 10px; background: #120E0C; }
.reel__media img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.reel__media img.on { opacity: 1; }

/* Schedule */
.sched { position: relative; z-index: 5; background: var(--surface); padding: 14vh var(--g) 14vh; }
.head-c { text-align: center; display: grid; gap: 24px; justify-items: center; margin-bottom: 72px; }
.week { display: grid; grid-template-columns: 1.75fr .5fr 1.75fr .5fr .5fr 1.75fr 2.5fr; gap: 8px; }
.day { position: relative; isolation: isolate; display: flex; min-height: min(640px, 78vh); border-radius: 20px; overflow: hidden; background: #120E0C; color: var(--cream); }
.day__bg { position: absolute; inset: 0; z-index: -2; transition: transform 1.1s var(--ease); }
.day::before, .groups::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(14,11,9,.66) 0, rgba(14,11,9,.12) 30%, rgba(14,11,9,.28) 50%, rgba(14,11,9,.93) 82%); }
.day__c { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 18px; }
.day__d { font-size: 13.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.day__time { margin-top: 4px; font-size: clamp(44px, 4.3vw, 66px); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: var(--cta-bg); }
.day__b { margin-top: auto; display: grid; gap: 10px; justify-items: start; }
.day__t { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.12; }
.day__n { font-size: 15px; line-height: 1.36; opacity: .92; }
.go { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 44px; background: var(--cta-bg); color: var(--cta-ink); font-size: 14.5px; font-weight: 500; line-height: 1.1; }
.go .ico-s { width: 16px; height: 16px; }
.day--empty { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.day--empty::before { display: none; }
.day__e { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 26px; opacity: .4; }
.day__main::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.day--on .day__t { font-size: clamp(28px, 2.8vw, 42px); }
.day--on .day__time { font-size: clamp(60px, 6.4vw, 96px); }
.day--on .go { pointer-events: none; }
.subs { position: relative; z-index: 1; width: 100%; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.subs a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 12px; border-radius: 14px; background: rgba(251,245,234,.14); box-shadow: inset 0 0 0 1px rgba(251,245,234,.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s; }
.subs b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--cta-bg); }
.subs span { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.2; }
.subs small { display: block; font-size: 13px; font-weight: 400; opacity: .85; }
.groups { position: relative; isolation: isolate; grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 240px; padding: 18px; border-radius: 20px; overflow: hidden; background: #120E0C; color: var(--cream); }
.groups::before { background: linear-gradient(to right, rgba(14,11,9,.86) 0, rgba(14,11,9,.42) 55%, rgba(14,11,9,.2) 100%); }
.groups__c { display: grid; gap: 6px; }
.groups__t { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.1; }
.groups .go { flex: none; margin: 0; }
@media (hover: hover) {
  a.day:hover .day__bg, .day--on:hover .day__bg, .groups:hover .day__bg { transform: scale(1.05); }
  a.day:hover .go .ico-s--go, .day--on:hover .go .ico-s--go, .groups:hover .go .ico-s--go { transform: translate(2px, -2px); }
  .subs a:hover { background: rgba(251,245,234,.28); }
}
@media (max-width: 1180px) {
  .week { grid-template-columns: repeat(3, 1fr); }
  .day--empty { display: none; }
  .day--on { grid-column: 1 / -1; order: -1; min-height: 560px; }
  .groups { order: 5; }
}
.round { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--surface); transition: transform .5s var(--ease); }
.round svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; }
/* First visit stack */
.first { position: relative; z-index: 5; background: var(--surface); padding: 0 var(--g) 16vh; }
.first__head { display: grid; grid-template-columns: 1fr 2.05fr; align-items: baseline; padding-bottom: 60px; font-size: 21px; }
.stack { border-bottom: 1px solid var(--line); }
.row { position: sticky; top: calc(var(--hdr) + var(--n) * 70px); display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: 32px; min-height: 332px; padding: 28px 0 48px; border-top: 1px solid var(--line); background: var(--surface); }
.row:nth-child(1) { --n: 0; } .row:nth-child(2) { --n: 1; } .row:nth-child(3) { --n: 2; } .row:nth-child(4) { --n: 3; }
.row__n { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(64px, 6.6vw, 96px); line-height: 1; }
.row__b { display: grid; gap: 18px; align-content: start; }
.row__b p { font-size: 18px; line-height: 1.42; max-width: 27em; }
.row__b { justify-items: start; }
.frame { background: var(--card-2); border-radius: 130px 130px 18px 18px; padding: 10px; height: 268px; }
.frame img { border-radius: 120px 120px 11px 11px; }

/* Gallery */
.gal { position: relative; z-index: 5; background: var(--surface); padding: 4vh 0 16vh; overflow: hidden; }
.gal__head { padding: 0 var(--g); display: grid; gap: 24px; margin-bottom: 64px; }
.gal__hint { display: none; }
.gal__rows { display: grid; gap: 16px; }
.gal__row { display: flex; gap: 16px; width: max-content; height: clamp(240px, 27vw, 400px); will-change: transform; }
.gal__i { flex: none; height: 100%; padding: 8px; background: var(--card-2); border-radius: 18px; }
.gal__i img { width: auto; height: 100%; border-radius: 11px; }
.gal__i:has(img[width="666"]) { border-radius: 50% 50% 18px 18px / 33.3% 33.3% 18px 18px; }
.gal__i:has(img[width="666"]) img { border-radius: 50% 50% 11px 11px / 33.3% 33.3% 11px 11px; }

/* Wide photo */
.wide { position: relative; z-index: 5; background: var(--surface); height: 200vh; }
.wide__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.wide__fig { position: absolute; inset: 0; clip-path: inset(var(--wi, 22%) var(--wx, 22%) round 24px); will-change: clip-path; color: #fff; background: #08080C; }
.wide__fig img { transform: scale(var(--wz, 1.14)); will-change: transform; }
.wide__fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,12,8,.68), rgba(18,12,8,0) 46%); }
.wide__fig figcaption { position: absolute; z-index: 1; left: var(--g); right: var(--g); bottom: 4.5vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; opacity: var(--wo, 0); }
.wide__fig .serif { font-size: clamp(46px, 6.4vw, 104px); line-height: 1.05; }
.wide__fig .caps { text-align: right; max-width: 22em; }

/* Ministries */
.mtitle { position: relative; z-index: 5; background: var(--accent); color: var(--on-accent-2); min-height: 76vh; padding: 16vh var(--g) 15vh; display: flex; flex-direction: column; justify-content: flex-end; }
.mtitle__w { font-weight: 400; font-size: clamp(64px, 12.6vw, 190px); line-height: 1.04; letter-spacing: -.03em; display: flex; flex-direction: column; }
.mtitle__b { align-self: flex-end; line-height: 1.04; padding-right: .04em; letter-spacing: -.012em; }
.mtitle__c { position: absolute; left: var(--g); bottom: 5vh; }
.mtitle__d { position: absolute; left: 22%; bottom: 5vh; }

.hs { position: relative; z-index: 5; background: var(--accent); color: var(--on-accent); }
.hs__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hs__track { position: relative; height: 100%; display: flex; width: max-content; padding: 0 18vw 0 18vw; will-change: transform; }
.m { display: grid; grid-template-columns: auto 720px 300px; gap: 24px; align-items: start; margin-top: max(84px, calc((100vh - 580px) / 2 - 56px)); }
.m--low { margin-top: max(120px, calc((100vh - 580px) / 2 + 40px)); }
.m__n { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 34px; line-height: 1; padding-top: 4px; }
.card { position: relative; display: block; height: min(578px, calc(100vh - 150px)); background: var(--card); color: var(--on-card); border-radius: 22px; padding: 14px; }
.card img { height: calc(100% - 96px); border-radius: 12px; }
.card__t { position: absolute; left: 20px; bottom: 24px; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.1; }
.card__when { position: absolute; left: 26px; top: 26px; padding: 9px 15px; border-radius: 40px; background: var(--cta-bg); color: var(--cta-ink); font-size: 16px; font-weight: 500; line-height: 1.1; box-shadow: 0 6px 16px -8px rgba(18,12,8,.7); }
.pin { position: absolute; right: 18px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.pin svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover: hover) { .card:hover .pin { transform: translateX(4px); } }
.m__meta { display: grid; gap: 14px; margin-top: 230px; }
.m__meta p:nth-child(2) { font-size: 17px; letter-spacing: .01em; }
.m__links .btn { background: var(--on-accent); color: var(--accent); }

/* Pastor */
.pastor { position: relative; z-index: 5; background: var(--surface); padding: 18vh var(--g) 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.pastor__l { display: grid; gap: 24px; justify-items: start; }
.pastor__l .lead { max-width: 25em; }
.pastor__note { font-size: 18px; max-width: 27em; padding-left: 16px; border-left: 3px solid currentColor; }
.pastor__photo { max-width: 560px; justify-self: end; width: 100%; padding: 10px; background: var(--card-2); border-radius: 50% 50% 22px 22px / 37.5% 37.5% 22px 22px; }
.pastor__photo img { height: auto; aspect-ratio: 3 / 4; border-radius: 50% 50% 14px 14px / 37.5% 37.5% 14px 14px; }

/* Contacts */
.contacts { position: relative; z-index: 5; background: var(--surface); padding: 20vh var(--g) 16vh; }
.table { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.col { position: relative; padding: 26px 24px 30px; min-height: 400px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col__n { font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 24px; }
.col__line { display: none; }
.col__t { margin-top: 56px; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.12; }
.col__p { margin-top: 16px; font-size: 17px; line-height: 1.42; max-width: 19em; min-height: 4.4em; }
.col .btns { margin-top: auto; padding-top: 26px; }
.branch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; padding: 6px 24px; }
.branch__t { font-size: 17px; line-height: 1.4; max-width: 38em; opacity: .9; }
.branch__t .serif { font-size: 1.2em; }
.branch__links { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* Digits */
.digits { position: relative; z-index: 5; background: var(--surface); height: 170vh; }
.digits__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.digits__tag { position: absolute; left: 0; right: 0; top: calc(var(--hdr) + 3vh); text-align: center; }
.digits__row { display: flex; justify-content: center; align-items: flex-end; font-family: "Disp", Georgia, serif; font-style: italic; font-weight: 500; font-size: 27vw; line-height: 1; letter-spacing: 0; }
.digits__row span { display: block; transform-origin: 50% 100%; will-change: transform; padding: 0 .02em; }

/* Footer */
main { position: relative; z-index: 2; background: var(--surface); margin-bottom: 100vh; }
.foot { position: fixed; inset: auto 0 0 0; height: 100vh; height: 100svh; z-index: 1; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; overflow: hidden; visibility: hidden; }
.foot.show { visibility: visible; }
.foot__link { position: relative; margin: auto; padding: 0 var(--g); display: grid; justify-items: center; }
.foot__w { font-size: 11vw; line-height: 1; white-space: nowrap; }
.round--xl { position: relative; margin-top: 2.2vw; width: clamp(84px, 8.4vw, 120px); height: clamp(84px, 8.4vw, 120px); background: var(--round); color: var(--round-ink); }
.foot__link:hover .round { transform: rotate(45deg); }
.foot__nav { position: relative; display: flex; justify-content: center; gap: 36px; padding-bottom: 28px; }
.foot__nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (hover: hover) { .foot__nav a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot__base { position: relative; display: flex; justify-content: space-between; padding: 0 var(--g) 20px; opacity: .7; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 76px; z-index: 40; transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 40px; background: var(--card-2); color: var(--on-card); font-size: 15px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Phones and small tablets */
@media (max-width: 860px) {
  :root { --g: 20px; --hdr: 64px; }
  .tag { font-size: 20px; }
  .hdr { grid-template-columns: 1fr auto; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
  .hdr.is-top { border-bottom-color: transparent; }
  .hdr__side { display: none; }
  .logo { height: 42px; }
  .hdr__tools { position: static; transform: none; }
  .hdr__burger { display: grid; gap: 7px; width: 44px; height: 44px; align-content: center; justify-items: end; }
  .hdr__burger i { width: 28px; height: 2.5px; background: currentColor; transition: transform .3s var(--ease); }
  .hdr__burger[aria-expanded="true"] i:first-child { transform: translateY(4.75px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] i:last-child { transform: translateY(-4.75px) rotate(-45deg); }

  .intro { display: flex; flex-direction: column; }
  .hero { order: 1; position: relative; will-change: auto; }
  .hero__bg img { object-position: 50% 50%; transform: none; will-change: auto; }
  .hero__veil { background: linear-gradient(to bottom, rgba(18,12,8,.5) 0, rgba(18,12,8,.1) 30%, rgba(18,12,8,.3) 50%, rgba(18,12,8,.88) 100%), var(--hero-tint); }
  .hero__inner { padding-top: 64px; padding-bottom: 28px; }
  .hero__word { margin-top: 4vh; }
  .hero__foot { grid-template-columns: 1fr 1fr; align-items: start; gap: 22px 16px; }
  .hero__lead { grid-column: 1 / -1; font-size: 22px; }
  .hero__col { gap: 8px; }
  .hero__col:nth-of-type(2) .ico { display: none; }
  .hero__cta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero__cta .btn { min-height: 48px; padding: 0 4px; font-size: 14.5px; gap: 6px; }
  .hero__cta .btn--photo .ico-s--go { display: none; }
  .hero__cta .btn--main { grid-column: 1 / -1; min-height: 54px; font-size: 17px; }

  .about { order: 2; padding-top: 72px; }
  .about__title { display: block; margin-top: 56px; }
  .about__title br { display: inline; }
  .about__l, .about__r { display: block; margin: 0; }
  .about__meta { display: block; margin-top: 56px; }
  .about__facts { display: grid; grid-template-columns: 100px 1fr; margin-top: 40px; }
  .about__facts .ico--arrow { grid-column: 1; justify-self: start; }
  .about__facts .caps { grid-column: 2; }
  .about__lead { margin-top: 40px; }
  .grow-space { height: 56px; }

  .reel-rail { order: 3; position: relative; inset: auto; padding: 0 var(--g); }
  .reel-stage { position: static; height: auto; }
  .reel { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 22px; --head: 0px; --pad: 0px; }
  .reel__head { display: none; }

  .sched { padding: 80px var(--g) 72px; }
  .head-c { text-align: left; justify-items: start; margin-bottom: 40px; gap: 16px; }
  .week { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .day, .day--on { min-height: 470px; grid-column: auto; }
  .day--on { min-height: 580px; }
  .day__c { padding: 16px; }
  .day__time { font-size: 52px; }
  .day--on .day__time { font-size: 72px; }
  .day__t { font-size: 27px; }
  .day--on .day__t { font-size: 32px; }
  .day__n { font-size: 16px; }
  .go { min-height: 48px; padding: 0 16px; font-size: 15.5px; }
  .groups { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 300px; padding: 16px; }
  .groups::before { background: linear-gradient(to bottom, rgba(14,11,9,.12) 0, rgba(14,11,9,.72) 48%, rgba(14,11,9,.94) 80%); }
  .groups__t { font-size: 32px; }
  .first { padding-bottom: 72px; }
  .first__head { display: block; padding-bottom: 28px; }
  .first__sub { margin-top: 10px; font-size: 25px; line-height: 1.22; letter-spacing: -.015em; }
  .row { position: static; grid-template-columns: 1fr; gap: 18px; padding: 18px 0 32px; }
  .row__n { font-size: 58px; }
  .row__b { gap: 12px; }
  .frame { padding: 8px; height: 66vw; }

  .gal { padding: 0 0 72px; }
  .gal__head { margin-bottom: 32px; gap: 16px; }
  .gal__hint { display: flex; align-items: center; gap: 8px; }
  .gal__rows, .gal__row { gap: 8px; }
  .gal__row { height: 56vw; width: auto; padding-inline: var(--g); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--g); scrollbar-width: none; -webkit-overflow-scrolling: touch; will-change: auto; }
  .gal__row::-webkit-scrollbar { display: none; }
  .gal__i { padding: 6px; scroll-snap-align: start; }
  .gal__i img { aspect-ratio: 1000 / 666; }
  .gal__i:has(img[width="666"]) img { aspect-ratio: 666 / 1000; }
  .wide { height: 150vh; }
  .wide__stage, .digits__stage { height: 100svh; }
  .wide__fig img { object-position: 62% 50%; }
  .wide__fig figcaption { display: grid; gap: 10px; bottom: 6vh; }
  .wide__fig .caps { text-align: left; }

  .mtitle { min-height: 0; padding-top: 88px; padding-bottom: 48px; }
  .mtitle__w { font-size: 19vw; }
  .mtitle__b { align-self: flex-start; font-size: .86em; }
  .mtitle__c, .mtitle__d { position: static; margin-top: 18px; }
  .mtitle__d { display: none; }

  .hs__stage { position: static; height: auto; overflow: visible; }
  .gl--low { display: none; }
  .hs__track { display: block; width: auto; padding: 0 var(--g) 72px; transform: none !important; }
  .m, .m--low { display: block; margin: 0 0 56px; }
  .m__n { margin-bottom: 16px; }
  .card { height: auto; padding: 12px; border-radius: 20px; }
  .card img { height: 54vw; }
  .card__when { left: 22px; top: 22px; }
  .card__t { position: static; margin: 18px 6px 6px; font-size: 26px; padding-right: 56px; }
  .pin { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .m__meta { margin-top: 16px; grid-template-columns: 1fr 1.7fr; gap: 6px 12px; }
  .m__meta p:first-child { grid-row: span 2; }
  .m__meta .m__links { grid-column: 1 / -1; margin-top: 10px; }

  .pastor { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 32px; padding: 56px var(--g) 0; }
  .pastor__photo { max-width: none; justify-self: auto; padding: 8px; }
  .pastor__l { gap: 18px; }
  .pastor__l .btn { width: 100%; }
  .pastor__note { font-size: 17px; }

  .contacts { padding: 80px var(--g) 56px; }
  .table { display: block; }
  .col { min-height: 0; padding: 20px 16px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .col:last-child { border-bottom: 0; }
  .col__t { margin-top: 14px; font-size: 30px; }
  .col__p { font-size: 17px; min-height: 0; margin-top: 10px; }
  .col .btns { padding-top: 18px; }
  .branch { padding: 4px 4px; }

  .digits { height: 110vh; }
  .digits__stage { padding-bottom: 20vh; }
  .digits__row { font-size: 30vw; }

  .foot__w { font-size: 16vw; white-space: normal; text-align: center; line-height: .98; }
  .foot__nav { flex-wrap: wrap; gap: 4px 20px; padding-inline: var(--g); }
  .round--xl { margin-top: 24px; }
  .toast { bottom: 62px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ch { transform: none; opacity: 1; transition: none; }
  .ticker__run { animation: none; }
}
