/* "Before we met": the two childhood photographs, shared by every mock.
   Each mock themes it with these variables on .kids (defaults below):
   --kid-paper  frame colour        --kid-ink    drawing + caption ink
   --kid-wash   empty-frame ground  --kid-accent thread + heart
   --kid-head   heading font (inherits the mock's h2 otherwise)
   Photos are set in core.js (PHOTOS). Until then the frame shows a drawn child. */
.kids{--kid-paper:#fffaf2;--kid-ink:#3a2e25;--kid-wash:#f1e6d4;--kid-accent:#c8643b;text-align:center;padding-block:clamp(72px,11vw,150px)}
.kids>p{max-width:46ch;margin:14px auto 0;opacity:.8}
.kids-pair{display:grid;grid-template-columns:1fr minmax(80px,180px) 1fr;align-items:center;gap:clamp(8px,2vw,28px);max-width:880px;margin:clamp(40px,6vw,72px) auto 0}
.kid{display:grid;justify-items:center}
.kid-frame{margin:0;position:relative;width:min(100%,320px);background:var(--kid-paper);padding:12px 12px 64px;border-radius:3px;
  box-shadow:0 1px 2px rgba(0,0,0,.12),0 18px 40px -18px rgba(0,0,0,.45);
  transform:rotate(var(--tilt,-2.5deg));transition:transform .4s cubic-bezier(.23,1,.32,1),box-shadow .4s cubic-bezier(.23,1,.32,1)}
.kid[data-kid="aya"] .kid-frame{--tilt:2.5deg}
@media (hover:hover) and (pointer:fine){.kid-frame:hover{transform:rotate(0) translateY(-6px);box-shadow:0 1px 2px rgba(0,0,0,.12),0 30px 60px -24px rgba(0,0,0,.5)}}
.kid-pic{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:1px;
  background:radial-gradient(90% 70% at 28% 18%,rgba(255,255,255,.4),transparent 62%),var(--kid-wash)}
/* drawn stand-in: a mask so it takes the mock's ink */
.kid-pic::before{content:"";position:absolute;inset:4% 4% 0;background:var(--kid-ink);opacity:.82;
  -webkit-mask:var(--kid-draw) center bottom/contain no-repeat;mask:var(--kid-draw) center bottom/contain no-repeat}
.kid[data-kid="mohamed"]{--kid-draw:url("data:image/svg+xml,%3Csvg%20fill%3D%27black%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%20160%27%3E%3Ccircle%20cx%3D%2726%27%20cy%3D%2734%27%20r%3D%2715%27%20fill-opacity%3D%27.12%27%2F%3E%3Ccircle%20cx%3D%2726%27%20cy%3D%2734%27%20r%3D%279%27%20fill-opacity%3D%27.12%27%2F%3E%3Cpath%20d%3D%27M0%20146Q26%20136%2054%20143T120%20139V160H0Z%27%20fill-opacity%3D%27.22%27%2F%3E%3Cpath%20d%3D%27M0%20152Q40%20146%2076%20151T120%20149V160H0Z%27%20fill-opacity%3D%27.18%27%2F%3E%3Cpath%20d%3D%27M14%20146q1-6%203-8q-.5%205%200%208q2-5%205-6q-3%204-3%206z%27%20fill-opacity%3D%27.45%27%2F%3E%3Cpath%20d%3D%27M98%20141q1-6%203-8q-.5%205%200%208q2-5%205-6q-3%204-3%206z%27%20fill-opacity%3D%27.45%27%2F%3E%3Cpath%20d%3D%27M94%2014l11%2015H83z%27%2F%3E%3Cpath%20d%3D%27M83%2029h22l-11%2018z%27%20fill-opacity%3D%27.62%27%2F%3E%3Cpath%20d%3D%27M94%2047q-4%207%201%2012t-1%2013%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.3%27%20stroke-linecap%3D%27round%27%20stroke-opacity%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M91%2054l6-2-1%205zM92%2064l6-1-2%205z%27%20fill-opacity%3D%27.8%27%2F%3E%3Cpath%20d%3D%27M63%2086Q78%2064%2092%2046%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.1%27%20stroke-opacity%3D%27.65%27%2F%3E%3Ccircle%20cx%3D%2745%27%20cy%3D%2789%27%20r%3D%278.5%27%2F%3E%3Cpath%20d%3D%27M36.4%2088q-.4-11%209.6-11q8.6%200%208.6%208.4q-4.6-3.6-10.2-2.6q-4.6.8-8%205.2z%27%2F%3E%3Cpath%20d%3D%27M37.5%2099q7.5-3.4%2015%200l2.6%2018H35.4z%27%2F%3E%3Cpath%20d%3D%27M35.6%20116.5h19.6l1.2%209h-8.2l-1.8-4-1.8%204h-8.2z%27%20fill-opacity%3D%27.8%27%2F%3E%3Cpath%20d%3D%27M51.5%20102L63%2086%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%275%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M38.5%20103.5L30%20115%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%275%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M41%20125l-7%2013%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%275.4%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M30%20139.5h7%27%20stroke%3D%27black%27%20stroke-width%3D%274%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M50.5%20125l7%209-2%209%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%275.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M55.5%20143.5h6%27%20stroke%3D%27black%27%20stroke-width%3D%274%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E")}
.kid[data-kid="aya"]{--kid-draw:url("data:image/svg+xml,%3Csvg%20fill%3D%27black%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%20160%27%3E%3Ccircle%20cx%3D%2794%27%20cy%3D%2730%27%20r%3D%2715%27%20fill-opacity%3D%27.12%27%2F%3E%3Ccircle%20cx%3D%2794%27%20cy%3D%2730%27%20r%3D%279%27%20fill-opacity%3D%27.12%27%2F%3E%3Cpath%20d%3D%27M0%20146Q26%20136%2054%20143T120%20139V160H0Z%27%20fill-opacity%3D%27.22%27%2F%3E%3Cpath%20d%3D%27M0%20152Q40%20146%2076%20151T120%20149V160H0Z%27%20fill-opacity%3D%27.18%27%2F%3E%3Cpath%20d%3D%27M20%20145q1-6%203-8q-.5%205%200%208q2-5%205-6q-3%204-3%206z%27%20fill-opacity%3D%27.45%27%2F%3E%3Cpath%20d%3D%27M96%20140q1-6%203-8q-.5%205%200%208q2-5%205-6q-3%204-3%206z%27%20fill-opacity%3D%27.45%27%2F%3E%3Ccircle%20cx%3D%27104%27%20cy%3D%27136%27%20r%3D%272.6%27%20fill-opacity%3D%27.5%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%27140%27%20r%3D%272.2%27%20fill-opacity%3D%27.45%27%2F%3E%3Cellipse%20cx%3D%2734%27%20cy%3D%2732%27%20rx%3D%2713.5%27%20ry%3D%2716%27%2F%3E%3Cpath%20d%3D%27M31.5%2047.5h5l-2.5%204z%27%2F%3E%3Cpath%20d%3D%27M34%2051Q30%2066%2040%2076T50%2095%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.1%27%20stroke-opacity%3D%27.65%27%2F%3E%3Ccircle%20cx%3D%2748.5%27%20cy%3D%2785%27%20r%3D%274.6%27%2F%3E%3Ccircle%20cx%3D%2767.5%27%20cy%3D%2785%27%20r%3D%274.6%27%2F%3E%3Ccircle%20cx%3D%2758%27%20cy%3D%2788%27%20r%3D%278.5%27%2F%3E%3Cpath%20d%3D%27M49.4%2087q-.2-10.8%208.6-10.8t8.6%2010.8q-4.4-4.8-8.6-4.8t-8.6%204.8z%27%2F%3E%3Cpath%20d%3D%27M52.5%2098.5q5.5-3%2011%200l9.5%2025.5q-15%203.6-30%200z%27%2F%3E%3Cpath%20d%3D%27M44%20121q14%204%2028%200%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-opacity%3D%27.35%27%20stroke-width%3D%271.4%27%2F%3E%3Cpath%20d%3D%27M53.5%20102.5L50%2095%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%274.6%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M63%20102.5l6%2011%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%274.6%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M54.5%20125v13M61.5%20125v13%27%20stroke%3D%27black%27%20stroke-width%3D%273.8%27%20stroke-linecap%3D%27round%27%2F%3E%3Cellipse%20cx%3D%2753.5%27%20cy%3D%27140%27%20rx%3D%273.6%27%20ry%3D%272%27%2F%3E%3Cellipse%20cx%3D%2762.5%27%20cy%3D%27140%27%20rx%3D%273.6%27%20ry%3D%272%27%2F%3E%3C%2Fsvg%3E")}
.kid-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease,transform 1.2s cubic-bezier(.16,1,.3,1);
  filter:sepia(.22) saturate(1.06) contrast(1.05) brightness(1.03)}
/* the "warm and cool" finish: a warm light leak top-left, a cool shadow bottom-right, fine grain */
.kid-pic::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .9s ease;mix-blend-mode:soft-light;
  background:radial-gradient(80% 60% at 12% 8%,rgba(255,176,102,.55),transparent 60%),radial-gradient(70% 60% at 92% 96%,rgba(70,110,160,.45),transparent 65%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}
.kid.has-photo .kid-pic::before{display:none}
.kid.has-photo .kid-pic img,.kid.has-photo .kid-pic::after{opacity:1}
@media (hover:hover) and (pointer:fine){.kid.has-photo .kid-frame:hover img{transform:scale(1.03)}}
.kid figcaption{position:absolute;inset-inline:12px;bottom:12px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;color:var(--kid-ink)}
.kid figcaption b{font:inherit;font-family:var(--kid-head,inherit);font-size:clamp(20px,2vw,26px);line-height:1.2}
.kid figcaption span{font-size:14px;opacity:.7;white-space:nowrap}
.kids-thread{width:100%;height:auto;color:var(--kid-accent);overflow:visible}
.kids-thread path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-dasharray:4 7}
.kids-thread .heart{fill:currentColor;stroke:none}
@media (max-width:700px){
  .kids-pair{grid-template-columns:1fr;gap:6px}
  .kid-frame{width:min(70vw,280px)}
  .kids-thread{justify-self:center;width:96px;transform:rotate(90deg);margin-block:18px}
}
@media (prefers-reduced-motion:reduce){.kid-frame,.kid-pic img{transition:opacity .3s ease}}
/* 3D figures: they stand out of the frame, in front of a lit niche in the mock's own colours */
.kid.has-photo .kid-pic{overflow:visible;clip-path:inset(-30% -20% 0 -20%);
  background:repeating-conic-gradient(from 0deg at 50% 46%,transparent 0 6deg,color-mix(in srgb,var(--kid-accent) 13%,transparent) 6deg 12deg),
  radial-gradient(60% 52% at 50% 46%,color-mix(in srgb,var(--kid-paper) 88%,#fff),transparent 78%),
  linear-gradient(180deg,var(--kid-wash),color-mix(in srgb,var(--kid-wash) 58%,var(--kid-accent)))}
.kid.has-photo .kid-pic::after{display:none}
.kid-pic canvas,.kid.has-photo .kid-pic img{position:absolute;inset:auto auto 0 50%;width:116%;height:auto;max-width:none;filter:none;object-fit:contain;
  transform:translate(-50%,0);transform-origin:50% 100%;transition:opacity .6s ease,transform .6s cubic-bezier(.23,1,.32,1)}
.kid.turns .kid-pic img{opacity:0;transition:none}
@media (hover:hover) and (pointer:fine){.kid.has-photo .kid-frame:hover :is(img,canvas){transform:translate(-50%,0) scale(1.04)}}
.kid.has-photo{padding-top:clamp(28px,5vw,64px)}
/* dressing: a double hairline inside the frame, sparkles that twinkle a few times and rest */
@media (min-width:761px){.kids .kid-frame{width:min(100%,360px)}}
.kid.has-photo .kid-pic{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--kid-accent) 75%,transparent),inset 0 0 0 7px var(--kid-paper),inset 0 0 0 8px color-mix(in srgb,var(--kid-accent) 55%,transparent)}
.kid-pic .twk{position:absolute;width:var(--s,16px);aspect-ratio:1;background:color-mix(in srgb,var(--kid-paper) 70%,#fff);z-index:2;pointer-events:none;
  clip-path:polygon(50% 0,57% 43%,100% 50%,57% 57%,50% 100%,43% 57%,0 50%,43% 43%)}
.twk:nth-of-type(1){left:12%;top:14%;--s:22px}.twk:nth-of-type(2){left:84%;top:11%;--s:15px;--d:.5s}.twk:nth-of-type(3){left:7%;top:46%;--s:13px;--d:.9s}
.twk:nth-of-type(4){left:87%;top:40%;--s:20px;--d:.25s}.twk:nth-of-type(5){left:80%;top:64%;--s:12px;--d:.7s}
.kids-arm .twk{opacity:0}
.kids-arm.kids-in .twk{animation:twk 1.6s calc(.8s + var(--d,0s)) ease-in-out 2 forwards}
@keyframes twk{0%{opacity:0;transform:scale(.5) rotate(-20deg)}50%{opacity:1;transform:scale(1)}100%{opacity:.75;transform:scale(.85) rotate(12deg)}}
.kids-arm .kid.has-photo .kid-pic :is(img,canvas){translate:0 62%;scale:.94;transition:translate 1.1s var(--in,0s) cubic-bezier(.22,1.28,.36,1),scale 1.1s var(--in,0s) cubic-bezier(.23,1,.32,1),transform .6s cubic-bezier(.23,1,.32,1)}
.kids-arm .kid[data-kid="aya"]{--in:.18s}
.kids-arm.kids-in .kid.has-photo .kid-pic :is(img,canvas){translate:0 0;scale:1}
/* a toy held by a child (mock 17): it appears once the child is up, and sways from then on */
.kids-arm .fly{opacity:0;transition:opacity .7s .7s ease}
.kids-arm.kids-in .fly{opacity:1;animation-play-state:running!important}
/* RSVP states (core.js toggles hidden); beats each mock's own display rule */
[data-rsvp][hidden],[data-rsvp-done][hidden],[data-guests][hidden]{display:none!important}

/* the two days: katb el-kitab in the mosque on the 25th, the wedding on the 31st. Themed by the same --kid-* variables. */
.wed-days{text-align:center;padding-top:clamp(40px,6vw,84px);--wed-a:color-mix(in srgb,var(--kid-accent) 62%,var(--kid-ink))}
.wed-pair{display:grid;grid-template-columns:minmax(0,1fr) clamp(36px,7vw,110px) minmax(0,1fr);align-items:stretch;max-width:940px;margin:clamp(32px,5vw,60px) auto 0}
.wed-day{position:relative;display:flex;flex-direction:column;align-items:center;background:var(--kid-paper);color:var(--kid-ink);padding:clamp(34px,4.4vw,56px) clamp(18px,2.6vw,34px);border-radius:min(220px,24vw) min(220px,24vw) 4px 4px;box-shadow:0 24px 50px -28px rgba(0,0,0,.5)}
.wed-day::before,.wed-day::after{content:"";position:absolute;inset:9px;border:1px solid var(--wed-a);border-radius:inherit;opacity:.75;pointer-events:none}
.wed-day::after{inset:14px;opacity:.35}
.wed-day svg{width:clamp(84px,9.5vw,124px);height:auto;color:var(--wed-a)}
.wed-day h3{font-family:var(--kid-head,inherit);font-size:clamp(26px,3vw,40px);line-height:1.5;font-weight:600;margin:10px 0 0;color:inherit}
.wed-day p{margin:4px 0 0;max-width:24ch;font-size:clamp(16px,1.4vw,19px);line-height:1.6;color:inherit;opacity:1;text-wrap:balance}
.wed-day .wed-no{font-family:var(--kid-head,inherit);font-size:clamp(76px,9vw,132px);line-height:1.25;margin:0;color:var(--wed-a)}
.wed-day .wed-at{margin-top:14px;padding-top:14px;border-top:1px solid var(--wed-a);font-weight:600}
.wed-link{align-self:center;height:1px;background:linear-gradient(90deg,transparent,currentColor,transparent);opacity:.6}
@media (max-width:700px){.wed-pair{grid-template-columns:minmax(0,360px);justify-content:center}.wed-link{width:1px;height:44px;justify-self:center;background:linear-gradient(180deg,transparent,currentColor,transparent)}.wed-day{border-radius:180px 180px 4px 4px;padding:50px 26px 44px}}
.wed-day .wed-time{font-weight:600}
