/* «حول كنيستنا» P8 (owner 2026-12-03, rev. 2): the archive. The page's own language (ivory, parchment, gold, wine,
   arches); the old photos are paper prints: a white border, a slight tilt, and they «develop» from a pale sepia into their
   colours as they come into view. Every photo is shown whole (rows of prints that fill the width, church.js justify()). */

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/amiri/amiri-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* its space and the marks inside the verse (« » : .), as in bread.css */
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/amiri/amiri-punct-400.woff2") format("woff2");
  unicode-range: U+20-22, U+27-29, U+2C-2E, U+30-3B, U+3F, U+5B, U+5D, U+A0, U+AB, U+BB, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

.ak-sec--father .ak-kick span { white-space: nowrap; }
.ak-sec--father { background: radial-gradient(55% 45% at 50% 0%, #fff7e6, transparent 70%), linear-gradient(180deg, var(--ak-ivory), var(--ak-parch)); }
html[data-ak="dark"] .ak-sec--father { background: radial-gradient(55% 45% at 50% 0%, #2c2114, transparent 70%), linear-gradient(180deg, var(--ak-ivory), var(--ak-parch)); }

/* his portrait in a gold arch, the verse, his two dates, the film */
.ak-fr { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 960px; margin: 0 auto; }
.ak-fr__pic { position: relative; margin: 0; padding: 12px; }
.ak-fr__pic .ak-arch { display: block; border: 6px solid #fffaf0; box-shadow: 0 0 0 1px var(--ak-line2), 0 34px 60px -34px rgba(80, 50, 15, .7); }
.ak-fr__pic .ak-arch img { object-position: 50% 30%; }
.ak-fr[data-anim="draw"] .ak-arch img { clip-path: none; opacity: 0; }
.ak-fr[data-anim="draw"].in .ak-arch img { clip-path: none; opacity: 1; transition: opacity .8s ease-out .6s; }
.ak-fr__pic .ak-archline { inset: 0; }
html[data-ak="dark"] .ak-fr__pic .ak-arch { border-color: var(--ak-card); }
.ak-fr__w { display: grid; gap: 22px; justify-items: start; }
.ak-fr__verse { margin: 0; padding-inline-start: 20px; border-inline-start: 2px solid var(--ak-gold2); }
.ak-fr__verse p { margin: 0; font-family: Amiri, var(--font-display), serif; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.7; color: var(--ak-wine); }
.ak-fr__verse cite { display: block; margin-top: 2px; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--ak-gold); }
.ak-fr__d { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ak-fr__d div { display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid var(--ak-line); }
html[data-ak="dark"] .ak-fr__d div { background: var(--ak-card); }
.ak-fr__d dt { font-size: .8rem; font-weight: 800; color: var(--ak-gold); }
.ak-fr__d dd { margin: 0; display: grid; }
.ak-fr__d dd b { font-size: 1.08rem; color: var(--ak-ink); }
.ak-fr__d dd small { font-size: .8rem; color: var(--ak-ink3); }
.ak-fr__t { font-size: .8rem; opacity: .75; font-weight: 700; }

/* ---------- the rows of prints (justify() sets each print's width; until then they wrap at a natural size) ---------- */
.ak-jr { --gap: 18px; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: calc(var(--gap) + 6px) var(--gap); }
.ak-jr > .ak-print { flex: none; width: 200px; }

/* a print: a white paper border, a slight tilt, a soft shadow */
.ak-print { margin: 0; padding: 0; transform: rotate(calc((var(--i) - 1.5) * .45deg)); }
.ak-print:nth-child(even) { transform: rotate(calc((1.5 - var(--i)) * .4deg)); }
.ak-print button { display: block; width: 100%; padding: 8px 8px 8px; border: 0; border-radius: 4px; background: #fffdf8; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 34px -22px rgba(70, 45, 15, .6); cursor: zoom-in; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.ak-print button:hover, .ak-print button:focus-visible { transform: translateY(-4px) rotate(0deg) scale(1.02); box-shadow: 0 26px 46px -24px rgba(70, 45, 15, .7); }
.ak-print img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--ak-sand); }
html[data-ak="dark"] .ak-print button { background: #efe4cf; box-shadow: 0 18px 34px -22px #000; }

/* the develop: pale sepia → the photo, one after the other */
[data-anim="develop"] .ak-print { opacity: 0; translate: 0 18px; }
[data-anim="develop"] .ak-print img { filter: sepia(1) brightness(1.35) contrast(.55) blur(1.5px); }
[data-anim="develop"].in .ak-print { opacity: 1; translate: 0 0; transition: opacity .7s, translate .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .1s); }
[data-anim="develop"].in .ak-print img { filter: none; transition: filter 2.2s ease-out; transition-delay: calc(.3s + var(--i) * .1s); }

/* the count beside a «more» link */
.ak-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(184, 134, 47, .16); font-size: .74rem; font-weight: 800; }

/* the story's windows open their photos */
.ak-photo__go { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ak-win > .ak-link { margin-top: 12px; white-space: normal; height: auto; min-height: 36px; padding: 6px 14px; line-height: 1.5; text-align: start; }

/* ---------- a memory block: its words, then its prints (weddings, people, priests) ---------- */
.ak-mem { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: clamp(20px, 3vw, 30px); }
.ak-mem__w { max-width: 64ch; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.ak-mem__w .ak-win__k { display: inline-flex; align-items: center; gap: 6px; }
.ak-mem__t { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.4; color: var(--ak-wine); }
.ak-mem__p { margin: 0; color: var(--ak-ink2); line-height: 1.95; font-size: 1.02rem; }
.ak-mem .ak-jr { max-width: 1060px; margin: 0 auto; width: 100%; }
.ak-mem--wed { padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)); border: 1px solid var(--ak-line); }
html[data-ak="dark"] .ak-mem--wed { background: var(--ak-card); }
.ak-mem--wed .ak-mem__p { font-family: Amiri, var(--font-display), serif; font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.9; color: var(--ak-ink); }
.ak-mem--priests { margin-top: clamp(56px, 8vw, 90px); }

/* ---------- the two bishops of our beginnings, side by side (one under the other on a phone) ---------- */
.ak-bmem { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); align-items: stretch; }
.ak-bmem__p { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 34px); border-radius: 140px 140px 26px 26px; border: 1px solid var(--ak-line2); background: linear-gradient(180deg, #fff9ec, rgba(255, 249, 236, .4)); text-align: center; }
html[data-ak="dark"] .ak-bmem__p { background: linear-gradient(180deg, #2f2416, var(--ak-card)); }
.ak-bmem__p header { display: grid; justify-items: center; gap: 4px; padding-top: 18px; }
.ak-bmem__p .ak-win__k { display: inline-flex; align-items: center; gap: 6px; }
.ak-bmem__sub { margin: 0; color: var(--ak-gold); font-weight: 800; font-size: .92rem; }
.ak-bmem__h { margin: 8px 0 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ak-ink); }
.ak-bmem__p .ak-jr { margin-top: 8px; }
.ak-bmem__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 0; }

/* ---------- Fr Ibrahim: the beginning of his priesthood ---------- */
.ak-begin { margin-top: clamp(56px, 8vw, 90px); display: grid; gap: clamp(22px, 3vw, 32px); }
.ak-begin__h { max-width: 64ch; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.ak-begin__h .ak-win__k { display: inline-flex; align-items: center; gap: 6px; }
.ak-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); align-items: start; }
.ak-steps::before { content: ""; position: absolute; inset-inline: 16%; top: 17px; height: 2px; background: linear-gradient(90deg, transparent, var(--ak-gold2), transparent); transform-origin: right; transform: scaleX(0); }
.ak-steps.in::before { transform: none; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1); }
.ak-step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.ak-step__n { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ak-wine); color: #fff6e4; font-weight: 800; box-shadow: 0 0 0 5px var(--ak-ivory); }
html[data-ak="dark"] .ak-step__n { background: #8e2a2f; box-shadow: 0 0 0 5px var(--ak-parch); }
.ak-step .ak-print { width: 100%; max-width: 330px; transform: none; }
.ak-step__c { margin: 0; font-weight: 800; color: var(--ak-ink); line-height: 1.6; max-width: 28ch; }
.ak-step__d { margin: -4px 0 0; display: grid; gap: 1px; }
.ak-step__d b { color: var(--ak-wine); font-size: 1rem; }
.ak-step__d small { color: var(--ak-ink3); font-size: .8rem; }
.ak-begin__more { margin: 8px 0 0; text-align: center; color: var(--ak-ink2); font-family: Amiri, var(--font-display), serif; font-size: 1.25rem; }

/* ---------- his album: four groups, every name on screen ---------- */
.ak-alb { margin-top: clamp(40px, 6vw, 70px); }
.ak-alb .ak-h3 { margin-top: 0; }
.ak-alb__tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ak-alb__tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ak-line2); background: rgba(255, 255, 255, .55); color: var(--ak-ink2); cursor: pointer; transition: background .25s, color .25s; }
.ak-alb__tabs b { font-size: .98rem; }
.ak-alb__tabs small { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgba(184, 134, 47, .16); font-size: .76rem; font-weight: 800; }
.ak-alb__tabs [aria-selected="true"] { background: var(--ak-wine); border-color: transparent; color: #fff6e4; }
.ak-alb__tabs [aria-selected="true"] small { background: rgba(255, 246, 228, .22); }
html[data-ak="dark"] .ak-alb__tabs button { background: var(--ak-card); }
html[data-ak="dark"] .ak-alb__tabs [aria-selected="true"] { background: #8e2a2f; color: #fff6e4; }
.ak-alb__sub { text-align: center; margin: 8px auto 22px; max-width: 60ch; color: var(--ak-ink2); font-size: .98rem; line-height: 1.8; }

/* ---------- the close: the memory we keep, then the call ---------- */
.ak-keep { display: grid; justify-items: center; gap: 10px; max-width: 62ch; }
.ak-keep p { margin: 0; line-height: 1.95; }
.ak-keep .ak-keep__thanks { margin-top: 6px; font-size: .9rem; color: var(--ak-ink3); }
.ak-keep__rule { display: flex; align-items: center; gap: 12px; color: var(--ak-gold); margin: 14px 0 4px; }
.ak-keep__rule::before, .ak-keep__rule::after { content: ""; width: 60px; height: 1px; background: var(--ak-line2); }
.ak-end__q { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ak-ink); }

/* ---------- the photo, large ---------- */
.ak-lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(25, 16, 8, .95); color: #fff6e4; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.ak-lb::backdrop { background: rgba(25, 16, 8, .7); }
.ak-lb__f { margin: 0; padding-top: 56px; display: grid; justify-items: center; gap: 12px; max-width: min(1100px, 100% - 140px); min-height: 0; }
.ak-lb__stage { position: relative; display: grid; place-items: center; transform-origin: 50% 50%; touch-action: none; border-radius: 4px; }
.ak-lb.is-zoomed .ak-lb__stage { overflow: hidden; }
.ak-lb__zoom { transform-origin: 0 0; will-change: transform; }
.ak-lb.is-zoomed .ak-lb__stage { cursor: grab; }
.ak-lb.is-zoomed .ak-lb__stage:active { cursor: grabbing; }
.ak-lb__zoom img { user-select: none; -webkit-user-drag: none; }
.ak-lb__fly { position: fixed; z-index: 3; margin: 0; box-sizing: border-box; border: 8px solid #fffdf8; border-radius: 4px; object-fit: contain; box-shadow: 0 30px 70px -20px #000; pointer-events: none; }
@media (max-width: 760px) { .ak-lb__fly { border-width: 5px; } }
.ak-lb__f img { box-sizing: content-box; max-width: none; max-height: none; object-fit: contain; transform-origin: 50% 50%; will-change: transform; border: 8px solid #fffdf8; border-radius: 4px; box-shadow: 0 30px 70px -20px #000; }
.ak-lb__f figcaption { display: grid; justify-items: center; gap: 3px; text-align: center; font-size: 1.05rem; line-height: 1.7; max-width: 60ch; }
.ak-lb__f small { font-size: .82rem; opacity: .7; }
.ak-lb__f [data-d] { opacity: 1; color: var(--ak-goldhi); font-weight: 700; }
.ak-lb__x { position: absolute; color: #fff6e4; border-color: rgba(255, 246, 228, .4); }
.ak-lb__go { position: absolute; top: 45%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 246, 228, .35); background: rgba(255, 246, 228, .08); color: #fff6e4; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ak-lb__go:hover, .ak-lb__go:focus-visible { background: rgba(255, 246, 228, .2); }
.ak-lb__go--prev { right: 20px; }
.ak-lb__go--next { left: 20px; }
.ak-lb__th { list-style: none; margin: 0; padding: 12px 20px 18px; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; justify-self: center; }
.ak-lb__th button { display: block; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s; }
.ak-lb__th img { display: block; height: 54px; width: auto; border-radius: 4px; }
.ak-lb__th button:hover, .ak-lb__th [aria-current] { opacity: 1; }
.ak-lb__th [aria-current] { border-color: var(--ak-goldhi); }

@media (max-width: 900px) {
  .ak-fr { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ak-fr__pic { width: min(300px, 80%); }
  .ak-fr__w { justify-items: center; }
  .ak-fr__verse { padding: 0; border: 0; }
  .ak-fr__d { justify-content: center; }
  .ak-bmem { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* all four names on screen: two by two */
  .ak-alb__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ak-alb__tabs button { min-height: 48px; padding: 6px 10px; gap: 6px; }
  .ak-alb__tabs b { font-size: .86rem; line-height: 1.35; }
  .ak-print button { padding: 5px; }
  .ak-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ak-steps::before { inset-inline: auto; right: 50%; top: 18px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--ak-gold2), transparent); transform-origin: top; transform: scaleY(0); }
  .ak-steps.in::before { transform: none; }
  .ak-step .ak-print { max-width: 300px; }
  .ak-bmem__p { border-radius: 110px 110px 22px 22px; padding: 22px 16px; }
  .ak-mem--wed { padding: 20px 14px; }
  .ak-lb__f { max-width: calc(100% - 24px); padding-top: 60px; }
  .ak-lb__f img { border-width: 5px; }
  .ak-lb__go { top: auto; bottom: 92px; translate: none; width: 44px; height: 44px; }
  .ak-lb__th img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-anim="develop"] .ak-print, [data-anim="develop"] .ak-print img { opacity: 1; translate: none; filter: none; }
  .ak-steps::before { transform: none; }
}

/* the gold line round his portrait: drawn in the arch's own units (a box taller than the arch's 3:4 drew it short with
   non-scaling-stroke + pathLength, owner 2026-12-03 «الشكل مش بيترسم كامل») */
.ak-fr__pic .ak-archline path { vector-effect: none; stroke-width: 2.4; }

/* the entrance: «للتخطي اضغط مرتين» bottom right, and the soft fade when it is skipped (owner 2026-12-03) */
.ak-gate__skip { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(20, 12, 5, .38); border: 1px solid rgba(255, 246, 228, .22); color: rgba(255, 246, 228, .82); font-size: .82rem; font-weight: 700; pointer-events: none; z-index: 5; opacity: 0; animation: akSkipIn .8s ease 1.2s forwards; }
@keyframes akSkipIn { to { opacity: 1; } }
.ak-gate.is-skip { animation: none; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.ak-gate.is-skip .ak-gate__skip { animation: none; opacity: 0; transition: opacity .3s; }
.ak-skip-ready .ak-hero__art, .ak-skip-ready .ak-hero__words > * { opacity: 1; transform: none; filter: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .ak-gate__skip { animation: none; opacity: 1; } }

/* ---------- the film's player (owner 2026-12-03) ---------- */
/* the time tip over the bar sits above the screen's layers (it was hidden under them, only its bottom showing) */
.fp-bar { z-index: 9; }
/* the logo plays the promo at any time; its play badge goes away softly while the film plays and comes back softly */
.fp.is-started .ak-again { pointer-events: auto; }
.fp.is-tz .ak-again::before, .fp.is-tz .ak-again__play, .fp.is-started .ak-again::before, .fp.is-started .ak-again__play { display: block; }
.ak-again::before, .ak-again__play { transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.fp.is-playing .ak-again__play, .fp.is-tz .ak-again__play { opacity: 0; transform: scale(.4); }
.fp.is-playing .ak-again::before, .fp.is-tz .ak-again::before { opacity: 0; animation-play-state: paused; }
/* «سيتم تشغيل البرومو…» */
.ak-ask { position: absolute; z-index: 8; top: 50%; left: 50%; translate: -50% -50%; width: min(360px, calc(100% - 32px)); display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(24, 15, 7, .92); border: 1px solid rgba(243, 213, 143, .45); color: #fff6e4; text-align: center; box-shadow: 0 20px 50px -20px #000; opacity: 0; scale: .94; transition: opacity .25s ease, scale .3s cubic-bezier(.2, .8, .2, 1); }
.ak-ask.is-on { opacity: 1; scale: 1; }
.ak-ask p { margin: 0; font-size: .95rem; line-height: 1.7; }
.ak-ask div { display: flex; justify-content: center; gap: 10px; }
.ak-ask button { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: .88rem; cursor: pointer; border: 1px solid rgba(243, 213, 143, .5); background: transparent; color: #fff6e4; }
.ak-ask .ak-ask__yes { background: linear-gradient(180deg, #f6dc9a, #c8942f); color: #2a1a06; border-color: transparent; }
@media (max-width: 760px) { .ak-ask { padding: 12px; gap: 8px; } .ak-ask p { font-size: .84rem; } .ak-ask button { height: 34px; padding: 0 12px; font-size: .8rem; } }
