/* «حول كنيستنا» rev. 4 (owner 2026-12-02): the whole cover, the new entrance, the film's screen, the dark mode.
   Loaded after oc.css (→ merged into assets/css/our-church.css in the build). */

/* the cover: whole, at its own shape (its gold frame on the edges, every face in), no sparkle in front of the fathers */
.ak-hero { height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: none; background: var(--ak-ivory); }
.ak-hero__art img { object-fit: cover; object-position: 50% 50%; }
.ak-hero__rays, .ak-hero__dust { display: none; }
.ak-hero::after { height: 6%; }
.ak-hero__down { bottom: 14px; }

/* the entrance: the words simply written; our moments faint around us; the saint out of the light */
.ak-gate__veil { background: radial-gradient(80% 70% at 50% 45%, #2c1e10 0%, #170f08 70%, #0f0905 100%); }
.ak-gate__moments { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ak-gate__m { position: absolute; object-fit: cover; opacity: 0; filter: sepia(.35) saturate(.9) brightness(.95); transform: scale(1.06); transition: opacity 2.6s ease, transform 14s linear;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.ak-gate__m.is-in { opacity: .34; transform: scale(1); }
.ak-gate__m--a { left: -3%; top: -4%; width: 38%; aspect-ratio: 4 / 3; }
.ak-gate__m--b { right: -3%; top: -4%; width: 40%; aspect-ratio: 16 / 10; }
.ak-gate__m--c { left: -4%; bottom: -6%; width: 34%; aspect-ratio: 3 / 4; }
.ak-gate__m--d { right: -4%; bottom: -6%; width: 40%; aspect-ratio: 16 / 10; }
.ak-gate__m--e { left: 24%; top: -10%; width: 24%; aspect-ratio: 3 / 4; }
.ak-gate__m--f { right: 20%; bottom: -12%; width: 34%; aspect-ratio: 16 / 10; }
.ak-gate__m--g { left: 30%; bottom: -14%; width: 22%; aspect-ratio: 3 / 4; }
.ak-gate__saint { position: absolute; left: 50%; top: 4%; height: 62%; aspect-ratio: 2 / 3; translate: -50% 0; opacity: 0; transform: scale(.94); filter: blur(6px); transition: opacity 3.2s ease, transform 4s cubic-bezier(.2, .7, .2, 1), filter 3s; pointer-events: none; }
.ak-gate__saint img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.ak-gate__halo { position: absolute; inset: -12% -30%; background: radial-gradient(closest-side, rgba(255, 228, 160, .55), rgba(255, 210, 120, .15) 55%, transparent); }
.ak-gate.is-saint .ak-gate__saint { opacity: .95; transform: none; filter: none; }
.ak-gate__words { position: absolute; left: 0; right: 0; bottom: max(9vh, 46px); display: grid; justify-items: center; gap: 2px; text-align: center; padding: 0 16px; }
.ak-gate__words p { font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.5; color: #fbf1dc; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.ak-gate__words span { opacity: 0; display: inline-block; transform: translateY(8px); filter: blur(4px); transition: opacity .9s, transform .9s, filter .9s; }
.ak-gate__words span.is-in { opacity: 1; transform: none; filter: none; }
.ak-gate__light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #fffaf0, #ffe7a8 45%, rgba(255, 231, 168, 0) 80%); opacity: 0; pointer-events: none; transition: opacity 1.4s; }
.ak-gate.is-bloom .ak-gate__light { opacity: 1; }
.ak-gate.is-held .ak-gate__m, .ak-gate.is-held .ak-gate__saint, .ak-gate.is-held .ak-gate__words span { transition: none; }
@media (max-width: 760px) {
  .ak-gate__m--a, .ak-gate__m--b, .ak-gate__m--c, .ak-gate__m--d { width: 62%; }
  .ak-gate__m--e, .ak-gate__m--f, .ak-gate__m--g { display: none; }
  .ak-gate__saint { top: 10%; height: 50%; }
}

/* the film: an icon-like screen in a gold frame, a medallion to play, the chapters on a film strip */
.ak-screen { position: relative; max-width: 1100px; margin: 0 auto; padding: 14px; border-radius: 30px; background: linear-gradient(145deg, #f6d98e, #b8862f 30%, #8a5f1f 50%, #d9a744 70%, #f3d58f); box-shadow: 0 50px 90px -40px #000, inset 0 0 0 1px rgba(255, 245, 214, .6); }
.ak-screen::before { content: ""; position: absolute; inset: 6px; border-radius: 25px; border: 1px solid rgba(60, 35, 5, .45); pointer-events: none; }
.ak-screen__x { position: absolute; z-index: 6; width: 34px; height: 34px; color: #fff3c4; filter: drop-shadow(0 2px 2px rgba(60, 35, 5, .6)); }
.ak-screen__x--a { top: -16px; left: 50%; translate: -50% 0; width: 44px; height: 44px; }
.ak-screen__x--b { top: 50%; left: -16px; translate: 0 -50%; }
.ak-screen__x--c { top: 50%; right: -16px; translate: 0 -50%; }
.ak-screen .fp { border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.ak-screen .fp-big { width: 108px; height: 108px; background: radial-gradient(circle, #ffe7a6, #d9a744 60%, #a8721f); box-shadow: 0 0 0 8px rgba(255, 236, 190, .25), 0 0 0 16px rgba(255, 236, 190, .1), 0 20px 40px -10px #000; }
.ak-screen .fp-big::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 2px dashed rgba(255, 236, 190, .7); animation: akSpin 18s linear infinite; }
.ak-screen .fp-big .fp-ic { width: 44px; height: 44px; color: #3a2508; }
.ak-screen .fp-bar { background: linear-gradient(180deg, #1d130b, #120b05); border-top: 1px solid rgba(243, 213, 143, .3); }
.ak-screen .fp-track__fill { background: linear-gradient(270deg, #b8862f, #f3d58f); }
.ak-strip .ak-chs { padding: 20px 12px; border-radius: 16px; background-color: #120b05;
  background-image: repeating-linear-gradient(90deg, rgba(255, 240, 200, .3) 0 10px, transparent 10px 22px), repeating-linear-gradient(90deg, rgba(255, 240, 200, .3) 0 10px, transparent 10px 22px);
  background-size: 100% 6px, 100% 6px; background-position: 0 6px, 0 calc(100% - 6px); background-repeat: no-repeat; }
@media (max-width: 760px) {
  .ak-screen { padding: 8px; border-radius: 18px; }
  .ak-screen .fp-big { width: 74px; height: 74px; }
  .ak-screen .fp-big .fp-ic { width: 30px; height: 30px; }
  .ak-screen__x--b, .ak-screen__x--c { display: none; }
  .ak-film { margin-inline: 0; }
  .ak-film .fp { border-radius: 12px; }
}

/* ---------- the dark mode: the same page in a deeper warm (espresso, bronze), never black ---------- */
.ak-theme { position: fixed; z-index: 40; top: 12px; left: 72px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ak-line2); background: rgba(255, 255, 255, .6); color: var(--ak-ink); display: grid; place-items: center; cursor: pointer; }
.ak-theme svg { width: 20px; height: 20px; }
html[data-ak="dark"] body.ak-body {
  --ak-ivory: #21180f; --ak-parch: #2a1f14; --ak-sand: #3a2b1b; --ak-ink: #f4e7cf; --ak-ink2: #d6c3a3; --ak-ink3: #a9957a;
  --ak-line: rgba(217, 167, 68, .28); --ak-line2: rgba(217, 167, 68, .55); --ak-wine: #e8988f; --ak-card: #2d2216;
}
html[data-ak="dark"] .ak-body .pbar { background: rgba(33, 24, 15, .88); }
html[data-ak="dark"] .ak-sec--patrons, html[data-ak="dark"] .ak-sec--shepherds { background: radial-gradient(60% 50% at 50% 0%, #2c2114, transparent 70%), var(--ak-ivory); }
html[data-ak="dark"] .ak-pat, html[data-ak="dark"] .ak-altar, html[data-ak="dark"] .ak-pope, html[data-ak="dark"] .ak-sheet, html[data-ak="dark"] .ak-yr { background: var(--ak-card); color: var(--ak-ink); }
html[data-ak="dark"] .ak-yr.is-ours { background: linear-gradient(160deg, #4a3518, #33250f); }
html[data-ak="dark"] .ak-pat__stage { background: radial-gradient(60% 45% at 50% 30%, #6b5228, #3b2c16 65%, #2a1f10); }
html[data-ak="dark"] .ak-altar__pic::after { background: linear-gradient(270deg, transparent 60%, var(--ak-card)); }
html[data-ak="dark"] .ak-bp__ring, html[data-ak="dark"] .ak-win__n { background: var(--ak-ivory); }
html[data-ak="dark"] .ak-fa .ak-arch { border-color: var(--ak-card); }
html[data-ak="dark"] .ak-end { background: linear-gradient(180deg, #3a2a16, #2a1f13); }
html[data-ak="dark"] .ak-btn:not(.ak-btn--gold) { background: rgba(255, 255, 255, .06); color: var(--ak-ink); }
html[data-ak="dark"] .ak-link, html[data-ak="dark"] .ak-yr__foot a, html[data-ak="dark"] .ak-yr__foot button { background: rgba(255, 255, 255, .05); }
html[data-ak="dark"] .ak-arch__soon { background: repeating-linear-gradient(135deg, rgba(217, 167, 68, .1) 0 10px, transparent 10px 20px), #2d2216; }
html[data-ak="dark"] .ak-sec--years { background: linear-gradient(170deg, #3d1114 0%, #5e1a1f 40%, #7a4419 80%, #8f6a26 100%); }
html[data-ak="dark"] .ak-hero__art img { filter: brightness(.88) saturate(1.05); }
html[data-ak="dark"] .ak-rail2__mark, html[data-ak="dark"] .ak-rail2 b, html[data-ak="dark"] .ak-pill { background: var(--ak-card); color: var(--ak-ink); }
html[data-ak="dark"] .ak-theme { background: rgba(255, 255, 255, .08); }
html[data-ak="dark"] .ak-pat__days li { background: rgba(217, 167, 68, .1); }
html[data-ak="dark"] .ak-pat__days li.is-next { background: linear-gradient(90deg, rgba(217, 167, 68, .3), rgba(217, 167, 68, .08)); }

/* rev. 4b (owner): no empty patches in the entrance (our moments tile the whole screen, melting into each other),
   the saint smaller and above the words (the horse never on them), the cover coming in softly after him */
.ak-gate__m.is-in { opacity: .38; }
.ak-gate__m--a { left: -6%; top: -8%; width: 44%; height: 62%; aspect-ratio: auto; }
.ak-gate__m--b { left: 28%; top: -10%; width: 44%; height: 58%; aspect-ratio: auto; }
.ak-gate__m--c { right: -6%; left: auto; top: -8%; width: 44%; height: 62%; aspect-ratio: auto; }
.ak-gate__m--d { left: -6%; right: auto; bottom: -10%; top: auto; width: 44%; height: 62%; aspect-ratio: auto; }
.ak-gate__m--e { left: 28%; top: auto; bottom: -12%; width: 44%; height: 58%; aspect-ratio: auto; }
.ak-gate__m--f { right: -6%; bottom: -10%; width: 44%; height: 62%; aspect-ratio: auto; }
.ak-gate__m--g { left: 22%; top: 22%; bottom: auto; width: 56%; height: 56%; aspect-ratio: auto; }
.ak-gate__m { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.ak-gate__saint { top: 5%; height: 44%; }
.ak-gate__words { bottom: max(8vh, 40px); }
.ak-gate__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 2.4s ease, transform 3s ease; pointer-events: none; }
.ak-gate.is-cover .ak-gate__cover { opacity: .9; transform: none; }
.ak-gate.is-cover .ak-gate__saint, .ak-gate.is-cover .ak-gate__moments { opacity: 0; transition: opacity 2s; }
.ak-gate.is-cover .ak-gate__words { opacity: 0; transition: opacity 1.6s; }
.ak-gate.is-open { animation: akOpen2 1.6s ease forwards; }
@keyframes akOpen2 { to { opacity: 0; } }
@media (max-width: 760px) {
  .ak-gate__m--a, .ak-gate__m--c, .ak-gate__m--d, .ak-gate__m--f { width: 70%; display: block; }
  .ak-gate__m--b, .ak-gate__m--e { display: block; width: 70%; left: 15%; }
  .ak-gate__m--g { display: none; }
  .ak-gate__saint { top: 8%; height: 38%; }
  .ak-gate__cover { object-fit: contain; }
}
