/* «حول كنيستنا» rev. 5 (owner 2026-12-02, morning): faces first. Loaded after oc4.css. */

/* ---------- the entrance: our moments placed so their faces show; Fr Ibrahim in front; the saint, translucent ---------- */
.ak-gate__m { -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.ak-gate__m.is-in { opacity: .42; }
.ak-gate__m--ibrahim { left: 18%; top: -4%; width: 64%; height: 62%; aspect-ratio: auto; right: auto; bottom: auto; object-position: 50% 30%; }
.ak-gate__m--ibrahim.is-in { opacity: .6; }
.ak-gate__m--left { left: -2%; top: 0; width: 24%; height: 100%; aspect-ratio: auto; right: auto; bottom: auto; object-position: 50% 18%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); mask-composite: intersect; }
.ak-gate__m--right { right: -2%; top: 0; width: 24%; height: 100%; aspect-ratio: auto; left: auto; bottom: auto; object-position: 50% 18%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); mask-composite: intersect; }
.ak-gate__m--low1 { left: 18%; bottom: -4%; top: auto; width: 34%; height: 40%; aspect-ratio: auto; right: auto; object-position: 50% 20%; }
.ak-gate__m--low2 { left: 48%; bottom: -4%; top: auto; width: 34%; height: 40%; aspect-ratio: auto; right: auto; object-position: 50% 20%; }
.ak-gate__saint { top: 6%; height: 46%; }
.ak-gate.is-saint .ak-gate__saint { opacity: .58; }
.ak-gate__words { bottom: auto; top: 54%; }
.ak-gate__words p { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
/* the gate melts away onto the page's own cover (no second cover in between) */
.ak-gate.is-cover .ak-gate__veil, .ak-gate.is-cover .ak-gate__moments, .ak-gate.is-cover .ak-gate__saint, .ak-gate.is-cover .ak-gate__words { opacity: 0; transition: opacity 2.2s ease; }
.ak-gate.is-open { animation: none; opacity: 0; transition: opacity .6s; }
@media (max-width: 760px) {
  .ak-gate__m--ibrahim { left: -10%; top: 0; width: 120%; height: 38%; }
  .ak-gate__m--left { left: -4%; top: auto; bottom: 0; width: 54%; height: 40%; }
  .ak-gate__m--right { right: -4%; top: auto; bottom: 0; width: 54%; height: 40%; }
  .ak-gate__m--low1, .ak-gate__m--low2 { display: none; }
  .ak-gate__saint { top: 4%; height: 34%; }
  .ak-gate__words { top: 40%; }
}

/* ---------- phones: the cover big (the screen's height), drifting slowly from one patron to the other ---------- */
@media (max-width: 760px) {
  .ak-hero { aspect-ratio: auto; height: 78svh; min-height: 520px; }
  .ak-hero__art, .ak-hero__art img { height: 100%; }
  .ak-hero__art img { object-fit: cover; object-position: 100% 50%; animation: akPan 26s ease-in-out infinite alternate; }
  .ak-hero::after { height: 10%; }
}
@keyframes akPan { 0% { object-position: 100% 50%; } 45%, 55% { object-position: 50% 50%; } 100% { object-position: 0% 50%; } }
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .ak-hero__art img { animation: none; object-position: 50% 50%; } }

/* ---------- phones: the chapter rail on the side, like the computer (no floating pill) ---------- */
@media (max-width: 900px) {
  .ak-pill { display: none !important; }
  .ak-rail2 { display: grid; gap: 14px; inset-inline-end: 6px; padding: 10px 0; }
  .ak-rail2__thread { inset-inline-end: 12px; }
  .ak-rail2__mark { width: 26px; height: 26px; }
  .ak-rail2__mark .ak-cross { width: 11px; height: 11px; }
  .ak-rail2 b { font-size: .76rem; padding: 3px 8px; }
  .ak-rail2 a:not(.on) b { opacity: 0; }
  .ak-sec .ak-in { padding-inline-end: 20px; }
}

/* ---------- the story: each photo whole, the gold line exactly on its edge ---------- */
.ak-wins { align-items: start; }
.ak-photo { position: relative; margin: 0; width: 100%; max-width: 360px; border-radius: 22px; border: 3px solid var(--ak-gold2); background: var(--ak-sand); overflow: hidden; box-shadow: 0 0 0 6px var(--ak-ivory), 0 0 0 7px var(--ak-line2), 0 26px 44px -28px rgba(80, 50, 15, .6); }
.ak-photo img { display: block; width: 100%; height: auto; filter: sepia(.2) contrast(1.05); }
.ak-photo .ak-arch__soon { aspect-ratio: 4 / 3; height: auto; border-radius: 0; }
[data-anim="draw"] .ak-photo { border-color: transparent; box-shadow: 0 0 0 6px var(--ak-ivory), 0 0 0 7px transparent; }
[data-anim="draw"].in .ak-photo { border-color: var(--ak-gold2); box-shadow: 0 0 0 6px var(--ak-ivory), 0 0 0 7px var(--ak-line2), 0 26px 44px -28px rgba(80, 50, 15, .6); transition: border-color 1.2s ease calc(.4s + var(--i) * .25s), box-shadow 1.2s ease calc(.4s + var(--i) * .25s); }
[data-anim="draw"] .ak-photo img, [data-anim="draw"] .ak-photo .ak-arch__soon { clip-path: inset(100% 0 0 0); }
[data-anim="draw"].in .ak-photo img, [data-anim="draw"].in .ak-photo .ak-arch__soon { clip-path: inset(0); transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1) calc(.9s + var(--i) * .25s); }
html[data-ak="dark"] .ak-photo, html[data-ak="dark"] [data-anim="draw"].in .ak-photo { box-shadow: 0 0 0 6px var(--ak-parch), 0 0 0 7px var(--ak-line2), 0 26px 44px -28px #000; }
@media (max-width: 760px) { .ak-wins { grid-auto-columns: 84%; } }

/* ---------- the hymn: its saint lifts out of the card into the light ---------- */
.ak-hymn__fly { position: fixed; z-index: 5; object-fit: contain; transform-origin: 50% 50%; pointer-events: none; }

/* «عبر السنين»: one continuous rail, each era opened by its own heading tile */
.ak-yr-era { scroll-snap-align: start; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 18px 14px; border-radius: 22px; border: 1px dashed rgba(255, 236, 190, .55); color: #fff6e4; text-align: center; min-width: 170px; }
.ak-yr-era b { font-size: 1.35rem; font-weight: 900; }
.ak-yr-era small { font-size: .82rem; opacity: .85; line-height: 1.5; }

/* rev. 6 (owner): the entry button always reachable; the saint beside Fr Ibrahim (never on his face), right on his word */
.ak-gate__c { z-index: 3; }
.ak-gate__words, .ak-gate__saint, .ak-gate__moments, .ak-gate__light { pointer-events: none; }
.ak-gate__saint { left: 30%; transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1), filter 1s; }
.ak-gate__m--right { object-position: 35% 50%; }
.ak-gate__m--ibrahim { object-position: 62% 30%; }
@media (max-width: 760px) {
  .ak-gate__saint { left: 50%; top: 2%; height: 26%; }
  .ak-gate__m--ibrahim { object-position: 75% 30%; }
  .ak-gate__m--low1 { display: block; left: -10%; right: auto; top: 34%; bottom: auto; width: 120%; height: 32%; }
  .ak-gate__m--low1.is-in { opacity: .3; }
  .ak-gate__words { top: 42%; }
}
/* phones: the cover big and still (no drifting) */
@media (max-width: 760px) { .ak-hero__art img { animation: none; object-position: 50% 50%; } }
/* the hymn sheet fills the phone's whole screen */
.ak-hymn { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-height: 100dvh; }
@media (max-width: 760px) { .ak-gate__saint { left: 24%; top: 4%; height: 24%; } }

/* «عبر السنين»: faces in the small portraits; two fathers side by side when the day is theirs together */
.ak-yr__pics { display: flex; margin-inline-end: auto; }
.ak-yr__pics img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 2px var(--ak-goldhi); margin: 0; }
.ak-yr__pics img + img { margin-inline-start: -10px; }
.ak-yr__foot .ak-yr__pics img { margin-inline-end: 0; }

/* rev. 7 (owner): at «فيلوباتير مرقوريوس» everything else fades and only the saint is there, his whole picture */
.ak-gate__saint { left: 50%; top: 50%; translate: -50% -50%; height: 92%; width: auto; aspect-ratio: 1122 / 1402; }
.ak-gate__saint img { object-fit: cover; border-radius: 28px; -webkit-mask-image: radial-gradient(75% 80% at 50% 45%, #000 70%, transparent); mask-image: radial-gradient(75% 80% at 50% 45%, #000 70%, transparent); filter: none; }
.ak-gate__halo { display: none; }
.ak-gate.is-saint .ak-gate__saint { opacity: 1; }
.ak-gate.is-saint .ak-gate__moments, .ak-gate.is-saint .ak-gate__words { opacity: 0; transition: opacity 1.1s ease; }
@media (max-width: 760px) { .ak-gate__saint { left: 50%; top: 50%; height: auto; width: 94vw; } }

/* rev. 7 (owner): phones show the whole cover again, at its own 16:9 shape, still */
@media (max-width: 760px) { .ak-hero { aspect-ratio: 16 / 9; height: auto; min-height: 0; } .ak-hero__art img { object-fit: cover; object-position: 50% 50%; animation: none; } .ak-hero::after { height: 6%; } }
@media (max-width: 760px) { .ak-yrs { padding-inline-end: 44px; scroll-padding-inline-end: 44px; } }

/* rev. 8 (owner): the saint fills the screen, translucent; the words go on being written in front of him; his name shines gold */
.ak-gate__saint { inset: 0; left: 0; top: 0; translate: none; width: 100%; height: 100%; aspect-ratio: auto; transform: scale(1.04); }
.ak-gate__saint img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 0; -webkit-mask-image: none; mask-image: none; }
.ak-gate.is-saint .ak-gate__saint { opacity: .42; transform: none; }
.ak-gate.is-saint .ak-gate__words { opacity: 1; z-index: 2; }
.ak-gate.is-saint .ak-gate__moments { opacity: 0; transition: opacity 1s ease; }
.ak-gate__name span.is-in { background: linear-gradient(100deg, #b8862f 0%, #ffe7a6 25%, #fff8e0 35%, #e2b04f 50%, #a8721f 70%, #ffe7a6 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(255, 214, 120, .85)) drop-shadow(0 2px 0 rgba(60, 35, 5, .7)); animation: akGleam 2.2s ease-in-out infinite; }
@keyframes akGleam { 0% { background-position: 100% 0; } 100% { background-position: -40% 0; } }
.ak-gate.is-cover .ak-gate__veil, .ak-gate.is-cover .ak-gate__moments, .ak-gate.is-cover .ak-gate__saint, .ak-gate.is-cover .ak-gate__words { transition: opacity .7s ease; }
@media (max-width: 760px) { .ak-gate__saint { left: 0; top: 0; width: 100%; height: 100%; } }
.ak-gate__words::before { content: ""; position: absolute; inset: -30% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(20, 12, 5, .72), rgba(20, 12, 5, .35) 60%, transparent); pointer-events: none; }
.ak-gate__name { font-size: 1.35em; margin-top: 4px; }
.ak-gate__name span.is-in { font-weight: 700; }
.ak-gate__words p.ak-gate__name { font-size: clamp(2.3rem, 6.4vw, 3.6rem); }
.ak-gate__words { isolation: isolate; }
.ak-gate__words::before { inset: -40% -6%; background: radial-gradient(closest-side, rgba(20, 12, 5, .8), rgba(20, 12, 5, .45) 65%, transparent); }

/* rev. 9 (owner): the cover settles once and then never moves (no parallax: a fast scroll back up left the top empty) */
.ak-risen .ak-hero__art { transform: none; will-change: auto; }
.ak-hero__art img { will-change: transform; transition: none; }
/* rev. 9 (owner): a gentle zoom-in on the saint while his name is sung (1 → 1.07 over ~6 s), nothing sharp */
.ak-gate__saint { transform: scale(1); transition: opacity 1.1s ease, transform 6.5s cubic-bezier(.3, .1, .3, 1), filter 1s; }
.ak-gate.is-saint .ak-gate__saint { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) { .ak-gate.is-saint .ak-gate__saint { transform: none; } }
.ak-gate.is-cover .ak-gate__saint { transition: opacity .7s ease, transform 6.5s cubic-bezier(.3, .1, .3, 1); }

/* rev. 9 (owner: the hymn's entrance, «حل جذري»): the flying picture is its own fixed layer, never a row of the sheet */
.ak-hymn > .ak-hymn__fly { position: fixed; z-index: 5; margin: 0; object-fit: contain; transform-origin: 50% 50%; pointer-events: none; filter: drop-shadow(0 0 24px rgba(255, 214, 120, .55)); }
.ak-hymn__pic { transition: opacity .35s ease; }

/* rev. 9 (owner: «الخط الذهبي بتاع السنين مش مكمل»): the list's own line only spanned the visible width and scrolled away;
   now every stop carries its piece of the line (its width + the gap), so it runs unbroken to the last year */
.ak-yrs::before { display: none; }
.ak-yr::after, .ak-yr-era::after { content: ''; position: absolute; top: -19px; inset-inline: -8px; height: 2px; background: rgba(255, 236, 190, .6); transform: scaleX(0); transform-origin: right; z-index: 0; pointer-events: none; }
.ak-yr-era { position: relative; }
.ak-yr-era::after { top: -20px; inset-inline: -9px; }
.in .ak-yr::after, .in .ak-yr-era::after { transform: none; transition: transform 1.2s cubic-bezier(.65, 0, .35, 1); }
.ak-yr::before { z-index: 1; }

/* rev. 9 (owner): the swipe hint under every side-scrolling row */
.ak-swipe { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; width: fit-content; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: var(--ak-wine); background: rgba(184, 134, 47, .12); border: 1px solid rgba(184, 134, 47, .3); transition: opacity .5s ease, translate .5s ease; }
.ak-swipe.is-done { opacity: 0; translate: 0 -4px; pointer-events: none; }
.ak-swipe__ic { width: 26px; height: 13px; flex: none; animation: akSwipe 1.8s ease-in-out infinite; }
@keyframes akSwipe { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }
.ak-sec--years .ak-swipe, .ak-sec--film .ak-swipe { color: #fff3d6; background: rgba(255, 236, 190, .12); border-color: rgba(255, 236, 190, .35); }
html[data-ak="dark"] .ak-swipe { color: var(--ak-goldhi, #e7bd5c); }
@media (prefers-reduced-motion: reduce) { .ak-swipe__ic { animation: none; } }

/* rev. 9 (owner: the film's play button was far too big): a calm small button — dark glass, a thin gold ring, gold arrow */
.ak-screen .fp-big { width: 64px; height: 64px; background: rgba(20, 12, 5, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1.5px solid rgba(255, 220, 150, .85); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .7); transition: scale .25s ease, background .25s ease; }
.ak-screen .fp-big::before { content: none; }
.ak-screen .fp-big .fp-ic { width: 24px; height: 24px; color: #ffe2a0; }
.ak-screen .fp-big:hover { background: rgba(20, 12, 5, .72); }
@media (max-width: 760px) { .ak-screen .fp-big { width: 52px; height: 52px; } .ak-screen .fp-big .fp-ic { width: 20px; height: 20px; } }

/* rev. 9 (owner: on the computer the saint's face was cut off): wide screens show him from the top of the painting, and the
   gentle zoom grows from his face, so it stays in view; phones (portrait) keep the rev. 8 framing */
@media (orientation: landscape) {
  .ak-gate__saint img { object-position: 50% 4%; }
  .ak-gate__saint { transform-origin: 50% 18%; }
}

/* rev. 9 (final check): on phones the current chapter's name sat on top of the cards; it shows while scrolling, then steps aside */
@media (max-width: 760px) {
  .ak-rail2 b { transition: opacity .4s ease; }
  html:not(.ak-scrolling) .ak-rail2 a.on b { opacity: 0; }
}

/* rev. 9c (owner): arrows on the edges of every side-scrolling row on phones; the next one breathes */
.ak-rowbox { position: relative; }
.ak-rowarrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 220, 150, .9); background: rgba(30, 18, 8, .62); color: #ffe2a0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); transition: opacity .3s ease, scale .2s ease; }
.ak-rowarrow svg { width: 20px; height: 20px; }
.ak-rowarrow--next { inset-inline-end: 48px; }
.ak-rowarrow--prev { inset-inline-start: 8px; }
.ak-rowarrow--prev svg { transform: scaleX(-1); }
[dir="rtl"] .ak-rowarrow--next svg, html[dir="rtl"] .ak-rowarrow--next svg { transform: none; }
.ak-rowarrow--next:not(.is-off) { animation: akNext 1.8s ease-in-out infinite; }
@keyframes akNext { 0%, 100% { box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6), 0 0 0 0 rgba(255, 220, 150, .55); } 50% { box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6), 0 0 0 9px rgba(255, 220, 150, 0); } }
.ak-rowarrow:active { scale: .92; }
.ak-rowarrow.is-off { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ak-rowarrow--next:not(.is-off) { animation: none; } }
/* the story photos and the year cards show as they come in, not seconds later */
[data-anim="draw"].in .ak-photo { transition-delay: 0s; transition-duration: .6s; }
[data-anim="draw"].in .ak-photo img, [data-anim="draw"].in .ak-photo .ak-arch__soon { transition: clip-path .7s cubic-bezier(.65, 0, .35, 1) .1s; }
[data-anim="cascade"].in .ak-yr, [data-anim="cascade"].in .ak-chs li { transition-delay: calc(.15s + min(var(--i), 4) * .1s); }

/* rev. 11 (owner's wording): the film's subject named under its title, the fathers' line, the witness card */
.ak-sub__who { display: block; font-family: var(--font-display); font-size: 1.35em; color: var(--ak-gold); line-height: 1.5; }
.ak-sec--film .ak-sub__who { color: #f3d58c; }
.ak-sub--fas { text-align: center; max-width: 52ch; margin: -6px auto 22px; }
.ak-ours__who { display: block; font-style: normal; font-weight: 800; color: var(--ak-gold2, #e7bd5c); font-size: .95rem; margin-top: 2px; }
.ak-ours small.ak-ours__go { display: block; margin-top: 6px; font-weight: 800; opacity: .95; }
.ak-ours small:not(:first-child):not(.ak-ours__go) { display: block; line-height: 1.7; }
.ak-film .fp-big, .ak-screen .fp-big { top: 50%; left: 50%; }   /* rev. 11: the smaller button sits in the middle, off the poster label */

/* rev12 (owner 2026-12-02): on phones the film button under Fr Ibrahim («شهادته في فيلم…») was wider than its card, so
   the card's column grew and his picture spilled over Fr Isaac's. The card is held to its own width and long lines wrap. */
.ak-fa { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ak-fa .ak-link { max-width: 100%; white-space: normal; text-align: center; justify-content: center; line-height: 1.5; }
.ak-fa__next { flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) {
  .ak-fa__d div { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
  .ak-fa__d dt { white-space: nowrap; }
}
.ak-fa .ak-link { height: auto; min-height: 40px; padding: 7px 14px; }
@media (max-width: 760px) { .ak-fa .ak-link { font-size: .82rem; gap: 6px; } }
.ak-nw { white-space: nowrap; }

/* rev12: the resume chips sat on the family logo (both at the top start corner) → they go to the other corner */
.ak-screen .fp-resume { inset-inline-start: auto; inset-inline-end: 16px; }
@media (max-width: 760px) { .ak-screen .fp-resume { inset-inline-end: 10px; } }

/* rev12 (owner 2026-12-02): the teaser inside the screen as the curtains open (teaser.js), then the cover */
.ak-tz { position: absolute; inset: 0; z-index: 6; background: #000; cursor: pointer; overflow: hidden; }
.ak-tz__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-tz__line { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(270deg, #f3d58f, #b8862f); transform: scaleX(var(--k, 0)); transform-origin: right; opacity: .9; }
.ak-tz button { position: absolute; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(243, 213, 143, .55); background: rgba(15, 9, 4, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f3d58f; font: 700 .8rem/1 inherit; font-family: inherit; cursor: pointer; opacity: 0; animation: tzUi .5s 2.2s ease forwards; }
.ak-tz button svg { width: 18px; height: 18px; }
.ak-tz__snd { inset-inline-start: 12px; width: 32px; padding: 0 !important; justify-content: center; }
.ak-tz__skip { inset-inline-end: 12px; }
.ak-tz .ak-tz__on { display: none; } .ak-tz.is-loud .ak-tz__on { display: inline; } .ak-tz.is-loud .ak-tz__off { display: none; }
@keyframes tzUi { to { opacity: 1; } }
.fp.is-tz .fp-bar, .fp.is-tz-out .fp-bar { opacity: .3; pointer-events: none; transition: opacity .8s; }
.fp.is-tz .fp-mark { opacity: 0; }
.fp.is-tz .fp-poster > :not(.fp-poster__img) { opacity: 0; }
/* the way out: the sky of the last shot brightens and melts, the cover settles out of the light, a gold sheen crosses it,
   then the play button rises and the labels come back */
.fp.is-tz-out .ak-tz { background: transparent; pointer-events: none; }
.fp.is-tz-out .ak-tz__v { animation: tzMelt 1.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.fp.is-tz-out .ak-tz button, .fp.is-tz-out .ak-tz__line { opacity: 0 !important; transition: opacity .3s; animation: none; }
.fp.is-tz-out .fp-poster__img { animation: tzSettle 1.7s cubic-bezier(.2, .7, .2, 1) both; }
.fp.is-tz-out .fp-poster::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 232, 175, .5) 48%, rgba(255, 245, 215, .7) 50%, rgba(255, 232, 175, .5) 52%, transparent 70%); transform: translateX(-130%); animation: tzSheen 1.3s .55s cubic-bezier(.4, 0, .2, 1) forwards; }
.fp.is-tz-out .fp-big { animation: tzBtn .8s 1s cubic-bezier(.3, 1.5, .5, 1) both; }
.fp.is-tz-out .fp-poster > :not(.fp-poster__img):not(.fp-big), .fp.is-tz-out .fp-mark { opacity: 0; animation: tzUi .6s 1.25s ease forwards; }
.fp.is-tz-done .fp-mark { transition: none; }
@keyframes tzMelt { 0% { opacity: 1; filter: none; transform: none; } 55% { opacity: .85; filter: brightness(1.9) blur(3px); } 100% { opacity: 0; filter: brightness(2.2) blur(10px); transform: scale(1.06); } }
@keyframes tzSettle { 0% { transform: scale(1.14); filter: brightness(1.9) blur(12px) saturate(.5); } 60% { filter: brightness(1.15) blur(0) saturate(.95); } 100% { transform: none; filter: none; } }
@keyframes tzSheen { to { transform: translateX(130%); } }
@keyframes tzBtn { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: none; } }

/* rev12b (owner 2026-12-02): our logo stays at the side of the screen during the promo; the star on the frame sat over
   the picture → it rests on the gold frame only, the picture starts under it */
.fp.is-tz.is-tz-mark .fp-mark { opacity: .92; z-index: 7; transition: opacity .6s; }
.ak-screen__x--a { top: -30px; }
@media (max-width: 760px) { .ak-screen__x--a { top: -28px; width: 36px; height: 36px; } }

/* rev12c (owner 2026-12-02): the family logo on the screen is a button that plays the promo again */
.ak-again { pointer-events: auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; display: block; transition: transform .25s; }
.ak-again__logo { display: block; width: 100%; height: auto; border-radius: 50%; }
.ak-again::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(243, 213, 143, .9); animation: akAgain 2.6s ease-out infinite; pointer-events: none; }
.ak-again__play { position: absolute; inset-block-end: -4px; inset-inline-end: -4px; width: 42%; aspect-ratio: 1; min-width: 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #f6dc9a, #c8942f); color: #2a1a06; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.ak-again__play svg { width: 62%; height: 62%; }
.ak-again:hover, .ak-again:focus-visible { transform: scale(1.08); }
.ak-again:focus-visible { outline: 2px solid #f3d58f; outline-offset: 3px; }
@keyframes akAgain { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.fp.is-tz .ak-again, .fp.is-tz-out .ak-again { pointer-events: none; }
.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: none; }
.fp.is-started .ak-again { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ak-again::before { animation: none; } }

/* rev12c: no scrolling under the entrance (it played while the page could be scrolled behind it) */
html.ak-gated, html.ak-gated body { overflow: hidden; overscroll-behavior: none; }
html.ak-gated body { touch-action: none; }

/* rev12d: the teaser layer appears (a short fade over the cover) only once its first frame really plays */
.ak-tz { opacity: 0; transition: opacity .45s ease; }
.ak-tz.is-on { opacity: 1; }
.fp.is-tz-out .ak-tz { opacity: 1; }

/* rev12e: before it plays, the teaser's dark first frame waits behind the curtains (the cover is not seen first) */
.ak-tz.is-pre { opacity: 1; transition: none; }
.fp.is-tz-pre .fp-bar { opacity: .3; pointer-events: none; }
.fp.is-tz-pre .fp-mark { opacity: 0; }
.ak-tz.is-pre button { display: none; }

/* rev12f (owner 2026-12-02): on phones the side rail sat over the film screen (and its «حكاية أب» label over the skip
   button). It now rests tucked in at the edge while the page is still or moves gently, and slides out only on a quick
   scroll, going back in 1.4 s after the page stops. */
@media (max-width: 900px) {
  html.ak-past-hero .ak-rail2 { opacity: 0; pointer-events: none; transform: translateX(-140%); transition: opacity .3s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
  html.ak-past-hero.ak-scroll-fast .ak-rail2 { opacity: 1; pointer-events: auto; transform: none; }
  html:not(.ak-scroll-fast) .ak-rail2 a.on b { opacity: 0; }
}
