/* Ivory Lace — Christian wedding invitation (invite-ivory-lace.php)
   From the MARK BY ILARA THEAM 8 artwork: white lace over the church doors, ivory paper
   (#e2dacf), white drapes, brown (#77522a) for names, buttons and titles. Morgena for names,
   Times italic for titles, Syne for body copy, Inter for the RSVP form, Maitree for the map link
   (fonts served from assets/fonts/sage-olive and assets/fonts/crimson-nikah), Great Vibes for the
   calendar's script.
   Sizes and positions use the artwork's 1080 x 1920 grid: --u is one artwork pixel, so
   "calc(118 * var(--u))" is the artwork's 118px at whatever width the phone column has. */
@font-face { font-family: "Morgena"; src: url("../fonts/sage-olive/morgena-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/sage-olive/syne-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/sage-olive/syne-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/sage-olive/inter-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/sage-olive/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/sage-olive/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Maitree"; src: url("../fonts/crimson-nikah/maitree-regular.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --il-brown: #77522a;
  --il-brown-2: #5f4120;
  --il-paper: #e2dacf;
  --il-ink: #353535;
  --il-gold: #b8924a;
  --il-red: #d42a2a;
  --il-cream: #fbf7ee;
  --il-display: Morgena, "Cormorant Garamond", Georgia, serif;
  --il-serif: "Times New Roman", Times, Tinos, serif;
  --il-script: "Great Vibes", "Times New Roman", cursive;
  --il-sans: Syne, "Segoe UI", sans-serif;
  --il-ui: Inter, "Segoe UI", sans-serif;
  --il-w: 540px;
  --u: calc(min(100vw, var(--il-w)) / 1080);
  /* a brown heart for the mouse pointer */
  --il-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='26' viewBox='0 0 28 26'%3E%3Cpath fill='%2377522a' stroke='%23fff' stroke-width='1.6' d='M14 24.2 12.2 22.6C5.6 16.6 1 12.6 1 7.7 1 3.8 4 1 7.9 1c2.2 0 4.3 1 5.6 2.6l.5.6.5-.6C15.8 2 17.9 1 20.1 1 24 1 27 3.8 27 7.7c0 4.9-4.6 8.9-11.2 14.9z'/%3E%3C/svg%3E") 14 12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.il { margin: 0; background: #d9d1c4 url("../images/invites/ivory-lace/drapes.jpg") center / cover fixed; color: var(--il-ink); font: 400 15px/1.55 var(--il-sans); -webkit-font-smoothing: antialiased; cursor: var(--il-cursor), auto; overflow-wrap: break-word; word-wrap: break-word; }
body.il a, body.il button, body.il label, body.il select { cursor: var(--il-cursor), pointer; }
body.il.is-locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* the invitation is a phone-width column; wide screens see the drapes around it */
.il-main { max-width: var(--il-w); margin: 0 auto; background: var(--il-paper); box-shadow: 0 0 60px rgba(60,40,20,.25); overflow: hidden; }
/* one artwork pixel from the column's real width, not 100vw: where a scrollbar takes room (the
   customize page's preview frame, narrow desktop windows) 100vw is wider than the column, and the
   copy, pills and flowers drift off the painted artwork and look doubled */
@supports (container-type: inline-size) {
  .il-main { container-type: inline-size; }
  .il-main * { --u: calc(100cqw / 1080); }
}
.il-sec { position: relative; }
.il-wrap { position: relative; z-index: 2; padding: 0 28px; text-align: center; }
/* a screen of the artwork: its background keeps the artwork's shape, the copy sits on its grid */
.il-art { min-height: calc(1920 * var(--u)); background: var(--il-paper) center top / 100% auto no-repeat; text-align: center; }
/* placed on the artwork's grid: left/top/width in artwork pixels */
.il-art > * { position: absolute; }

/* ---------- shared bits ---------- */
/* the couple's names: Morgena around a Times ampersand; --fs is the artwork size in pixels */
.il-names { margin: 0; font: 400 calc(var(--fs, 118) * var(--u))/1.1 var(--il-display); color: var(--il-brown); white-space: nowrap; }
.il-names i { font: 400 1em/1 var(--il-serif); }
.il-names--stack span { display: block; line-height: .92; }
.il-lead { margin: 0; font: 400 max(13.5px, calc(32 * var(--u)))/1.2 var(--il-sans); color: #000; }
.il-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 40px; background: var(--il-brown); color: #fff; font: 400 max(13px, calc(28 * var(--u)))/1.2 var(--il-sans); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.il-btn:hover { background: var(--il-brown-2); box-shadow: 0 8px 20px rgba(95,65,32,.3); }
.il-btn:disabled { opacity: .6; cursor: default; }
.il-btn--wide { min-width: 230px; min-height: 46px; font-size: 15px; }
.il-title { margin: 0; font: italic 400 calc(73 * var(--u))/1.05 var(--il-serif); color: var(--il-brown); }
.il-title--ink { color: var(--il-ink); }
.il-kicker { margin: 0 0 calc(4 * var(--u)); font: 400 max(11px, calc(28 * var(--u)))/1.2 var(--il-sans); text-transform: uppercase; color: var(--il-brown); }
.il-spaced { margin: 0 0 12px; font: 500 11px/1 var(--il-ui); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--il-gold); }
.il-divider { display: flex; align-items: center; justify-content: center; margin: 12px auto; width: 200px; }
.il-divider::before, .il-divider::after { content: ""; flex: 1; height: 1px; background: rgba(184,146,74,.55); }
.il-divider i { width: 7px; height: 7px; margin: 0 10px; background: var(--il-gold); transform: rotate(45deg); }

/* scroll-in reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--il-d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--il-d, 0ms), filter .9s ease var(--il-d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* motion styles added by invite-ivory-lace.js (each still ends at .reveal.in) */
.js .reveal.il-a-up { transform: translateY(36px); }
.js .reveal.il-a-left { transform: translateX(-60px) rotate(-2deg); }
.js .reveal.il-a-right { transform: translateX(60px) rotate(2deg); }
.js .reveal.il-a-zoom { transform: scale(.82); }
.js .reveal.il-a-pop { transform: scale(.4) rotate(-8deg); transition-timing-function: ease, cubic-bezier(.34,1.56,.64,1), ease; }
.js .reveal.il-a-tilt { transform: perspective(900px) rotateX(22deg) translateY(50px); transform-origin: 50% 100%; }
.js .reveal.il-a-blur { filter: blur(10px); transform: scale(1.04); }
.js .reveal.il-a-drop { transform: translateY(-40px) scale(.9); }
.js .reveal.in.il-a-up, .js .reveal.in.il-a-left, .js .reveal.in.il-a-right, .js .reveal.in.il-a-zoom,
.js .reveal.in.il-a-pop, .js .reveal.in.il-a-tilt, .js .reveal.in.il-a-blur, .js .reveal.in.il-a-drop { transform: none; filter: none; }
/* names catch the light once they arrive */
.il-names.reveal.in { animation: il-glint 2.6s ease var(--il-d, 0ms) 1 both; }
@keyframes il-glint { 0% { text-shadow: none; } 35% { text-shadow: 0 0 14px rgba(255,236,200,.95), 0 0 2px rgba(119,82,42,.4); } 100% { text-shadow: none; } }

/* ---------- intro: the lace hexagon over the church doors ---------- */
.il-intro { position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; max-width: var(--il-w); margin: 0 auto; z-index: 50; overflow: hidden; background: var(--il-paper) url("../images/invites/ivory-lace/intro.jpg") center / cover no-repeat; box-shadow: 0 0 60px rgba(60,40,20,.3); text-align: center; -webkit-tap-highlight-color: transparent;
  /* intro.jpg (hero.jpg without its empty button pill) covers the screen, so one artwork pixel is whichever of width or height it is scaled by */
  --u: max(calc(min(100vw, var(--il-w)) / 1080), calc(100vh / 1920)); transition: opacity .9s ease, visibility 0s .9s; }
.il-intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.il-intro--cover-1 { background-image: url("../images/invites/ivory-lace/cover-1.png"); }
.il-intro:focus-visible { outline: none; }
/* the THEAM 8 (c) film: hidden until the tap, then fades in over the intro and covers the screen */
.il-intro__film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s ease; z-index: 2; }
.il-intro.is-film .il-intro__film { opacity: 1; }
/* "Click here to open" over the film: fades in a moment after it starts, opens the invitation */
.il-intro__go { position: absolute; left: 50%; bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px)); z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 40px; background: rgba(119,82,42,.88); color: #fff; font: 500 14px/1 var(--il-ui); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 28px rgba(40,25,10,.35); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transform: translate(-50%, 14px); transition: opacity .5s ease .9s, transform .5s ease .9s, visibility 0s 1.4s; }
.il-intro__go svg { width: 15px; fill: #fff; animation: il-beat 1.8s ease-in-out infinite; }
.il-intro.is-film .il-intro__go { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .5s ease .9s, transform .5s ease .9s, visibility 0s; }
.il-intro__go:hover { background: var(--il-brown-2); }
/* the hexagon's white centre in hero.jpg is 318-762 x 590-1090; the cover background is centred,
   so it is laid out from the screen's centre (the artwork's 540, 960) */
.il-intro__hex { position: absolute; left: 50%; top: calc(50% - 370 * var(--u)); width: calc(444 * var(--u)); height: calc(500 * var(--u)); margin-left: calc(-222 * var(--u)); transition: transform 1s cubic-bezier(.3,1.4,.5,1), filter 1s; }
.il-intro.is-playing .il-intro__hex { transform: scale(1.1) rotate(4deg); filter: drop-shadow(0 0 26px rgba(255,255,255,.95)); }
.il-intro__text { position: absolute; left: 0; right: 0; top: calc(50% + 300 * var(--u)); padding: 0 20px; }
.il-intro__kicker { margin: 0 0 calc(16 * var(--u)); font: 400 max(12px, calc(28 * var(--u)))/1.3 var(--il-sans); color: #000; }
.il-intro .il-names { white-space: normal; }
.il-intro__date { margin: calc(20 * var(--u)) 0 0; font: italic 400 max(15px, calc(35 * var(--u)))/1.2 var(--il-serif); color: #000; }
.il-intro__hint { position: absolute; left: 0; right: 0; bottom: max(40px, env(safe-area-inset-bottom)); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 12px/1 var(--il-ui); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--il-brown); transition: opacity .4s ease; }
.il-intro__hint span { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--il-brown); background: rgba(255,255,255,.65); backdrop-filter: blur(3px); }
.il-intro__hint span::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(119,82,42,.6); animation: il-ring 2s ease-out infinite; }
.il-intro__hint svg { width: 20px; fill: var(--il-brown); animation: il-beat 1.8s ease-in-out infinite; }
.il-intro.is-playing .il-intro__hint { opacity: 0; }
@keyframes il-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 28% { transform: scale(1.04); } }
@keyframes il-ring { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.il-draft { position: sticky; top: 0; z-index: 30; max-width: var(--il-w); margin: 0 auto; padding: 9px 14px; background: rgba(95,65,32,.9); color: #fff; font: 500 12px/1.3 var(--il-ui); text-align: center; backdrop-filter: blur(6px); }

/* the initials inside the lace hexagon, offset like the artwork's "A A" — or the couple's photo */
.il-mono { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; color: var(--il-brown); font: 400 calc(154 * var(--u))/1 var(--il-display); }
.il-mono b { font-weight: 400; transform: translateY(-.26em); }
.il-mono b + b { transform: translate(-.08em, .3em); }
.il-mono--photo { inset: 4%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.il-mono--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 1 · hero (artboard 1) ---------- */
.il-hero { background-image: url("../images/invites/ivory-lace/hero.jpg"); }
.il-hex { left: calc(318 * var(--u)); top: calc(590 * var(--u)); width: calc(444 * var(--u)); height: calc(500 * var(--u)); }
.il-hero__names { left: 0; right: 0; top: calc(1262 * var(--u)); }
/* wider than the artwork's two lines so small phones (where the text has a minimum size) still fit it above the button */
.il-hero__lead { left: calc(90 * var(--u)); right: calc(90 * var(--u)); top: calc(1530 * var(--u)); font-size: max(13.5px, calc(32 * var(--u))); }
/* over the brown pill in hero.jpg (373-673 x 1652-1707) */
.il-hero__btn, .il-end__btn { position: absolute; }
.il-hero__btn { left: calc(373 * var(--u)); top: calc(1652 * var(--u)); width: calc(300 * var(--u)); height: calc(55 * var(--u)); padding: 0; }
.il-date { left: 0; right: 0; top: calc(1733 * var(--u)); margin: 0; font: italic 400 max(15px, calc(35.5 * var(--u)))/1.4 var(--il-serif); color: #000; }

/* ---------- 2 · heart countdown (artboard 2) ---------- */
.il-count { background-image: url("../images/invites/ivory-lace/count.jpg"); }
.il-octs { inset: 0; }
/* the brown-edged hearts are in count.jpg: 270px wide at x 220 / 590, y 236 / 540 */
.il-oct { position: absolute; isolation: isolate; width: calc(271 * var(--u)); height: calc(236 * var(--u)); padding-top: calc(47 * var(--u)); display: flex; flex-direction: column; align-items: center; color: #000; }
/* each heart is its own picture (heart-N.webp, cut from the artwork) laid exactly over the painted one;
   it beats lub-dub and never shrinks below its size, so the painted heart underneath never shows */
.il-oct::before { content: ""; position: absolute; inset: 0; z-index: -1; background: center / 100% 100% no-repeat; transform-origin: 50% 58%; animation: il-heartbeat 1.6s ease-in-out var(--beat, 0s) infinite; }
.il-oct--1::before { background-image: url("../images/invites/ivory-lace/heart-1.webp"); --beat: 0s; }
.il-oct--2::before { background-image: url("../images/invites/ivory-lace/heart-2.webp"); --beat: -.4s; }
.il-oct--3::before { background-image: url("../images/invites/ivory-lace/heart-3.webp"); --beat: -.8s; }
.il-oct--4::before { background-image: url("../images/invites/ivory-lace/heart-4.webp"); --beat: -1.2s; }
@keyframes il-heartbeat { 0%, 45%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 22% { transform: scale(1.03); } 32% { transform: scale(1.08); } }
.il-oct b { position: relative; font: 400 calc(73 * var(--u))/1.25 var(--il-serif); }
.il-oct span { position: relative; margin-top: calc(-4 * var(--u)); font: 400 max(7px, calc(19 * var(--u)))/1 Helvetica, Arial, sans-serif; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
/* the hearts' boxes in the artwork (count.jpg) */
.il-oct--1 { left: calc(220 * var(--u)); top: calc(231 * var(--u)); }
.il-oct--2 { left: calc(589 * var(--u)); top: calc(231 * var(--u)); }
.il-oct--3 { left: calc(220 * var(--u)); top: calc(534 * var(--u)); }
.il-oct--4 { left: calc(589 * var(--u)); top: calc(534 * var(--u)); }
/* living candle flames over the painted ones: each sways and flickers at its own pace, with a warm
   glow that breathes; --x/--y is the flame's tip and --h its height in artwork pixels */
.il-candles { inset: 0; pointer-events: none; }
.il-flame { position: absolute; left: calc((var(--x) - 16) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(32 * var(--u)); height: calc(var(--h) * var(--u)); }
.il-flame svg { position: relative; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(255,200,90,.9)); animation: il-flicker var(--dur) ease-in-out var(--delay) infinite; }
.il-flame__glow { position: absolute; left: 50%; top: 58%; width: calc(150 * var(--u)); height: calc(150 * var(--u)); margin: calc(-75 * var(--u)) 0 0 calc(-75 * var(--u)); border-radius: 50%; background: radial-gradient(circle, rgba(255,226,140,.55) 0, rgba(255,205,110,.25) 35%, transparent 68%); animation: il-glow-breathe calc(var(--dur) * 1.6) ease-in-out var(--delay) infinite; }
@keyframes il-flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg) rotate(0deg); }
  15% { transform: scale(.94, 1.06) skewX(-3deg) rotate(-2deg); }
  32% { transform: scale(1.04, .95) skewX(2deg) rotate(1.5deg); }
  48% { transform: scale(.97, 1.08) skewX(-1deg) rotate(-1deg); }
  63% { transform: scale(1.03, .97) skewX(3deg) rotate(2.5deg); }
  80% { transform: scale(.96, 1.04) skewX(-2deg) rotate(-1.5deg); }
}
@keyframes il-glow-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 40% { opacity: 1; transform: scale(1.12); } 70% { opacity: .85; transform: scale(.96); } }
.il-count__done { left: 0; right: 0; top: calc(790 * var(--u)); margin: 0; font: italic max(15px, calc(36 * var(--u))) var(--il-serif); color: var(--il-brown); }
.il-count__body { left: 0; right: 0; top: calc(1490 * var(--u)); }
.il-count .il-title { line-height: 1.05; }
/* tap-to-reveal the date: a brown pill under the title */
.il-bar { position: relative; display: block; width: calc(600 * var(--u)); min-width: 250px; height: calc(92 * var(--u)); min-height: 42px; margin: calc(40 * var(--u)) auto 0; border: 0; border-radius: 60px; background: var(--il-brown); color: #fff; overflow: hidden; -webkit-tap-highlight-color: transparent; box-shadow: 0 8px 22px rgba(95,65,32,.28); }
.il-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,240,215,.35) 50%, transparent 70%) -200% 0 / 200% 100% no-repeat; animation: il-sweep 3.2s ease-in-out infinite; pointer-events: none; }
.il-bar__tap, .il-bar__date { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); transition: opacity .5s ease, transform .6s cubic-bezier(.2,1.3,.4,1); }
.il-bar__tap { font: 500 max(9px, calc(22 * var(--u)))/1 var(--il-ui); letter-spacing: .26em; text-transform: uppercase; }
.il-bar__tap svg { width: calc(30 * var(--u)); min-width: 13px; fill: #f3e2c6; animation: il-beat 1.8s ease-in-out infinite; }
.il-bar__date { opacity: 0; transform: scale(.7); font-family: var(--il-serif); font-style: italic; }
.il-bar__date i { font-size: max(13px, calc(34 * var(--u))); }
.il-bar__date b { font-weight: 400; font-size: max(20px, calc(56 * var(--u))); line-height: 1; }
.il-bar.is-on .il-bar__tap { opacity: 0; transform: scale(1.3); }
.il-bar.is-on .il-bar__date { opacity: 1; transform: none; transition-delay: .2s; }
.il-bar.is-on::after { animation: none; }
.il-bar:focus-visible { outline: 2px dashed var(--il-brown); outline-offset: 4px; }
@keyframes il-sweep { 0%, 40% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---------- 3 · event under the lace arch, with a calendar (artboard 3) ---------- */
.il-event { overflow: hidden; background-image: url("../images/invites/ivory-lace/event.jpg"); }
/* the couple on the swing (its own picture, 59-998 x 488-1940 on the artwork) rocks gently from the top of its posts */
.il-swing { left: calc(59 * var(--u)); top: calc(488 * var(--u)); width: calc(939 * var(--u)); height: calc(1451 * var(--u)); transform-origin: 50% 17%; animation: il-swing 4.6s ease-in-out infinite; pointer-events: none; }
.il-event > :not(.il-swing) { z-index: 1; }
@keyframes il-swing { 0%, 100% { transform: rotate(2.6deg); } 50% { transform: rotate(-2.6deg); } }
.il-event__title { left: calc(150 * var(--u)); right: calc(150 * var(--u)); top: calc(438 * var(--u)); margin: 0; font: italic 400 calc(61.5 * var(--u))/1.6 var(--il-serif); color: var(--il-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-venue { left: calc(220 * var(--u)); right: calc(220 * var(--u)); top: calc(562 * var(--u)); margin: 0; font: 500 max(9.5px, calc(22 * var(--u)))/1.3 var(--il-sans); color: var(--il-brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-cal { left: calc(270 * var(--u)); width: calc(540 * var(--u)); top: calc(596 * var(--u)); color: #111; }
.il-cal p { margin: 0; }
.il-cal__on { font: 400 calc(52 * var(--u))/1 var(--il-script); color: #111; }
.il-cal__month { font-size: calc(58 * var(--u)); line-height: 1.05; }
.il-cal__month span { font-family: var(--il-script); color: var(--il-red); }
.il-cal__month b { font: 400 1em var(--il-serif); }
.il-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: calc(4 * var(--u)); margin-top: calc(10 * var(--u)); }
.il-cal__wd { font: italic 400 calc(27 * var(--u))/1.6 var(--il-serif); color: #111; }
.il-cal__grid span { position: relative; display: grid; place-items: center; height: calc(52 * var(--u)); font: 400 calc(32 * var(--u))/1 var(--il-serif); }
.il-cal--6 .il-cal__grid span { height: calc(44 * var(--u)); }
.il-cal--6 .il-cal__grid { margin-top: calc(4 * var(--u)); }
.il-cal--6 .il-cal__wd { line-height: 1.4; }
.il-cal--6 .is-day svg { transform: scale(.88); }
.il-cal__grid em { position: relative; font-style: normal; }
.il-cal .is-sun { color: var(--il-red); }
.il-cal .is-day { font-weight: 700; }
/* the red outline heart around the day */
.il-cal .is-day svg { position: absolute; left: 50%; top: 50%; width: calc(78 * var(--u)); height: calc(72 * var(--u)); margin: calc(-37 * var(--u)) 0 0 calc(-39 * var(--u)); fill: none; stroke: var(--il-red); stroke-width: 1.4; animation: il-beat 1.8s ease-in-out infinite; }
/* the time pill (287-539 x 1075-1120) and map box (570-794 x 1077-1118) in event.jpg */
.il-pill { left: calc(287 * var(--u)); top: calc(1075 * var(--u)); width: calc(252 * var(--u)); height: calc(45 * var(--u)); margin: 0; padding: 0 calc(10 * var(--u)); display: flex; align-items: center; justify-content: center; border-radius: 40px; background: var(--il-brown); color: #fff; font: 500 max(9px, calc(23 * var(--u)))/1 var(--il-sans); white-space: nowrap; overflow: hidden; }
.il-map { left: calc(570 * var(--u)); top: calc(1077 * var(--u)); width: calc(224 * var(--u)); height: calc(41 * var(--u)); display: flex; align-items: center; justify-content: center; border: 2px solid #e2a65a; background: #fff; font: 400 max(8.5px, calc(19.4 * var(--u)))/1 Maitree, Georgia, serif; color: #000; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.il-map:hover { background: var(--il-brown); color: #fff; border-color: var(--il-brown); }
/* nothing to show: white over the artwork's empty pill / box */
.il-pill--blank, .il-map--blank { background: #fff; border-color: #fff; }

/* ---------- 4 · "Our Moments" carousel (artboard 4) ---------- */
.il-gallery { background-image: url("../images/invites/ivory-lace/gallery.jpg"); }
.il-gallery > .il-title { left: 0; right: 0; top: calc(153 * var(--u)); line-height: 1.6; }
.il-slides { inset: 0; pointer-events: none; }
/* over the three brown rounded panels in gallery.jpg */
.il-slide { position: absolute; display: block; padding: 0; border: 0; border-radius: calc(56 * var(--u)); overflow: hidden; background: var(--il-brown); pointer-events: auto; box-shadow: 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(60,40,20,.25);
  transition: left .9s cubic-bezier(.45,.05,.25,1), top .9s cubic-bezier(.45,.05,.25,1), width .9s cubic-bezier(.45,.05,.25,1), height .9s cubic-bezier(.45,.05,.25,1), opacity .7s ease, box-shadow .9s ease; }
.il-slide img, .il-slide video { width: 100%; height: 100%; object-fit: cover; transition: filter .9s ease; }
/* the cards slide right to left through the artwork's three rounded panels (gallery.jpg):
   off the right edge -> right -> middle (big) -> left -> off the left edge */
.il-slide.is-out-right { left: calc(1270 * var(--u)); top: calc(395 * var(--u)); width: calc(407 * var(--u)); height: calc(614 * var(--u)); opacity: 0; }
.il-slide.is-right { left: calc(819 * var(--u)); top: calc(395 * var(--u)); width: calc(407 * var(--u)); height: calc(614 * var(--u)); }
.il-slide.is-mid { left: calc(315 * var(--u)); top: calc(352 * var(--u)); width: calc(464 * var(--u)); height: calc(701 * var(--u)); z-index: 2; box-shadow: 0 calc(22 * var(--u)) calc(50 * var(--u)) rgba(60,40,20,.35); }
.il-slide.is-left { left: calc(-132 * var(--u)); top: calc(395 * var(--u)); width: calc(407 * var(--u)); height: calc(614 * var(--u)); }
.il-slide.is-out-left { left: calc(-600 * var(--u)); top: calc(395 * var(--u)); width: calc(407 * var(--u)); height: calc(614 * var(--u)); opacity: 0; }
.il-slide.is-left img, .il-slide.is-right img { filter: saturate(.85) brightness(.92); }
/* a card going round the back to the right edge jumps without being seen */
.il-slide.is-jump { transition: none; }
.il-plaque { left: 0; right: 0; top: calc(1296 * var(--u)); }
.il-gallery__lead { left: calc(90 * var(--u)); right: calc(90 * var(--u)); top: calc(1664 * var(--u)); font-size: max(13.5px, calc(32 * var(--u))); line-height: 1.18; }
.il-gallery__story { left: calc(120 * var(--u)); right: calc(120 * var(--u)); top: calc(1770 * var(--u)); font-size: max(11px, calc(24 * var(--u))); color: var(--il-ink); }

/* ---------- 5 · families in the oval cards (artboard 5) ---------- */
.il-families { background-image: url("../images/invites/ivory-lace/family.jpg"); }
/* text inside each oval, lined up with the artwork's two rules (y 545 & 655, then 1447 & 1558) */
/* the roses (roses.webp, cut from the artwork): card 1 at 208,648; card 2 mirrored at 602,1526 */
/* blooming open: from a small tight bud, turning and unfolding into full flower */
.js .reveal.il-a-bloom { opacity: 0; transform: scale(.15) rotate(-35deg); filter: blur(4px); transform-origin: 30% 80%; transition: opacity .9s ease var(--il-d, 0ms), transform 1.6s cubic-bezier(.22,1.4,.36,1) var(--il-d, 0ms), filter 1.2s ease var(--il-d, 0ms); }
.js .reveal.in.il-a-bloom { opacity: 1; transform: none; filter: none; }
.il-fam { left: calc(285 * var(--u)); width: calc(500 * var(--u)); height: calc(470 * var(--u)); color: #000; }
.il-fam--1 { top: calc(272 * var(--u)); }
.il-fam--2 { top: calc(1174 * var(--u)); }
.il-fam > * { position: absolute; left: 0; right: 0; margin: 0; }
.il-fam h3 { top: 0; font: 400 calc(var(--fs, 118) * var(--u))/1.15 var(--il-display); color: var(--il-brown); white-space: nowrap; }
.il-fam p { margin: 0; font: 400 max(12px, calc(30 * var(--u)))/1.1 var(--il-sans); }
.il-fam__par { top: calc(140 * var(--u)); }
.il-fam .il-fam__rel { margin-bottom: calc(4 * var(--u)); font-weight: 500; font-size: max(13px, calc(32 * var(--u))); }
.il-fam__home { top: calc(288 * var(--u)); }
.il-fam__sibs { top: calc(400 * var(--u)); }
.il-fam .il-fam__sib { margin-bottom: calc(5 * var(--u)); font: italic 400 max(9.5px, calc(22 * var(--u)))/1 var(--il-serif); text-transform: uppercase; }

/* ---------- names on the dark ribbon (artboards 6 & 7) ---------- */
/* each pair sits either side of one of the ribbon's gold hearts (at x = --x) */
.il-rib { left: 0; right: 0; height: calc(60 * var(--u)); }
.il-rib__seg { position: absolute; top: 0; left: calc((var(--x) - 114) * var(--u)); width: calc(228 * var(--u)); height: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(30 * var(--u)); align-items: center; font: italic 400 max(9px, calc(26.7 * var(--u)))/1 var(--il-serif); color: #fff; animation: il-twinkle 4s ease-in-out calc(var(--i) * .5s) infinite; }
.il-rib__seg b { font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.il-rib__seg b:first-child { text-align: right; }
.il-rib__seg b:last-child { text-align: left; }
@keyframes il-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

/* ---------- 6 · RSVP (artboard 6) ---------- */
/* flow-root keeps the card's top margin inside the section */
/* ---------- 5b · the events on the scalloped cards (THEAM 8 a) ----------
   Each card is the artwork's 955 x 718 card (plan-card.webp, shadow included); its copy sits on the
   card's own grid in artwork pixels. Cards stack over the drapes, overlapping by 8 like the artwork. */
.il-plan { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(70 * var(--u)) 0 calc(40 * var(--u)); box-sizing: border-box; background: #ece9e4 url("../images/invites/ivory-lace/drapes.jpg") center / cover no-repeat; overflow: hidden; }
.il-plan__card { position: relative; flex: none; width: calc(955 * var(--u)); height: calc(718 * var(--u)); color: var(--il-brown); text-align: center; font-family: Maitree, Georgia, serif; }
.il-plan__card + .il-plan__card { margin-top: calc(-8 * var(--u)); }
.il-plan__card > * { position: absolute; margin: 0; }
/* the 871 x 638 card itself; the artwork's soft shadow is drawn here */
.il-plan__frame { left: calc(61.5 * var(--u)); top: calc(12 * var(--u)); width: calc(871 * var(--u)); height: calc(638 * var(--u)); max-width: none; filter: drop-shadow(calc(6 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)) rgba(60,45,30,.28)); }
/* stars falling softly over the drapes and cards (the "rain" layer) */
.il-plan { position: relative; }
.il-rain, .il-art > .il-rain { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.il-rain i { position: absolute; top: 0; left: var(--x); width: max(10px, calc(var(--len) * .5 * var(--u))); height: max(10px, calc(var(--len) * .5 * var(--u))); background: radial-gradient(circle, #fff 0 22%, #f7dc8f 45%, #d9b25a 100%); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 3px rgba(255,214,120,.9)); opacity: 0; animation: il-star-fall calc(var(--dur) * 3.2) linear var(--delay) infinite, il-twinkle calc(var(--dur) * .8) ease-in-out var(--delay) infinite alternate; }
/* falling stars: drift down slowly over the section, turning as they go */
@keyframes il-star-fall {
  0% { transform: translate(0, calc(-60 * var(--u))) rotate(0deg); opacity: 0; }
  10% { opacity: calc(var(--o) + .3); }
  50% { transform: translate(calc(26 * var(--u)), calc(960 * var(--u))) rotate(180deg); }
  88% { opacity: calc(var(--o) + .3); }
  100% { transform: translate(calc(-10 * var(--u)), calc(1980 * var(--u))) rotate(360deg); opacity: 0; }
}
@keyframes il-twinkle { from { scale: .75; } to { scale: 1.15; } }
/* the falling stars in the shower twinkle as they go */
.il-spark.il-star svg { filter: drop-shadow(0 0 4px rgba(255,214,120,.95)); animation: il-twinkle var(--tw, 1s) ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .il-rain { display: none; } }
.il-plan__title, .il-plan__date, .il-plan__row, .il-plan__map { z-index: 2; }
.il-plan__title { left: calc(110 * var(--u)); right: calc(110 * var(--u)); top: calc(126 * var(--u)); font: 400 max(15px, calc(42 * var(--u)))/1.63 Maitree, Georgia, serif; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-plan__date { left: 0; right: 0; top: calc(212 * var(--u)); font: 400 max(14.5px, calc(40 * var(--u)))/1.63 Maitree, Georgia, serif; }
/* TIME / VENUE: label at x 233, value at x 384 */
.il-plan__row { left: calc(215 * var(--u)); right: calc(130 * var(--u)); display: flex; text-align: left; font: 400 max(12px, calc(27 * var(--u)))/1.27 Maitree, Georgia, serif; }
.il-plan__row span { flex: none; width: calc(165 * var(--u)); text-transform: uppercase; }
.il-plan__row b { flex: 1; min-width: 0; font-weight: 400; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.il-plan__row--time { top: calc(310 * var(--u)); }
.il-plan__row--time b { -webkit-line-clamp: 1; }
.il-plan__row--venue { top: calc(392 * var(--u)); }
/* the Location button sits exactly on the artwork's brown pill */
.il-plan__map { left: calc(352 * var(--u)); top: calc(502 * var(--u)); width: calc(270 * var(--u)); height: calc(45 * var(--u)); display: flex; align-items: center; justify-content: center; border-radius: 40px; background: var(--il-brown); color: #fff; font: 400 max(10.5px, calc(23 * var(--u)))/1 Maitree, Georgia, serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
.il-plan__map:hover { background: var(--il-brown-2); box-shadow: 0 6px 16px rgba(95,65,32,.3); transform: translateY(-1px); }

.il-rsvp { display: flow-root; background-image: url("../images/invites/ivory-lace/rsvp.jpg"); }
.il-rsvp > .il-rib { top: calc(248 * var(--u)); }
/* the white card in rsvp.jpg starts at 136 x 431; it grows down over the drapes when the form is longer */
.il-art > .il-panel { position: relative; }
.il-panel { z-index: 2; width: calc(808 * var(--u)); min-width: min(calc(100% - 24px), 320px); margin: calc(431 * var(--u)) auto calc(140 * var(--u)); padding: 34px 24px 30px; border-radius: calc(60 * var(--u)); background: #fff; text-align: center; color: #111; box-shadow: 0 16px 40px rgba(60,40,20,.12); }
.il-title--panel { font-size: clamp(28px, 7.6vw, 36px); color: #000; }
.il-sub { margin: 0 0 14px; font: 400 16px/1.4 var(--il-serif); color: #4a5a54; }
.il-sub small { font: 400 13px var(--il-ui); color: var(--il-gold); }
.il-form { text-align: left; }
.il-label { display: block; margin: 18px 0 8px 4px; font: 400 10px/1 var(--il-ui); letter-spacing: .4em; text-transform: uppercase; color: var(--il-gold); }
.il-input { width: 100%; padding: 12px 20px; border: 1px solid rgba(184,146,74,.7); border-radius: 30px; background: #fff; font: 300 16px/1.3 var(--il-ui); color: #111; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
textarea.il-input { border-radius: 22px; resize: vertical; min-height: 110px; }
select.il-input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8924a' stroke-width='1.4'/%3E%3C/svg%3E") right 20px center / 12px no-repeat; }
.il-input::placeholder { color: #8a968f; }
.il-input:focus { border-color: var(--il-brown); box-shadow: 0 0 0 3px rgba(119,82,42,.12); }
.il-input.is-invalid, .il-choices.is-invalid .il-choice { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.il-choices { display: grid; gap: 14px; }
.il-choice { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 16px 24px; border: 1px solid rgba(184,146,74,.7); border-radius: 40px; background: var(--il-cream); font: 300 16px/1.2 var(--il-ui); color: #000; cursor: pointer; transition: background .2s, border-color .2s; overflow: hidden; }
.il-choice input { position: absolute; opacity: 0; pointer-events: none; }
.il-choice i { width: 22px; height: 22px; border: 1px solid #8a968f; border-radius: 50%; transition: box-shadow .2s, background .2s; }
.il-choice:has(input:checked) { background: #f3eadc; border-color: var(--il-brown); }
.il-choice input:checked ~ i { background: var(--il-brown); border-color: var(--il-brown); box-shadow: inset 0 0 0 4px #fff; }
.il-choice input:focus-visible ~ i { outline: 2px solid var(--il-brown); outline-offset: 2px; }
.il-form__msg { min-height: 20px; margin: 16px 0 8px; font: 400 13px/1.4 var(--il-ui); text-align: center; color: #b3261e; }
.il-form__msg.ok { color: #2f7a4a; }
.il-form .il-btn { display: flex; width: 100%; }
.il-thanks { padding: 10px 0; }
.il-coin { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, #f6ead5 0 20px, var(--il-brown) 21px 25px, transparent 26px), rgba(119,82,42,.08); }
.il-coin svg { width: 17px; fill: var(--il-red); }
.il-thanks h3 { margin: 0 0 8px; font: italic 400 30px/1.2 var(--il-serif); color: var(--il-brown); }
.il-thanks p { margin: 0 0 16px; color: #4a5a54; }
.il-textlink { border: 0; background: none; padding: 6px; font: 500 13px var(--il-ui); color: var(--il-brown); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7 · wishes over the drapes ---------- */
.il-wishes { padding: 60px 0 70px; background: #f2efea url("../images/invites/ivory-lace/drapes.jpg") center / cover; }
.il-wishes .il-title { font-size: clamp(32px, 9vw, 44px); }
.il-wishes .il-btn { margin: 4px 0 26px; }
.il-wall__count { margin: 0 0 14px; font: 500 11px/1 var(--il-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--il-gold); }
.il-cards { display: grid; gap: 12px; text-align: left; }
.il-card-w { position: relative; padding: 18px 20px 16px; border-radius: 22px; background: rgba(255,255,255,.96); border: 1px solid rgba(184,146,74,.45); color: #111; box-shadow: 0 8px 22px rgba(60,40,20,.08); }
.il-card-w__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.il-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--il-paper); border: 1px solid rgba(119,82,42,.35); color: var(--il-brown); font: 400 22px var(--il-display); flex: none; }
.il-card-w__name { margin: 0; font: 500 15px/1.2 var(--il-ui); }
.il-card-w__when { font: 400 11px var(--il-ui); color: #8a968f; }
.il-card-w__msg { margin: 0; padding-right: 50px; font: italic 18px/1.4 var(--il-serif); color: #3a3229; }
.il-heart { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(212,42,42,.3); border-radius: 20px; background: #fff; font: 500 12px var(--il-ui); color: var(--il-red); }
.il-heart svg { width: 13px; fill: none; stroke: var(--il-red); stroke-width: 2; }
.il-heart.is-on svg { fill: var(--il-red); }
.il-heart.pop svg { animation: il-beat .6s; }
.il-empty { padding: 22px; border: 1px dashed rgba(119,82,42,.4); border-radius: 22px; font: italic 18px var(--il-serif); text-align: center; color: var(--il-brown); background: rgba(255,255,255,.6); }

/* ---------- 8 · thank you (artboard 7) ---------- */
.il-end { background-image: url("../images/invites/ivory-lace/end.jpg"); }
/* the lace oval's white centre in end.jpg: 160-920 x 270-810 */
.il-end__oval { left: calc(160 * var(--u)); width: calc(760 * var(--u)); top: calc(270 * var(--u)); height: calc(540 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 calc(70 * var(--u)); }
.il-end__names { position: static; }
.il-end__lead { margin-top: calc(22 * var(--u)); font-size: max(13px, calc(29 * var(--u))); max-width: calc(560 * var(--u)); }
.il-end > .il-rib { top: calc(1058 * var(--u)); }
.il-dove { left: calc(440 * var(--u)); top: calc(1174 * var(--u)); width: calc(200 * var(--u)); height: calc(274 * var(--u)); pointer-events: none; }
.il-dove img { width: 100%; height: 100%; transform-origin: 40% 55%; }
/* until the guest reaches the thank-you, the dove waits off-screen (top right) */
.js .il-dove { opacity: 0; transform: translate(calc(620 * var(--u)), calc(-900 * var(--u))) rotate(-14deg) scale(.55); }
/* it flies in along a curve, then keeps flying: wings always beating, hovering and drifting in its spot */
.js .il-dove.is-flying { animation: il-dove-fly 2.6s cubic-bezier(.3,.6,.35,1) forwards, il-dove-hover 3.4s ease-in-out 2.6s infinite; }
.js .il-dove.is-flying img { animation: il-dove-flap .3s ease-in-out infinite alternate; }
@keyframes il-dove-fly {
  0%   { opacity: 0; transform: translate(calc(620 * var(--u)), calc(-900 * var(--u))) rotate(-14deg) scale(.55); }
  12%  { opacity: 1; }
  45%  { transform: translate(calc(-260 * var(--u)), calc(-420 * var(--u))) rotate(8deg) scale(.8); }
  78%  { transform: translate(calc(60 * var(--u)), calc(-60 * var(--u))) rotate(-6deg) scale(.97); }
  90%  { transform: translate(0, calc(12 * var(--u))) rotate(2deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes il-dove-flap { from { transform: scaleY(1) skewY(0deg); } to { transform: scaleY(.68) skewY(-4deg); } }
@keyframes il-dove-hover { 0%, 100% { transform: none; } 25% { transform: translate(calc(-10 * var(--u)), calc(-16 * var(--u))) rotate(-3deg); } 50% { transform: translate(0, calc(-26 * var(--u))) rotate(1deg); } 75% { transform: translate(calc(10 * var(--u)), calc(-12 * var(--u))) rotate(3deg); } }
/* over the brown pill in end.jpg (390-690 x 1485-1538) */
.il-end__btn { left: calc(390 * var(--u)); top: calc(1485 * var(--u)); width: calc(300 * var(--u)); height: calc(54 * var(--u)); padding: 0; }
.il-end__foot { left: 0; right: 0; top: calc(1555 * var(--u)); }
.il-thank { margin: 0; font: italic 400 calc(73 * var(--u))/1.6 var(--il-serif); color: var(--il-brown); }
.il-thank__sub { margin: calc(-14 * var(--u)) 0 calc(36 * var(--u)); font: 500 max(15px, calc(39.6 * var(--u)))/1.2 var(--il-sans); color: #000; }
.il-own { display: block; font: 500 max(11px, calc(24.7 * var(--u))) var(--il-sans); color: #000; text-decoration: none; }
.il-own:hover { text-decoration: underline; }

/* white sparkles over the page as it opens */
.il-sparkles { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.il-spark { position: absolute; top: 0; left: 0; will-change: transform, opacity; }
.il-spark svg { width: 100%; height: 100%; display: block; }

/* ---------- overlays ---------- */
.il-modal { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(60,40,20,.45); backdrop-filter: blur(5px); overflow-y: auto; animation: il-fade .3s ease both; }
.il-modal[hidden] { display: none; }
.il-modal__panel { position: relative; width: min(420px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 40px 26px 30px; border-radius: 36px; background: #fff; text-align: center; color: #111; box-shadow: 0 30px 70px rgba(60,40,20,.35); animation: il-pop-in .45s cubic-bezier(.2,1.2,.4,1) both; }
.il-modal__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #e2dacf, var(--il-gold) 50%, var(--il-brown)); }
.il-modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3eadc; color: var(--il-brown); font-size: 24px; line-height: 1; }
.il-modal__icon { margin: 0 auto 14px; }
.il-modal .il-title--ink { font-size: clamp(30px, 8.6vw, 40px); }
.il-modal .il-sub { margin: 6px 0 4px; font-style: italic; }
.il-modal .il-label:first-of-type { margin-top: 8px; }
@keyframes il-fade { from { opacity: 0; } }
@keyframes il-pop-in { from { opacity: 0; transform: translateY(30px) scale(.94); } }
body.has-modal { overflow: hidden; }
.il-sheet, .il-lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(60,40,20,.45); backdrop-filter: blur(4px); }
.il-sheet[hidden], .il-lightbox[hidden] { display: none; }
.il-sheet__panel { width: min(440px, 100%); padding: 26px 22px 30px; border-radius: 28px 28px 0 0; background: var(--il-cream); text-align: center; animation: il-up .35s ease both; }
.il-sheet__panel h3 { margin: 0 0 16px; font: italic 28px var(--il-serif); color: var(--il-brown); }
.il-sheet__panel button { position: relative; overflow: hidden; display: block; width: 100%; margin: 0 0 10px; padding: 14px; border: 1px solid rgba(184,146,74,.6); border-radius: 30px; background: #fff; color: #111; font: 400 15px var(--il-ui); }
.il-sheet__panel .il-sheet__close { border: 0; background: none; color: #3a3229; }
@keyframes il-up { from { transform: translateY(100%); } }
.il-lightbox { align-items: center; background: rgba(25,18,10,.94); }
.il-lightbox img { max-width: 92vw; max-height: 86vh; border: 6px solid #fff; border-radius: 18px; }
.il-lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 42px; line-height: 1; padding: 12px 16px; }
.il-lightbox__close { top: 10px; right: 10px; }
.il-lightbox__nav--prev { left: 4px; }
.il-lightbox__nav--next { right: 4px; }
.il-toast { position: fixed; left: 50%; bottom: 26px; z-index: 70; padding: 11px 20px; border-radius: 30px; background: var(--il-brown); color: #fff; font: 500 13px var(--il-ui); transform: translate(-50%, 30px); opacity: 0; transition: .3s; pointer-events: none; }
.il-toast.show { transform: translate(-50%, 0); opacity: 1; }
.il-music { position: fixed; right: max(16px, calc(50vw - var(--il-w) / 2 + 16px)); bottom: 18px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid #fff; border-radius: 50%; background: var(--il-brown); box-shadow: 0 8px 20px rgba(60,40,20,.35); }
.il-music svg { width: 20px; fill: #fff; }
.il-music[aria-pressed="true"] svg { animation: il-spin 3s linear infinite; }
.il-music[aria-pressed="false"]::after { content: ""; position: absolute; width: 26px; height: 2px; background: #fff; transform: rotate(-45deg); }
@keyframes il-spin { to { transform: rotate(360deg); } }

/* ---------- touch effects ---------- */
.il-touchfx { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; pointer-events: none; }
.il-ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.65) 0, rgba(255,255,255,.25) 40%, transparent 70%); transform: scale(0); pointer-events: none; animation: il-ripple .65s ease-out forwards; }
.il-choice .il-ripple, .il-sheet__panel .il-ripple { background: radial-gradient(circle, rgba(119,82,42,.16) 0, rgba(119,82,42,.07) 40%, transparent 70%); }
@keyframes il-ripple { to { transform: scale(1); opacity: 0; } }
.il-btn:active, .il-choice:active { transform: scale(.96); transition: transform .08s; }

/* editor preview frame: no scrollbars */
.is-preview, .is-preview * { scrollbar-width: none; }
.is-preview ::-webkit-scrollbar { display: none; }

/* phones: lighter, smoother motion — short slides without rotation, no blur, no 3-D tilt */
@media (max-width: 600px), (hover: none) {
  body.il { background-attachment: scroll; }
  .js .reveal { transition-duration: .7s, .75s, .75s; }
  .js .reveal.il-a-left { transform: translateX(-24px); }
  .js .reveal.il-a-right { transform: translateX(24px); }
  .js .reveal.il-a-up { transform: translateY(26px); }
  .js .reveal.il-a-pop { transform: scale(.6); }
  .js .reveal.il-a-zoom { transform: scale(.9); }
  .js .reveal.il-a-tilt { transform: translateY(36px) scale(.97); }
  .js .reveal.il-a-blur { filter: none; transform: scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
  .il-bar::after, .il-rib__seg, .il-cal .is-day svg, .il-flame svg, .il-flame__glow, .il-swing, .il-oct::before { animation: none; }
  .js .il-dove, .js .il-dove.is-flying, .js .il-dove.is-flying img { opacity: 1; transform: none; animation: none; }
  .il-slide { transition: none; }
  .il-slide img { transition: none; }
  .js .reveal, .js .reveal[class*="il-a-"] { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
}
