/* Momenti brand tokens: the CSS block of the Official Brand Guidelines, Version 1.0
   (November 2026; docs/brand.md). The one place the palette and the two English
   typefaces are written down. build.sh puts this at the head of the site, app and
   invitation stylesheets; everything Momenti owns reads these. */
:root {
  --momenti-ivory: #F8F1E8;      /* backgrounds */
  --momenti-cherry: #5A1A2C;     /* primary, buttons */
  --momenti-champagne: #D9BCA4;  /* premium accents */
  --momenti-blush: #E8B7B7;      /* soft accents */
  --momenti-espresso: #302827;   /* text */
  --momenti-font-display: "Cormorant Garamond", serif;
  --momenti-font-body: "DM Sans", sans-serif;
}
/* The invitation page's single source of truth for colour, type, space and layering.
   Components reference these tokens, never raw values.

   Colours come from the invitation's palette: the page prints one inline
   :root block with every token below (see engine/palette.py). The values here
   are rose-garden's "rose" preset, so the page still reads if that block is
   missing. Two layers:
   - semantic: --bg --surface --ink --muted --accent --accent-hi --accent-lo --line --glow
   - art: the colours the drawings use (art.css maps every SVG class to one). */
:root {
  --bg: #fbf7f0;
  --surface: #fffdf9;
  --ink: #3b2f33;
  --muted: #6d5e62;
  --accent: #9a7b46;
  --accent-hi: #7a2e3b;
  --accent-lo: #9a7b46;
  --line: rgb(154 123 70 / .45);
  --glow: rgb(217 162 166 / .45);

  --art-paper: #fbf7f0;
  --art-paper-2: #f4ece1;
  --art-paper-3: #ebe0d2;
  --art-white: #fffdf9;
  --art-line: #c9a96e;
  --art-line-hi: #e3cfa3;
  --art-line-lo: #9a7b46;
  --art-petal: #efd3cf;
  --art-petal-2: #f7e6e2;
  --art-bloom: #d9a2a6;
  --art-bloom-2: #c47f86;
  --art-deep: #7a2e3b;
  --art-leaf-lt: #b7c6b2;
  --art-leaf: #8fa58d;
  --art-leaf-dk: #5e7a62;
  --art-leaf-dk2: #46604b;

  /* derived: never set by a palette */
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --bg-raised: var(--surface);
  --bg-panel: var(--surface);
  --accent-soft: var(--art-line);
  --line-soft: color-mix(in srgb, var(--line) 50%, transparent);
  --shadow: 0 24px 60px color-mix(in srgb, var(--ink) 16%, transparent);
  --eyebrow: var(--art-leaf-dk);         /* the small line above section titles */
  --on-accent: var(--on-accent-auto, var(--art-white));  /* text on the gold buttons and the sticky bar (palette.button) */
  --error: color-mix(in srgb, #d23f3f 72%, var(--ink));   /* darker on light pages, lighter on dark */

  /* fonts: overridden by the invitation's font pair */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Cormorant Garamond", cursive;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-mono-latin: var(--font-body);
  --font-ar-display: "El Messiri", "Amiri", serif;
  --font-ar-body: "Amiri", "Noto Naskh Arabic", serif;
  --track-label: .34em;
  --step--2: .72rem;
  --step--1: .86rem;
  --step-0: 1.15rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: 2.15rem;
  --step-4: 2.7rem;
  --step-5: 3.4rem;
  --step-6: 4.25rem;

  /* space */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6rem;
  --gutter: 1.5rem;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --page-max: 480px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* layering */
  --z-art: 0; --z-body: 2; --z-front: 3; --z-gate: 6;
  --z-cover: 80; --z-particles: 85; --z-ui: 90; --z-grain: 95; --z-cursor: 100;
}

:root[lang="ar"] {
  --font-display: var(--font-ar-display);
  --font-script: var(--font-ar-display);
  --font-body: var(--font-ar-body);
  --font-label: var(--font-ar-body);
  --track-label: 0; /* letter-spacing breaks Arabic letter joining */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100svh; overflow-x: hidden;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; font-weight: inherit; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--accent-hi); outline-offset: 4px; }
::selection { background: var(--accent-hi); color: var(--bg); }
/* The attribute must win over any component's display value. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Desktop: the invitation is a phone-width column floating over a glow. */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 18% 12%, color-mix(in srgb, var(--art-bloom) 35%, transparent), transparent 70%),
    radial-gradient(45% 55% at 86% 88%, color-mix(in srgb, var(--art-leaf-lt) 45%, transparent), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, var(--art-paper), var(--art-paper-3));
}
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .05;      /* plain alpha: a blend mode re-blends the whole screen every frame */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page {
  position: relative; max-width: var(--page-max); margin-inline: auto;
  background: var(--bg); overflow-x: clip;
}
@media (min-width: 560px) {
  .page { box-shadow: 0 0 0 1px var(--line-soft), 0 40px 120px color-mix(in srgb, var(--ink) 22%, transparent); }
}

/* --- sections ---------------------------------------------------------------- */
.sec {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; padding: var(--sp-9) var(--gutter);
  display: grid; place-items: center;
}
.sec__art { position: absolute; inset: 0; z-index: var(--z-art); pointer-events: none; }
/* Sections melt into each other through two static gradients over the art
   (cheaper than masking every animated art layer). */
.sec::before, .sec::after {
  content: ""; position: absolute; inset-inline: 0; height: 14%; z-index: 1; pointer-events: none;
}
.sec::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.sec::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.sec--hero::before { display: none; }
.sec__body { position: relative; z-index: var(--z-body); width: 100%; }
.layer { position: absolute; inset: -12% 0; }
/* The art component sets position: relative later in the cascade; only position needs the stronger selector. */
.art.layer { position: absolute; }
.layer > svg, .layer > img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-family: var(--font-label); font-size: var(--step--2); line-height: 1.4;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent);
}
.sec__head .eyebrow { color: var(--eyebrow); }
:root[lang="ar"] .eyebrow { font-size: var(--step-1); text-transform: none; }

.sec__head { display: grid; justify-items: center; gap: var(--sp-3); margin-bottom: var(--sp-7); text-align: center; }
.sec__title {
  font-family: var(--font-script); font-size: var(--step-6); line-height: 1.05;
  font-weight: 400; color: var(--accent-hi);
}
:root[lang="ar"] .sec__title { font-size: var(--step-4); line-height: 1.5; font-weight: 500; }

.rule { width: 150px; height: 14px; overflow: visible; }
.rule path, .rule circle { fill: none; stroke: var(--accent); stroke-width: 1; }
.rule .rule__d { fill: var(--accent); }
/* Placeholder motifs. Every colour is a class mapped to a token, so the inline
   SVGs follow the palette. Uploaded images replace the whole <svg>. */
.art { position: relative; pointer-events: none; }
.art > svg, .art > img { width: 100%; height: 100%; }
.art > img { object-fit: cover; }
/* A drawing served as an image keeps its own preserveAspectRatio, exactly as inline. */
.art > img.art__img { object-fit: fill; }
/* lines */
.art .s  { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.art .s2 { fill: none; stroke: var(--art-line); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.art .s3 { fill: none; stroke: var(--accent); stroke-width: .7; stroke-linecap: round; opacity: .55; }
/* flat fills */
.art .f  { fill: var(--accent); }
.art .f2 { fill: var(--art-line); }
.art .i  { fill: var(--art-white); }
.art .d  { fill: var(--art-petal-2); }
.art .d2 { fill: var(--art-petal); }
.art .k  { fill: var(--art-paper); }
.art .g1 { fill: var(--art-leaf-dk); }
.art .g2 { fill: var(--art-leaf); }
.art .g3 { fill: var(--art-leaf-lt); }
.art .b  { fill: var(--art-petal); }
.art .w  { fill: var(--art-deep); }
/* florals: fill plus a gold hairline, which is what makes them read as foil print */
.art .pb { fill: var(--art-petal); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .pr { fill: var(--art-bloom); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .pr2 { fill: var(--art-bloom-2); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .pl { fill: var(--art-leaf-lt); stroke: var(--art-leaf-dk); stroke-width: .4; stroke-linejoin: round; }
.art .pl2 { fill: var(--art-leaf); stroke: var(--art-leaf-dk2); stroke-width: .4; stroke-linejoin: round; }
.art .pw { fill: var(--art-white); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .halo { fill: var(--art-bloom); opacity: .1; }
.art .dots { stroke-dasharray: 1 7; opacity: .8; }
.art .flame { transform-box: fill-box; transform-origin: 50% 100%; }
.art .st-hi   { stop-color: var(--art-white); }
.art .st-mid  { stop-color: var(--art-paper); }
.art .st-lo   { stop-color: var(--art-paper-2); }
.art .st-glow { stop-color: var(--art-bloom); stop-opacity: .14; }
.art .st-none { stop-color: var(--art-bloom); stop-opacity: 0; }
.art .st-light  { stop-color: var(--art-line-hi); stop-opacity: .85; }
.art .st-light0 { stop-color: var(--art-line-hi); stop-opacity: 0; }

/* ?slots=1 outlines every placeholder and names its role, for briefing artists. */
.show-slots .art--ph { outline: 1px dashed var(--line); outline-offset: -1px; }
.show-slots .art--ph::after {
  content: attr(data-role); position: absolute; inset-block-start: 4px; inset-inline-start: 4px;
  padding: 2px 6px; border-radius: 4px; background: var(--bg); color: var(--accent);
  font: 500 10px/1.2 var(--font-label); letter-spacing: .05em;
}
/* Buttons, icons, cards, language switch, cursor, particles. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.6em; border-radius: var(--radius-pill);
  border: 1px solid var(--accent); background: transparent; color: var(--accent-lo);
  font-family: var(--font-label); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
/* --btn-fill and the label colour are chosen per palette so the label reads
   (engine/palette.py, button()); the lighter corner never sits under the text. */
.btn--primary {
  border-color: transparent; color: var(--on-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--art-line) 45%, var(--btn-fill, var(--art-line-lo))), var(--btn-fill, var(--art-line-lo)) 45%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--art-line-lo) 30%, transparent);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--art-line) 12%, transparent); }
@media (hover: none) { .btn:active { transform: scale(.96); } }
:root[lang="ar"] .btn { letter-spacing: 0; text-transform: none; font-size: var(--step-0); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card {
  position: relative; padding: var(--sp-6); border-radius: var(--radius);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 80%, var(--art-petal-2)));
}

.lang-switch {
  position: fixed; z-index: var(--z-ui);
  top: max(14px, env(safe-area-inset-top));
  inset-inline-end: max(14px, calc((100vw - var(--page-max)) / 2 + 14px));
  display: flex; align-items: center; gap: .55rem; padding: .4rem .95rem; min-height: 38px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer;
  background: color-mix(in srgb, var(--art-white) 90%, transparent); color: var(--fg-muted);
  font-family: "Jost", sans-serif; font-size: .78rem; letter-spacing: .14em;
}
.lang-switch i { width: 1px; height: 14px; background: var(--line); }

/* The song's button (design/js/music.js): the opposite top corner from the
   language switch. Bars dance while it plays; a muted speaker while paused; a
   soft pulse when the browser is waiting for a tap before it may play. */
.music {
  position: fixed; z-index: var(--z-ui); top: max(14px, env(safe-area-inset-top));
  inset-inline-start: max(14px, calc((100vw - var(--page-max)) / 2 + 14px));
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--accent-hi);
  background: color-mix(in srgb, var(--art-white) 90%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.music[hidden] { display: none; }
.music:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.music__bars { display: none; align-items: end; gap: 2.5px; height: 15px; }
.music__bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; animation: music-bar 1s ease-in-out infinite; }
.music__bars i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.music__bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
.music__bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
.music__off { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.music.is-playing .music__bars { display: flex; }
.music.is-playing .music__off { display: none; }
.music.is-waiting::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent);
  animation: music-ring 2.2s ease-out infinite; pointer-events: none;
}
@keyframes music-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes music-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .music__bars i { animation: none; transform: scaleY(.65); }
  .music.is-waiting::after { animation: none; opacity: 0; }
}
.lang-switch [data-l="ar"] { font-family: "Amiri", serif; font-size: 1.1rem; letter-spacing: 0; line-height: 1; }
:root[lang="en"] .lang-switch [data-l="en"], :root[lang="ar"] .lang-switch [data-l="ar"] { color: var(--accent-hi); }

.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor .choice { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent-lo); }
.cursor.is-hover .cursor__ring { background: color-mix(in srgb, var(--art-line) 14%, transparent); }
.cursor__ring { transition: background-color .3s var(--ease); width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid var(--accent); }

.particles { position: fixed; inset: 0; z-index: var(--z-particles); pointer-events: none; width: 100vw; height: 100vh; }
.particle { position: absolute; top: 0; left: 0; width: 13px; height: 18px; opacity: 0; }
.particle--sparkle { width: 9px; height: 9px; }
.particle--heart { width: 16px; height: 15px; }

/* Before the animation layer takes over, keep the hero hidden so its intro
   never flashes. The inline head script removes .js if GSAP fails to load. */
.js .hero__content, .js .hero__scroll { visibility: hidden; }

/* Sticky reply bar, toast, and the one-off flying pieces of the RSVP celebration. */
.rsvp-bar {
  position: fixed; z-index: var(--z-ui); inset-inline: 0; bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--page-max) - 2 * var(--gutter))); margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px;
  border-radius: var(--radius-pill); text-decoration: none; color: var(--on-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--art-line) 45%, var(--btn-fill, var(--art-line-lo))), var(--btn-fill, var(--art-line-lo)) 45%);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--ink) 30%, transparent);
  font-family: var(--font-label); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase;
}
.rsvp-bar[hidden] { display: none; }
:root[lang="ar"] .rsvp-bar { letter-spacing: 0; text-transform: none; font-size: var(--step-0); }
.toast {
  position: fixed; z-index: var(--z-ui); left: 50%; bottom: 96px; translate: -50% 0; opacity: 0; visibility: hidden;
  padding: .6rem 1.15rem; border-radius: var(--radius-pill); pointer-events: none;
  background: var(--bg-panel); border: 1px solid var(--line); color: var(--fg); font-size: var(--step--1);
}
.plane-flyer { position: fixed; top: 0; left: 0; width: 34px; height: 34px; z-index: var(--z-particles); pointer-events: none; }
.confetti-bit { position: fixed !important; top: 0; left: 0; z-index: var(--z-particles); pointer-events: none; }
.confetti { display: block; width: 6px; height: 11px; border-radius: 1px; background: var(--art-line); }

/* Compositor hints: everything that moves for as long as the page is open, and
   every fixed overlay, gets its own layer so moving it never repaints the page. */
.grain, .backdrop, .lang-switch, .particles, .rsvp-bar, .toast,
.hero__chandelier, .hero__tassel, .hero__content, .hero__sky, .hero__far, .hero__near,
.countdown__glow, .countdown__moon > *, .programme__garland > *,
.road__rider, .road__wheel, .gate__half, .gate__wall, .gate__light, [data-speed], [data-lag] {
  will-change: transform;
}

/* Firefox scrolls natively (design/js/setup.js, NATIVE_SCROLL): the page is locked this way
   while the cover is closed, where ScrollSmoother would be paused. */
.scroll-locked, .scroll-locked body { overflow: hidden; }
/* Firefox (design/js/setup.js adds .is-lite): the layers that cost it whole frames are left out.
   Measured on the Katb Ketab page: the band of light alone took the details section to 2 frames
   a second there. */
.is-lite :is(.grain, .sweep--light) { display: none; }
/* The sealed envelope shown before the invitation opens. */
.cover {
  position: fixed; inset: 0; z-index: var(--z-cover);
  display: grid; place-items: center; overflow: hidden; touch-action: none;
  background: var(--bg);
}
.no-cover .cover { display: none; }
.cover__bg { position: absolute; inset: 0; }
.cover__bg > svg { width: 100%; height: 100%; }
.cover__inner {
  position: relative; width: min(100%, var(--page-max));
  padding: var(--sp-6) var(--gutter);
  display: grid; justify-items: center; gap: var(--sp-3); text-align: center;
}
/* The emblem: interlocking rings inside an eight-pointed star (see m.emblem). */
.emblem { position: relative; width: 132px; aspect-ratio: 1; }
.emblem::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--art-bloom) 28%, transparent), transparent);
}
.emblem > svg, .emblem > img { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emblem__frame { will-change: transform; }
.emblem .e-line { fill: none; stroke: var(--accent); stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.emblem .e-leaf { fill: var(--art-leaf-lt); stroke: var(--art-leaf-dk); stroke-width: .3; }
.emblem .e-leaf2 { fill: var(--art-leaf); stroke: var(--art-leaf-dk2); stroke-width: .3; }
.emblem .e-bloom { fill: var(--art-bloom); stroke: var(--art-line-lo); stroke-width: .3; }
.emblem .e-bloom2 { fill: var(--art-petal); stroke: var(--art-line-lo); stroke-width: .3; }
.emblem .e-fine { fill: none; stroke: var(--accent); stroke-width: .35; opacity: .7; }
.emblem .e-dots { fill: none; stroke: var(--accent); stroke-width: .9; stroke-linecap: round; stroke-dasharray: .01 2.6; opacity: .8; }
.emblem .e-tip { fill: var(--art-line); }
.emblem .e-ring { fill: none; stroke-width: 2.3; }
.emblem .e-st1 { stop-color: var(--art-line-hi); }
.emblem .e-st2 { stop-color: var(--art-line); }
.emblem .e-st3 { stop-color: var(--art-line-lo); }
.emblem .e-gem__stone { fill: var(--art-white); }
.emblem .e-gem__facet { fill: none; stroke: var(--art-line-lo); stroke-width: .35; }
.emblem .e-glint { fill: var(--art-line-hi); }
.emblem .e-init {
  font-family: var(--font-mono-latin); font-style: italic; font-weight: 600; font-size: 12.5px;
  text-anchor: middle; fill: var(--accent-hi);
}
:root[lang="ar"] .emblem .e-init { font-family: var(--font-body); font-style: normal; font-size: 13px; }
/* On the ivory card the same drawing turns to deep gold. */
.emblem--light::before { display: none; }
.emblem--light .e-line, .emblem--light .e-dots { stroke: var(--accent-lo); stroke-width: .9; }
.emblem--light .e-fine { stroke: var(--accent-lo); }
.emblem--light .e-tip { fill: var(--accent-lo); }
.emblem--light .e-leaf, .emblem--light .e-leaf2 { fill: none; stroke: var(--accent-lo); stroke-width: .5; }
.emblem--light .e-bloom, .emblem--light .e-bloom2 { fill: var(--art-petal); }
.emblem--light .e-st1 { stop-color: var(--art-line); }
.emblem--light .e-st2 { stop-color: var(--art-line-lo); }
.emblem--light .e-st3 { stop-color: var(--art-line-lo); }
.emblem--light .e-glint { display: none; }
.emblem--light .e-gem__stone { fill: var(--art-line-hi); }
.cover__names { font-family: var(--font-script); font-size: var(--step-5); color: var(--accent-hi); line-height: 1.2; }
:root[lang="ar"] .cover__names { font-size: var(--step-4); font-weight: 500; }

.envelope { position: relative; width: min(82vw, 330px); aspect-ratio: 320 / 220; margin-block: var(--sp-5) var(--sp-4); perspective: 900px; }
.envelope__back {
  position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(180deg, var(--art-petal), var(--art-bloom));
  box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 28%, transparent), 0 0 60px color-mix(in srgb, var(--art-bloom) 25%, transparent);
}
.envelope .cover-card { position: absolute; inset: 7% 6% 5%; }
.cover-card {
  position: relative; z-index: 1; border-radius: 4px;
  display: grid; align-content: center; justify-items: center; gap: .45rem;
  background: linear-gradient(160deg, var(--art-white), var(--art-paper)); color: var(--ink);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--ink) 25%, transparent);
}
.cover-card__emblem { width: 34%; }
.cover-card__date { font-family: var(--font-label); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
:root[lang="ar"] .cover-card__date { font-size: .95rem; letter-spacing: 0; }
.cover-card__rule { width: 90px; }
.envelope__pocket { position: absolute; inset: 0; z-index: 2; }
.envelope__pocket > svg { width: 100%; height: 100%; }
.envelope__flap { position: absolute; inset: 0 0 auto; height: 70%; z-index: 3; transform-origin: 50% 0; }
.envelope__flap-art, .envelope__flap-art > svg { width: 100%; height: 100%; }
.envelope__seal {
  position: absolute; z-index: 4; inset-inline: 0; margin-inline: auto; top: 52%;
  width: 23%; aspect-ratio: 1; display: grid; place-items: center;
}
.envelope__seal > .art { position: absolute; inset: 0; }
.envelope__seal > span { position: relative; font-family: var(--font-mono-latin); font-style: italic; font-size: 1.05rem; color: var(--art-line-hi); }
.cover__cta { position: relative; margin-top: var(--sp-2); }
.cover__ring { position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: var(--radius-pill); opacity: 0; pointer-events: none; }
.cover__hint { font-family: var(--font-label); font-size: var(--step--2); letter-spacing: .3em; text-transform: uppercase; color: var(--fg-muted); }
:root[lang="ar"] .cover__hint { font-size: var(--step-0); letter-spacing: 0; }

/* --- curtain: two drapes part ------------------------------------------------------- */
.drapes { position: absolute; inset: 0; z-index: 1; display: flex; pointer-events: none; direction: ltr; }
.drape { position: relative; flex: 1; height: 100%; will-change: transform; }
.drape > svg, .drape > img { width: 100%; height: 100%; }
.drape--r > svg, .drape--r > img { transform: scaleX(-1); }
.drape--l { transform-origin: 0 0; }
.drape--r { transform-origin: 100% 0; }
/* --- gates: the details section's doors open onto the page ------------------------------- */
.cgates { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: center; perspective: 1400px; pointer-events: none; direction: ltr; }
.cgates .gate__half { height: 100%; }
.cgates .gate__light { z-index: -1; }

/* The words sit on a soft panel so they read on light and dark drapes alike. */
.cover--curtain .cover__inner, .cover--gates .cover__inner {
  z-index: 2; width: min(calc(100% - 2 * var(--gutter)), 420px); border-radius: calc(var(--radius) * 1.5);
  background: color-mix(in srgb, var(--bg) 93%, transparent);          /* no blur behind it: the doors move under this panel */
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ink) 45%, transparent);
}

/* --- lanterns: the light comes up ------------------------------------------------------ */
.lanterns { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lanterns__veil { position: absolute; inset: 0; background: var(--ink); opacity: .55; }
.lanterns__light {
  position: absolute; inset: -20% -20% 30%; opacity: 0;
  background: radial-gradient(50% 50% at 50% 30%, color-mix(in srgb, var(--art-line-hi) 55%, transparent), transparent 70%);
}
.lantern { position: absolute; top: -6px; width: 56px; aspect-ratio: 80 / 200; transform-origin: 50% 0; will-change: transform; }
.lantern .lglow { opacity: 0; }
.lantern .flame { transform-box: fill-box; transform-origin: 50% 100%; }
.lantern--0 { left: 8%; width: 46px; }
.lantern--1 { left: 26%; top: 6%; }
.lantern--2 { left: calc(50% - 32px); width: 64px; top: -2%; }
.lantern--3 { right: 24%; top: 4%; }
.lantern--4 { right: 7%; width: 44px; top: 8%; }
.cover--lantern .cover__inner { z-index: 2; }

/* --- gift box: the lid lifts, the card rises -------------------------------------------- */
.gift { position: relative; width: min(64vw, 250px); aspect-ratio: 240 / 180; margin-block: var(--sp-8) var(--sp-4); perspective: 900px; }
.gift .cover-card { position: absolute; inset: 6% 12% 8%; z-index: 1; }
.gift__box { position: absolute; inset: 0; z-index: 2; }
.gift__box > svg { width: 100%; height: 100%; filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--ink) 22%, transparent)); }
.gift__top { position: absolute; z-index: 3; left: -4%; right: -4%; bottom: 92%; aspect-ratio: 260 / 70; transform-origin: 50% 100%; }
.gift__lid { position: absolute; inset: 0; }
.gift__bow { position: absolute; left: 50%; bottom: 62%; width: 62%; aspect-ratio: 160 / 100; translate: -50% 0; }
:is(.gift__bow, .wrapped__bow) :is(.bow-l, .bow-r, .knot, .tail-l, .tail-r) { transform-box: fill-box; transform-origin: 50% 50%; }
.gift__bow .bow-l, .wrapped__bow .bow-l { transform-origin: 100% 60%; }
.gift__bow .bow-r, .wrapped__bow .bow-r { transform-origin: 0 60%; }
.gift__bow .tail-l, .gift__bow .tail-r, .wrapped__bow .tail-l, .wrapped__bow .tail-r { transform-origin: 50% 0; }

/* --- ribbon: the bow unties, the card unfolds ---------------------------------------------- */
.wrapped { position: relative; width: min(74vw, 300px); aspect-ratio: 300 / 210; margin-block: var(--sp-5) var(--sp-4); perspective: 900px; }
.wrapped .cover-card { position: absolute; inset: 0; box-shadow: 0 30px 60px color-mix(in srgb, var(--ink) 22%, transparent); }
.wrapped__band { position: absolute; z-index: 2; background: linear-gradient(90deg, var(--art-bloom-2), var(--art-bloom) 45%, var(--art-bloom-2)); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 20%, transparent); }
.wrapped__band--h { left: -3%; right: -3%; top: calc(50% - 9px); height: 18px; transform-origin: 50% 50%; background: linear-gradient(180deg, var(--art-bloom-2), var(--art-bloom) 45%, var(--art-bloom-2)); }
.wrapped__band--v { top: -4%; bottom: -4%; left: calc(50% - 9px); width: 18px; transform-origin: 50% 50%; }
.wrapped__bow { position: absolute; z-index: 3; left: 50%; top: 50%; width: 46%; aspect-ratio: 160 / 100; translate: -50% -58%; }

/* --- plain covers ---------------------------------------------------------------------------- */
.cover--fade .cover__emblem, .cover--none .cover__emblem { width: 160px; }

/* A template's own emblem (art/emblem.svg, e.g. a badge for a birthday or a launch):
   the drawing, with the monogram set in the display face on top. */
.emblem--badge > svg { overflow: visible; }
.emblem__mono {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: .02em; color: var(--accent-hi);
}
.emblem--light .emblem__mono { font-size: 1.1rem; }
/* Night garden under an arch, a chandelier, tassels; pinned on scroll. */
.sec--hero { height: 100svh; min-height: 0; padding: 0; place-items: stretch; }
.hero__art { overflow: hidden; }
.hero__sky { inset: 0; }
.hero__far { inset: auto 0 0; height: 36%; }
.hero__near { position: absolute; inset: auto 0 -2px; height: 26%; z-index: var(--z-front); }
.hero__near > svg { width: 100%; height: 100%; }
.hero__chandelier {
  position: absolute; top: -6px; inset-inline: 0; margin-inline: auto;
  width: min(42vw, 168px); aspect-ratio: 200 / 210; transform-origin: 50% 0; z-index: 1;
}
.hero__chandelier .flame { transform-box: fill-box; transform-origin: 50% 100%; }
.hero__tassel { position: absolute; top: -4px; width: 40px; aspect-ratio: 60 / 236; transform-origin: 50% 0; }
.hero__tassel--l { left: 9%; }
.hero__tassel--r { right: 9%; height: auto; width: 34px; }

.hero__content { position: relative; z-index: var(--z-body); height: 100%; display: grid; place-items: end center; padding-bottom: 8svh; will-change: transform; }
.hero__frame {
  position: relative; display: grid; place-items: center;
  width: min(80vw, 320px, calc(64svh * 300 / 468)); aspect-ratio: 300 / 468;
}
.hero__arch { position: absolute; inset: 0; }
.hero__side { display: none; }
.hero__arch > svg { overflow: visible; }
.hero__text { position: relative; display: grid; justify-items: center; gap: .55rem; padding: 33% 13% 7%; text-align: center; }
.hero__eyebrow { color: var(--accent); letter-spacing: calc(var(--track-label) * .75); }
.hero__names { display: grid; justify-items: center; font-family: var(--font-display); line-height: .95; color: var(--accent-hi); }
.hero__name {
  font-size: clamp(2.7rem, 13.5vw, 3.8rem); font-style: italic; font-weight: 500;
  text-shadow: 0 1px 0 var(--art-white);
}
.hero__joiner { font-family: var(--font-script); font-size: var(--step-4); color: var(--accent); line-height: 1; }
:root[lang="ar"] .hero__name { font-style: normal; font-weight: 400; font-size: clamp(2.6rem, 13vw, 3.6rem); line-height: 1.35; }
:root[lang="ar"] .hero__joiner { font-size: var(--step-2); line-height: 1.2; }
/* A name wraps between its words, never inside one. The animation wraps each word in an inline
   block, which would break to fit a narrow space ("Moham / ed"); words stay whole, and main.js
   (fitNames) shrinks the names when the longest word is wider than the space it has. */
.hero__name { max-width: 100%; }
.hero__name * { white-space: nowrap; }
.hero__rule { width: 120px; margin-top: .35rem; }
.hero__date { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .hero__date { font-family: var(--font-body); font-size: var(--step-1); letter-spacing: 0; }

.hero__scroll {
  position: absolute; z-index: 4; bottom: max(14px, env(safe-area-inset-bottom)); inset-inline: 0;
  display: grid; justify-items: center; gap: .35rem;
  font-family: var(--font-label); font-size: var(--step--2); letter-spacing: .32em; text-transform: uppercase; color: var(--fg-muted);
}
:root[lang="ar"] .hero__scroll { font-size: var(--step--1); letter-spacing: 0; }
.hero__scroll i { width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: scroll-hint 2.4s var(--ease) infinite; }
@keyframes scroll-hint { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i { animation: none; } }
.sec--countdown { min-height: 92svh; }
.countdown__blossom { position: absolute; top: 6%; inset-inline-end: 4%; width: 150px; aspect-ratio: 1; }
.countdown__body { display: grid; place-items: center; }
.countdown__dial { position: relative; width: min(80vw, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.countdown__ring { position: absolute; inset: 0; }
.countdown__glow {
  position: absolute; inset: 18% 12%; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--art-bloom) 30%, transparent), transparent);
}
.countdown__num { position: relative; }
.countdown__center { position: relative; display: grid; justify-items: center; gap: .1rem; text-align: center; }
.countdown__label { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--fg); line-height: 1.2; }
:root[lang="ar"] .countdown__label { font-style: normal; font-family: var(--font-body); font-size: var(--step-2); }
.countdown__num {
  font-family: var(--font-mono-latin); font-size: clamp(5rem, 28vw, 7.4rem); line-height: .95; font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums; color: var(--accent-hi);
}
:root[lang="ar"] .countdown__num { font-family: var(--font-body); }
.countdown__today { font-family: var(--font-script); font-size: var(--step-6); color: var(--accent-hi); }
/* Details, with the pair of gates that swing open onto it. */
.sec--details { min-height: 100svh; padding-block: var(--sp-8); }
.gate { display: none; }
.js .gate { display: flex; }
/* The doors keep the art's proportions; on wide screens the wall fills the sides. */
.gate { position: absolute; inset: 0 0 auto; height: 100svh; z-index: var(--z-gate); perspective: 1200px; pointer-events: none; direction: ltr; }
.gate__half { position: relative; flex: none; height: 100%; width: min(50%, calc(100svh * 200 / 640)); backface-visibility: hidden; }
.gate__half > svg, .gate__half > img { width: 100%; height: 100%; }
.gate__half--l { transform-origin: 0 50%; margin-right: -1px; }
.gate__half--r { transform-origin: 100% 50%; }
.gate__wall {
  flex: 1; min-width: 0; height: 100%;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--art-line-lo) 12%, transparent) 22px 23px),
    repeating-linear-gradient(-45deg, transparent 0 22px, color-mix(in srgb, var(--art-line-lo) 12%, transparent) 22px 23px),
    var(--art-petal-2);
}
.gate__wall--l { border-right: 1px solid var(--line); }
.gate__wall--r { border-left: 1px solid var(--line); }
.gate__light {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(30% 55% at 50% 50%, var(--glow), transparent 72%);
}

/* One column, exactly as wide as the page allows. Left to itself a grid column grows to its
   widest child, and the section clips what spills over: in Arabic that is the left edge, so
   the venue and its buttons lose their start. minmax(0, 1fr) cannot grow; children wrap. */
.details__inner, .venue, .venue__info { grid-template-columns: minmax(0, 1fr); }
.details__inner { display: grid; justify-items: center; text-align: center; will-change: transform; }
.details__inner .sec__head { margin-bottom: var(--sp-6); }
.venue { display: grid; justify-items: center; gap: var(--sp-2); width: 100%; }
.venue__frame { position: relative; width: 100%; aspect-ratio: 3 / 2; margin-bottom: var(--sp-4); }
.venue__info { display: grid; justify-items: center; gap: var(--sp-2); width: 100%; }
.venue__img { position: absolute; inset: 14px; overflow: hidden; border-radius: 3px; }
.venue__ornament { position: absolute; inset: 0; }
.venue__ornament > svg { overflow: visible; }
.venue__name { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; color: var(--accent-hi); }
.venue__city { color: var(--fg-muted); font-style: italic; }
.venue__name { font-family: var(--font-display); font-weight: 500; }
:root[lang="ar"] .venue__city { font-style: normal; }
.venue__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; margin-top: var(--sp-2);
  font-family: var(--font-label); font-size: var(--step--1); letter-spacing: .14em; color: var(--fg);
}
:root[lang="ar"] .venue__meta { font-size: var(--step-0); letter-spacing: 0; }
.venue__time { display: inline-flex; align-items: center; gap: .45rem; }
.venue__time .icon { color: var(--accent); }
.venue__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.cal { position: relative; }
.cal > summary { list-style: none; }
.cal > summary::-webkit-details-marker { display: none; }
.cal__menu {
  position: absolute; z-index: 5; top: calc(100% + 8px); inset-inline: 50% auto; translate: -50% 0;
  min-width: 230px; display: grid; overflow: hidden;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.cal__menu a:hover { background: var(--art-petal-2); }
:root[dir="rtl"] .cal__menu { translate: 50% 0; }
.cal__menu a { padding: .85rem 1.1rem; text-decoration: none; color: var(--fg); }
.cal__menu a + a { border-top: 1px solid var(--line-soft); }
.cal__menu a:hover { background: color-mix(in srgb, var(--art-line) 10%, transparent); }
/* Programme, transport, dress code, RSVP, footer. */
.programme__garland { position: absolute; top: 0; inset-inline: 0; height: 70px; }
/* The drawn line: a faint track shows the way, the line itself grows over it to
   --p (0 to 1, scrubbed by the drawline preset; 1 without it) and the tip, a
   small glowing pen, rides its end while it draws (--tip). */
.timeline { --p: 1; --tip: 0; --x: .58rem; position: relative; padding-inline-start: 2.4rem; }
.timeline__track, .timeline__line { position: absolute; inset-block: .5rem; inset-inline-start: var(--x); width: 1px; }
.timeline__track { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline__line {
  width: 2px; translate: -.5px 0; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 70%, var(--bg)));
  transform: scaleY(var(--p)); transform-origin: 50% 0;
}
.timeline__tip {
  position: absolute; inset-inline-start: var(--x); top: calc(.5rem + (100% - 1rem) * var(--p)); width: 10px; height: 10px;
  translate: -50% -50%; border-radius: 50%; background: var(--accent); opacity: var(--tip); pointer-events: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 22px 4px color-mix(in srgb, var(--accent) 45%, transparent);
}
[dir="rtl"] .timeline__tip { translate: 50% -50%; }
.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute; inset-inline-start: -2.4rem; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--surface);
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px color-mix(in srgb, var(--art-bloom) 45%, transparent);
}
.timeline__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.timeline__time { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: .2em; color: var(--accent); }
:root[lang="ar"] .timeline__time { font-size: var(--step-0); letter-spacing: 0; }
.timeline__title { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; color: var(--accent-hi); }
.timeline__note { color: var(--fg-muted); font-style: italic; }
:root[lang="ar"] .timeline__note { font-style: normal; }

.road { position: relative; height: 128px; margin-block: calc(var(--sp-5) * -1) var(--sp-5); }
.road__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road__path { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.road__rider { position: absolute; top: 0; left: 0; width: 100px; aspect-ratio: 160 / 110; }
.road__carriage { position: absolute; inset: 0; }
.road__wheel { position: absolute; width: 27%; aspect-ratio: 1; bottom: -10%; }
.road__wheel--back { left: 14%; }
.road__wheel--front { left: 60%; }
.transport { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.transport__item { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); }
.transport__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--accent);
}
.transport__icon img { width: 26px; height: 26px; object-fit: contain; }
.transport__mode { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; color: var(--accent-hi); }
.transport__text { color: var(--fg-muted); }

/* Centred single columns that cannot grow past the page (see details.css). */
.dress, .footer__body, .footer__actions, .rsvp__thanks { grid-template-columns: minmax(0, 1fr); }
.dress { display: grid; justify-items: center; }
.dress__card { width: 100%; }
.dress__figures { width: min(100%, 320px); aspect-ratio: 300 / 160; margin: 0 auto calc(var(--sp-5) * -1); position: relative; z-index: 1; }
.dress__figures .fig { transform-box: fill-box; transform-origin: 50% 100%; }
.dress__card { text-align: center; display: grid; gap: var(--sp-3); padding-top: var(--sp-7); }
.dress__title { font-family: var(--font-script); font-size: var(--step-5); color: var(--accent-hi); line-height: 1.1; }
.dress__note { font-style: italic; color: var(--accent); }
:root[lang="ar"] .dress__note { font-style: normal; }

.rsvp__form { display: grid; gap: var(--sp-5); }
.rsvp__attend { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.rsvp__q { width: 100%; margin-bottom: var(--sp-2); padding: 0; text-align: center; font-family: var(--font-display); font-size: var(--step-2); color: var(--accent-hi); }
.choice {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1.1rem; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.choice input { appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; }
.choice input::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--art-petal-2); }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.45rem 1rem .5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--fg); font-size: var(--step-0); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field > label {
  position: absolute; top: 1rem; inset-inline-start: 1rem; pointer-events: none; color: var(--fg-muted);
  transform-origin: left top; transition: transform .3s var(--ease), color .3s var(--ease);
}
:root[dir="rtl"] .field > label { transform-origin: right top; }
.field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { transform: translateY(-.65rem) scale(.74); color: var(--accent); }
.field--guests { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.field--guests > label { position: static; transform: none; color: var(--fg); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-soft); border-radius: var(--radius-pill); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; color: var(--accent-hi); font-size: 1.3rem; cursor: pointer; }
.stepper input { width: 3rem; padding: 0; border: 0; background: none; text-align: center; color: var(--fg); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.field.is-invalid :is(input, textarea) { border-color: var(--error); }
.rsvp__submit { width: 100%; }
.rsvp__plane { display: inline-grid; }
.rsvp__status { min-height: 1.6em; text-align: center; color: var(--error); }

.sec--footer { min-height: 80svh; text-align: center; }
.footer__closing { position: absolute; inset: 8% 6% auto; aspect-ratio: 1; opacity: .55; }
.footer__body { display: grid; justify-items: center; gap: var(--sp-3); }
.footer__names { font-family: var(--font-display); font-size: var(--step-5); font-style: italic; color: var(--accent-hi); line-height: 1.1; }
:root[lang="ar"] .footer__names { font-style: normal; font-size: var(--step-4); line-height: 1.5; }
.footer__closing-line { font-family: var(--font-script); font-size: var(--step-3); text-transform: none; letter-spacing: 0; color: var(--accent); }
.footer__date { color: var(--fg-muted); }
.footer__actions { display: grid; justify-items: center; gap: var(--sp-5); margin-top: var(--sp-5); }
.footer__top {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--fg-muted);
  font-family: var(--font-label); font-size: var(--step--2); letter-spacing: .3em; text-transform: uppercase;
}
:root[lang="ar"] .footer__top { font-size: var(--step-0); letter-spacing: 0; }

/* --- milestone 3 additions --------------------------------------------------- */
.road__face { position: absolute; inset: 0; }
:root[dir="rtl"] .road__face { transform: scaleX(-1); }   /* static mirror; GSAP moves the parent, spins the wheels */
.programme__garland > svg { overflow: visible; }

.dress__note.is-typing::after {
  content: ""; display: inline-block; width: 1px; height: 1em; margin-inline-start: 3px;
  background: currentColor; vertical-align: -.15em; animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.rsvp { position: relative; }
.rsvp-layout__meta { display: none; }
.rsvp__notice, .rsvp__closed { margin-bottom: var(--sp-5); text-align: center; color: var(--accent-hi); }
.rsvp__notice--error { color: var(--error); }
.rsvp__closed { font-family: var(--font-display); font-size: var(--step-2); }
.rsvp__submit { position: relative; justify-self: center; overflow: hidden; }
.rsvp__spinner {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; opacity: 0;
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink);
}
.rsvp__submit.is-loading .rsvp__spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field--guests.is-off { opacity: .35; pointer-events: none; }
.field__error { margin-top: .35rem; font-size: var(--step--1); color: var(--error); }
:root[lang="ar"] .field__error { font-size: var(--step-0); }
/* With the animation layer on, GSAP floats the labels; CSS keeps only the colour change. */
.gsap-labels .field > label { transition: color .3s var(--ease); }
.gsap-labels .field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { transform: none; }

.rsvp__thanks { display: grid; justify-items: center; gap: var(--sp-4); padding-block: var(--sp-8); text-align: center; }
.rsvp__thanks[hidden] { display: none; }
.rsvp__thanks:focus { outline: none; }
.rsvp__thanks-title { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; color: var(--accent-hi); font-style: italic; }
:root[lang="ar"] .rsvp__thanks-title { font-size: var(--step-3); line-height: 1.6; }
.rsvp__thanks-note { color: var(--fg-muted); }
.rsvp__thanks-names { font-family: var(--font-script); font-size: var(--step-4); color: var(--accent); }
/* Styles for the animation variants added on top of the reference presets:
   petal and light-sweep transitions, programme cards, the hangers rail,
   the speakers list. */

/* --- details: petal wave -------------------------------------------------------------- */
.sweep { position: absolute; inset: 0; z-index: var(--z-gate); overflow: hidden; pointer-events: none; }
.sweep__panel {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--art-petal-2), var(--art-petal) 55%, var(--art-bloom));
}
.sweep__petal { position: absolute; top: var(--y); inset-inline-end: calc(100% - var(--x) - 40px); width: 26px; aspect-ratio: 20 / 28; will-change: transform; }
.sweep__petal > .art, .sweep__petal svg { width: 100%; height: 100%; }
/* No blend mode: blending a whole section on every frame of the scroll cost a second a frame in Firefox. */
.sweep__light {
  position: absolute; top: -20%; bottom: -20%; inset-inline-start: 0; width: 38%; transform: skewX(-16deg); will-change: transform;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--art-line-hi) 70%, transparent) 50%, transparent);
}
[dir="rtl"] .sweep__light { transform: skewX(16deg); }

/* --- programme: cards instead of a line -------------------------------------------------- */
/* One centred column; the list is the grid and every card a subgrid row, so the
   times line up in one column however long each one is. */
.timeline.timeline--cards { max-width: 720px; margin-inline: auto; padding-inline-start: 0; }
.timeline--cards :is(.timeline__line, .timeline__track, .timeline__tip, .timeline__dot) { display: none; }
.timeline--cards .timeline__list { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-3); padding: 0; }
.timeline--cards .timeline__item {
  position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: var(--sp-4); row-gap: .15rem;
  align-items: baseline; text-align: start; margin: 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) calc(var(--sp-5) + 4px); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft), 0 18px 40px -24px color-mix(in srgb, var(--ink) 30%, transparent);
}
/* The accent edge; the cards preset draws it down (--bar 0 to 1). */
.timeline--cards .timeline__item::before {
  content: ""; position: absolute; inset-block: 18%; inset-inline-start: 0; width: 3px; border-radius: 3px;
  background: var(--accent); transform: scaleY(var(--bar, 1)); transform-origin: 50% 0;
}
.timeline--cards .timeline__time { grid-column: 1; grid-row: span 2; }
.timeline--cards :is(.timeline__title, .timeline__note) { grid-column: 2; }

/* --- dress code: hangers ---------------------------------------------------------------- */
.dress--hangers { position: relative; }
.dress__rail {
  display: block; height: 3px; margin: 0 auto -2px; width: min(100%, 330px); border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--art-line) 12%, var(--art-line) 88%, transparent); transform-origin: 50% 50%;
}
.dress--hangers .fig { transform-box: fill-box; transform-origin: 50% 0; }

/* --- speakers ----------------------------------------------------------------------------- */
.speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.speaker { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-5); text-align: start; }
.speaker__mono {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-hi); color: var(--surface); font: 600 1.05rem/1 var(--font-label); letter-spacing: .04em;
}
.speaker__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); line-height: 1.25; }
.speaker__role { color: var(--fg-muted); font-size: var(--step--1); }
.speaker__time { font-family: var(--font-label); font-size: var(--step--2); color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-top: .2rem; }
:root[lang="ar"] .speaker__time { letter-spacing: 0; font-size: var(--step--1); }
@media (min-width: 960px) { .speakers { grid-template-columns: 1fr 1fr; max-width: 900px; margin-inline: auto; } }
/* The story thread and the hand-off veils (design/js/flow.js). */
.page { position: relative; }
.thread {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 4; width: 18px; overflow: visible; pointer-events: none;
}
.thread__line { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; opacity: .55; }
.thread__knot { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; transform-box: fill-box; }
@media (min-width: 900px) { .thread { inset-inline-start: 14px; } }

.veil { position: absolute; inset-inline: 0; z-index: var(--z-front); height: 42svh; pointer-events: none; }
.veil--out { bottom: 0; background: linear-gradient(transparent, var(--bg) 78%); opacity: 0; }
.veil--in { top: 0; background: linear-gradient(var(--bg) 22%, transparent); }
/* Wide screens get their own composition instead of a phone column.
   Tablet: a wider single column. Desktop (960px+): full-width scenes and
   two-column sections. Everything uses logical properties, so Arabic mirrors. */
@media (min-width: 600px) and (max-width: 959px) {
  :root { --page-max: 640px; }
}

@media (min-width: 960px) {
  :root {
    --gutter: clamp(2.5rem, 5vw, 5rem);
    --step-3: 2.6rem; --step-4: 3.3rem; --step-5: 4.4rem; --step-6: 5.4rem;
  }
  .page { max-width: none; box-shadow: none; }
  .sec { padding-block: 7.5rem; }
  .sec__body { max-width: 1160px; margin-inline: auto; }
  .sec__head { margin-bottom: var(--sp-8); }
  .lang-switch { top: 24px; inset-inline-end: 28px; }
  .music { top: 23px; inset-inline-start: 28px; }
  .rsvp-bar { width: 420px; }

  .cover__inner { width: min(100%, 760px); gap: var(--sp-4); }
  .cover__emblem { width: 172px; }
  .cover__names { font-size: var(--step-4); }
  .envelope { width: min(44vw, 500px); }

  /* Hero: the arch flanked by two quieter arches, the garden across the width. */
  .hero__content { display: flex; align-items: flex-end; justify-content: center; gap: 4vw; }
  .hero__frame { order: 1; width: min(470px, calc(72svh * 300 / 468)); }
  .hero__side { display: block; position: relative; width: min(290px, calc(46svh * 300 / 468)); aspect-ratio: 300 / 468; opacity: .55; }
  .hero__side--l { order: 0; }
  .hero__side--r { order: 2; }
  .hero__name { font-size: clamp(3.6rem, 8.4svh, 6rem); }
  .hero__chandelier { width: 230px; }
  .hero__tassel { width: 56px; }
  .hero__tassel--l { left: 16%; }
  .hero__tassel--r { right: 16%; width: 48px; }
  .hero__far { height: 48%; }
  .hero__near { height: 30%; }

  .countdown__dial { width: 440px; }
  .countdown__blossom { width: 240px; top: 10%; inset-inline-end: 12%; }

  /* Details: the venue picture beside its words. */
  .sec--details { padding-block: 6rem; }
  .venue { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; column-gap: 5rem; }
  .venue__frame { margin-bottom: 0; }
  .venue__info { justify-items: start; text-align: start; gap: var(--sp-3); }
  .venue__name { font-size: var(--step-4); }
  .venue__meta, .actions { justify-content: flex-start; }

  /* Programme: a centred line with the moments alternating either side. */
  .timeline { --x: 50%; max-width: 1040px; margin-inline: auto; padding-inline-start: 0; }
  .timeline__list { gap: 0; }
  .timeline__item { width: 50%; padding-inline-end: 4.2rem; text-align: end; }
  .timeline__item + .timeline__item { margin-top: -.4rem; }
  .timeline__item:nth-child(even) { margin-inline-start: 50%; padding-inline: 4.2rem 0; text-align: start; }
  .timeline__item .timeline__dot { inset-inline-start: auto; inset-inline-end: -.6rem; }
  .timeline__item:nth-child(even) .timeline__dot { inset-inline-end: auto; inset-inline-start: -.6rem; }
  /* A short connector from the dot to the words (--link 0 to 1, drawn by the preset). */
  .timeline__item::after {
    content: ""; position: absolute; top: .9rem; inset-inline-end: 1rem; width: 2.4rem; height: 1px;
    background: linear-gradient(to left, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
    transform: scaleX(var(--link, 1)); transform-origin: right;
  }
  .timeline__item:nth-child(even)::after { inset-inline: 1rem auto; background: linear-gradient(to right, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); transform-origin: left; }
  [dir="rtl"] .timeline__item::after { background: linear-gradient(to right, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); transform-origin: left; }
  [dir="rtl"] .timeline__item:nth-child(even)::after { background: linear-gradient(to left, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); transform-origin: right; }
  .timeline--cards .timeline__item::after { display: none; }
  /* Cards keep their own single column: undo the alternating line layout above. */
  .timeline--cards .timeline__item, .timeline--cards .timeline__item:nth-child(even) {
    width: auto; margin: 0; padding: var(--sp-5) var(--sp-6) var(--sp-5) calc(var(--sp-6) + 4px); text-align: start;
  }
  .programme__garland { height: 120px; }

  .road { height: 200px; margin-block: 0 var(--sp-6); }
  .road__rider { width: 160px; }
  .transport { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin-inline: auto; }

  .dress { grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; max-width: 1040px; margin-inline: auto; }
  .dress__figures { width: 100%; margin: 0; }
  .dress__card { padding: var(--sp-7); justify-items: start; text-align: start; }

  /* RSVP: the invitation to reply on one side, the form on the other. */
  .rsvp-layout { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 6rem; max-width: 1080px; margin-inline: auto; }
  .rsvp-layout__intro .sec__head { justify-items: start; text-align: start; margin-bottom: var(--sp-5); }
  .rsvp-layout__meta { display: block; color: var(--fg-muted); font-style: italic; }
  :root[lang="ar"] .rsvp-layout__meta { font-style: normal; }

  .sec--footer { min-height: 90svh; }
  .footer__closing { inset: 6% 0 auto; margin-inline: auto; width: 560px; }
  .footer__names { font-size: var(--step-6); }
}
/* Momenti's own marks on an invitation page: the preview watermark, the demo bar
   and the paused or expired notice. Built last so they sit above everything.
   The invitation keeps its template's palette and fonts; what Momenti puts on top of
   it is in the brand's (docs/brand.md), from the tokens of design/brand.css and the
   two self-hosted interface faces under a name no template uses. */
@font-face { font-family: "Momenti UI"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/dm-sans-latin-400-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Momenti UI"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
.watermark {
  position: fixed; z-index: calc(var(--z-cursor) - 1); top: max(.7rem, env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  padding: .42rem .95rem; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap;
  background: color-mix(in srgb, var(--momenti-espresso) 84%, transparent); color: var(--momenti-ivory);
  font: 500 .72rem/1 "Momenti UI", var(--momenti-font-body); letter-spacing: .14em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
:root[lang="ar"] .watermark { letter-spacing: 0; font-size: .85rem; }

.demobar {
  position: fixed; z-index: calc(var(--z-ui) + 1); left: 50%; translate: -50% 0; bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(100% - 1.5rem, 440px); display: flex; align-items: center; gap: .6rem; padding: .45rem .45rem .45rem .75rem;
  border-radius: var(--radius-pill); border: 1px solid color-mix(in srgb, var(--momenti-espresso) 14%, transparent); box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--momenti-espresso) 45%, transparent);
  background: color-mix(in srgb, var(--momenti-ivory) 92%, transparent); color: var(--momenti-espresso); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: "Momenti UI", var(--momenti-font-body);
}
.demobar__group { display: flex; gap: .45rem; }
.demobar__swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--momenti-ivory);
  background: conic-gradient(var(--sw-a) 0 30%, var(--sw-b) 0 62%, var(--sw-bg) 0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--momenti-espresso) 22%, transparent); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.demobar__swatch:hover { transform: scale(1.08); }
.demobar__swatch.is-on { box-shadow: 0 0 0 2px var(--momenti-cherry); }
.demobar__use {
  margin-inline-start: auto; padding: .7rem 1.15rem; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--momenti-cherry); color: var(--momenti-ivory); text-decoration: none; font-size: .88rem; font-weight: 500;
}
:root[lang="ar"] .demobar__use { font-size: 1rem; }
.is-demo .rsvp-bar { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.2rem); }
/* A tour plays the page by itself: no controls, no pointer. */
.is-tour :is(.cursor, .lang-switch, .rsvp-bar, .demobar, .toast) { display: none !important; }
.is-tour body { pointer-events: none; }

.notice { min-height: 100svh; display: grid; place-items: center; padding: var(--sp-6) var(--gutter); background: var(--bg); text-align: center; }
.notice__card { display: grid; gap: var(--sp-4); max-width: 26rem; }
.notice__card .sec__title { font-size: var(--step-4); }
.notice__alt { font-family: var(--font-label); font-size: var(--step--1); }

/* The demo's style switcher: a panel that opens above the bar. */
/* static, so the panel is placed against the fixed bar, not the small button */
.demobar__style { position: static; }
.demobar__style > summary {
  list-style: none; cursor: pointer; padding: .62rem .95rem; border-radius: var(--radius-pill); white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--momenti-espresso) 22%, transparent); font-size: .85rem; color: var(--momenti-espresso);
}
.demobar__style > summary::-webkit-details-marker { display: none; }
.demobar__style[open] > summary { box-shadow: inset 0 0 0 1.5px var(--momenti-cherry); }
.demobar__panel {
  position: absolute; bottom: calc(100% + .7rem); left: 0; right: 0;
  max-height: 62svh; overflow: auto; display: grid; gap: .9rem; padding: 1rem 1.1rem;
  border-radius: 20px; background: var(--momenti-ivory); box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--momenti-espresso) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--momenti-espresso) 14%, transparent);
}
.demobar__row { display: grid; gap: .4rem; }
.demobar__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--momenti-espresso) 72%, var(--momenti-ivory)); }
:root[lang="ar"] .demobar__label { letter-spacing: 0; font-size: .85rem; }
.demobar__opts { display: flex; flex-wrap: wrap; gap: .35rem; }
.demobar__opt {
  padding: .4rem .75rem; border-radius: var(--radius-pill); text-decoration: none; font-size: .82rem; color: var(--momenti-espresso);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--momenti-espresso) 22%, transparent);
}
.demobar__opt:hover { box-shadow: inset 0 0 0 1px var(--momenti-cherry); }
.demobar__opt.is-on { background: var(--momenti-cherry); color: var(--momenti-ivory); box-shadow: none; }
:root[lang="ar"] .demobar__opt { font-size: .95rem; }
@media (max-width: 420px) { .demobar__use { padding-inline: .9rem; font-size: .8rem; } }

/* The link-preview card (?og=1): exactly 1200 by 630, screenshotted by the media worker. */
.og { width: 1200px; height: 630px; min-height: 0; overflow: hidden; position: relative; display: grid; place-items: center; }
.art.og__bg { position: absolute; inset: 0; }
.og__bg > svg, .og__bg > img { object-fit: cover; }
/* The text sits on a card in the palette's surface colour: each template's og-image
   art has its own centrepiece (rings, an arch, a phone), so the art frames the card. */
.og__card {
  position: relative; display: grid; justify-items: center; gap: 12px; max-width: 900px; padding: 34px 64px 38px; text-align: center;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 30px 80px color-mix(in srgb, var(--ink) 22%, transparent);
}
.og__emblem { width: 96px; margin-bottom: 4px; }
.og__eyebrow { font-size: 15px; }
.og__names { font-family: var(--font-display); font-size: 80px; line-height: 1.02; color: var(--accent-hi); text-wrap: balance; }
:root[lang="ar"] .og__names { font-size: 72px; line-height: 1.35; }
.og__rule { width: 180px; color: var(--accent); }
.og__date { font-family: var(--font-label); font-size: 20px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .og__date { font-family: var(--font-body); font-size: 28px; letter-spacing: 0; }
.og .watermark { position: absolute; }

/* Under a closed cover the page is not painted at all. The cover is opaque, so
   nothing visible changes, but the phone paints the cover alone and sooner.
   cover.js adds .cover-opening the moment the cover starts to open. Without
   JavaScript (no .js), or once the cover is gone (.is-open), the page shows. */
.js:not(.no-cover):not(.is-open):not(.cover-opening) #smooth-wrapper { visibility: hidden; }

/* Inside the builder's preview and the home page's phone the invitation is a phone screen.
   A desktop with a mouse would draw a 15 px scrollbar in the frame, narrowing the page from
   390 to 375 px and, in Arabic, shifting it against its full-width layers, so the details
   section looked cut at the edge. Phones never show one; the frame scrolls the same. */
html:is(.is-preview, .is-embed) { scrollbar-width: none; }
html:is(.is-preview, .is-embed)::-webkit-scrollbar { display: none; }
