/* Shahzad motion layer. Everything is gated by html.mo (set by motion.js), so reduced-motion visitors get the plain page. */
:root { --out: cubic-bezier(.16, 1, .3, 1); }

/* ── Logo: the SA mark is revealed with a gold shine, letters rise one by one ── */
.mo .logo-mark { position: relative; display: block; line-height: 0; }
.mo .logo-mark img { clip-path: inset(0 100% 0 0); animation: mark-in 1.3s var(--out) .2s forwards; }
.mo .logo-mark::after { content: ""; position: absolute; inset: 0; -webkit-mask: url(/brand/monogram.png) center / contain no-repeat; mask: url(/brand/monogram.png) center / contain no-repeat; background: linear-gradient(105deg, transparent 35%, #fff8e0 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; animation: shine 1.6s ease 1.3s; pointer-events: none; }
.mo .logo:hover .logo-mark::after { animation: shine 1.2s ease; }
@keyframes mark-in { to { clip-path: inset(0 0 0 0); } }
@keyframes shine { from { background-position: -150% 0; } to { background-position: 150% 0; } }
.mo .logo .lc { display: inline-block; opacity: 0; transform: translateY(.5em); animation: lc .9s var(--out) forwards; animation-delay: calc(.45s + var(--i) * 35ms); white-space: pre; }
.mo .logo small { opacity: 0; letter-spacing: .1em; animation: tag 1.4s var(--out) 1.1s forwards; }
@keyframes lc { to { opacity: 1; transform: none; } }
@keyframes tag { to { opacity: 1; letter-spacing: .36em; } }
@media (max-width: 420px) { @keyframes tag { to { opacity: 1; letter-spacing: .24em; } } }

/* ── Hero: headline and buttons come in over the film ── */
.mo .hero-content .display .ln { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.mo .hero-content .display .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--out); transition-delay: calc(.55s + var(--i) * 70ms); }
.mo .hero.landed .display .ln > span { transform: none; }
.mo .hero-content .eyebrow, .mo .hero-content p, .mo .hero-actions, .mo .hero-flags { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s var(--out); }
.mo .hero-content .eyebrow { transition-delay: .4s; }
.mo .hero-content p { transition-delay: 1.15s; }
.mo .hero-actions { transition-delay: 1.3s; }
.mo .hero-flags { transition-delay: 1.5s; }
.mo .hero.landed .hero-content .eyebrow, .mo .hero.landed .hero-content p, .mo .hero.landed .hero-actions, .mo .hero.landed .hero-flags { opacity: 1; transform: none; }

/* ── Headings rise word by word; eyebrows get a drawn gold rule ── */
.mo .h2 .ln, .mo .cta .display .ln { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.mo .h2 .ln > span, .mo .cta .display .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--out); transition-delay: calc(var(--i) * 55ms); }
.mo .h2.in .ln > span, .mo .cta.in .display .ln > span { transform: none; }
.mo .section-head .eyebrow, .mo .reel-head .eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.mo .section-head .eyebrow::before, .mo .reel-head .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--out) .1s; }
.mo .in .eyebrow::before, .mo .eyebrow.in::before { transform: none; }

/* ── Stats count up ── */
.mo .stat { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s var(--out); transition-delay: calc(var(--i) * 120ms); }
.mo .stats.in .stat { opacity: 1; transform: none; }

/* ── Stories reel: held on screen, the row walks sideways (wide screens) ── */
.mo .reel-hold.on .reel-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 64px; }
.mo .reel-hold.on .reel { overflow: visible; scroll-snap-type: none; will-change: transform; align-items: center; }
.mo .reel-hold.on .reel-photo { height: min(50svh, 540px); width: auto; aspect-ratio: 4 / 5; }
.mo .reel-hold.on .reel-card { width: auto; }
.mo .reel-hold.on .reel-card:nth-of-type(even) { margin-top: 0; transform: translateY(4svh); }
.mo .reel-hold.on .reel-card:nth-of-type(odd) { transform: translateY(-3svh); }
.mo .reel-hold.on .reel-cap { max-width: min(46svh, 450px); }
.mo .reel-card .reel-photo { clip-path: inset(8% 8% 8% 8%); transition: clip-path 1.2s var(--out); }
.mo .reel-card.in .reel-photo { clip-path: inset(0 0 0 0); }
.mo .reel-card .reel-cap > * { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s var(--out); }
.mo .reel-card.in .reel-cap > * { opacity: 1; transform: none; }
.mo .reel-card.in .reel-cap > :nth-child(2) { transition-delay: .08s; }
.mo .reel-card.in .reel-cap > :nth-child(3) { transition-delay: .16s; }
.mo .reel-card.in .reel-cap > :nth-child(n+4) { transition-delay: .24s; }
.mo .reel-no { opacity: 0; transform: translateY(20px); transition: opacity 1s ease .2s, transform 1s var(--out) .2s; }
.mo .reel-card.in .reel-no { opacity: 1; transform: none; }

/* ── What you receive: the mockups play when they come into view ── */
.mo .give-card { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1.1s var(--out); transition-delay: calc(var(--i) * 140ms); }
.mo .give.in .give-card { opacity: 1; transform: none; }
.mo .gal-grid img { opacity: 0; transform: scale(.7); transition: opacity .5s ease, transform .6s var(--out); transition-delay: calc(.6s + var(--i) * 90ms); }
.mo .give.in .gal-grid img { opacity: 1; transform: none; }
.mo .give.in .face-scan { animation: scan 2.2s ease-in-out .8s 2 both; }
@keyframes scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
.mo .face-ring { transform: scale(.8); opacity: 0; transition: transform 1s var(--out) .5s, opacity .6s ease .5s; }
.mo .give.in .face-ring { transform: none; opacity: 1; }
.mo .face-found img { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s var(--out); transition-delay: calc(5.2s + var(--i) * 110ms); }
.mo .give.in .face-found img { opacity: 1; transform: none; }
.mo .face-txt::after { content: ""; }
.mo .give.in .face-txt { animation: found 0s linear 5.2s forwards; }
@keyframes found { to { color: var(--text); } }
.mo .book .cover { transition: transform 1.8s var(--out) .9s; }
.mo .give.in .book .cover { transform: translateY(-50%) rotateY(-178deg); }
.mo .book .pg img { opacity: 0; transition: opacity .8s ease 1.9s; }
.mo .give.in .book .pg img { opacity: 1; }
.mo .give-time li { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s var(--out); transition-delay: calc(var(--i) * 120ms); }
.mo .give-time.in li { opacity: 1; transform: none; }
.mo .give-time { border-top-color: transparent; background: linear-gradient(var(--gold), var(--gold)) top left / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) top left / 100% 1px no-repeat; transition: background-size 1.6s var(--out); }
.mo .give-time.in { background-size: 100% 1px, 100% 1px; }

/* ── About: photos open from a window and settle; the heading inks in as you read ── */
.mo .about-photos img { clip-path: inset(14% 14% 14% 14%); transform: scale(1.12); transition: clip-path 1.4s var(--out), transform 1.8s var(--out); }
.mo .about-photos img:last-child { transition-delay: .25s; }
.mo .about-photos.in img { clip-path: inset(0 0 0 0); transform: none; }
.mo #about-title .w { color: #efe9e133; transition: color .4s ease; }
.mo #about-title .w.lit { color: var(--text); }
.mo #about-title em .w.lit { color: var(--gold); }

/* ── How it works: gold line fills, steps light up in turn ── */
.mo .steps { position: relative; }
.mo .steps-fill { position: absolute; z-index: 1; top: -1px; left: 0; right: 0; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.mo .step { transition: background .6s ease; }
.mo .step .num { opacity: .25; transition: opacity .6s ease; }
.mo .step h3, .mo .step p { opacity: .35; transform: translateY(10px); transition: opacity .7s ease, transform .7s var(--out); }
.mo .step.lit .num, .mo .step.lit h3, .mo .step.lit p { opacity: 1; transform: none; }
.mo .step.lit { background: #13110f; }

/* ── Packages rise in turn ── */
.mo .packages .pkg { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1s var(--out); }
.mo .packages.in .pkg { opacity: 1; transform: none; }
.mo .packages.in .pkg:nth-child(2) { transition-delay: .1s; }
.mo .packages.in .pkg:nth-child(3) { transition-delay: .2s; }
.mo .packages.in .pkg:nth-child(4) { transition-delay: .3s; }

/* ── Date photo settles from a zoom ── */
.mo .check-img { overflow: hidden; }
.mo .check-img img { transform: scale(calc(1 + var(--z, 0) * .18)); }



/* ── Story page: the hero photo settles, chapters rise ── */
.mo .story-hero img { animation: settle 2.4s var(--out) both; }
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }

/* ── Policy page: sections draw their rule ── */
.mo .pol-sec h2 { border-bottom-color: transparent; background: linear-gradient(var(--line), var(--line)) bottom left / 0 1px no-repeat; transition: background-size 1.4s var(--out); }
.mo .pol-sec.in h2 { background-size: 100% 1px; }
.mo .prints img { transform: translate(-50%, -46%) rotate(0deg); transition: transform 1.4s var(--out) .7s; }
.mo .give.in .prints img { transform: translate(-50%, -50%) rotate(calc((var(--i) - 1) * 9deg)) translateX(calc((var(--i) - 1) * 34%)); }

/* ── Gallery page: photos fade in as they arrive ── */
.mo .pf-grid figure { opacity: 0; transition: opacity .9s ease; }
.mo .pf-grid figure.in { opacity: 1; }
