/* ══════════════════════════════════════════════════════════════════════════════════════
   THE RAJMAHAL: styles
   1. Fonts & tokens        4. Top bar, rail, progress, scroll cue     7. Fallback & accessibility
   2. Stage & intro         5. Chapters (01 to 07) and their scroll lengths
   3. Type & small parts    6. RSVP dialog, toast
   ══════════════════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────── 1. Fonts & tokens ───────────────────────────── */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-wght-normal.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: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-wght-italic.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: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin-wght-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --champagne: #F5E6D3;
  --cream: #FAF3EA;
  --ivory: #FFFBF5;
  --terracotta: #C8826B;
  --gold: #B88B4A;
  --gold-light: #DEC08A;
  --gold-dark: #8C652D;
  --espresso: #1E1815;
  --charcoal: #2C231E;
  --navy: #070B1A;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* one fluid unit: every chapter scales with the smaller side of the screen */
  --u: clamp(0.80rem, min(4.15vw, 2.02vh), 1.08rem);
  /* the room the scroll cue takes at the foot of the screen: words and buttons always stay above it */
  --cue: 3.3rem;
}
@supports (height: 1svh) { :root { --u: clamp(0.80rem, min(4.15vw, 2.02svh), 1.08rem); } }

/* Tones: the chrome follows the time of day; each chapter also carries its own */
[data-tone="day"]   { --ink: #1E1815; --ink-soft: rgba(44, 35, 30, .80); --paper: #FAF3EA; --veil: 250, 243, 234; --accent: #8C652D; --hair: rgba(140, 101, 45, .50); --halo: rgba(250, 243, 234, .70); }
[data-tone="dusk"]  { --ink: #FBF3E8; --ink-soft: rgba(251, 243, 232, .84); --paper: #1E1815; --veil: 36, 19, 15; --accent: #E6C894; --hair: rgba(230, 200, 148, .50); --halo: rgba(30, 14, 10, .65); }
[data-tone="night"] { --ink: #FBF3E8; --ink-soft: rgba(251, 243, 232, .82); --paper: #111528; --veil: 6, 10, 24; --accent: #E6C894; --hair: rgba(230, 200, 148, .46); --halo: rgba(4, 8, 20, .70); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--champagne); }
body { margin: 0; font-family: var(--sans); color: var(--espresso); background: var(--champagne); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ol, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(184, 139, 74, .3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ───────────────────────────── 2. Stage & intro ───────────────────────────── */
.stage { position: fixed; inset: 0 0 auto 0; height: 100vh; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #f1d9bf 0%, #f5e6d3 55%, #e6c9ad 100%); }
@supports (height: 1lvh) { .stage { height: 100lvh; } }
.stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.has-gl .stage canvas { opacity: 1; }

.intro { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: radial-gradient(120% 90% at 50% 40%, #FDF8F1 0%, #F7EBDC 55%, #F0DCC6 100%);
  transition: opacity 1.25s var(--ease), visibility 0s linear 1.25s; }
.is-ready .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .intro { display: none; }
.intro__inner { display: grid; justify-items: center; gap: 1.05rem; animation: introIn 1.1s var(--ease) both; }
.intro__mono { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid rgba(184, 139, 74, .7); display: grid; place-items: center;
  font: 400 1.5rem/1 var(--serif); color: var(--espresso); box-shadow: 0 0 0 6px rgba(184, 139, 74, .08); }
.intro .eyebrow { color: var(--gold-dark); }
.intro__title { font: italic 400 clamp(1.6rem, 6.2vw, 2.3rem)/1.15 var(--serif); color: var(--espresso); }
.intro__bar { width: 7.5rem; height: 1px; background: rgba(184, 139, 74, .25); overflow: hidden; margin-top: .4rem; }
.intro__bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(.04); transition: transform .5s ease; }
@keyframes introIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────────────────────────── 3. Type & small parts ───────────────────────────── */
.eyebrow { font: 600 .66em/1.2 var(--sans); letter-spacing: .30em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot, .when .dot, .modal__sub .dot { display: inline-block; margin: 0 .7em; color: var(--gold); letter-spacing: 0; }
.title { font: 300 2.9em/1.03 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.lede { font: italic 400 1.42em/1.38 var(--serif); color: var(--ink-soft); text-wrap: balance; }
.lede--small { font: 400 .86em/1.6 var(--sans); font-style: normal; letter-spacing: .01em; }
.overline { font: 600 .64em/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.overline--soft { color: var(--ink-soft); font-weight: 500; }
.strong { font-style: normal; font-weight: 500; color: var(--ink); }
.amp { font-family: var(--serif); font-style: italic; color: var(--gold-dark); }
[data-tone="dusk"] .amp, [data-tone="night"] .amp { color: var(--gold-light); }

.rule { display: block; width: 4.2em; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); position: relative; }
.rule i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.rule--gem { width: 6.4em; }

/* anything still written as a [placeholder] in js/config.js is underlined, so it cannot be missed */
.is-placeholder { border-bottom: 1px dashed rgba(184, 139, 74, .6); }

/* staggered entrance for anything marked .rise inside an active chapter */
.rise { opacity: 0; transform: translate3d(0, 1.1em, 0); transition: opacity .5s ease, transform .5s ease; will-change: opacity, transform; }
.is-active .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease) calc(var(--i, 0) * 95ms + 80ms), transform 1.15s var(--ease) calc(var(--i, 0) * 95ms + 80ms); }

.pill { display: inline-flex; align-items: center; gap: .55rem; height: 2.25rem; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--hair);
  font: 600 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: rgba(var(--veil), .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .35s ease, color .35s ease, border-color .35s ease, transform .2s ease; white-space: nowrap; }
.pill:hover { border-color: var(--gold); }
.pill:active { transform: scale(.97); }
.pill--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.pill--line { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill--line:hover { background: rgba(184, 139, 74, .14); }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: .9em; min-height: 3.1rem; padding: 0 1.8rem; border-radius: 999px;
  font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--espresso); background: var(--cream);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(184, 139, 74, .55); transition: background .35s ease, color .35s ease, transform .25s var(--ease), box-shadow .35s ease; }
.cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(.985); }
.cta__arrow { transition: transform .35s var(--ease); }
.cta:hover .cta__arrow { transform: translateX(.3em); }
.cta--block { width: 100%; background: var(--espresso); color: var(--cream); box-shadow: 0 10px 26px -12px rgba(30, 24, 21, .55); }
.cta--block:hover { background: var(--gold); color: var(--espresso); }
.cta[disabled] { opacity: .6; cursor: progress; }

/* ───────────────────────────── 4. Top bar, rail, progress ───────────────────────────── */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: calc(var(--safe-t) + .8rem) clamp(.9rem, 3.2vw, 2.5rem) 1.6rem;
  background: linear-gradient(180deg, rgba(var(--veil), .62) 0%, rgba(var(--veil), .28) 55%, rgba(var(--veil), 0) 100%);
  transition: opacity .8s ease, transform .8s var(--ease); pointer-events: none; }
.bar > * { pointer-events: auto; }
.is-loading .bar, .is-loading .rail, .is-loading .progress { opacity: 0; transform: translateY(-6px); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); transition: color .6s ease; }
.brand__mono { width: 2.15rem; height: 2.15rem; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; font: 500 1rem/1 var(--serif);
  background: rgba(var(--veil), .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .3s ease; }
.brand:hover .brand__mono { border-color: var(--gold); }
.brand__name { font: 600 .64rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.bar__actions { display: flex; align-items: center; gap: .5rem; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: .8rem; height: .8rem; }
.eq i { width: 2px; height: 4px; background: var(--gold); border-radius: 2px; transition: height .3s ease; }
.eq i:nth-child(2) { height: 7px; }
.is-sound-on .eq i:nth-child(1) { animation: eq .85s ease-in-out infinite; }
.is-sound-on .eq i:nth-child(2) { animation: eq .65s ease-in-out infinite .18s; }
.is-sound-on .eq i:nth-child(3) { animation: eq .78s ease-in-out infinite .32s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 480px) { .pill__label { display: none; } .pill--sound { width: 2.25rem; padding: 0; justify-content: center; } .brand__name { letter-spacing: .22em; } }
@media (max-width: 350px) { .brand__name { display: none; } }

.rail { position: fixed; z-index: 30; right: max(.2rem, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end;
  padding: .35rem 0; transition: opacity .8s ease; }
.rail a { position: relative; display: block; padding: .62rem .72rem .62rem .9rem; font: 600 .6rem/1 var(--sans); letter-spacing: .14em; color: var(--ink-soft); opacity: .62;
  text-shadow: 0 0 10px var(--halo), 0 0 3px var(--halo); transition: opacity .4s ease, color .4s ease; }
.rail a::after { content: ''; position: absolute; right: 0; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor; transform: translate(-1px, -50%); transition: width .4s var(--ease), background .4s ease, border-radius .4s ease; }
.rail a:hover { opacity: 1; }
.rail a[aria-current="true"] { opacity: 1; color: var(--ink); }
.rail a[aria-current="true"]::after { width: .5rem; height: 2px; border-radius: 1px; background: var(--gold); transform: translate(0, -50%); }
.rail__track { display: none; }
.progress { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(var(--veil), .28); pointer-events: none; transition: opacity .8s ease; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transform-origin: left; transform: scaleX(0); }

/* The scroll cue: two chevrons and a line of small capitals at the foot of every screen but the last.
   It says that there is more below, and a tap on it goes to the next chapter. It takes the tone of
   whatever lies under it (js/app.js sets data-tone), so it reads on light and on dark pictures. */
.cue { position: fixed; z-index: 28; left: 50%; bottom: calc(var(--safe-b) + .3rem); transform: translateX(-50%); display: grid; justify-items: center; gap: .42rem;
  min-width: 3rem; min-height: 2.75rem; padding: .55rem 1.1rem .5rem; color: var(--ink); text-shadow: 0 0 12px var(--halo), 0 0 4px var(--halo);
  transition: opacity .6s ease, color .6s ease, visibility 0s linear 0s; }
.cue::before { content: ''; position: absolute; z-index: -1; inset: -.5rem -1.8rem -1.3rem; background: radial-gradient(closest-side, rgba(var(--veil), .62), rgba(var(--veil), .38) 55%, rgba(var(--veil), 0)); pointer-events: none; }
.cue__label { font: 700 .58rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; padding-left: .28em; white-space: nowrap; }
.cue__chevrons { display: grid; justify-items: center; animation: cueDrop 2s cubic-bezier(.45, 0, .55, 1) infinite; }
.cue__chevrons i { display: block; width: .6rem; height: .6rem; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); filter: drop-shadow(0 0 3px var(--halo)); }
.cue__chevrons i + i { margin-top: -.26rem; opacity: .55; }
@keyframes cueDrop { 0%, 100% { transform: translateY(-.12rem); } 50% { transform: translateY(.26rem); } }
.cue:hover .cue__chevrons i, .cue:focus-visible .cue__chevrons i { border-color: var(--ink); }
.cue.is-off, .is-loading .cue, .is-modal-open .cue { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility 0s linear .5s; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .rail { right: 1.4rem; }
  .rail a { font-size: .66rem; padding: .7rem 1rem .7rem 1.2rem; }
}

/* ───────────────────────────── 5. Chapters ─────────────────────────────
   The scroll length of each chapter, in hundredths of the screen height:
     --hold     its words are on screen and the camera glides
     --travel   the camera carries the guest on to the next chapter
   There are no gaps between chapters and nothing waits: the camera moves through both parts, and the
   page scrolls natively (no snapping, no locking). Longer values mean more scrolling for the same move. */
#journey { position: relative; z-index: 10; }
/* a chapter is only a length of scroll: it must never catch a tap meant for the words and buttons of the chapter on screen */
.chapter { position: relative; pointer-events: none; --hold: 48; --travel: 60; }
#chapter-01 { --hold: 44; --travel: 60; }
#chapter-02 { --hold: 50; --travel: 56; }
#chapter-03 { --hold: 58; --travel: 104; }  /* the three functions take longest to read; night falls on the way out */
#chapter-04 { --hold: 44; --travel: 100; }  /* across the suite, to the window and out through it */
#chapter-05 { --hold: 46; --travel: 130; }  /* along the pool, in to the mandap, then the long draw back from the pavilion */
#chapter-06 { --hold: 56; --travel: 56; }
#chapter-07 { --hold: 60; --travel: 100; }  /* the last screen, and one more screen of track so the page can end on it */
.chapter__hold, .chapter__travel { display: block; }
.chapter__hold { height: calc(var(--hold) * 1vh); }
.chapter__travel { height: calc(var(--travel) * 1vh); }
/* each chapter's words live on a stage that fills the screen; it shows only while that chapter is the active one */
.chapter__pin { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; display: grid; overflow: hidden; pointer-events: none; }
@supports (height: 1svh) {
  /* the tracks are measured in small-viewport units, so they never change length while browser bars slide away… */
  .chapter__hold { height: calc(var(--hold) * 1svh); }
  .chapter__travel { height: calc(var(--travel) * 1svh); }
  #chapter-07 .chapter__travel { height: 100lvh; }
  /* …while the stage always fills exactly what is visible, so words anchored to the bottom stay on screen */
  .chapter__pin { height: 100dvh; }
}
.chapter__scrim { grid-area: 1 / 1; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.is-active .chapter__scrim { opacity: 1; transition: opacity 1.1s ease; }
.chapter__body { grid-area: 1 / 1; position: relative; font-size: var(--u); color: var(--ink); pointer-events: none; visibility: hidden; transition: visibility 0s linear .55s; }
.is-active .chapter__body { pointer-events: auto; visibility: visible; transition: none; }

/* 01 · reveal: the names sit in the open sky above the palace */
.chapter--reveal .chapter__pin::before { content: ''; grid-area: 1 / 1; background: linear-gradient(180deg, rgba(250, 243, 234, .50) 0%, rgba(250, 243, 234, .22) 26%, rgba(250, 243, 234, 0) 44%); opacity: 0; transition: opacity 1.2s ease; }
.chapter--reveal.is-active .chapter__pin::before { opacity: 1; }
.chapter--reveal .chapter__body { align-self: start; justify-self: center; text-align: center; display: grid; justify-items: center; gap: .95em;
  padding: calc(var(--safe-t) + 5.3rem) 1.5rem 0; width: 100%; }
.names { font: 300 clamp(2.7rem, min(13.4vw, 7.9vh), 7.2rem)/.98 var(--serif); letter-spacing: -.018em; color: var(--espresso); text-shadow: 0 0 34px rgba(250, 243, 234, .75); }
.names > span { display: block; }
.names .amp { font-size: .62em; line-height: 1.15; }
.chapter--reveal .lede { font-size: 1.36em; color: rgba(44, 35, 30, .88); text-shadow: 0 0 18px rgba(250, 243, 234, .9); }
/* date and venue: two lines on a phone, one line with a dot between them on wide screens */
.lede--pair > span { display: block; }
.lede--pair .dot { display: none; margin: 0 .6em; color: var(--gold-dark); font-style: normal; }
/* the way in: one clear button at the foot of the opening view */
.cta--open { grid-area: 1 / 1; align-self: end; justify-self: center; margin-bottom: calc(var(--safe-b) + var(--cue) + 1rem); pointer-events: auto; background: rgba(255, 251, 245, .94);
  box-shadow: 0 16px 44px -12px rgba(30, 20, 14, .65), inset 0 0 0 1px rgba(184, 139, 74, .7); }
.chapter:not(.is-active) .cta--open { visibility: hidden; pointer-events: none; transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.cta__arrow--down { animation: cue 2.4s ease-in-out infinite; }
.cta:hover .cta__arrow--down { transform: none; }
@keyframes cue { 0%, 100% { transform: translateY(-1px); opacity: .7; } 50% { transform: translateY(4px); opacity: 1; } }

/* 02 · the couple: the invitation rests on the marble floor, the arch and mandap stay clear above */
.chapter--arrival .chapter__scrim { align-self: end; height: 54%; background: linear-gradient(0deg, rgba(var(--veil), .93) 0%, rgba(var(--veil), .84) 46%, rgba(var(--veil), .40) 78%, rgba(var(--veil), 0) 100%); }
.chapter--arrival .chapter__body { align-self: end; justify-self: center; text-align: center; display: grid; justify-items: center; gap: .78em; width: min(100%, 34rem);
  padding: 0 1.6rem calc(var(--safe-b) + var(--cue) + .9rem); }
.couple { display: grid; justify-items: center; font: 400 2.72em/1.02 var(--serif); letter-spacing: -.012em; color: var(--ink); }
.couple .amp { font-size: .66em; line-height: 1.2; color: var(--accent); }
.families { font: italic 400 1.32em/1.36 var(--serif); color: var(--ink); text-wrap: balance; max-width: 23em; }
.when { font: 600 .68em/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }

/* 03 · the celebrations: one row for each function, on a champagne veil below the mandap.
   The name, the date and time in small gold capitals beneath it, then where it is held in italics, with the way
   there on the right when the venue has a map. Fine rules between the rows. One ivory, espresso and gold palette. */
.chapter--ceremony .chapter__scrim { align-self: end; height: 66%; background: linear-gradient(0deg, rgba(var(--veil), .97) 0%, rgba(var(--veil), .93) 62%, rgba(var(--veil), .62) 84%, rgba(var(--veil), 0) 100%); }
.chapter--ceremony .chapter__body { align-self: end; justify-self: center; width: min(100%, 36rem); padding: 0 2.7rem calc(var(--safe-b) + var(--cue) + .55rem) 1.5rem; display: grid; gap: .7em; }
.chapter--ceremony .title { font-size: 2.45em; margin-bottom: .22em; }
.events { border-bottom: 1px solid var(--hair); width: 100%; }
.event { display: grid; row-gap: .2em; padding: .56em 0 .56em; border-top: 1px solid var(--hair); }
.event__name { font: 500 1.62em/1.1 var(--serif); color: var(--ink); }
.event__when { font: 600 .6em/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.event__when .dot { display: inline-block; margin: 0 .5em; color: var(--gold); letter-spacing: 0; }
.event__when abbr { text-decoration: none; }
.event__place { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: .8em; font: italic 400 1.06em/1.25 var(--serif); color: var(--ink-soft); }
.event__map { pointer-events: auto; display: inline-flex; align-items: center; gap: .42em; margin: -.95rem .3rem -.95rem 0; padding: .95rem 0 .95rem .5rem; font: 600 .56rem/1 var(--sans); letter-spacing: .13em; white-space: nowrap; text-transform: uppercase; color: var(--accent); transition: color .3s ease; }
.event__map svg { width: .86rem; height: .86rem; flex: none; }
.event__map span { padding-bottom: .22em; border-bottom: 1px solid var(--hair); }
.event__map:hover { color: var(--ink); }

/* 04 and 05 · one line each, in the middle of the screen, over the suite and over the courtyard at night.
   On every screen shape: centred both ways, on a soft shade of the picture's own tone that fades out all round. */
.chapter--private .chapter__scrim { align-self: center; justify-self: stretch; height: 58%;
  background: radial-gradient(ellipse 78% 50% at 50% 50%, rgba(var(--veil), .74) 0%, rgba(var(--veil), .60) 38%, rgba(var(--veil), .26) 72%, rgba(var(--veil), 0) 100%); }
.chapter--private .chapter__body { align-self: center; justify-self: center; text-align: center; display: grid; justify-items: center; gap: .9em; width: min(100%, 44rem); padding: 0 1.4rem; }
.chapter--private .title { text-shadow: 0 2px 26px rgba(8, 6, 12, .7); }

/* 06 · the venues: the story line across the night sky, the two venues and the way to each on the water below */
.chapter--story .chapter__scrim { background: linear-gradient(180deg, rgba(var(--veil), .60) 0%, rgba(var(--veil), .30) 22%, rgba(var(--veil), 0) 36%, rgba(var(--veil), 0) 60%, rgba(var(--veil), .46) 76%, rgba(var(--veil), .82) 100%); }
.chapter--story .chapter__body { display: grid; grid-template-rows: auto 1fr; justify-items: center; text-align: center; height: 100%; padding: calc(var(--safe-t) + 5rem) 1.6rem calc(var(--safe-b) + var(--cue) + .9rem); }
.story__head { width: min(100%, 44rem); }
.quote { font: italic 300 1.9em/1.2 var(--serif); color: var(--ink); text-wrap: balance; text-shadow: 0 2px 30px rgba(4, 8, 20, .8); }
.venue { align-self: end; display: grid; justify-items: center; gap: .46em; width: min(100%, 26rem); }
.venue .eyebrow { text-shadow: 0 1px 12px rgba(4, 8, 20, .95), 0 0 3px rgba(4, 8, 20, .6); }
/* one row for each venue: its name and place on the left, the way there on the right, a fine rule between the rows */
.venues { width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; border-bottom: 1px solid var(--hair); }
.place { display: grid; grid-template-columns: 1fr auto; column-gap: .7em; align-items: center; padding: .36em 0 .42em; border-top: 1px solid var(--hair); }
.place__name { grid-column: 1; grid-row: 1; font: 400 1.44em/1.05 var(--serif); letter-spacing: -.005em; color: var(--ink); white-space: nowrap; text-shadow: 0 2px 26px rgba(4, 8, 20, .85); }
.place__where { grid-column: 1; grid-row: 2; margin-top: .42em; font: 600 .58em/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; text-shadow: 0 1px 12px rgba(4, 8, 20, .9); }
.place__where .dot { display: inline-block; margin: 0 .55em; color: var(--gold-light); letter-spacing: 0; }
.place__held { display: none; }                                     /* the functions held there: shown where the row has the width for them */
.cta--directions { grid-column: 2; grid-row: 1 / span 2; gap: .5em; min-height: 2.3rem; padding: 0 .85rem; font-size: .56rem; letter-spacing: .14em; white-space: nowrap; pointer-events: auto; }
.cta--directions svg { width: .95rem; height: .95rem; flex: none; color: var(--gold-dark); }
.venue__home { font: italic 400 1.08em/1.3 var(--serif); color: var(--ink-soft); text-shadow: 0 1px 14px rgba(4, 8, 20, .9); }
.venue__home .dot { display: inline-block; margin: 0 .5em; color: var(--gold-light); font-style: normal; }

/* 06 · the invitation: title in the sky, the countdown and the call to action on the water */
.chapter--invite .chapter__scrim { background: linear-gradient(180deg, rgba(var(--veil), .58) 0%, rgba(var(--veil), .24) 20%, rgba(var(--veil), 0) 32%, rgba(var(--veil), 0) 56%, rgba(var(--veil), .46) 74%, rgba(var(--veil), .78) 100%); }
.chapter--invite .chapter__body { display: grid; grid-template-rows: auto 1fr; justify-items: center; text-align: center; height: 100%; padding: calc(var(--safe-t) + 5.1rem) 1.5rem calc(var(--safe-b) + 1.4rem); }
.invite__head { display: grid; justify-items: center; gap: .7em; }
.chapter--invite .title { font-size: 2.42em; }
.invite__head .lede--small { max-width: 22em; }
.invite__foot { align-self: end; display: grid; justify-items: center; gap: 1.25em; }
.countdown { display: grid; justify-items: center; gap: .8em; }
.countdown__row { display: grid; grid-template-columns: repeat(4, auto); }
.countdown__unit { display: grid; justify-items: center; gap: .5em; min-width: 4.5em; padding: .1em .55em; }
.countdown__unit + .countdown__unit { border-left: 1px solid var(--hair); }
.countdown__num { font: 300 2.5em/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); text-shadow: 0 2px 22px rgba(4, 8, 20, .9); }
.countdown__label { font: 600 .54em/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); padding-left: .26em; }
.countdown__note { font: 500 .6em/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); text-shadow: 0 1px 10px rgba(4, 8, 20, .9); }
.countdown.is-done .countdown__note { font: italic 400 1.3em/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold-light); }
.sign { display: grid; justify-items: center; gap: .5em; }
.sign__mono { min-width: 2.7rem; height: 2.7rem; padding: 0 .5rem; border-radius: 999px; border: 1px solid var(--hair); display: grid; place-items: center; font: 500 1rem/1 var(--serif); color: var(--ink); }
.sign__names { font: 600 .6rem/1.5 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); text-shadow: 0 1px 10px rgba(4, 8, 20, .9); }
.sign__top { font: 500 .56rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); opacity: .75; padding: .5rem; transition: opacity .3s ease, color .3s ease; }
.sign__top:hover { opacity: 1; color: var(--gold-light); }

/* very narrow phones: the venue rows keep the name and its button on one line */
@media (max-width: 359px) {
  .chapter--story .chapter__body { padding-left: 1rem; padding-right: 1rem; }
  .place__name { font-size: 1.3em; }
  .cta--directions { padding: 0 .7rem; gap: .35em; font-size: .5rem; letter-spacing: .1em; }
}

/* short phones: tighten the vertical rhythm */
@media (max-height: 640px) and (max-aspect-ratio: 1/1) {
  .chapter--reveal .chapter__body { padding-top: calc(var(--safe-t) + 4.3rem); gap: .7em; }
  .chapter--arrival .chapter__body, .chapter--private .chapter__body { gap: .6em; }
  :root { --cue: 2.9rem; }
  .cue { padding-top: .35rem; gap: .34rem; }
  .cta--open { margin-bottom: calc(var(--safe-b) + var(--cue) + .6rem); min-height: 2.8rem; }
  .couple { font-size: 2.45em; }
  .chapter--ceremony .chapter__body { gap: .5em; }
  .chapter--ceremony .title { font-size: 2.15em; }
  .event { padding: .4em 0 .42em; }
  .chapter--story .chapter__body { padding-top: calc(var(--safe-t) + 4.3rem); padding-bottom: calc(var(--safe-b) + var(--cue) + .5rem); }
  .quote { font-size: 1.62em; }
  .venue { gap: .5em; } .place { padding: .4em 0 .44em; }
  .chapter--invite .chapter__body { padding-top: calc(var(--safe-t) + 4.4rem); }
  .invite__head .lede--small { display: none; }
  .invite__foot { gap: .85em; }
  .sign__top { display: none; }
}

/* ── Desktop & landscape: the palace opens out wide; words move to the left third ── */
@media (min-aspect-ratio: 1/1) and (min-width: 760px) {
  :root { --u: clamp(.86rem, min(1.08vw, 1.9vh), 1.2rem); }
  .names { font-size: clamp(3rem, min(6.6vw, 12.5vh), 8rem); }
  .names > span { display: inline; }
  .names .amp { font-size: .7em; margin: 0 .22em; }
  .chapter--reveal .chapter__body { padding-top: calc(var(--safe-t) + 11.5vh); gap: 1.05em; }
  .chapter--reveal .chapter__pin::before { background: linear-gradient(180deg, rgba(250, 243, 234, .55) 0%, rgba(250, 243, 234, .25) 30%, rgba(250, 243, 234, 0) 52%); }

  /* on wide screens the arrival text sits over the dark sandstone of the arcade: light ink, no pale veil */
  .chapter--arrival { --ink: #FBF3E8; --ink-soft: rgba(251, 243, 232, .86); --veil: 40, 22, 14; --accent: #E6C894; --hair: rgba(230, 200, 148, .50); }
  .chapter--arrival .amp { color: var(--gold-light); }
  .chapter--arrival .chapter__scrim, .chapter--ceremony .chapter__scrim {
    align-self: stretch; height: auto; width: 58%; justify-self: start;
    background: linear-gradient(90deg, rgba(var(--veil), .93) 0%, rgba(var(--veil), .86) 46%, rgba(var(--veil), .42) 76%, rgba(var(--veil), 0) 100%); }
  .chapter--arrival .chapter__scrim { width: 50%; background: linear-gradient(90deg, rgba(var(--veil), .78) 0%, rgba(var(--veil), .60) 50%, rgba(var(--veil), 0) 100%); }
  .chapter--ceremony .chapter__body { padding: 0; }
  .chapter--arrival .chapter__body, .chapter--ceremony .chapter__body {
    align-self: center; justify-self: start; text-align: left; justify-items: start; width: min(31rem, 36vw); margin-left: clamp(2.2rem, 6.2vw, 8rem); padding: 0; }
  .chapter--private .chapter__scrim { height: 70%; background: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(var(--veil), .82) 0%, rgba(var(--veil), .66) 40%, rgba(var(--veil), .26) 74%, rgba(var(--veil), 0) 100%); }
  .chapter--ceremony .chapter__body { width: min(33rem, 38vw); }
  .title, .chapter--invite .title { font-size: 3.5em; }
  .chapter--ceremony .title { font-size: 3.1em; }
  .rule--gem { margin: .2em 0; }
  .cta--open { margin-bottom: calc(var(--safe-b) + var(--cue) + 3.2vh); }
  .lede--pair > span { display: inline; } .lede--pair .dot { display: inline-block; }
  .couple { justify-items: start; font-size: 3.6em; }
  .families { font-size: 1.5em; }
  .events { width: min(100%, 30rem); }
  .event__place { justify-content: flex-start; column-gap: 1.5em; }   /* the way there sits beside the venue, well inside the veil */

  /* the venue and the invitation share one layout on wide screens: a column of words in the left third */
  .chapter--story .chapter__scrim { background: linear-gradient(90deg, rgba(var(--veil), .90) 0%, rgba(var(--veil), .78) 30%, rgba(var(--veil), .30) 52%, rgba(var(--veil), 0) 66%); }
  .chapter--story .chapter__body { grid-template-rows: auto auto; align-content: center; justify-items: start; text-align: left; gap: 2.8em; height: auto; align-self: center; justify-self: start;
    width: min(33rem, 38vw); margin-left: clamp(2.2rem, 6.2vw, 8rem); padding: 0; }
  .story__head { width: auto; }
  .quote { font-size: 2.05em; }
  .venue { justify-items: start; gap: .9em; width: 100%; }
  .place { padding: .7em 0 .76em; }
  .place__name { font-size: 2.3em; }
  .place__held { display: inline; }
  .cta--directions { min-height: 2.9rem; padding: 0 1.3rem; font-size: .66rem; letter-spacing: .2em; }

  .chapter--invite .chapter__scrim { background: linear-gradient(90deg, rgba(var(--veil), .90) 0%, rgba(var(--veil), .78) 30%, rgba(var(--veil), .30) 52%, rgba(var(--veil), 0) 66%); }
  .chapter--invite .chapter__body { grid-template-rows: auto auto; align-content: center; justify-items: start; text-align: left; gap: 2.6em; height: auto; align-self: center; justify-self: start;
    width: min(31rem, 36vw); margin-left: clamp(2.2rem, 6.2vw, 8rem); padding: 0; }
  .invite__head, .invite__foot, .sign, .countdown { justify-items: start; }
  .invite__foot { gap: 1.9em; }
  .countdown__unit:first-child { padding-left: 0; justify-items: start; min-width: 4em; }
  .countdown__num { font-size: 3.1em; }
  .sign { grid-template-columns: auto auto; align-items: center; column-gap: 1em; }
  .sign__top { grid-column: 1 / -1; padding-left: 0; }
}

/* ── Phones held sideways: very little height, so everything tightens and the itinerary goes two-up ── */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  :root { --u: clamp(.60rem, 2.55vh, .82rem); }
  .bar { padding: calc(var(--safe-t) + .45rem) clamp(.9rem, 3vw, 2rem) .9rem; }
  .pill { height: 1.9rem; } .brand__mono { width: 1.9rem; height: 1.9rem; }
  .names { font-size: clamp(1.9rem, 13vh, 3.4rem); }
  .chapter--reveal .chapter__body { padding-top: calc(var(--safe-t) + 3.1rem); gap: .5em; }
  .chapter--reveal .rule { display: none; }
  .cta--open { margin-bottom: calc(var(--safe-b) + .7rem); }
  .cue { left: auto; right: calc(max(.2rem, env(safe-area-inset-right, 0px)) + 3rem); transform: none; padding: .3rem .6rem .35rem; gap: .3rem; }
  .cue__label { font-size: .5rem; }
  .title, .chapter--invite .title, .chapter--ceremony .title { font-size: 2.7em; }
  .title br { display: none; }
  .chapter--arrival .chapter__body, .chapter--ceremony .chapter__body, .chapter--invite .chapter__body {
    align-self: end; margin: 0 0 calc(var(--safe-b) + .9rem) max(1.2rem, env(safe-area-inset-left, 0px)); gap: .55em; width: min(30rem, 44vw); }
  .chapter--private .chapter__body { gap: .55em; }
  .couple { font-size: 2.5em; display: block; } .couple > span { display: inline; } .couple .amp { margin: 0 .2em; }
  .families { font-size: 1.2em; }
  .chapter--ceremony .chapter__body { width: min(52rem, 74vw); }
  .chapter--ceremony .chapter__scrim { width: 86%; }
  .events { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 1.8em; border-bottom: 0; width: 100%; }
  .event { align-content: start; padding: .45em 0 .5em; }
  .event__place { flex-direction: column; align-items: flex-start; row-gap: .5em; }
  .event__map { font-size: .5rem; padding-left: 0; }
  .chapter--story .chapter__body { align-self: end; margin: 0 0 calc(var(--safe-b) + .9rem) max(1.2rem, env(safe-area-inset-left, 0px)); gap: .9em; width: min(30rem, 46vw); }
  .quote { font-size: 1.5em; } .venue { gap: .45em; } .place { padding: .4em 0 .44em; } .place__name { font-size: 1.7em; }
  .place__held { display: none; }
  .cta--directions { min-height: 2.1rem; padding: 0 .85rem; font-size: .52rem; letter-spacing: .14em; }
  .countdown { gap: .4em; } .countdown__num { font-size: 2.1em; } .countdown__unit { min-width: 3.6em; gap: .3em; }
  .invite__head .lede--small { display: none; }
  .chapter--invite .chapter__body { gap: 1em; align-content: end; }
  .invite__foot { gap: .8em; }
  .cta { min-height: 2.5rem; padding: 0 1.3rem; font-size: .6rem; }
  .sign__mono { min-width: 2rem; height: 2rem; font-size: .8rem; }
  .sign__top { display: none; }
  .rail a { padding: .32rem .7rem .32rem .9rem; font-size: .54rem; }
}

/* ───────────────────────────── 6. RSVP dialog & toast ───────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: rgba(20, 14, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeIn .35s ease both; }
.modal__card { position: relative; width: min(100%, 32rem); margin: auto; border-radius: 1.5rem; background: linear-gradient(180deg, #FDF8F1, #FAF3EA); color: var(--espresso);
  border: 1px solid rgba(184, 139, 74, .55); box-shadow: 0 30px 90px rgba(20, 14, 12, .45); padding: clamp(1.4rem, 5vw, 2.5rem); animation: cardIn .5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(184, 139, 74, .45); background: rgba(245, 230, 211, .6);
  font-size: 1.25rem; line-height: 1; color: rgba(30, 24, 21, .75); transition: color .25s ease, border-color .25s ease; }
.modal__close:hover { color: var(--espresso); border-color: var(--gold); }
.modal__head { text-align: center; margin-bottom: 1.6rem; }
.modal__title { font: 400 clamp(2rem, 7vw, 2.5rem)/1 var(--serif); letter-spacing: .04em; }
.modal__sub { margin-top: .5rem; font: 400 .78rem/1.5 var(--sans); color: rgba(44, 35, 30, .75); letter-spacing: .02em; }
#rsvpForm { display: grid; gap: 1.15rem; }
.field label, .field__label { display: block; margin-bottom: .5rem; font: 600 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(44, 35, 30, .8); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: .8rem; border: 1px solid rgba(184, 139, 74, .42); background: rgba(255, 255, 255, .88);
  font: 400 1rem/1.4 var(--sans); color: var(--espresso); resize: none; transition: border-color .25s ease, box-shadow .25s ease; }
.field input::placeholder, .field textarea::placeholder { color: rgba(44, 35, 30, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 139, 74, .16); }
.field input[aria-invalid="true"] { border-color: #a2412f; }
.field__error { margin-top: .45rem; font: 400 .74rem/1.4 var(--sans); color: #9a3524; }
.choice { display: grid; gap: .6rem; }
.choice--two { grid-template-columns: 1fr 1fr; }
.choice--four { grid-template-columns: repeat(4, 1fr); }
.opt { min-height: 2.9rem; padding: .5rem .6rem; border-radius: .8rem; border: 1px solid rgba(184, 139, 74, .32); background: rgba(255, 255, 255, .62);
  font: 500 .68rem/1.25 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(44, 35, 30, .72); transition: background .25s ease, border-color .25s ease, color .25s ease; }
.opt:hover { border-color: rgba(184, 139, 74, .7); }
.opt.is-on { border-color: var(--gold); background: rgba(184, 139, 74, .2); color: var(--espresso); font-weight: 600; }
#guestCountField { transition: opacity .3s ease; }
#guestCountField.is-off { opacity: .38; pointer-events: none; }

.done { display: grid; justify-items: center; gap: 1.05rem; text-align: center; padding: .6rem 0 .2rem; }
.done__tick { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gold); background: rgba(184, 139, 74, .14); display: grid; place-items: center; color: var(--gold-dark); font-size: 1.2rem; }
.done .eyebrow { color: var(--gold-dark); font-size: .64rem; }
.done__title { font: 400 clamp(1.9rem, 7vw, 2.4rem)/1.1 var(--serif); outline: none; overflow-wrap: anywhere; }
.done__summary { width: 100%; display: grid; gap: .45rem; text-align: left; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(245, 230, 211, .65); border: 1px solid rgba(184, 139, 74, .35);
  font: 400 .82rem/1.5 var(--sans); color: var(--charcoal); }
.done__summary div { display: grid; grid-template-columns: 5.4rem 1fr; gap: .6rem; }
.done__summary dt { font: 600 .6rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.done__summary dd { overflow-wrap: anywhere; }
.done__note { font: 400 .74rem/1.5 var(--sans); color: rgba(44, 35, 30, .72); max-width: 26rem; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .4rem; }
.done__actions .pill { height: 2.6rem; color: var(--espresso); border-color: rgba(184, 139, 74, .55); }
.done__actions .pill--solid { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.done__actions .pill--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
@media (max-width: 420px) { .done__actions { display: grid; width: 100%; } .done__actions .pill { justify-content: center; } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--safe-b) + 1.4rem); transform: translate(-50%, 8px); max-width: min(90vw, 30rem); padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--espresso); color: var(--cream); border: 1px solid rgba(184, 139, 74, .5); font: 400 .78rem/1.4 var(--sans); text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.is-modal-open { overflow: hidden; }

/* ───────────────────────────── 7. Fallback & accessibility ───────────────────────────── */
/* Static plates: shown only when WebGL cannot run. They cross-fade with the chapters. */
.stage__fallback { display: none; position: absolute; inset: 0; }
.no-gl .stage__fallback, .no-js .stage__fallback { display: block; }
.plate { position: absolute; inset: 0; background: #1b1410 50% 50% / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.plate.is-on, .no-js .plate--first { opacity: 1; }
.plate--first { background-image: url('../assets/rajmahal/aerial.webp'); }
.no-gl .stage canvas { display: none; }

.no-js .chapter__body, .no-js .rise, .no-js .chapter__scrim { opacity: 1; transform: none; visibility: visible; }
.no-js .chapter__pin { position: relative; height: auto; min-height: 100vh; }
.no-js .chapter__hold, .no-js .chapter__travel, .no-js .cue { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rise, .is-active .rise { transition-duration: .3s !important; transition-delay: 0s !important; transform: none !important; }
  .cue__chevrons, .cta__arrow--down, .eq i, .intro__inner, .modal, .modal__card { animation: none !important; }
  .intro { transition-duration: .4s; }
}
