/* ============================================================
   Morocco 2028 (morocco-2028.html), the page Sharon approved as the
   Arc mockup on 19 Oct 2026. Built from Arc Pro blocks (stats-band,
   scroll-story, lightbox-gallery, login-immersive) plus the invitation
   card and the zellige ground, rebuilt here in plain CSS and script
   (assets/morocco-2028.js). Nothing is copied from Arc's code; the
   look and the motion follow the blocks.

   Motion rule for this page: everything starts from a visible state
   and only rises or settles once in view, so a missed scroll event
   can never leave a section blank. Reduced motion (the OS setting or
   the site's own Pause motion) shows every finished state at once.
   ============================================================ */

/* Arc's tokens, scoped to the Morocco sections so they never touch the
   header, the closing band or the footer (the site has its own --accent). */
.mo-arc, .mo-viewer {
  color-scheme: light;
  --background: #fff;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-muted: oklch(97.8% 0 0);
  --foreground: #1d1b3f;
  --text-secondary: #475569;
  --text-muted: #5f6b7d;
  --border: #e6e1d8;
  --border-subtle: #efebe4;
  --border-strong: #cfc7b9;
  --accent: #1E3EAF;
  --accent-strong: #172f86;
  --danger: oklch(54% .21 25);
  --shadow-resting: 0 1px 2px oklch(0% 0 0 / .035);
  --shadow-raised: 0 6px 18px oklch(0% 0 0 / .065), 0 1px 3px oklch(0% 0 0 / .035);
  --shadow-floating: 0 20px 48px oklch(0% 0 0 / .105), 0 3px 10px oklch(0% 0 0 / .045);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-control: 1.125rem; --radius-panel: 1.625rem; --radius-surface: 2.125rem; --radius-pill: 9999px;
  --control-height-md: 2.75rem; --control-height-lg: 3.125rem;
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.375rem; --text-2xl: 1.75rem; --text-3xl: 2.25rem; --text-4xl: 3.25rem;
  --tracking-display: -.02em; --tracking-body: 0em;
  --leading-display: 1.1; --leading-body: 1.4;
  --ease-enter: cubic-bezier(.16,1,.3,1);
  --ease-standard: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-spring: linear(0, 0.0258, 0.09, 0.1763, 0.2732, 0.3724, 0.4683, 0.5573, 0.6376, 0.7082, 0.7689, 0.8202, 0.8628, 0.8976, 0.9256, 0.9476, 0.9648, 0.9778, 0.9875, 0.9945, 0.9994, 1.0026, 1.0047, 1.0058, 1.0062, 1.0062, 1.0059, 1.0055, 1.0049, 1.0043, 1.0036, 1.0031, 1.0025, 1.002, 1.0016, 1.0013, 1);
  --duration-instant: 120ms; --duration-fast: 160ms; --duration-standard: 240ms; --duration-considered: 480ms; --duration-spring: 580ms;
  /* JFSD brand on top: Outfit only, Primary Blue for actions, Midnight for dark grounds, Morocco gold as an accent only. */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --midnight: #100A4A;
  --blue: #1E3EAF;
  --gold: #B27E42;
  --gold-soft: #B49355;
  --gold-ink: #8a5d2b; /* the gold for words: 5:1 on the sand, where the line gold is 3:1 */
  --sand: #F6EFE4;
  --ink: #100A4A;
  font-family: var(--font-body);
  color: var(--foreground);
  line-height: 1.5;
}
.mo-arc *, .mo-arc *::before, .mo-arc *::after, .mo-viewer *, .mo-viewer *::before, .mo-viewer *::after { box-sizing: border-box; }
:where(.mo-arc, .mo-viewer) :where(p, h2, h3, ol, ul, dl, dd, dt, figure) { margin: 0; padding: 0; }
:where(.mo-arc, .mo-viewer) :where(ol, ul) { list-style: none; }
/* Keyboard focus gets the shared ring; pointer focus draws none. */
.mo-arc :focus:not(:focus-visible), .mo-viewer :focus:not(:focus-visible) { outline: none; }
.mo-arc :focus-visible, .mo-viewer :focus-visible { outline: 2px solid color-mix(in oklab, var(--accent-strong) 72%, transparent); outline-offset: 2px; }
.mo-arc :is(input, textarea):focus-visible { outline: none; }
.mo-viewer:focus { outline: none; }
/* The site's Readable font and High contrast settings reach these sections too. */
html[data-a11y-font="1"] :is(.mo-arc, .mo-viewer) { --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif; --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
html[data-a11y-contrast="1"] .mo-arc { --blue: #05206E; --accent: #05206E; --foreground: #0A1020; --ink: #0A1020; --text-secondary: #1A202C; --text-muted: #1A202C; --gold-ink: #0A1020; --border-strong: #0A1020; }
/* High contrast darkens page text; the note under the interest list sits on the photo, so it stays white. */
html[data-a11y-contrast="1"] #join .mo-join-foot p { color: #fff !important; }
.mo-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.mo-wrap { width: 100%; max-width: var(--mw, 1200px); margin-inline: auto; padding-inline: 24px; }
.mo-h2 { margin: 0; color: var(--blue); font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.12; text-wrap: balance; }

/* Words rise in once on screen, from a faded but readable start. */
.mo-motion .mo-reveal { opacity: .3; transform: translateY(14px); transition: opacity 800ms var(--ease-enter), transform 800ms var(--ease-enter); }
.mo-motion .mo-reveal[data-shown] { opacity: 1; transform: none; }

/* ---------- About the Journey: warm sand, the zellige star lattice, the invitation ---------- */
.mo-open { position: relative; isolation: isolate; overflow: hidden; padding: 104px 0 96px; background: transparent; }
/* One continuous ground (Sharon, 16 Nov 2026: "use the background throughout the page"): the same quiet
   zellige lattice runs behind every cream section from About to the interest list, on one element, so
   there are no seams where sections meet. Faint enough that text reads over it. */
.mo-page { background-color: #F6EFE4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23B27E42' stroke-width='1.5' stroke-opacity='.11'%3E%3Cpath d='M24 4 44 24 24 44 4 24Z'/%3E%3Cpath d='M24 14 34 24 24 34 14 24Z' opacity='.5'/%3E%3C/svg%3E"); background-size: 48px 48px; }

.mo-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.mo-about-text { display: grid; gap: 28px; }
.mo-about-head { display: grid; gap: 22px; margin-bottom: 8px; }
.mo-rule { display: block; width: 72px; height: 2px; background: var(--gold); }
.mo-lede { margin: 0; color: var(--ink); font-size: clamp(1.3rem, 1rem + .85vw, 1.75rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.38; text-wrap: pretty; }
.mo-lede strong { font-weight: 600; }
.mo-body { margin: 0; max-width: 62ch; color: var(--text-secondary); font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); line-height: 1.65; }

/* ---------- The fact cards: three photo-backed cards, one shape (Sharon, 16 Nov 2026: back to the photo
   cards, three facts; no arches, no symbols). Rounded rectangles with a fine gold frame inside. ---------- */
.mo-open > .mo-wrap { container: moarches / inline-size; }
.mo-about-side { align-self: end; }
.mo-stats { margin-top: 72px; }
/* Sharon, 16 Nov 2026 ("think OCD"): the three cards share rows through subgrid, so the big stat, the title
   and the subline start at exactly the same height in every card, at the same sizes. */
.mo-stats dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(clamp(170px, 18cqi, 250px), 1fr) auto auto auto; gap: 0 28px; margin: 0; }
.mo-stat { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; padding: 30px 28px 30px; border-radius: 22px; color: #fff; box-shadow: 0 22px 48px rgb(16 10 74 / .2); }
.mo-stat::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgb(16 10 74 / .94) 0%, rgb(16 10 74 / .62) 42%, rgb(16 10 74 / .08) 74%), var(--img) center / cover no-repeat; transform: scale(1.04); transition: transform 1.4s var(--ease-enter); }
.mo-stat::after { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1px solid rgb(227 196 141 / .6); border-radius: 14px; pointer-events: none; }
.mo-stat:hover::before { transform: scale(1.09); }
.mo-stat .lbl { grid-row: 3; align-self: start; min-width: 0; margin: 0; color: #fff; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; text-wrap: balance; }
.mo-stat .fig { grid-row: 2; align-self: end; min-width: 0; margin: 0 0 12px; }
.mo-stat .cap { grid-row: 4; align-self: start; min-width: 0; margin: 6px 0 0; color: rgb(255 255 255 / .84); font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; text-wrap: pretty; }
.mo-num { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: clamp(2.75rem, 1.4rem + 3.4cqi, 4.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.mo-num .suf { margin-left: .06em; color: #E3C48D; font-size: .6em; }
/* The final value reserves the width underneath, so nothing moves while the digits count. */
.mo-num .dig { display: inline-grid; justify-items: start; }
.mo-num .sizer, .mo-num .live { grid-area: 1 / 1; }
.mo-num .sizer { visibility: hidden; }
/* Entry: the cards rise in sequence and their photos settle while the numbers count. Never blank. */
.mo-motion .mo-stat { opacity: .45; transform: translateY(14px); transition: opacity 520ms var(--ease-enter), transform 760ms var(--ease-enter); transition-delay: calc(var(--i) * 110ms); }
.mo-motion .mo-stat::before { transform: scale(1.12); }
.mo-motion .mo-stats[data-shown] .mo-stat { opacity: 1; transform: none; }
.mo-motion .mo-stats[data-shown] .mo-stat::before { transform: scale(1.04); }
.mo-motion .mo-stats[data-shown] .mo-stat:hover::before { transform: scale(1.09); }
@media (prefers-reduced-motion: reduce) { .mo-stat::before { transition: none; } }
/* Tablets: still three across, a little taller and tighter, so the words always fit inside the card. */
@container moarches (max-width: 820px) {
  .mo-stats dl { gap: 16px; }
  .mo-stat { padding: 22px 16px 20px; border-radius: 18px; }
  .mo-stat::after { inset: 8px; border-radius: 12px; }
  .mo-stat .lbl { font-size: .9375rem; }
  .mo-stat .cap { font-size: .875rem; }
}
/* Phones: one card per row, a wider shape so each stays a sensible height. Nothing runs off the side. */
@container moarches (max-width: 560px) {
  .mo-stats dl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 18px; }
  .mo-stat { grid-row: auto; grid-template-rows: minmax(120px, 1fr) auto auto auto; min-height: 300px; padding: 26px 24px 26px; border-radius: 18px; }
  /* Stacked, each card keeps the same inner layout: the subline always takes two lines of room. */
  .mo-stat .cap { min-height: calc(2 * 1.45em); }
  .mo-stat::after { border-radius: 11px; }
}

/* Who can join and Pricing: left aligned, each led by a small gold diamond. */
.mo-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 40px; margin: 48px 0 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; }
.mo-notes li { position: relative; padding-left: 22px; }
.mo-notes li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 7px; height: 7px; border: 1px solid #B27E42; transform: rotate(45deg); }
.mo-note-k { display: block; margin-bottom: 2px; color: var(--gold-ink); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.mo-fine { margin: 20px 0 0; color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }



/* ---------- Where We'll Go (Arc scroll-story): the copy scrolls, the photo view stays pinned ---------- */
.mo-route-band { background: transparent; }
/* --story-h is the screen under the header. Above 1,440px the page is zoomed
   by --z, so the height is divided by that zoom and still fills the real screen.
   Below 1,441px --z is unset and this is plain 100vh minus the header. */
.mo-story { --story-h: calc(100vh / var(--z, 1) - var(--hdr-h, 76px)); width: min(100%, var(--mw, 1200px)); min-width: 0; margin-inline: auto; padding-inline: 24px; container-type: inline-size; color: var(--foreground); font-size: var(--text-sm); line-height: var(--leading-body); }
.mo-track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: 72px; }
.mo-copy { grid-column: 1; grid-row: 1; min-width: 0; padding-bottom: max(56px, calc(var(--story-h) / 2 - 340px)); }
.mo-intro { display: grid; gap: 14px; padding-top: 112px; padding-bottom: 24px; }
.mo-intro h2 { margin: 0; color: var(--blue); font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 2.2cqi, 2.625rem); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.12; text-wrap: balance; }
.mo-intro p { margin: 0; max-width: 34ch; color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.5; text-wrap: pretty; }
.mo-steps { margin: 0; padding: 0; list-style: none; }
.mo-step { position: relative; display: grid; align-content: center; gap: 10px; min-height: calc(var(--story-h) * .62); padding-left: 28px; opacity: .3; transition: opacity var(--duration-considered) var(--ease-standard); }
/* Without the script every stop reads at full strength. */
.mo-story:not([data-live]) .mo-step { opacity: 1; }
/* A gold route line runs down the stops; the stop being read gets a filled marker on it. Fez, the optional extension, is dashed. */
.mo-step::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 1px; background: color-mix(in oklab, var(--gold) 45%, transparent); }
.mo-step[data-extension]::before { background: repeating-linear-gradient(to bottom, color-mix(in oklab, var(--gold) 55%, transparent) 0 6px, transparent 6px 12px); }
.mo-step::after { content: ""; position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin-top: -5.5px; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--sand); transition: background-color var(--duration-standard) var(--ease-standard), transform var(--duration-spring) var(--ease-spring); }
.mo-step[data-active] { opacity: 1; }
.mo-step[data-active]::after { background: var(--gold); transform: scale(1.25); }
.mo-kicker { margin: 0; color: var(--gold-ink); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.mo-step h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2cqi, 2rem); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.15; }
.mo-step p:not(.mo-kicker) { margin: 0; max-width: 44ch; color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.6; }

.mo-visual { position: sticky; top: var(--hdr-h, 76px); z-index: 2; grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; height: var(--story-h); min-width: 0; }
.mo-view { width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface-raised); box-shadow: var(--shadow-floating); }
.mo-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px 22px; }
.mo-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
.mo-mark { width: 14px; height: 14px; border-radius: 4px 50% 50% 50%; background: var(--gold); }
.mo-status { display: inline-grid; justify-items: end; color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.mo-status span { grid-area: 1 / 1; white-space: nowrap; }
.mo-tabs { display: grid; grid-template-columns: 1.35fr 1fr 1.2fr .7fr; gap: 6px; padding: 0 14px 14px; border-bottom: 1px solid var(--border-subtle); }
.mo-tab { display: grid; align-content: space-between; gap: 7px; min-width: 0; min-height: 44px; padding: 6px 6px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font: inherit; font-size: var(--text-xs); font-weight: 500; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.mo-tab[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .mo-tab:hover { background: var(--surface-muted); } }
.mo-tab .t { line-height: 1.25; overflow-wrap: anywhere; }
.mo-tab .tr { position: relative; height: 3px; overflow: hidden; border-radius: 2px; background: var(--border); }
.mo-tab[data-extension] .tr { background: repeating-linear-gradient(90deg, var(--border) 0 5px, transparent 5px 8px); }
.mo-tab .f { position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
/* The photos: stacked, the active one opaque. 3:2 is each photo's own frame, so nothing is cropped further. */
.mo-canvas { position: relative; aspect-ratio: 3 / 2; max-height: calc(var(--story-h) - 190px); width: 100%; overflow: hidden; background: var(--midnight); }
.mo-photo { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 672ms var(--ease-enter); }
.mo-photo[data-on] { opacity: 1; }
.mo-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: 50% 60%; }
.mo-capbar { position: absolute; right: 0; bottom: 0; left: 0; display: grid; padding: 64px 22px 18px; background: linear-gradient(to top, rgb(16 10 74 / .78), rgb(16 10 74 / 0)); color: #fff; pointer-events: none; }
.mo-cap { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--text-sm); font-weight: 500; }
/* The extension tag: gold with Midnight ink (white on gold is under 3:1). */
.mo-ext { padding: 3px 10px; border: 1px solid rgb(255 255 255 / .55); border-radius: var(--radius-pill); background: var(--gold); color: var(--ink); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
/* Words that change in the view (the status and the caption) arrive with a small blur rise. */
.mo-motion .mo-rise { animation: mo-rise 240ms var(--ease-enter) both; }
.mo-motion .mo-rise-late { animation: mo-rise 240ms var(--ease-enter) 120ms both; }
@keyframes mo-rise { from { opacity: 0; transform: translateY(7px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
/* Stacked: the view pins under the header and the copy scrolls up beneath it. */
@container (max-width: 899px) {
  .mo-track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mo-visual { grid-column: 1; grid-row: 1; height: auto; padding: 12px 0 10px; background: var(--sand); }
  .mo-visual::after { content: ""; position: absolute; right: 0; bottom: -28px; left: 0; height: 28px; background: linear-gradient(var(--sand), transparent); pointer-events: none; }
  .mo-copy { grid-column: 1; grid-row: 2; padding-bottom: calc(18vh / var(--z, 1)); }
  .mo-intro { padding-top: 28px; }
  .mo-intro p { font-size: var(--text-base); }
  .mo-step { min-height: calc(46vh / var(--z, 1)); gap: 8px; }
  .mo-step h3 { font-size: var(--text-xl); }
  .mo-step p:not(.mo-kicker) { font-size: var(--text-base); }
  .mo-view { border-radius: 20px; box-shadow: var(--shadow-raised); }
  .mo-view-head { padding: 10px 14px 6px 16px; }
  .mo-tabs { grid-template-columns: 1.5fr 1.15fr 1.15fr .7fr; padding: 0 8px 8px; gap: 2px; }
  .mo-tab { padding: 4px 4px 2px; font-size: .6875rem; min-height: 40px; }
  .mo-canvas { aspect-ratio: 16 / 9; }
  .mo-capbar { padding: 40px 14px 10px; }
  .mo-cap { font-size: var(--text-xs); gap: 6px 8px; }
  .mo-ext { font-size: .625rem; padding: 2px 8px; }
}

/* ---------- Sand, Spice, and Story (Arc lightbox-gallery) ---------- */
.mo-photos { padding: 112px 0 64px; background: transparent; }
.mo-photos-head { margin-bottom: 32px; }
.mo-gallery { width: 100%; min-width: 0; }
/* One even grid (Sharon, 13 Nov 2026): every tile 3:2, the same size, the same gap and corners. Three across, two on phones. */
.mo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .mo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* A thumbnail never scales on press: it is where the zoom starts, so its box must stay true. It answers with brightness instead. */
.mo-thumb { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--surface-muted); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.mo-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); user-select: none; -webkit-user-drag: none; transition: filter var(--duration-fast) var(--ease-standard); }
.mo-thumb:active img { filter: brightness(.9); }
@media (hover: hover) and (pointer: fine) { .mo-thumb:hover img { filter: brightness(.94); } }
/* While its photo is in the viewer the slot stays empty, so the photo visibly returns to it. */
.mo-thumb[data-hidden] { visibility: hidden; }

/* The viewer opens on Midnight: photos read richer on a dark ground. */
.mo-viewer { --background: #0b0736; --surface: #171147; --surface-raised: #1c1652; --surface-muted: #221b5c; --foreground: #fff; --text-secondary: #D2E9FF; --text-muted: #a9b6d6; --border: rgb(210 233 255 / .18); --accent-strong: #D2E9FF;
  position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; color: var(--foreground); font-size: var(--text-sm); line-height: var(--leading-body); touch-action: none; overscroll-behavior: contain; }
.mo-viewer[data-closing] { pointer-events: none; }
.mo-veil { position: absolute; inset: 0; background: var(--background); opacity: 0; }
.mo-stage { position: absolute; inset: 0; cursor: default; user-select: none; }
.mo-strip { position: absolute; inset: 0; will-change: transform; }
.mo-slide { position: absolute; top: 0; }
.mo-frame-ph { position: absolute; transform-origin: 0 0; will-change: transform; }
.mo-zoom { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: var(--surface-muted); cursor: zoom-in; will-change: transform; transform-origin: 50% 50%; }
.mo-viewer[data-zoomed] .mo-zoom { cursor: grab; }
.mo-viewer[data-panning], .mo-viewer[data-panning] .mo-zoom { cursor: grabbing; }
.mo-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.mo-layer + .mo-layer { opacity: 0; transition: opacity var(--duration-standard) var(--ease-standard); }
.mo-layer + .mo-layer[data-loaded] { opacity: 1; }
.mo-chrome { opacity: 0; }
.mo-top { position: absolute; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 0 22px; }
.mo-counter { margin: 0; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mo-actions { display: flex; gap: 4px; }
.mo-ib, .mo-nb { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--foreground); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard); }
.mo-ib:active, .mo-nb:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .mo-ib:hover { background: var(--surface-muted); } }
.mo-ib svg, .mo-nb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mo-side { position: absolute; top: 50%; right: 16px; left: 16px; display: flex; justify-content: space-between; height: 0; pointer-events: none; }
.mo-nb { width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--border); background: var(--surface-raised); box-shadow: var(--shadow-raised); pointer-events: auto; }
.mo-nb:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 639px) { .mo-side { display: none; } }
.mo-bottom { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); pointer-events: none; }
.mo-captions { display: grid; align-items: end; justify-items: center; min-width: 0; padding-inline: 20px; }
.mo-captions > div { grid-area: 1 / 1; min-width: 0; max-width: 36rem; text-align: center; }
.mo-captions p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-captions .ct { font-weight: 500; }
.mo-captions .cx { color: var(--text-secondary); font-size: var(--text-xs); }
/* Six photos fit on any phone, so the strip never needs to scroll sideways: it centers and wraps nothing. */
.mo-thumbs { display: flex; align-items: center; justify-content: center; gap: 4px; height: 52px; padding-inline: 12px; overflow: hidden; pointer-events: auto; }
/* The current photo widens to its own shape, so the strip reads like a scrubber. */
.mo-st { position: relative; flex: none; width: 36px; height: 48px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--surface-muted); opacity: .5; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: width var(--duration-standard) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard); }
.mo-st[aria-current] { opacity: 1; }
.mo-st img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .mo-st:hover { opacity: .8; } .mo-st[aria-current]:hover { opacity: 1; } }

/* ---------- The interest list (Arc login-immersive): a glass card over the Hassan II Mosque at dusk ---------- */
.mo-join-band { padding: 40px 0 112px; background: transparent; }
.mo-join { --on-photo: oklch(98.5% 0 0); --on-photo-muted: oklch(98.5% 0 0 / .82); container: mojoin / inline-size; position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; width: 100%; min-width: 0; min-height: 760px; overflow: hidden; border-radius: var(--radius-surface); background: var(--midnight); color: var(--on-photo); scroll-margin-top: 96px; }
.mo-join-photo { position: absolute; inset: 0; z-index: -2; }
.mo-join-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 22% 60%; }
.mo-motion .mo-join-photo { transform: scale(1.08); transition: transform 1.8s var(--ease-enter); }
.mo-motion .mo-join[data-shown] .mo-join-photo { transform: none; }
.mo-join-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 10 74 / .42) 0%, rgb(16 10 74 / .18) 38%, rgb(16 10 74 / .5) 100%); }
.mo-join-top { display: flex; min-width: 0; min-height: 64px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-8); }
.mo-join-top .mo-brand { color: inherit; font-size: var(--text-base); line-height: 1; }
.mo-join-top .mo-mark { background: var(--gold-soft); }
.mo-join-top .note { color: var(--on-photo-muted); font-size: var(--text-sm); }
.mo-join-stage { display: grid; min-width: 0; place-items: center; padding: var(--space-4) var(--space-4) var(--space-10); }
/* Frosted glass over the photo: a translucent surface, a hairline edge, and the shadow of a layer that floats. */
.mo-card { container: mocard / inline-size; position: relative; width: min(100%, 480px); min-width: 0; overflow: hidden; border: 1px solid color-mix(in oklab, var(--border-strong) 70%, transparent); border-radius: var(--radius-surface); background: color-mix(in oklab, var(--surface) 82%, transparent); box-shadow: var(--shadow-floating); color: var(--foreground); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mo-card { background: var(--surface); } }
.mo-motion .mo-card { opacity: .45; transform: translateY(18px) scale(.985); transition: opacity 480ms var(--ease-enter) 180ms, transform 700ms var(--ease-spring) 180ms; }
.mo-motion .mo-join[data-shown] .mo-card { opacity: 1; transform: none; }
.mo-card-view { position: relative; overflow: hidden; }
.mo-card-step { display: grid; min-width: 0; padding: var(--space-8); }
.mo-card-step[hidden] { display: none; }
.mo-card-step[data-leaving] { position: absolute; top: 0; right: 0; left: 0; pointer-events: none; }
.mo-motion .mo-card-step[data-leaving] { animation: mo-leave 180ms var(--ease-standard) both; }
.mo-motion .mo-card-step[data-entering] { animation: mo-enter 420ms var(--ease-enter) 60ms both; }
@keyframes mo-leave { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes mo-enter { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.mo-card-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.mo-card-head h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; letter-spacing: var(--tracking-display); line-height: var(--leading-display); text-wrap: balance; outline: none; }
.mo-card-head p { margin: 0; color: var(--text-secondary); font-size: var(--text-base); line-height: 1.5; text-wrap: pretty; }
.mo-form { display: grid; gap: var(--space-4); }
.mo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
/* Arc Input and Textarea: label above, the box answers focus with its border alone. */
.mo-field { display: grid; min-width: 0; }
.mo-field label { margin-bottom: var(--space-2); color: var(--foreground); font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); }
.mo-field input, .mo-field textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--foreground); font: inherit; font-size: max(16px, var(--text-sm)); line-height: var(--leading-body); outline: none; transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.mo-field input { min-height: var(--control-height-md); padding: 0 var(--space-3); }
.mo-field textarea { min-height: 110px; padding: var(--space-3); resize: vertical; }
.mo-field :is(input, textarea)::placeholder { color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .mo-field :is(input, textarea):hover:not([aria-invalid="true"]) { border-color: var(--foreground); } }
.mo-field :is(input, textarea):focus-visible, .mo-field :is(input, textarea):focus { border-color: var(--foreground); }
.mo-field :is(input, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.mo-msg { display: block; overflow: hidden; }
.mo-msg span { display: block; padding-top: var(--space-2); color: var(--danger); font-size: var(--text-xs); line-height: var(--leading-body); }
.mo-msg:empty { display: none; }
.mo-suggest p { margin: 0; padding: var(--space-2) 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-body); overflow-wrap: anywhere; }
.mo-tb { border: 0; border-radius: 4px; padding: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color var(--duration-fast) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mo-tb:hover { text-decoration-color: currentColor; } }
.mo-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Arc Button, large, in Primary Blue: a spinner while sending, a check when it lands. */
.mo-send { position: relative; display: inline-flex; width: 100%; min-height: var(--control-height-lg); margin-top: var(--space-2); align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-5); border: 1px solid var(--blue); border-radius: var(--radius-control); background: var(--blue); color: #fff; font: inherit; font-size: var(--text-base); font-weight: 600; line-height: var(--leading-body); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
@media (hover: hover) and (pointer: fine) { .mo-send:hover:not([aria-busy="true"]) { opacity: .91; box-shadow: var(--shadow-resting); } }
.mo-send:active:not([aria-busy="true"]) { opacity: .84; transform: scale(.985); }
.mo-send[aria-busy="true"] { cursor: progress; }
.mo-send .lb { display: inline-flex; align-items: center; gap: var(--space-2); }
.mo-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mo-send[data-loading] .lb { opacity: 0; }
.mo-send .spin { position: absolute; left: 50%; top: 50%; width: 1rem; height: 1rem; margin: -.5rem; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mo-spin .7s linear infinite; }
@keyframes mo-spin { to { transform: rotate(360deg); } }
.mo-fail { margin: 0; padding: var(--space-3) var(--space-4); border: 1px solid color-mix(in oklab, var(--danger) 45%, transparent); border-radius: var(--radius-control); background: color-mix(in oklab, var(--danger) 7%, var(--surface)); color: var(--foreground); font-size: var(--text-sm); line-height: var(--leading-body); outline: none; }
.mo-fail:empty { display: none; }
.mo-fail a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Sent: the envelope, the thanks, then the address it went to and the way back to edit it. */
.mo-env { display: block; width: 96px; height: 80px; margin: calc(var(--space-2) * -1) 0 var(--space-5) -8px; overflow: visible; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.mo-env .paper { fill: var(--surface); }
.mo-env .ink { opacity: .42; }
.mo-address { display: flex; min-width: 0; align-items: center; gap: var(--space-3); border: 1px solid color-mix(in oklab, var(--border-strong) 70%, transparent); border-radius: var(--radius-control); padding: var(--space-3) var(--space-4); color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-body); }
.mo-address svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mo-address .a { flex: 1; min-width: 0; color: var(--foreground); overflow-wrap: anywhere; }
.mo-address .mo-tb { flex: none; }
.mo-join-foot { display: flex; min-width: 0; min-height: 56px; align-items: center; justify-content: center; padding: var(--space-3) var(--space-6) var(--space-5); color: var(--on-photo-muted); font-size: var(--text-sm); line-height: var(--leading-body); text-align: center; }
.mo-join-foot p { margin: 0; max-width: 60ch; text-wrap: balance; }
@container mojoin (max-width: 520px) {
  .mo-join-top { padding-inline: var(--space-4); }
  .mo-join-stage { padding: var(--space-2) var(--space-3) var(--space-4); }
  .mo-join-foot { padding-inline: var(--space-4); font-size: var(--text-xs); }
}
@container mocard (max-width: 400px) {
  .mo-card-step { padding: var(--space-6) var(--space-5); }
  .mo-card-head h2 { font-size: var(--text-2xl); }
  .mo-pair { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .mo-address { padding-inline: var(--space-3); }
}
/* Wide: the card sits right, so the mosque stays in view on the left. */
@container mojoin (min-width: 900px) { .mo-join-stage { justify-items: end; padding-right: var(--space-16); } .mo-join-foot { justify-content: flex-end; padding-right: var(--space-16); } .mo-join-foot p { max-width: 480px; text-align: center; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 900px) {
  .mo-about { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mo-open { padding: 64px 0 56px; }
  .mo-stats { margin-top: 48px; }
  .mo-photos { padding: 72px 0 40px; }
  .mo-join-band { padding: 24px 0 72px; }
}
@media (max-width: 600px) {
  .mo-wrap { padding-inline: 16px; }
}

/* Reduced motion: no drift, no transitions on the stops, the finished states at once. */
@media (prefers-reduced-motion: reduce) {
  .mo-step, .mo-step::after, .mo-tab, .mo-thumb img, .mo-st, .mo-layer + .mo-layer, .mo-field :is(input, textarea), .mo-tb, .mo-send { transition-duration: 0ms !important; }
  .mo-send .spin { animation-duration: 1.4s; }
  .mo-photo { transition-duration: 160ms; }
}

/* Mission Co-Chairs, front and center in the banner (Dana, 26 Oct 2026): set like a line on the
   invitation, a gold label and the two names, between the promise and the buttons. */
.mo-hero-chairs { display: grid; gap: 8px; margin: 22px 0 26px; padding-top: 18px; border-top: 1px solid rgb(201 162 90 / .55); max-width: 30rem; }
.mo-hero-chairs-k { color: #E3C98F; font-family: var(--font-body, Outfit), sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.mo-hero-chairs-n { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #fff; font-family: var(--font-display, Outfit), sans-serif; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.mo-hero-chairs-n i { width: 7px; height: 7px; border: 1px solid #E3C98F; transform: rotate(45deg); }

/* Space is limited (Sharon, 13 Nov 2026): a quiet line under the banner buttons, lined up with them,
   with clear room above so nothing touches. Sized to its words, no box. */
.hero-t2 .mo-hero-note { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 0; padding-left: 6px; max-width: none; color: rgb(255 255 255 / .86); font-size: .9375rem; font-weight: 400; line-height: 1.45; }
.mo-hero-note-dot { flex: 0 0 auto; width: 6px; height: 6px; border: 1px solid #E3C98F; transform: translateY(-2px) rotate(45deg); }

/* Add me to the list, down the page (Sharon, 13 Nov 2026): each one is a small composed moment in the
   page's own language. A gold arch with a Star of David draws in, a warm line, the site button with a soft
   gold shimmer every few seconds, and a quiet Space is limited. All jump to the one form. */
.mo-moment { display: grid; justify-items: center; gap: 14px; text-align: center; }
.mo-moment-in { display: grid; justify-items: inherit; gap: 14px; }
.mo-moment-orn svg { display: block; overflow: visible; }
.mo-moment-orn .line { fill: none; stroke: #B49355; stroke-width: 1.2; stroke-linecap: round; }
.mo-moment-line { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.mo-moment-note { margin: 0; color: var(--text-muted); font-size: .875rem; line-height: 1.4; }
.mo-moment .btn { margin: 4px 0 0; }
/* After the arches: centered under the row, with room on both sides. */
.mo-moment-c { margin-top: 64px; }
/* At the end of the route: the dashed Fez line runs on and ends in the arch, the words beside it. */
.mo-moment-route { position: relative; justify-items: start; margin-top: 8px; padding: 56px 0 0 28px; text-align: left; }
.mo-moment-route::before { content: ""; position: absolute; top: 0; left: 5px; width: 1px; height: 48px; background: repeating-linear-gradient(to bottom, color-mix(in oklab, var(--gold) 55%, transparent) 0 6px, transparent 6px 12px); }
.mo-moment-route .mo-moment-in { justify-items: start; }

/* The button: a slight lift on hover and a soft gold sweep every few seconds, once it is on screen. */
.mo-shine { position: relative; isolation: isolate; overflow: hidden; transition: transform 200ms var(--ease-enter, ease), box-shadow 200ms var(--ease-enter, ease); }
.mo-shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(227 196 141 / .5) 50%, transparent 70%); transform: translateX(-130%); pointer-events: none; }
.mo-shine:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 12px 26px rgb(30 62 175 / .28); }
.mo-moment[data-shown] .mo-shine::after { animation: mo-shine 6.5s var(--ease-in-out, ease-in-out) 1.2s infinite; }
@keyframes mo-shine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
/* The arch draws in when the moment reaches the screen. Before that it is already a faint outline, never blank. */
.mo-motion .mo-moment-orn .line { stroke-dasharray: 1.02; stroke-dashoffset: 1.02; transition: stroke-dashoffset 1400ms var(--ease-in-out, ease-in-out); }
.mo-motion .mo-moment[data-shown] .mo-moment-orn .line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .mo-shine::after { animation: none !important; display: none; }
  .mo-shine:hover { transform: none; }
  .mo-moment-orn .line { transition: none !important; stroke-dashoffset: 0 !important; transform: none !important; }
}
html[data-motion="reduce"] .mo-shine::after { animation: none !important; display: none; }
html[data-motion="reduce"] .mo-shine:hover { transform: none; }
html[data-motion="reduce"] .mo-moment-orn .line { transition: none !important; stroke-dashoffset: 0 !important; transform: none !important; }

/* The banner (Sharon, 16 Nov 2026: the photo fills the whole banner, no color blocks). Wide screens: Dana's
   photo runs edge to edge, drawn a little wider than the band and pinned left, so the Koutoubia and the tiled
   fountain sit just right of center while the words sit over the palms and sky on the left. The band is tall
   enough to show the tower and the fountain together, framed on the lower middle. A soft scrim from the left,
   with no edge, keeps the words readable and lets the photo read through. Phones and tablets: the shared
   stacked banner with the whole photo above the words. */
@media (min-width: 1001px) {
  header.hero-t2 {
    --hero-src: var(--hero-img-xl, var(--hero-img));
    min-height: clamp(600px, 56vw, 780px);
    background:
      linear-gradient(90deg, rgb(16 10 74 / .80) 0%, rgb(16 10 74 / .66) 24%, rgb(16 10 74 / .40) 38%, rgb(16 10 74 / .14) 48%, rgb(16 10 74 / 0) 56%),
      var(--hero-src) 0 72% / 118% auto no-repeat,
      var(--midnight, #100A4A);
  }
  header.hero-t2 .hero-t2-in > * { text-shadow: 0 1px 14px rgb(16 10 74 / .5); }
}
@media (min-width: 1441px) { header.hero-t2 { min-height: 820px; } }
@media (max-width: 1000px) {
  header.hero-t2 { --hero-photo-h: min(66.67vw, 520px); }
  header.hero-t2::before { height: calc(var(--hero-photo-h) + 28px);
    background:
      linear-gradient(to top, var(--midnight, #100A4A) 0, rgb(16 10 74 / .55) 28px, rgb(16 10 74 / 0) 72px),
      var(--hero-src, var(--hero-img, none)) 50% 55% / cover no-repeat; }
}
