/* ==========================================================================
   "Forever": interactive wedding invitation · style.css
   by Very Online Studio

   1.  Fonts
   2.  Design tokens + the 3 themes (garden · midnight · terracotta)
   3.  Base
   4.  Buttons, links, small UI
   5.  Plain-page layout (no JS / fallback): every chapter stacked
   6.  Story stage (.js): one full-screen scene at a time
   7.  HUD (progress reel, chapter name, sound, info) + dock + overlays
   8.  Chapter headers + shared text styles
   9.  Prologue · envelope + letter
   10. Ch.1 how we met · Ch.2 proposal
   11. Ch.3 polaroid stack · Ch.4 scratch date + countdown
   12. Ch.5 programme · Ch.6 map + directions
   13. Ch.7 doors · Ch.8 attire
   14. Ch.9 credits · Ch.10 RSVP
   15. Ch.11 gifts · Ch.12 chat FAQ · Epilogue
   16. Info sheet + lightbox
   17. DEMO ONLY theme switcher
   18. Reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/cormorant-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/cormorant-latin-wght-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/jost-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: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/jost-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/caveat-latin-wght-normal.woff2) format('woff2'); }

/* 2. Tokens + themes ------------------------------------------------------- */
:root {
  --f-display: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans: 'Jost', 'Futura', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --gutter: 18px;
  --hud-h: calc(env(safe-area-inset-top, 0px) + 74px);
  --dock-h: calc(env(safe-area-inset-bottom, 0px) + 78px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* Garden (default): cream paper, deep forest ink, sage + gold leaf */
:root, [data-theme="garden"] {
  --bg: #F3EEE2; --bg-2: #E9E2D0; --surface: #FBF8F0; --surface-2: #F0EADC;
  --ink: #1F3326; --ink-2: #4A5C4F; --line: rgba(31, 51, 38, .14); --line-2: rgba(31, 51, 38, .28);
  --brand: #4F6B54; --on-brand: #FBF8F0; --brand-ink: #44604A;
  --gold: #B8924A; --gold-ink: #7A5C20; --gold-hi: #E4C88C; --gold-lo: #96722E;
  --accent: #C98E80; --accent-ink: #88452F;
  --focus: #2F6FB7;
  --env-paper: #F7F2E6; --env-shade: #E6DDC8; --env-liner: #7E9A7F;
  --seal-hi: #92AE90; --seal-mid: #5E7A62; --seal-lo: #344A3A; --seal-mark: #E9D9AE;
  --d-bg: #132219; --d-bg-2: #1B2E22; --d-ink: #F2EBDC; --d-ink-2: #C9C2AE; --d-gold: #DEBD7C; --d-line: rgba(242, 235, 220, .16);
  --motif-1: #8FA68A; --motif-2: #EEE5D0; --motif-3: #C9A55C; --motif-4: #D6A79B;
  --wall-1: #E3D8C1; --wall-2: #D8DDD0; --wall-3: #E8D6C3; --wall-4: #CDBB9F;
  --wood: #8A5E3B; --wood-2: #6E4A2E;
  --sky-paper: #F3EEE2, #E7E1CE, #DFE6D6;
  --sky-blush: #F6EBE3, #EED9CF, #EDEBDD;
  --sky-gold: #F7EDD8, #EEDCB3, #EDEEDF;
  --sky-night: #0F1C15, #1A2D21, #27392B;
  --map-land: #EFE8D6; --map-water: #C9D9D3; --map-road: #C9B88F;
}
[data-theme="midnight"] {
  --bg: #0E1628; --bg-2: #131D33; --surface: #18233C; --surface-2: #1E2A46;
  --ink: #F2E8D3; --ink-2: #BFB7A5; --line: rgba(242, 232, 211, .14); --line-2: rgba(242, 232, 211, .28);
  --brand: #DDBD78; --on-brand: #0E1628; --brand-ink: #E4C584;
  --gold: #D9B66E; --gold-ink: #E4C584; --gold-hi: #F4DFA8; --gold-lo: #A8843E;
  --accent: #E8A87C; --accent-ink: #F2B98F;
  --focus: #8FC1FF;
  --env-paper: #1F2B47; --env-shade: #17213A; --env-liner: #C9A75F;
  --seal-hi: #F2D99A; --seal-mid: #C9A55A; --seal-lo: #7E6226; --seal-mark: #1A2440;
  --d-bg: #060B16; --d-bg-2: #0C1426; --d-ink: #F2E8D3; --d-ink-2: #BFB7A5; --d-gold: #E4C584; --d-line: rgba(242, 232, 211, .16);
  --motif-1: #2C3F6B; --motif-2: #E8D5A9; --motif-3: #F2B866; --motif-4: #7C93B8;
  --wall-1: #24304B; --wall-2: #2A3756; --wall-3: #313E5C; --wall-4: #29334B;
  --wood: #6B4A33; --wood-2: #4E3423;
  --sky-paper: #0E1628, #15213A, #1D2A45;
  --sky-blush: #121A2F, #251F38, #19243F;
  --sky-gold: #131D35, #2A2738, #1A2742;
  --sky-night: #050912, #0B1325, #131C33;
  --map-land: #1A2540; --map-water: #24375A; --map-road: #6E6650;
}
[data-theme="terracotta"] {
  --bg: #F6EADF; --bg-2: #EEDCCD; --surface: #FCF5EE; --surface-2: #F3E4D6;
  --ink: #3E2016; --ink-2: #6B4A3D; --line: rgba(62, 32, 22, .14); --line-2: rgba(62, 32, 22, .28);
  --brand: #A04E2B; --on-brand: #FCF5EE; --brand-ink: #8A4020;
  --gold: #C99A5B; --gold-ink: #80521C; --gold-hi: #EBCB96; --gold-lo: #A0702F;
  --accent: #DFA28F; --accent-ink: #8A3D2A;
  --focus: #2F6FB7;
  --env-paper: #FAF0E6; --env-shade: #ECD9C6; --env-liner: #C27A57;
  --seal-hi: #D98A66; --seal-mid: #A9532F; --seal-lo: #6A2E17; --seal-mark: #F6DEC4;
  --d-bg: #2B1610; --d-bg-2: #3A1F16; --d-ink: #F8E8DA; --d-ink-2: #D9C1B0; --d-gold: #EBC896; --d-line: rgba(248, 232, 218, .16);
  --motif-1: #B5623E; --motif-2: #E8B9A6; --motif-3: #D9C09A; --motif-4: #7D8450;
  --wall-1: #E9D3BF; --wall-2: #DDC6AF; --wall-3: #EBD8C8; --wall-4: #C9A98E;
  --wood: #8F5A3A; --wood-2: #6C3F25;
  --sky-paper: #F6EADF, #EFDCCA, #F1E3D3;
  --sky-blush: #F7E5DA, #EFCFC0, #F4E6DB;
  --sky-gold: #F7E8D3, #EFD4AF, #F5E8DA;
  --sky-night: #1E0F0A, #31180F, #432317;
  --map-land: #F2E2D1; --map-water: #E3C9B8; --map-road: #CFAD87;
}

/* Dark chapters (proposal, cast, epilogue) swap the local tokens */
.scene--dark {
  --ink: var(--d-ink); --ink-2: var(--d-ink-2); --line: var(--d-line); --line-2: color-mix(in srgb, var(--d-ink) 30%, transparent);
  --brand: var(--d-gold); --on-brand: var(--d-bg); --brand-ink: var(--d-gold);
  --gold-ink: var(--d-gold); --surface: color-mix(in srgb, var(--d-ink) 7%, transparent); --surface-2: color-mix(in srgb, var(--d-ink) 12%, transparent);
  --focus: #9CC8FF;
  color: var(--ink);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: light; }
[data-theme="midnight"] { color-scheme: dark; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); }
[hidden] { display: none !important; }
kbd { font: 600 .72em/1 system-ui, -apple-system, 'Segoe UI', sans-serif; padding: .2em .45em; border: 1px solid var(--line-2); border-radius: 5px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Personal-link switches (JS adds .has-guest / .has-seats on <html>) */
html:not(.has-guest) [data-if-guest] { display: none; }
.has-guest [data-if-noguest] { display: none; }
html:not(.has-seats) [data-if-seats] { display: none; }

/* Theme-specific words (DEMO ONLY: for a client keep one set and delete the others) */
.t-midnight, .t-terracotta { display: none; }
[data-theme="midnight"] .t-garden, [data-theme="terracotta"] .t-garden { display: none; }
[data-theme="midnight"] .t-midnight { display: inline; }
[data-theme="terracotta"] .t-terracotta { display: inline; }

/* 4. Buttons, links -------------------------------------------------------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.4em; border-radius: 999px;
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: 500 .98rem/1.1 var(--f-sans); letter-spacing: .02em; text-decoration: none;
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out), border-color .3s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 40%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --b-bg: var(--brand); --b-fg: var(--on-brand); --b-bd: transparent; }
.btn--ghost { --b-bg: transparent; }
.btn--small { min-height: 42px; padding: 0 1.1em; font-size: .9rem; }

.pill-btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1.05em;
  border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent);
  font: 500 .88rem/1 var(--f-sans); letter-spacing: .02em; color: var(--ink);
  transition: background-color .3s, transform .3s var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pill-btn svg { width: 18px; height: 18px; flex: none; }
.pill-btn:hover { transform: translateY(-1px); }
.pill-btn--solid { background: var(--ink); color: var(--bg); border-color: transparent; }
.scene--dark .pill-btn--solid { background: var(--d-gold); color: var(--d-bg); }
.pill-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.round-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink);
  transition: transform .3s var(--ease-out), background-color .3s; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { transform: scale(1.06); }

.link-btn { padding: 4px 2px; border: 0; background: none; font: 500 .86rem/1.2 var(--f-sans); color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link { color: var(--brand-ink); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.hint { font: 500 .78rem/1.35 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hint .link-btn { text-transform: none; letter-spacing: .01em; font-size: .86rem; margin-left: .3em; }

/* 5. Plain-page layout (no JS, or JS failed): the chapters simply stack --- */
html:not(.js) .hud, html:not(.js) .dock, html:not(.js) .transition, html:not(.js) .fx, html:not(.js) .sky,
html:not(.js) .cursor, html:not(.js) .toast, html:not(.js) .demo-switch, html:not(.js) .env, html:not(.js) .seal,
html:not(.js) .hint, html:not(.js) .stack__ctrls, html:not(.js) .map__ctrls, html:not(.js) .credits__ctrls,
html:not(.js) .countdown, html:not(.js) .giftbox, html:not(.js) .lanterns, html:not(.js) .wish, html:not(.js) .invite__kicker,
html:not(.js) .doors__placeholder, html:not(.js) .chat__head, html:not(.js) .sunarc__now, html:not(.js) .scratch__foil,
html:not(.js) .tabs, html:not(.js) .met__caption, html:not(.js) .attend__reaction, html:not(.js) .forever__ctas [data-replay] { display: none !important; }
html:not(.js) .scene { padding: 72px var(--gutter); border-bottom: 1px solid var(--line); }
html:not(.js) .scene--dark { background: var(--d-bg); }
html:not(.js) .scene__body { max-width: 1100px; margin: 0 auto; }
html:not(.js) .way { margin-top: 26px; }

/* 6. Story stage (JS) -------------------------------------------------------- */
html.js, .js body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.js body { position: fixed; inset: 0; background: var(--bg); transition: background-color 1s; }
.js .story { position: fixed; inset: 0; }
.js .scene { position: fixed; inset: 0; visibility: hidden; z-index: 2; }
.js .scene.is-active { visibility: visible; z-index: 3; }
.js .scene.is-leaving { visibility: visible; z-index: 2; pointer-events: none; }
.js .scene__scroll {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y;
  padding: var(--hud-h) var(--gutter) var(--dock-h);
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.js .scene__scroll { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--hud-h) - 6px), #000 calc(100% - var(--dock-h) + 6px), transparent calc(100% - 12px)); mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--hud-h) - 6px), #000 calc(100% - var(--dock-h) + 6px), transparent calc(100% - 12px)); }
.js .scene__body { width: 100%; max-width: 1180px; margin: auto; padding: 8px 0 18px; }
.scene--dark { color: var(--ink); }

/* background layers */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="midnight"] .grain, .on-dark .grain { mix-blend-mode: screen; opacity: .05; }
html:not(.js) .grain { position: fixed; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

/* 7. HUD ------------------------------------------------------------------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 0;
  color: var(--ink); transition: color .6s;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.on-dark .hud, .on-dark .dock { --ink: var(--d-ink); --ink-2: var(--d-ink-2); --line-2: color-mix(in srgb, var(--d-ink) 30%, transparent); --surface: var(--d-bg-2); --bg: var(--d-bg); }
.reel { display: flex; gap: 4px; height: 3px; max-width: 1180px; margin: 0 auto; pointer-events: none; }
.reel__seg { position: relative; flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); overflow: hidden; }
.reel__seg::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .6s var(--ease-out); }
.reel__seg.is-done { --p: 1; }
.reel__seg.is-current::after { background: var(--gold); }
.hud__row { display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 10px auto 0; }
.hud__mono {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: italic 600 1.02rem/1 var(--f-display); letter-spacing: -.02em; color: var(--ink);
}
.hud__mono i { color: var(--gold); font-weight: 500; margin: 0 .04em; }
.hud__chapter { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.hud__no { font: 600 .64rem/1.2 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.hud__title { font: italic 600 1.08rem/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 .82rem/1 var(--f-sans); letter-spacing: .06em; color: var(--ink);
}
.hud__sound { padding: 0; width: 44px; }
.hud__ico { width: 20px; height: 20px; }
.hud__sound .hud__ico--on, .hud__sound[aria-pressed="true"] .hud__ico--off { display: none; }
.hud__sound[aria-pressed="true"] .hud__ico--on { display: block; }
.hud__live { margin-left: 2px; padding: 3px 6px; border-radius: 999px; background: #C2402F; color: #fff; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; animation: live 1.6s infinite; }
@keyframes live { 50% { opacity: .55; } }

/* dock: phones keep prev/next on the right (thumb side) */
.dock {
  position: fixed; right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 20;
  display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.dock__hint { display: none; }
.dock__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; min-width: 50px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .35s var(--ease-out), background-color .3s, opacity .3s; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dock__btn svg { width: 20px; height: 20px; }
.dock__btn:disabled { opacity: .35; cursor: default; }
.dock__next { padding: 0 18px 0 22px; background: var(--ink); color: var(--bg); border-color: transparent; font: 500 .92rem/1 var(--f-sans); letter-spacing: .04em; }
.dock__next.is-ready { animation: nudge 2.4s var(--ease-out) infinite; }
.dock__next.is-ready::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 1.5px solid var(--gold); animation: ring 2.4s var(--ease-out) infinite; }
.dock__next { position: relative; }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0); } 70% { transform: translateX(4px); } 80% { transform: translateX(0); } 88% { transform: translateX(3px); } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18); } }

/* transition overlay (gold ring iris + light leak) */
.transition { position: fixed; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.transition__ring { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 1.5px solid var(--gold); box-shadow: 0 0 40px 4px color-mix(in srgb, var(--gold-hi) 60%, transparent), inset 0 0 30px color-mix(in srgb, var(--gold-hi) 40%, transparent); opacity: 0; }
.transition__leak { position: absolute; top: -30%; left: -60%; width: 70%; height: 160%; opacity: 0; filter: blur(30px); background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--gold-hi) 70%, transparent) 40%, color-mix(in srgb, var(--accent) 55%, transparent) 60%, transparent); mix-blend-mode: soft-light; transform: rotate(8deg); }

/* custom cursor (fine pointers only, desktop) */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--gold); transition: transform .35s var(--ease-out), background-color .3s; }
.cursor.is-label::before { transform: scale(4.6); background: color-mix(in srgb, var(--ink) 88%, transparent); border-color: transparent; }
.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 .62rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-label .cursor__label { opacity: 1; }
.on-dark .cursor.is-label::before { background: var(--d-ink); }
.on-dark .cursor__label { color: var(--d-bg); }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 .88rem/1.2 var(--f-sans);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* 8. Chapter headers + text ------------------------------------------------ */
.chap { margin-bottom: 18px; }
.chap--center { text-align: center; }
.chap__no {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font: 600 .7rem/1.2 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink);
}
.chap__no::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.chap--center .chap__no::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.chap__title {
  font: italic 500 clamp(2.6rem, 11vw, 4.9rem)/.98 var(--f-display); letter-spacing: -.015em; color: var(--ink);
  text-wrap: balance;
}
.chap__title:focus { outline: none; }
.chap__lede { margin-top: 12px; max-width: 34em; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.chap--center .chap__lede { margin-inline: auto; }
.story-text { display: grid; gap: 12px; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.story-text .lede { font: 500 1.32rem/1.35 var(--f-display); color: var(--ink); }
.story-text em { font-family: var(--f-display); font-size: 1.12em; font-weight: 600; color: var(--ink); }
.split-line { padding-bottom: .06em; }

/* 9. Prologue · envelope + letter ----------------------------------------- */
.invite { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.js .invite { min-height: calc(100svh - var(--hud-h) - var(--dock-h) - 30px); --env-w: min(330px, 84vw); --env-h: calc(var(--env-w) * .6471); }
.invite__kicker { position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(var(--env-h) / -2 - 64px); text-align: center; font: italic 500 1.25rem/1.2 var(--f-display); color: var(--ink-2); }
.env { position: absolute; inset: 0; margin: auto; width: var(--env-w); height: var(--env-h); }
.env > div { position: absolute; }
.env__back { inset: 0; z-index: 1; border-radius: 6px; background: var(--env-shade); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45), 0 2px 6px rgb(0 0 0 / .08); }
.env__liner { left: 10px; right: 10px; top: 8px; height: 62%; z-index: 1; border-radius: 4px 4px 0 0; background:
  radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--env-liner) 35%, transparent) 0 2px, transparent 3px) 0 0 / 22px 22px,
  radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--env-liner) 25%, transparent) 0 1.5px, transparent 2.5px) 0 0 / 22px 22px,
  color-mix(in srgb, var(--env-liner) 18%, var(--env-paper)); }
.env__front { inset: 0; z-index: 3; }
.env__pocket { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.env__side { fill: var(--env-paper); }
.env__bottom { fill: color-mix(in srgb, var(--env-paper) 92%, var(--env-shade)); }
.env__crease { stroke: color-mix(in srgb, var(--env-shade) 70%, var(--ink) 8%); stroke-width: 1; }
.env__address { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); }
.env__to { font: 600 clamp(1.3rem, 6vw, 1.65rem)/1 var(--f-hand); max-width: 66%; overflow-wrap: anywhere; }
.env__sub { margin-top: 4px; font: 600 .62rem/1.2 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.env__stamp { position: absolute; right: 6%; bottom: 9%; width: 10.5%; transform: rotate(4deg); }
.env__stamp svg { width: 100%; height: auto; }
.stamp__paper { fill: #fff; stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1.4; stroke-dasharray: 2 2.4; }
[data-theme="midnight"] .stamp__paper { fill: #F2E8D3; }
.stamp__ink { fill: color-mix(in srgb, var(--env-liner) 30%, #fff); }
.stamp__flower { fill: #fff; stroke: var(--gold-lo); stroke-width: 1.2; }
.env__stamp text { font: 700 6.4px var(--f-sans); letter-spacing: .08em; fill: var(--gold-lo); }
.env__postmark { position: absolute; right: 12%; bottom: 22%; width: 19%; fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.2; transform: rotate(-12deg); opacity: .7; }
.env__postmark text { font: 600 6px var(--f-sans); fill: color-mix(in srgb, var(--ink) 45%, transparent); stroke: none; letter-spacing: .06em; }
.env__flap { left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .1)); }
.env__flap svg { width: 100%; height: 100%; overflow: visible; }
.env__flap-out { fill: var(--env-paper); stroke: color-mix(in srgb, var(--env-shade) 80%, var(--ink) 6%); stroke-width: .8; }
.env__flap.is-inside .env__flap-out { fill: color-mix(in srgb, var(--env-liner) 30%, var(--env-paper)); }

.seal {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: 74px; height: 74px; padding: 0;
  translate: 0 calc(var(--env-h) * .05); border: 0; background: none; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.seal__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .28)); }
.seal__hi { stop-color: var(--seal-hi); } .seal__mid { stop-color: var(--seal-mid); } .seal__lo { stop-color: var(--seal-lo); }
.seal__ring { fill: none; stroke: color-mix(in srgb, var(--seal-lo) 70%, transparent); stroke-width: 1.4; }
.seal__ring--dots { stroke: var(--seal-mark); stroke-width: 1.6; stroke-dasharray: .1 4; stroke-linecap: round; opacity: .7; }
.seal__mono { font: italic 600 24px var(--f-display); fill: var(--seal-mark); letter-spacing: -.02em; }
.seal__amp { font-size: 16px; }
.seal__half { visibility: hidden; }
.seal.is-broken .seal__half { visibility: inherit; }
.seal.is-broken .seal__body { visibility: hidden; }
.seal__pulse { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold); pointer-events: none; animation: ring 2.2s var(--ease-out) infinite; }
.seal.is-broken .seal__pulse { display: none; }
.invite__hint { position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(var(--env-h) / 2 + 26px); text-align: center; }
.invite.is-open .env, .invite.is-open .seal, .invite.is-open .invite__hint, .invite.is-open .invite__kicker { display: none; }

.letter {
  position: relative; z-index: 2; width: min(410px, 100%); padding: 40px 26px 30px;
  text-align: center; background: var(--surface); color: var(--ink);
  border-radius: 6px; box-shadow: 0 30px 70px -40px rgb(0 0 0 / .45), inset 0 0 0 1px var(--line), inset 0 0 0 7px var(--surface), inset 0 0 0 8px color-mix(in srgb, var(--gold) 45%, transparent);
  transform-origin: 0 0;
}
.js .letter { will-change: transform; }
.letter__sprig { position: absolute; width: 54px; height: 118px; color: var(--brand); opacity: .55; pointer-events: none; }
.letter__sprig--l { left: -6px; top: -14px; transform: rotate(-28deg); }
.letter__sprig--r { right: -6px; bottom: -14px; transform: rotate(152deg); }
.letter__greet { font: 600 1.7rem/1.1 var(--f-hand); color: var(--brand-ink); overflow-wrap: anywhere; }
.letter__pre { margin-top: 14px; font: 500 .7rem/1.4 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.names { margin-top: 8px; display: flex; flex-direction: column; align-items: center; font: italic 500 clamp(3.6rem, 17vw, 5.6rem)/.86 var(--f-display); letter-spacing: -.02em; }
.names:focus { outline: none; }
.names__amp { font-size: .62em; line-height: 1; margin: .02em 0 .04em; color: var(--gold); font-weight: 400; }
.names__a, .names__b { display: block; }
.flourish { width: 170px; height: 18px; margin: 12px auto 0; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.letter__line { margin-top: 10px; font: italic 500 1.2rem/1.35 var(--f-display); color: var(--ink-2); }
.letter__date { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; font: 500 .82rem/1.4 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; }
.letter__place { color: var(--ink-2); font-size: .74rem; }
.letter__seats { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }
.letter__seats strong { color: var(--ink); font-weight: 600; }
.letter__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 10. Ch.1 how we met ----------------------------------------------------- */
.met__sky { position: relative; aspect-ratio: 4 / 3; max-height: 46svh; width: 100%; margin: 4px auto 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.met__clouds { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cloud path { fill: color-mix(in srgb, var(--surface) 70%, transparent); stroke: var(--line-2); stroke-width: 1.1; }
.met__trail { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0; }
.met__dash { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 6; stroke-linecap: round; }
.plane { position: absolute; left: 0; top: 0; width: 78px; cursor: grab; touch-action: none; will-change: transform; }
.plane:active { cursor: grabbing; }
.plane svg { width: 100%; overflow: visible; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .12)); }
.plane__top { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.plane__low { fill: color-mix(in srgb, var(--pl, var(--brand)) 40%, var(--surface)); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.plane__fold { fill: color-mix(in srgb, var(--pl, var(--brand)) 70%, var(--surface)); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.plane--hers { --pl: var(--accent); }
.plane__tag { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap; font: 600 1.15rem/1 var(--f-hand); color: var(--ink-2); }
.plane--hers svg { transform: scaleX(-1); }
.met__caption { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font: 600 clamp(1.7rem, 7vw, 2.3rem)/1 var(--f-hand); color: var(--accent-ink); pointer-events: none; }
.met__hint { text-align: center; margin-bottom: 18px; }
.js .scene--met [data-after], .js .scene--proposal [data-after] { opacity: 0; }

/* Ch.2 proposal */
.vista { position: relative; display: grid; justify-items: center; margin: 0 auto 10px; width: 100%; max-width: 560px; }
.vista__svg { width: 100%; height: auto; overflow: visible; }
.vista__stars circle { fill: var(--d-ink); animation: tw var(--tw, 3s) ease-in-out var(--td, 0s) infinite alternate; }
@keyframes tw { from { opacity: .15; } to { opacity: .9; } }
.vista__moon { fill: color-mix(in srgb, var(--d-gold) 70%, #fff); opacity: .9; }
.vista__ridge, .vista__volcano, .vista__lake { fill: none; stroke: color-mix(in srgb, var(--d-ink) 45%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.vista__volcano { stroke: color-mix(in srgb, var(--d-ink) 65%, transparent); }
.vista__shimmer path { stroke: color-mix(in srgb, var(--d-gold) 50%, transparent); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 6 5; }
.vista__wire { fill: none; stroke: color-mix(in srgb, var(--d-ink) 30%, transparent); stroke-width: .8; }
.vista__bulbs circle { fill: color-mix(in srgb, var(--d-ink) 25%, transparent); transition: fill .5s, filter .5s; }
.vista__bulbs circle.is-on { fill: #FFD98A; filter: drop-shadow(0 0 4px #FFC861); }
.vista__glow { opacity: var(--glow, 0); transition: opacity .8s; mix-blend-mode: screen; }
.ringbox { position: absolute; left: 50%; top: 0; width: 88px; margin-top: calc(57.5% - 86px); transform: translateX(-50%); z-index: 1; }
.ringbox svg { width: 100%; overflow: visible; }
.ringbox__shell { fill: #6B2E3A; stroke: #2B1016; stroke-width: 1.2; }
[data-theme="garden"] .ringbox__shell { fill: #3E5A44; stroke: #1A2B1E; }
.ringbox__shell--lid { fill: color-mix(in srgb, #6B2E3A 85%, #fff); }
[data-theme="garden"] .ringbox__shell--lid { fill: #4C6B52; }
.ringbox__satin { fill: #F3E9DA; }
.ringbox__slot { fill: rgb(0 0 0 / .35); }
.ringbox__seam { stroke: rgb(0 0 0 / .3); stroke-width: 1; }
.ringbox__band { fill: none; stroke: var(--d-gold); stroke-width: 3.4; }
.ringbox__gem { fill: #EAF6FF; stroke: #fff; stroke-width: .8; }
.ringbox__rays { stroke: var(--d-gold); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.ringbox__lid-open, .ringbox__ring { opacity: 0; }
.ringbox.is-open .ringbox__lid-open, .ringbox.is-open .ringbox__ring { opacity: 1; }
.ringbox.is-open .ringbox__lid-closed { opacity: 0; }
.candles { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 3vw, 18px); margin-top: -6%; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; z-index: 2; }
.candle { position: relative; width: 48px; height: 108px; padding: 0; border: 0; background: none; display: flex; align-items: flex-end; -webkit-tap-highlight-color: transparent; }
.candle svg { width: 100%; height: var(--h, 100%); overflow: visible; }
.candle__jar { fill: color-mix(in srgb, var(--d-ink) 6%, transparent); stroke: color-mix(in srgb, var(--d-ink) 50%, transparent); stroke-width: 1.2; }
.candle__wax { fill: #F1E7D3; }
.candle__wick { stroke: #2A1C12; stroke-width: 1.6; stroke-linecap: round; }
.candle__flame { fill: #FFC864; transform-origin: 20px 30px; transform: scale(0); transition: transform .5s var(--ease-back); }
.candle.is-lit .candle__flame { transform: scale(1); animation: flick 1.2s ease-in-out infinite alternate; }
@keyframes flick { 0% { transform: scale(1) skewX(0); } 40% { transform: scale(1.06, .94) skewX(3deg); } 70% { transform: scale(.95, 1.07) skewX(-3deg); } 100% { transform: scale(1.03) skewX(1deg); } }
.candle__glow { position: absolute; left: 50%; top: 10%; width: 140px; height: 140px; margin-left: -70px; margin-top: -40px; border-radius: 50%; background: radial-gradient(circle, rgb(255 200 110 / .55), rgb(255 200 110 / 0) 65%); opacity: 0; transform: scale(.4); transition: opacity .6s, transform .8s var(--ease-out); pointer-events: none; mix-blend-mode: screen; }
.candle.is-lit .candle__glow { opacity: 1; transform: scale(1); }
.proposal__hint { margin-top: 14px; text-align: center; }
.yes { margin-bottom: 8px; }
.yes__big { font: italic 500 clamp(2.6rem, 11vw, 4.2rem)/1 var(--f-display); color: var(--d-gold); }
.yes__aside { font: 600 1.5rem/1.1 var(--f-hand); color: var(--ink-2); }

/* 11. Ch.3 polaroid stack -------------------------------------------------- */
.stack { position: relative; width: 100%; max-width: 420px; margin: 4px auto 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.stack__list { position: relative; display: grid; }
.polaroid {
  grid-area: 1 / 1; justify-self: center; width: min(300px, 76vw);
  padding: 12px 12px 0; background: #FFFDF8; border-radius: 3px; color: #2A2A26;
  box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 18px 40px -22px rgb(0 0 0 / .5);
  transform: rotate(var(--r, 0deg)); will-change: transform;
}
[data-theme="midnight"] .polaroid { background: #F4EEE2; }
.polaroid__btn { display: block; width: 100%; padding: 0; border: 0; background: #ddd; aspect-ratio: 1 / 1; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.polaroid__btn img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.polaroid__cap { padding: 10px 4px 14px; min-height: 58px; font: 600 1.25rem/1.1 var(--f-hand); text-align: center; color: #3A3A34; }
.stack__ctrls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.stack__count { min-width: 64px; text-align: center; font: 500 .9rem/1 var(--f-sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.stack__hint { margin-top: 12px; text-align: center; }
/* spread-out (contact sheet) mode */
.stack.is-spread { max-width: 1100px; touch-action: pan-y; }
.stack.is-spread .stack__list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stack.is-spread .polaroid { grid-area: auto; width: 100%; padding: 7px 7px 0; }
.stack.is-spread .polaroid__cap { font-size: 1rem; min-height: 0; padding: 6px 2px 9px; }
html:not(.js) .stack__list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
html:not(.js) .polaroid { grid-area: auto; width: 100%; }

/* Ch.4 scratch + countdown */
.ticket {
  position: relative; width: min(360px, 100%); margin: 0 auto; padding: 22px 20px 18px; text-align: center;
  background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / .5);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 62%; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket__kicker { font: 600 .72rem/1 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.scratch { position: relative; margin: 14px auto 12px; border-radius: 12px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.scratch__date { padding: 14px 10px 16px; }
.scratch__date time { display: flex; flex-direction: column; align-items: center; }
.scratch__dow { font: 600 .8rem/1.3 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; }
.scratch__d { font: italic 500 6.4rem/.95 var(--f-display); color: var(--ink); margin-bottom: .08em; }
.scratch__my { font: 500 1.6rem/1.1 var(--f-display); }
.scratch__time { margin-top: 6px; font: 600 1.25rem/1 var(--f-hand); color: var(--brand-ink); }
.scratch__foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.ticket__hint { font-size: .72rem; }
.day__info { margin-top: 26px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.cd { display: flex; flex-direction: column; align-items: center; padding: 12px 4px 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.cd__n { font: 500 2.1rem/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.cd__l { margin-top: 4px; font: 600 .6rem/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.countdown__done { text-align: center; font: italic 500 1.6rem/1.2 var(--f-display); }
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 16px auto 0; }
.venue { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.venue__time { font: 600 .7rem/1 var(--f-sans); letter-spacing: .18em; color: var(--gold-ink); }
.venue__name { margin-top: 6px; font: italic 600 1.3rem/1.05 var(--f-display); }
.venue__place { margin-top: 4px; font-size: .84rem; line-height: 1.4; color: var(--ink-2); }
.cal-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* 12. Ch.5 programme --------------------------------------------------------- */
.sunarc { position: relative; width: 100%; max-width: 560px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.sunarc__svg { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 50px -36px rgb(0 0 0 / .55); }
.sunarc__stars circle { fill: #fff; }
.sunarc__stars { opacity: var(--night, 0); }
.sunarc__path { fill: none; stroke: rgb(255 255 255 / .7); stroke-width: 1.4; stroke-dasharray: 1 6; stroke-linecap: round; }
.sunarc__ticks circle { fill: #fff; stroke: rgb(0 0 0 / .25); stroke-width: .8; }
.sunarc__ticks circle.is-on { fill: #FFD47A; }
.sunarc__hills { fill: color-mix(in srgb, #3D5A45 calc(100% - var(--night, 0) * 40%), #0E1A14); }
[data-theme="terracotta"] .sunarc__hills { fill: #8A4A2E; }
[data-theme="midnight"] .sunarc__hills { fill: #1B2744; }
.sunarc__chapel path, .sunarc__pavilion > path { fill: #F7F1E4; stroke: #2B2B26; stroke-width: 1; stroke-linejoin: round; }
.sunarc__lights { fill: none !important; stroke: #2B2B26 !important; stroke-width: .8 !important; }
.sunarc__bulbs circle { fill: #FFD47A; opacity: calc(.2 + var(--night, 0) * .8); filter: drop-shadow(0 0 3px #FFD47A); }
.sun { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; cursor: grab; touch-action: none; }
.sun:active { cursor: grabbing; }
.sun__disc, .sun__moon { position: absolute; inset: 0; border-radius: 50%; transition: opacity .4s; }
.sun__disc { background: radial-gradient(circle at 40% 38%, #FFF2C4, #FFC855 55%, #F4A23C); box-shadow: 0 0 0 6px rgb(255 214 120 / .35), 0 0 34px 8px rgb(255 200 90 / .55); }
.sun__moon { opacity: 0; background: radial-gradient(circle at 35% 35%, #FFFFFF, #E8E4D6 60%, #C8C2AE); box-shadow: 0 0 26px 4px rgb(230 228 214 / .45); }
.sun__moon::after { content: ""; position: absolute; width: 10px; height: 10px; left: 22px; top: 12px; border-radius: 50%; background: rgb(0 0 0 / .08); box-shadow: -10px 12px 0 -2px rgb(0 0 0 / .07); }
.sun.is-moon .sun__disc { opacity: 0; } .sun.is-moon .sun__moon { opacity: 1; }
.sun:focus-visible { outline-offset: 6px; border-radius: 50%; }
.sunarc__now { position: absolute; left: 12px; top: 10px; display: none; }
.sunarc.is-live .sunarc__now { display: block; }
.sunarc__live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #C2402F; color: #fff; font: 600 .62rem/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; }
.prog__list { margin-top: 16px; }
.prog__hint { text-align: center; margin-bottom: 12px; }
.timeline { display: grid; }
.js .timeline { position: relative; min-height: 158px; }
.tl { padding: 16px 18px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -40px rgb(0 0 0 / .5); }
.js .tl { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.js .tl.is-on { opacity: 1; visibility: inherit; }
html:not(.js) .timeline, .rm .timeline { gap: 10px; }
.tl__time { font: 600 .74rem/1 var(--f-sans); letter-spacing: .2em; color: var(--gold-ink); }
.tl__title { margin-top: 6px; font: italic 600 1.75rem/1.05 var(--f-display); }
.tl__where { margin-top: 3px; font: 500 .85rem/1.3 var(--f-sans); letter-spacing: .04em; color: var(--brand-ink); }
.tl__note { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }

/* Ch.6 map + directions */
.map { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.map__svg { width: 100%; aspect-ratio: 1; height: auto; border-radius: var(--radius); background: var(--map-land); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -36px rgb(0 0 0 / .5); touch-action: none; user-select: none; -webkit-user-select: none; }
.map__land { fill: var(--map-land); }
.map__water path { fill: var(--map-water); }
.map__wavefill path { fill: url(#map-waves); }
.map__wave { stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: .7; }
.map__island { fill: var(--map-land); stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: .8; }
.map__crater { fill: var(--map-water); }
.map__ridge { fill: none; stroke: color-mix(in srgb, var(--brand) 60%, transparent); stroke-width: 2.4; stroke-dasharray: 1 4; stroke-linecap: round; }
.map__trees circle { fill: color-mix(in srgb, var(--brand) 45%, transparent); }
.map__roads path { fill: none; stroke: var(--map-road); stroke-width: var(--rw, 2.2); stroke-linecap: round; }
.map__route-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: var(--rw2, 4); stroke-linecap: round; stroke-dasharray: 2 5; }
.map__route { fill: none; stroke: var(--accent-ink); stroke-width: var(--rw2, 4); stroke-linecap: round; stroke-linejoin: round; }
.map__labels text { font: 500 12.5px var(--f-sans); fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; stroke-linejoin: round; }
.map__labels .map__water-label { font: italic 600 15px var(--f-display); fill: color-mix(in srgb, var(--ink) 70%, transparent); stroke: none; }
.map__road-label { font-size: 9px !important; letter-spacing: .14em; fill: var(--ink-2) !important; text-transform: uppercase; }
.map__city circle { fill: var(--ink); }
.map__city--dest text { font: italic 700 17px var(--f-display); fill: var(--accent-ink); }
.map__compass circle { fill: var(--surface); stroke: var(--line-2); }
.map__compass path { fill: var(--accent-ink); }
.map__compass text { font: 600 9px var(--f-sans); fill: var(--ink-2); }
.map__zoom { opacity: 0; }
.map__poi circle { fill: var(--ink); }
.map__poi text { font: 500 2.1px var(--f-sans); fill: var(--ink-2); }
.map__pin path { fill: var(--accent-ink); stroke: var(--surface); stroke-width: .4; }
.map__pin--venue path { fill: var(--brand); }
.map__pin-dot { fill: var(--surface); }
.map__pin-label { font: italic 700 2.7px var(--f-display); fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-width: .6px; }
.map__pin--hotel circle { fill: var(--ink); stroke: var(--surface); stroke-width: .35; }
.map__pin--hotel text { font: 700 2.4px var(--f-sans); fill: var(--bg); }
.map__pin { cursor: pointer; }
.map__pin:focus-visible { outline: none; }
.map__pin:focus-visible circle, .map__pin:focus-visible path { stroke: var(--focus); stroke-width: .8; }
.map__pin.is-pulse circle, .map__pin.is-pulse path { animation: pinpulse 1s var(--ease-out) 3; transform-box: fill-box; transform-origin: center; }
@keyframes pinpulse { 50% { transform: scale(1.7); } }
.map__car { pointer-events: none; }
.map__car-body { pointer-events: auto; cursor: grab; }
.map__car-hit { fill: transparent; }
.map__car-paint { fill: var(--accent-ink); stroke: var(--ink); stroke-width: 1; }
.map__car-glass { fill: color-mix(in srgb, var(--surface) 80%, #9cc); }
.map__car-lights { stroke: #FFD47A; stroke-width: 1.6; stroke-linecap: round; }
.map__ticker { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; padding: 0 4px; }
.map__step { font: italic 600 1.2rem/1.2 var(--f-display); }
.map__eta { flex: none; font: 600 .68rem/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.map__ctrls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map__hint { margin-top: 10px; font-size: .68rem; }
.ways { margin-top: 24px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: 500 .88rem/1 var(--f-sans); color: var(--ink-2); transition: background-color .3s, color .3s; }
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.way { padding: 18px 4px 4px; }
.way__title { font: italic 600 1.45rem/1.15 var(--f-display); }
.steps { margin-top: 10px; display: grid; gap: 10px; counter-reset: s; }
.steps li { position: relative; padding-left: 36px; font-size: .96rem; line-height: 1.5; color: var(--ink-2); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .05em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-ink); font: 600 .78rem/1 var(--f-sans); }
.steps strong, .way__note strong { color: var(--ink); font-weight: 600; }
.way__note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.maplinks { margin-top: 16px; display: grid; gap: 8px; }
.maplinks li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.maplinks__name { flex: 1 1 100%; font: italic 600 1.15rem/1.1 var(--f-display); }
.maplinks a, .ess__links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 .84rem/1 var(--f-sans); text-decoration: none; }

/* 13. Ch.7 doors ------------------------------------------------------------ */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; max-width: 980px; margin: 4px auto 0; }
.js .hotel { display: contents; }
.door { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.door__sign { display: inline-flex; align-items: center; gap: 6px; font: italic 600 1.05rem/1.1 var(--f-display); text-align: center; }
.door__no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 .66rem/1 var(--f-sans); font-style: normal; flex: none; }
.door__frame { position: relative; display: block; width: 100%; max-width: 150px; aspect-ratio: 100 / 150; perspective: 600px; }
.door__bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; border-radius: 6px 6px 0 0; }
.door__wall { fill: var(--wall); }
.door__opening { fill: #3B2A1E; }
.door.is-open .door__opening { fill: #FFC977; }
.door__room { fill: rgb(0 0 0 / .25); }
.door__lamp { fill: #FFE2A0; stroke: rgb(0 0 0 / .3); stroke-width: .8; }
.door__surround { fill: none; stroke: color-mix(in srgb, var(--ink) 50%, var(--wall)); stroke-width: 3; }
.door__eave { fill: var(--wood-2); }
.door__logs { stroke: rgb(0 0 0 / .12); stroke-width: 1.2; }
.door__leaf { position: absolute; left: 14%; top: 0; width: 72%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1s var(--ease-out); }
.door__leaf svg { width: 100%; height: 100%; overflow: visible; }
.door__leaf--rect { left: var(--l); top: var(--t); width: var(--w); height: calc(100% - var(--t)); }
.door__wood { fill: var(--wood); stroke: var(--wood-2); stroke-width: 1.4; }
.door__line { fill: none; stroke: var(--wood-2); stroke-width: 1.4; }
.door__studs circle, .door__knocker { fill: none; stroke: #C9A55C; stroke-width: 1.4; }
.door__studs circle { fill: #C9A55C; stroke: none; }
.door__glass { fill: color-mix(in srgb, #CFE2E2 70%, transparent); }
.door__handle { stroke: #C9A55C; stroke-width: 2.4; stroke-linecap: round; }
.door__plate { fill: #F1E7D3; }
.door__capiz rect { fill: #F4EFE3; stroke: var(--wood-2); stroke-width: .8; opacity: .9; }
.door__brace { stroke: var(--wood-2); stroke-width: 3; }
.door__wreath { fill: none; stroke: #5E7A62; stroke-width: 4; stroke-dasharray: 2 2; }
.door__heart { fill: #F4D7B0; }
.door.is-open .door__leaf { transform: rotateY(-105deg); }
.door.is-knock .door__leaf { animation: knock .5s ease-in-out; }
@keyframes knock { 20%, 60% { transform: rotateY(-4deg); } 40%, 80% { transform: rotateY(0); } }
.door:hover .door__leaf { transform: rotateY(-8deg); }
.door.is-open:hover .door__leaf { transform: rotateY(-105deg); }
.door:focus-visible { outline-offset: 6px; }
.hotel__info { padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -36px rgb(0 0 0 / .5); }
.js .hotel__info { grid-column: 1 / -1; grid-row: 3; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease-out), visibility 0s .5s; }
.js .hotel__info.is-open { visibility: inherit; opacity: 1; transform: none; transition: opacity .45s .15s, transform .6s .15s var(--ease-out), visibility 0s; }
.hotel__name { font: italic 600 1.6rem/1.05 var(--f-display); }
.facts { margin-top: 8px; display: grid; gap: 4px; font-size: .95rem; color: var(--ink-2); }
.facts li::before { content: "·"; margin-right: 8px; color: var(--gold); font-weight: 700; }
.facts strong { color: var(--ink); font-weight: 600; }
.perk { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); font-size: .9rem; line-height: 1.45; }
.hotel__links { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.doors__placeholder { grid-column: 1 / -1; grid-row: 3; align-self: center; text-align: center; font: 600 1.4rem/1 var(--f-hand); color: var(--ink-2); transition: opacity .4s; }
.doors.has-open .doors__placeholder { opacity: 0; }
html:not(.js) .doors { grid-template-columns: 1fr; }
html:not(.js) .hotel { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }

/* Ch.8 attire */
.wardrobe { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.rail { width: 100%; height: auto; overflow: visible; }
.rail__bar { stroke: var(--gold-lo); stroke-width: 3; stroke-linecap: round; }
.rail__end { fill: var(--gold); }
.rail__hook { fill: none; stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rail__hanger { transform-box: fill-box; transform-origin: 50% 0; }
.barong { fill: color-mix(in srgb, #FFFDF6 80%, transparent); stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: 1.3; stroke-linejoin: round; }
.barong--weave { stroke: none; }
.rail__weave { stroke: color-mix(in srgb, #B9A57A 40%, transparent); stroke-width: .6; }
.rail__line { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1; stroke-linecap: round; }
.barong__embroidery { fill: none; stroke: #B39350; stroke-width: 1.1; stroke-linecap: round; }
.barong__embroidery circle { fill: #D6BC80; stroke: none; }
.barong__buttons circle { fill: #B39350; }
.gown { fill: var(--wear, var(--motif-1)); stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: 1.3; stroke-linejoin: round; }
.gown__wipe { fill: var(--wear-next, var(--motif-1)); }
.gown__sleeve { fill: color-mix(in srgb, #FFFDF6 70%, transparent); stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: 1.2; stroke-linejoin: round; }
.rail__tags path { fill: var(--surface); stroke: var(--line-2); }
.swatches { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; border: 0; background: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.swatch__chip { width: 54px; height: 54px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), 0 8px 16px -8px rgb(0 0 0 / .4); position: relative; overflow: hidden; transition: transform .4s var(--ease-back); }
.swatch__chip::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgb(255 255 255 / .14) 0 2px, transparent 2px 5px); }
.swatch[aria-checked="true"] .swatch__chip { transform: scale(1.12); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink), 0 10px 20px -8px rgb(0 0 0 / .45); }
.swatch__name { font: 500 .78rem/1 var(--f-sans); letter-spacing: .06em; }
.wear { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 20px; }
.wear__h { font: italic 600 1.35rem/1.1 var(--f-display); }
.wear__col p { margin-top: 4px; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.wear__note { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.wear__note strong { color: var(--ink); }

/* 14. Ch.9 credits ------------------------------------------------------------ */
.credits {
  position: relative; height: min(58svh, 560px); max-width: 640px; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.credits::-webkit-scrollbar { display: none; }
.credits:focus-visible { outline-offset: -4px; }
.credits__roll { padding: 26svh 0 30svh; display: grid; gap: 38px; }
html:not(.js) .credits { height: auto; mask-image: none; -webkit-mask-image: none; }
html:not(.js) .credits__roll { padding: 20px 0; }
.credit__role { font: 600 .66rem/1.3 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--d-gold); }
.credit__names { margin-top: 8px; display: grid; gap: 4px; font: 500 1.35rem/1.25 var(--f-display); color: var(--ink); }
.credit__names--row { display: flex; justify-content: center; gap: 18px; }
.credit__names--small { font-size: 1.1rem; font-style: italic; color: var(--ink-2); }
.credit__star { margin-top: 6px; font: italic 500 clamp(2.2rem, 9vw, 3.4rem)/1 var(--f-display); }
.credit__star i { color: var(--d-gold); }
.credit__star a { color: var(--d-gold); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.credit--two, .credit--three { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.credit--three { grid-template-columns: repeat(3, 1fr); }
.credit--three .credit__names { font-size: 1.15rem; }
.credit__dl { margin-top: 10px; display: grid; gap: 8px; }
.credit__dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: baseline; }
.credit__dl dt { text-align: right; font: 500 .8rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.credit__dl dd { text-align: left; font: 500 1.25rem/1.2 var(--f-display); }
.credits__ctrls { display: flex; justify-content: center; margin-top: 14px; }
.credits__ctrls .ico-play, .credits__ctrls [aria-pressed="true"] .ico-pause { display: none; }
.credits__ctrls [aria-pressed="true"] .ico-play { display: block; }

/* Ch.10 RSVP */
.rsvp-wrap { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.rsvp { padding: 22px 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / .5); transform-origin: 50% 40%; }
.field { margin-top: 16px; }
.field:first-of-type { margin-top: 0; }
.field__label { display: block; margin-bottom: 6px; font: 600 .76rem/1.3 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
.field__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); outline: none; }
textarea.field__input { resize: vertical; min-height: 84px; }
.field__help { margin-top: 6px; font-size: .84rem; color: var(--ink-2); }
.field__error { margin-top: 6px; font-size: .86rem; font-weight: 500; color: #B3261E; }
[data-theme="midnight"] .field__error { color: #FF9C8F; }
.attend { margin: 18px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attend legend { grid-column: 1 / -1; }
.attend__opt { position: relative; cursor: pointer; }
.attend__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.attend__card { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; padding: 14px 8px 12px; border-radius: 16px; border: 1.5px solid var(--line-2); text-align: center; transition: border-color .3s, background-color .3s, transform .4s var(--ease-back); }
.attend__art { width: 60px; height: 40px; overflow: visible; margin-bottom: 4px; }
.attend__ring { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.attend__spark { stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.attend__cloud { fill: color-mix(in srgb, var(--ink-2) 18%, transparent); stroke: var(--ink-2); stroke-width: 1.4; }
.attend__rain path { stroke: #7FA3C8; stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.attend__t { font: italic 600 1.25rem/1.1 var(--f-display); }
.attend__s { font-size: .8rem; color: var(--ink-2); }
.attend__opt input:checked + .attend__card { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); transform: scale(1.02); }
.attend__opt input:focus-visible + .attend__card { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.attend__opt--yes input:checked + .attend__card .attend__spark { opacity: 1; }
.attend__opt--no input:checked + .attend__card .attend__rain path { opacity: 1; animation: rain .9s linear infinite; }
.attend__rain path:nth-child(2) { animation-delay: .3s !important; } .attend__rain path:nth-child(3) { animation-delay: .6s !important; }
@keyframes rain { from { transform: translateY(-3px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(5px); opacity: 0; } }
.attend__reaction { min-height: 1.6em; margin-top: 10px; text-align: center; font: 600 1.3rem/1.2 var(--f-hand); color: var(--brand-ink); }
.attend__say { display: none; }
.rsvp[data-attending="yes"] .attend__say--yes, .rsvp[data-attending="no"] .attend__say--no { display: inline; }
.rsvp[data-attending="no"] .rsvp__yes { display: none; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font-size: 1.4rem; line-height: 1; }
.stepper__input { width: 80px; text-align: center; font: 500 1.5rem/1 var(--f-display); -moz-appearance: textfield; appearance: textfield; }
.stepper__input::-webkit-inner-spin-button, .stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rsvp__send { width: 100%; margin-top: 20px; }
.rsvp__demo { margin-top: 10px; text-align: center; font-size: .78rem; color: var(--ink-2); }
.rsvp-done { padding: 34px 22px 26px; border-radius: var(--radius); background: var(--surface); text-align: center; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / .5); }
.rsvp-done__plane { width: 86px; margin: 0 auto 10px; overflow: visible; }
.rsvp-done__plane .plane__low { fill: color-mix(in srgb, var(--brand) 40%, var(--surface)); }
.rsvp-done__title { font: italic 500 clamp(2rem, 8vw, 2.8rem)/1.05 var(--f-display); }
.rsvp-done__title:focus { outline: none; }
.rsvp-done__no { display: none; }
.rsvp-done.is-no .rsvp-done__yes { display: none; } .rsvp-done.is-no .rsvp-done__no { display: inline; }
.rsvp-done__text { margin-top: 10px; color: var(--ink-2); }
.rsvp-done__ctas { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rsvp-plane { position: fixed; left: 0; top: 0; width: 86px; z-index: 30; pointer-events: none; overflow: visible; }

/* 15. Ch.11 gifts ---------------------------------------------------------------- */
.gift { position: relative; width: 100%; max-width: 460px; margin: 0 auto; }
.giftbox { position: relative; display: grid; justify-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.giftbox__svg { width: min(220px, 60vw); height: auto; overflow: visible; }
.giftbox__paper { fill: color-mix(in srgb, var(--surface) 70%, var(--motif-2)); stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.3; }
.giftbox__paper--lid { fill: color-mix(in srgb, var(--surface) 50%, var(--motif-2)); }
.giftbox__ribbon { fill: var(--brand); stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.1; }
.giftbox__tail { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round; }
.giftbox__tail-end { fill: var(--brand); stroke: var(--surface); stroke-width: 2; cursor: grab; }
.giftbox__lid, .giftbox__bow { transform-box: fill-box; transform-origin: 50% 100%; }
.giftbox__btn { margin-top: 6px; }
.giftbox.is-open .giftbox__btn { visibility: hidden; }
.gift-card { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / .5); }
.js .gift-card { display: none; }
.js .gift.is-open .gift-card { display: block; }
.js .gift.is-open .giftbox { display: none; }
.give { padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
#give-bank { grid-template-columns: 1fr; }
.qr { width: 116px; height: 116px; }
.qr__bg { fill: #fff; }
.qr__dots { fill: #1E2A22; }
.qr__label-bg { fill: #fff; }
.qr__label { font: 700 1.6px var(--f-sans); letter-spacing: .1px; fill: #1E2A22; }
.copyrows { display: grid; gap: 10px; }
.copyrow dt { font: 600 .66rem/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.copyrow dd { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 1.08rem/1.2 var(--f-sans); font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font: 500 .8rem/1 var(--f-sans); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.is-copied { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.gift__note { margin-top: 14px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.tabs--small .tab { min-height: 38px; font-size: .84rem; }

/* Ch.12 chat FAQ */
.chat { max-width: 520px; margin: 0 auto; border-radius: 24px; background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / .5); overflow: hidden; }
html:not(.js) .chat { background: none; box-shadow: none; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat__avatar { display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: .8rem !important; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: italic 600 .9rem/1 var(--f-display); }
.chat__avatar i { color: var(--gold-hi); }
.chat__who { display: flex; flex-direction: column; font: 600 .95rem/1.2 var(--f-sans); }
.chat__who small { font-weight: 400; font-size: .74rem; color: var(--ink-2); }
.chat__who small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #3FA35B; }
.chat__thread { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 10px; max-height: 38svh; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html:not(.js) .chat__thread { display: none; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 20px; font-size: .95rem; line-height: 1.45; }
.bubble--them { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--bg-2); color: var(--ink); }
.bubble--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--brand); color: var(--on-brand); }
.bubble--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; } .bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.bubble p + p { margin-top: 6px; }
.faq { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 16px; border-top: 1px solid var(--line); }
.js .qa { display: inline-flex; }
.js .qa summary { list-style: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand-ink); font: 500 .88rem/1.2 var(--f-sans); cursor: pointer; transition: background-color .25s; }
.js .qa summary::-webkit-details-marker { display: none; }
.js .qa summary:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.js .qa.is-asked summary { opacity: .55; border-style: dashed; }
.js .qa .qa__a { display: none; }
html:not(.js) .faq { display: grid; border: 0; padding: 0; }
html:not(.js) .qa { padding: 12px 0; border-bottom: 1px solid var(--line); }
html:not(.js) .qa summary { font: italic 600 1.2rem/1.2 var(--f-display); cursor: pointer; }
html:not(.js) .qa__a { margin-top: 6px; color: var(--ink-2); }

/* Epilogue */
.scene--forever .scene__scroll { z-index: 2; pointer-events: none; }
.scene--forever .scene__body > * { pointer-events: auto; }
.lanterns { position: absolute; inset: 0; z-index: 1; overflow: hidden; cursor: crosshair; touch-action: manipulation; }
.lantern { position: absolute; left: 0; top: 0; width: 34px; height: 44px; will-change: transform; pointer-events: none; }
.lantern__body { position: absolute; inset: 0; border-radius: 40% 40% 30% 30% / 46% 46% 26% 26%; background: radial-gradient(circle at 50% 70%, #FFF1C2, #FFB653 55%, #E07A2B); box-shadow: 0 0 24px 6px rgb(255 170 70 / .45), 0 0 70px 14px rgb(255 150 50 / .18); }
.lantern__body::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -3px; height: 4px; border-radius: 2px; background: #8A4A1E; }
.lantern__wish { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px; width: max-content; max-width: 180px; text-align: center; font: 600 1.05rem/1.1 var(--f-hand); color: var(--d-ink); text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.forever { text-align: center; max-width: 640px; margin: 0 auto; }
.forever .chap__no::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.forever__title { display: flex; flex-direction: column; align-items: center; }
.forever__title:focus { outline: none; }
.forever__l1 { font: italic 500 clamp(1.8rem, 7vw, 2.6rem)/1 var(--f-display); color: var(--ink-2); }
.forever__l2 { font: italic 500 clamp(3.6rem, 17vw, 7.4rem)/.92 var(--f-display); letter-spacing: -.02em; background: linear-gradient(100deg, var(--d-gold) 20%, #FFF4D6 45%, var(--d-gold) 60%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; padding: .04em .1em .1em; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.forever__names { margin-top: 10px; font: 500 .8rem/1.4 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.forever__names i { font-family: var(--f-display); color: var(--d-gold); }
.wish { margin: 26px auto 0; max-width: 440px; text-align: left; }
.wish__label { display: block; margin-bottom: 8px; text-align: center; font: 600 1.3rem/1.2 var(--f-hand); color: var(--d-gold); }
.wish__row { display: flex; gap: 8px; }
.scene--dark .field__input { background: color-mix(in srgb, var(--d-ink) 8%, transparent); border-color: color-mix(in srgb, var(--d-ink) 26%, transparent); color: var(--d-ink); }
.wishes { margin: 20px auto 0; display: grid; gap: 6px; font: 600 1.15rem/1.25 var(--f-hand); color: var(--ink-2); }
.js .wishes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.forever__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.forever__hint { margin-top: 18px; }
.credit-studio { margin-top: 30px; text-align: center; font-size: .8rem; letter-spacing: .08em; color: var(--ink-2); }
.credit-studio a { color: var(--ink); text-underline-offset: 3px; }

/* 16. Info sheet + lightbox ----------------------------------------------------- */
dialog { padding: 0; border: 0; color: var(--ink); }
.sheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 90svh; margin: 0;
  border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: 0 -30px 60px -30px rgb(0 0 0 / .5);
  overflow: hidden;
}
.sheet::backdrop { background: color-mix(in srgb, var(--ink) 35%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-up .5s var(--ease-out); }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
.sheet__inner { max-height: 90svh; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 26px); }
.sheet__inner::before { content: ""; display: block; width: 44px; height: 4px; margin: 0 auto 6px; border-radius: 4px; background: var(--line-2); }
.sheet__head { position: sticky; top: -8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; background: var(--surface); }
.sheet__title { font: italic 600 2rem/1 var(--f-display); }
.sheet__live { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, #C2402F 10%, transparent); font-size: .92rem; }
.sheet__live-dot { width: 9px; height: 9px; border-radius: 50%; background: #C2402F; animation: live 1.4s infinite; }
.essentials { display: grid; gap: 0; }
.ess { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ess dt { font: 600 .68rem/1.6 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.ess dd { font-size: .98rem; line-height: 1.45; }
.ess__sub { color: var(--ink-2); font-size: .88rem; }
.ess__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ess a { color: var(--brand-ink); font-weight: 500; }
.ess__links a { color: var(--ink); }
.sheet__h { margin: 22px 0 10px; font: 600 .7rem/1 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.jumps__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.jumps__list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--bg); text-decoration: none; font: italic 600 1.15rem/1 var(--f-display); box-shadow: inset 0 0 0 1px var(--line); }
.seatfinder__form { display: flex; gap: 8px; }
.seatfinder__out { min-height: 1.4em; margin-top: 10px; font-size: 1rem; }
.seatfinder__out strong { font: italic 600 1.3rem/1 var(--f-display); color: var(--brand-ink); }
.seatfinder__all { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.seatfinder__all summary { cursor: pointer; padding: 6px 0; }
.seating { display: grid; gap: 6px; margin-top: 6px; }
.toc__list { display: grid; gap: 2px; margin-bottom: 14px; }
.toc__list a { display: flex; align-items: baseline; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: italic 600 1.15rem/1.2 var(--f-display); }
.toc__list a span { min-width: 64px; font: 600 .64rem/1 var(--f-sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.toc__list a[aria-current="step"] { color: var(--brand-ink); }
.toc__list a[aria-current="step"]::after { content: "you are here"; margin-left: auto; font: 600 1rem/1 var(--f-hand); color: var(--accent-ink); }
.toc__list a.is-seen span::after { content: " ✓"; }

.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; background: rgb(14 14 12 / .94); color: #F5F0E6; }
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__fig { display: grid; justify-items: center; gap: 12px; padding: 70px 16px 90px; max-width: 1000px; }
.lightbox__img { width: auto; max-width: 100%; max-height: calc(100svh - 220px); border-radius: 4px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.lightbox__cap { text-align: center; display: grid; gap: 4px; }
.lightbox__text { font: 600 1.5rem/1.15 var(--f-hand); }
.lightbox__credit { font-size: .74rem; letter-spacing: .06em; opacity: .75; }
.lightbox .round-btn { position: absolute; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .3); color: #F5F0E6; }
.lightbox__close { top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; }
.lightbox__prev { bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); left: calc(50% - 58px); }
.lightbox__next { bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); left: calc(50% + 12px); }

/* Larger screens ------------------------------------------------------------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .stack.is-spread .stack__list { grid-template-columns: repeat(3, 1fr); }
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .js .hotel__info, .doors__placeholder { grid-row: 2; }
  .js .hotel__info { max-width: 560px; justify-self: center; width: 100%; }
}
@media (min-width: 900px) {
  :root { --gutter: 44px; --hud-h: calc(env(safe-area-inset-top, 0px) + 92px); --dock-h: calc(env(safe-area-inset-bottom, 0px) + 96px); }
  .hud { padding-top: 16px; }
  .hud__row { margin-top: 14px; }
  .dock { left: 50%; right: auto; transform: translateX(-50%); bottom: 22px; gap: 14px; }
  .dock__hint { display: block; min-width: 230px; text-align: center; font: 500 .78rem/1 var(--f-sans); letter-spacing: .08em; color: var(--ink-2); }
  .dock__hint-touch { display: none; }
  .scene__body--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(40px, 6vw, 110px); align-items: center; }
  .scene__body--split > .chap { grid-column: 1; grid-row: 1; align-self: end; }
  .scene__body--split > :not(.chap) { grid-column: 2; }
  .chap__title { font-size: clamp(3.6rem, 5.6vw, 5.6rem); }
  /* ch1 */
  .scene--met .met__sky { grid-row: 1 / span 3; max-height: 62svh; }
  .scene--met .met__hint { grid-column: 2; grid-row: 4; }
  .scene--met .story-text { grid-column: 1; grid-row: 2 / span 2; align-self: start; }
  /* ch2 */
  .scene--proposal .vista { grid-row: 1 / span 2; }
  .scene--proposal .story-text { grid-column: 1; grid-row: 2; align-self: start; }
  /* ch4 */
  .scene--day .ticket { grid-row: 1 / span 2; }
  .scene--day .day__info { grid-column: 1; grid-row: 2; align-self: start; margin-top: 18px; }
  .scene--day .countdown, .scene--day .venues { margin-left: 0; }
  .scene--day .cal-btns { justify-content: flex-start; }
  /* ch5 */
  .scene--programme .sunarc { grid-row: 1 / span 2; }
  .scene--programme .prog__list { grid-column: 1; grid-row: 2; align-self: start; }
  .prog__hint { text-align: left; }
  /* ch6 */
  .scene--journey .scene__body--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scene--journey .map { grid-column: 2; grid-row: 1 / span 2; width: min(100%, calc(100svh - 300px)); min-width: 340px; justify-self: center; }
  .scene--journey .chap { grid-column: 1; }
  .scene--journey .ways { grid-column: 1; grid-row: 2; margin-top: 4px; align-self: start; }
  /* ch8 */
  .scene--attire .wardrobe { grid-row: 1 / span 2; }
  .scene--attire .wear { grid-column: 1; grid-row: 2; align-self: start; }
  /* ch10 */
  .scene--rsvp .rsvp-wrap { grid-row: 1 / span 2; }
  /* ch11 */
  .scene--gifts .gift { grid-row: 1 / span 2; }
  /* ch12 */
  .scene--faq .chat { grid-row: 1 / span 2; width: 100%; }
  .chat__thread { max-height: 46svh; }
  .credits { height: min(54svh, 560px); }
  .sheet { inset: 0 0 0 auto; width: 440px; max-height: 100%; height: 100%; border-radius: 26px 0 0 26px; }
  .sheet[open] { animation: sheet-in .5s var(--ease-out); }
  @keyframes sheet-in { from { transform: translateX(40%); opacity: 0; } }
  .sheet__inner { max-height: 100%; height: 100%; padding: 22px 30px 30px; }
  .sheet__inner::before { display: none; }
  .lightbox__prev { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__next { left: auto; right: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .letter { width: 460px; padding: 48px 40px 36px; }
  .stack.is-spread .stack__list { grid-template-columns: repeat(4, 1fr); }
  .stack.is-spread { max-width: 980px; }
  .scene--day .ticket { width: min(420px, 100%); padding: 28px 26px 22px; }
  .scene--day .scratch__d { font-size: 8rem; }
  .js .invite { --env-w: 480px; }
  .env-front__name { font-size: 3.2rem; }
}
@media (min-width: 1400px) {
  .js .scene__body { max-width: 1240px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .chap__title { font-size: clamp(2.3rem, 9.5vw, 3.2rem); }
  .met__sky { max-height: 36svh; }
  .names { font-size: clamp(3rem, 14vw, 4.4rem); }
  .letter { padding: 30px 20px 24px; }
}
@media (hover: none) { .door:hover .door__leaf { transform: none; } }

/* 17. DEMO ONLY: theme switcher --------------------------------------------------------- */
.demo-switch { position: fixed; left: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 25; }
.demo-switch fieldset {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 7px 6px 12px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.on-dark .demo-switch fieldset { background: color-mix(in srgb, var(--d-bg-2) 82%, transparent); border-color: var(--d-line); }
.on-dark .demo-switch__label { color: var(--d-ink-2); }
.demo-switch__label { float: left; padding: 0 4px 0 0; text-transform: uppercase; font: 600 .6rem/1 var(--f-sans); letter-spacing: .16em; color: var(--ink-2); }
.demo-switch__opt { position: relative; display: block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); transition: transform .3s var(--ease-out); }
.demo-switch__opt:hover { transform: scale(1.12); }
.demo-switch__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.demo-switch__opt:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.on-dark .demo-switch__opt:has(input:checked) { box-shadow: 0 0 0 2px var(--d-bg), 0 0 0 4px var(--d-ink); }
.demo-switch__opt:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.demo-switch__opt--garden { background: linear-gradient(135deg, #F3EEE2 50%, #5E7A62 50%); }
.demo-switch__opt--midnight { background: linear-gradient(135deg, #DDBD78 50%, #0E1628 50%); }
.demo-switch__opt--terracotta { background: linear-gradient(135deg, #F6EADF 50%, #A9532F 50%); }
@media (max-width: 899px) { .demo-switch__label { display: none; } .demo-switch fieldset { padding: 6px; } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-reveal .8s var(--ease-in-out) both; }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 30px) var(--vt-y, 100%)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 30px) var(--vt-y, 100%)); } }

/* 18. Reduced motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-new(root) { animation: none; }
  .candle.is-lit .candle__flame { animation: none; }
  .forever__l2 { animation: none; background-position: 50% 0; }
}
.rm .js-motion-only { display: none !important; }
.rm .timeline .tl { grid-area: auto; opacity: 1; visibility: inherit; }
.rm .timeline .tl:not(.is-on) { opacity: .75; }
.map__zoom-out, .map.is-zoomed .map__zoom-in { display: none; }
.map.is-zoomed .map__zoom-out { display: inline; }
.credits__label-play, [aria-pressed="true"] .credits__label-pause { display: none; }
[aria-pressed="true"] .credits__label-play { display: inline; }
.met__sky { width: min(100%, calc(46svh * 4 / 3)); }
@media (max-height: 700px) and (max-width: 899px) { .met__sky { width: min(100%, calc(36svh * 4 / 3)); } }
@media (min-width: 900px) { .scene--met .met__sky { width: min(100%, calc(62svh * 4 / 3)); } }
.candles .ringbox { position: relative; left: auto; top: auto; margin: 0 4px 2px; transform: none; width: 86px; flex: none; align-self: flex-end; }
.map__minitrees circle { fill: color-mix(in srgb, var(--brand) 45%, transparent); }
kbd { display: inline-grid; place-items: center; vertical-align: middle; } kbd svg { width: 12px; height: 12px; }
/* no-JS placement of the decorative toys */
html:not(.js) .plane--his { left: 8%; top: 58%; }
html:not(.js) .plane--hers { left: 64%; top: 20%; }
html:not(.js) .sun { left: 12%; top: 80%; }
html:not(.js) .map__car { display: none; }

/* ==========================================================================
   ENVELOPE FRONT (address side) + tilt
   ========================================================================== */
.js .invite { perspective: 1100px; }
.env__from { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font: 600 1.15rem/1 var(--f-hand); color: var(--ink-2); }
.env-front { position: absolute; z-index: 6; inset: 0; margin: auto; width: var(--env-w); height: var(--env-h); }
.env-front__paper {
  position: absolute; inset: 0; border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgb(255 255 255 / .5), transparent 40%),
    repeating-linear-gradient(97deg, rgb(0 0 0 / .012) 0 2px, transparent 2px 5px),
    var(--env-paper);
  box-shadow: 0 34px 60px -30px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .1), inset 0 0 0 1px rgb(0 0 0 / .05);
}
.env-front__airmail { position: absolute; inset: 0; border: 7px solid transparent; border-radius: 6px; border-image: repeating-linear-gradient(45deg, var(--accent) 0 10px, transparent 10px 16px, var(--brand) 16px 26px, transparent 26px 32px) 7; opacity: .75; }
.env-front__stamp { position: absolute; right: 7%; top: 11%; width: 14%; transform: rotate(5deg); }
.env-front__stamp svg { width: 100%; height: auto; }
.env-front__postmark { position: absolute; right: 16%; top: 14%; width: 30%; fill: none; stroke: color-mix(in srgb, var(--ink) 32%, transparent); stroke-width: 1.3; transform: rotate(-10deg); }
.env-front__postmark text { font: 600 6.5px var(--f-sans); fill: color-mix(in srgb, var(--ink) 48%, transparent); stroke: none; letter-spacing: .05em; }
.env-front__label { position: absolute; left: 12%; top: 40%; font: 600 .56rem/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.env-front__name { position: absolute; left: 11%; right: 8%; top: 47%; font: 600 clamp(1.9rem, 9vw, 2.7rem)/1 var(--f-hand); color: var(--ink); transform: rotate(-2deg); overflow-wrap: anywhere; }
.env-front__seats { position: absolute; left: 12%; bottom: 13%; font: 600 .6rem/1.3 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.env-front__lines { position: absolute; left: 11%; right: 26%; top: 67%; height: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.env-front__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.env-front__btn:focus-visible { outline-offset: 6px; }
.invite__hint-back, .invite.is-flipped .invite__hint-front { display: none; }
.invite.is-flipped .invite__hint-back { display: inline; }
.js .invite:not(.is-flipped) .seal, .js .invite:not(.is-flipped) .env { visibility: hidden; }
.invite.is-flipped .env-front { display: none; }
html:not(.js) .env-front { display: none; }
.invite__kicker { font-size: 1.35rem; }

/* ==========================================================================
   HUD in the map world (no website header: just floating paper buttons)
   ========================================================================== */
.hud__map { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 12px; flex: none; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font: 500 .82rem/1 var(--f-sans); letter-spacing: .06em; }
.hud__map .hud__ico { width: 20px; height: 20px; }
.in-map .hud__map, .in-map .hud__chapter, .on-welcome .hud__map, .on-welcome .hud__chapter, .on-welcome .dock__prev { visibility: hidden; }
.in-map .dock__prev { display: none; }
.in-map .hud, .in-map .dock { --ink: var(--atlas-ink); --ink-2: var(--atlas-ink-2); --surface: var(--atlas-paper); --bg: var(--atlas-paper); --line-2: color-mix(in srgb, var(--atlas-ink) 26%, transparent); }

/* ==========================================================================
   THE STORY MAP (atlas)
   ========================================================================== */
:root, [data-theme="garden"] { --atlas-paper: #F1E8D3; --atlas-paper-2: #E6DAC0; --atlas-ink: #2B3A2E; --atlas-ink-2: #56614E; --atlas-road: #A38755; }
[data-theme="midnight"] { --atlas-paper: #16213A; --atlas-paper-2: #0F182C; --atlas-ink: #EADCBC; --atlas-ink-2: #BDB29A; --atlas-road: #C9A75F; }
[data-theme="terracotta"] { --atlas-paper: #F4E2CF; --atlas-paper-2: #EAD1B9; --atlas-ink: #45241A; --atlas-ink-2: #714B3B; --atlas-road: #B5764E; }
.atlas {
  --hx: 50vw; --hy: 50vh; --hr: 0px;
  position: fixed; inset: 0; z-index: 5; visibility: hidden; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, var(--atlas-paper), var(--atlas-paper-2));
  -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent calc(var(--hr) - 1px), #000 var(--hr));
  mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent calc(var(--hr) - 1px), #000 var(--hr));
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.atlas.is-on { visibility: visible; }
.atlas.is-dragging { cursor: grabbing; }
html:not(.js) .atlas { display: none; }
.atlas__view { position: absolute; inset: 0; }
.atlas__svg { width: 100%; height: 100%; max-width: none; overflow: hidden; }
.atlas__ring { position: fixed; left: var(--hx); top: var(--hy); width: calc(var(--hr) * 2); height: calc(var(--hr) * 2); transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid var(--gold); box-shadow: 0 0 40px 6px color-mix(in srgb, var(--gold-hi) 55%, transparent); pointer-events: none; opacity: var(--ring, 0); }
.atlas__hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); text-align: center; font: 600 1.25rem/1.2 var(--f-hand); color: var(--atlas-ink-2); pointer-events: none; transition: opacity .6s; text-shadow: 0 0 8px var(--atlas-paper), 0 0 2px var(--atlas-paper); }
.atlas.is-traveling .atlas__hint { opacity: 0; }
/* map art */
.a-paperbg { fill: var(--atlas-paper); stroke: color-mix(in srgb, var(--atlas-ink) 20%, transparent); stroke-width: 2; }
.a-frame { fill: none; stroke: color-mix(in srgb, var(--atlas-ink) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.a-line { fill: none; stroke: var(--atlas-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-thin { stroke-width: 1.4; }
.a-dash { stroke-dasharray: 3 7; stroke-width: 1.8; }
.a-paper { fill: color-mix(in srgb, var(--atlas-paper) 40%, #fff); }
[data-theme="midnight"] .a-paper { fill: #24314F; }
.a-ink { fill: var(--atlas-ink); }
.a-glass { fill: color-mix(in srgb, var(--map-water) 80%, #fff); }
.a-plane { fill: color-mix(in srgb, var(--accent) 45%, #fff); }
.a-water, .a-waterbig { fill: var(--map-water); }
.a-waterbig { stroke: color-mix(in srgb, var(--atlas-ink) 30%, transparent); stroke-width: 2; }
.a-waves path { stroke: color-mix(in srgb, var(--atlas-ink) 35%, transparent); stroke-width: 2; stroke-linecap: round; }
.a-flame { fill: #F6B54E; }
.a-moon { fill: var(--gold); }
.a-photo { fill: var(--motif-1); } .a-photo2 { fill: var(--accent); }
.a-lens { fill: var(--atlas-paper); stroke: var(--atlas-ink); stroke-width: 2.4; }
.a-band { fill: var(--accent); }
.a-cal-m { font: 700 12px var(--f-sans); letter-spacing: .14em; fill: #fff; }
.a-cal-d { font: italic 600 46px var(--f-display); fill: var(--atlas-ink); }
.a-sun { fill: #F6C35E; }
.a-hill { fill: var(--motif-1); }
.a-sign { font: 700 9px var(--f-sans); letter-spacing: .1em; fill: var(--atlas-ink); }
.a-car { fill: var(--accent); }
.a-wheel { fill: var(--atlas-ink); }
.a-house1 { fill: var(--wall-1); } .a-house2 { fill: var(--wall-3); } .a-house3 { fill: var(--wall-2); }
.a-door { fill: var(--wood); } .a-window { fill: #FFD98A; }
.a-dress { fill: var(--motif-4); }
.a-stage { fill: color-mix(in srgb, var(--atlas-ink) 85%, transparent); }
.a-curtain { fill: #8E2C3A; }
.a-star { fill: var(--gold); }
.a-box { fill: var(--brand); }
.a-flag { fill: #C2402F; stroke: var(--atlas-ink); stroke-width: 2; }
.a-ribbon { fill: var(--brand); }
.a-q { font: italic 700 30px var(--f-display); fill: var(--atlas-ink); }
.a-bubble2 { fill: var(--motif-2); }
.a-heart, .a-heartd { fill: var(--accent); }
.a-heartd { opacity: .7; }
.a-lanterns path { fill: #F6B54E; }
.a-seal { fill: var(--seal-mid); }
.a-tree path { stroke: var(--atlas-ink-2); stroke-width: 2; }
.a-tree circle { fill: color-mix(in srgb, var(--motif-1) 65%, transparent); stroke: color-mix(in srgb, var(--atlas-ink) 40%, transparent); stroke-width: 1.5; }
.a-mount path:first-child { fill: color-mix(in srgb, var(--atlas-ink) 10%, transparent); stroke: color-mix(in srgb, var(--atlas-ink) 55%, transparent); stroke-width: 2; stroke-linejoin: round; }
.a-snow { fill: none; stroke: color-mix(in srgb, var(--atlas-ink) 55%, transparent); stroke-width: 2; }
.a-cloud { fill: color-mix(in srgb, #fff 55%, transparent); stroke: color-mix(in srgb, var(--atlas-ink) 30%, transparent); stroke-width: 1.6; }
[data-theme="midnight"] .a-cloud { fill: rgb(255 255 255 / .06); }
.a-note { font: 600 27px var(--f-hand); fill: var(--atlas-ink-2); }
.a-compass circle { fill: none; stroke: color-mix(in srgb, var(--atlas-ink) 45%, transparent); stroke-width: 1.6; }
.a-needle { fill: var(--accent); } .a-needle2 { fill: color-mix(in srgb, var(--atlas-ink) 40%, transparent); }
.a-compass text { font: 700 14px var(--f-sans); fill: var(--atlas-ink); }
.a-ribbonbanner { fill: var(--brand); stroke: color-mix(in srgb, var(--atlas-ink) 50%, transparent); stroke-width: 2; }
.a-title1 { font: italic 600 52px var(--f-display); fill: var(--on-brand); }
.a-title2 { font: 600 30px var(--f-hand); fill: var(--atlas-ink-2); }
.atlas__road { fill: none; stroke: var(--atlas-road); stroke-width: 5; stroke-dasharray: 2 13; stroke-linecap: round; opacity: .9; }
.atlas__trail { fill: none; stroke: var(--atlas-road); stroke-width: 6; stroke-linecap: round; opacity: .95; }
.atlas__marker .plane__top { fill: var(--atlas-paper); stroke: var(--atlas-ink); stroke-width: 2; stroke-linejoin: round; }
.atlas__marker .plane__low { fill: color-mix(in srgb, var(--accent) 55%, var(--atlas-paper)); stroke: var(--atlas-ink); stroke-width: 2; stroke-linejoin: round; }
.atlas__marker .plane__fold { fill: var(--accent); stroke: var(--atlas-ink); stroke-width: 1.6; }
.atlas__marker { filter: drop-shadow(0 6px 4px rgb(0 0 0 / .18)); }
/* stops */
.stop { cursor: pointer; outline: none; }
.stop__label { font: 600 30px var(--f-hand); fill: var(--atlas-ink); paint-order: stroke; stroke: var(--atlas-paper); stroke-width: 6px; stroke-linejoin: round; }
.stop__dot { fill: var(--atlas-paper); stroke: var(--atlas-ink); stroke-width: 3; }
.stop__halo { fill: none; stroke: var(--gold); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stop__no { font: 700 19px var(--f-sans); fill: var(--atlas-ink); }
.stop__lock { fill: none; stroke: var(--atlas-ink-2); stroke-width: 2; stroke-linejoin: round; display: none; }
.stop.is-locked { opacity: .5; }
.stop.is-locked .stop__no { display: none; }
.stop.is-locked .stop__lock { display: block; }
.stop.is-locked .stop__dot { stroke-dasharray: 4 5; }
.stop.is-visited .stop__dot { fill: var(--atlas-ink); }
.stop.is-visited .stop__no { fill: var(--atlas-paper); }
.stop.is-next .stop__halo { opacity: 1; animation: halo 1.8s var(--ease-out) infinite; }
.stop.is-current .stop__dot { stroke: var(--gold); stroke-width: 5; }
@keyframes halo { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.stop:focus-visible .stop__dot { stroke: var(--focus); stroke-width: 6; }
@media (prefers-reduced-motion: reduce) { .stop.is-next .stop__halo { animation: none; opacity: .8; } }
.a-roof { fill: color-mix(in srgb, var(--gold) 55%, var(--atlas-paper)); }
.a-hut { fill: color-mix(in srgb, var(--wood) 40%, var(--atlas-paper)); }
.a-terrace path { fill: none; stroke: color-mix(in srgb, var(--motif-1) 75%, var(--atlas-ink)); stroke-width: 2.2; stroke-linecap: round; opacity: .6; }
.a-palm path { fill: none; stroke: color-mix(in srgb, var(--atlas-ink) 70%, transparent); stroke-width: 2.4; stroke-linecap: round; }
.a-palm .a-frond { stroke: color-mix(in srgb, var(--motif-1) 60%, var(--atlas-ink)); stroke-width: 3; }
.a-birds { fill: none; stroke: color-mix(in srgb, var(--atlas-ink) 55%, transparent); stroke-width: 2; stroke-linecap: round; }
.toc__ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.env-front__stamp text { font: 700 6px var(--f-sans); letter-spacing: .04em; fill: var(--gold-lo); }

/* ==========================================================================
   MOBILE FIT PASS: short screens, landscape phones, in-app browsers, desktop scale-up
   ========================================================================== */
/* readable sizes + tap targets on phones */
.tab, .tabs--small .tab { min-height: 44px; }
.copy-btn { min-height: 44px; padding: 0 14px; }
.venue__place, .field__help, .gift__note, .way__note, .wear__note, .wear__col p, .steps li, .tl__note, .facts, .perk, .bubble, .chat__who small, .rsvp__demo { font-size: max(.9rem, 14px); }
.attend__s, .lightbox__credit, .seatfinder__all { font-size: max(.85rem, 13.5px); }
.hint { font-size: max(.78rem, 12px); }
.swatch__name { font-size: .84rem; }
.chap__no { font-size: .74rem; }

/* chapter one: keep the plane tags on screen and the caption clear of the planes */
.plane { width: clamp(62px, 19%, 132px); }
.plane__tag { font-size: clamp(1rem, 2.4vw, 1.4rem); }
.met__caption { top: 2%; bottom: auto; }

/* doors scale with the screen height so a 2x2 grid fits short phones */
.door__frame { max-width: min(150px, 17svh); }

/* illustrations scale down on short screens (any width) */
.vista { max-width: min(560px, calc((100svh - var(--hud-h) - var(--dock-h) - 40px) * 1.25)); }
.sunarc { max-width: min(560px, calc((100svh - var(--hud-h) - var(--dock-h) - 120px) * 1.74)); }
.map { max-width: min(560px, calc(100svh - var(--hud-h) - var(--dock-h) - 60px)); }
.wardrobe { max-width: min(520px, calc((100svh - var(--hud-h) - var(--dock-h) - 60px) * 1.05)); }
.polaroid { width: min(300px, 76vw, calc((100svh - var(--hud-h) - var(--dock-h) - 120px) * .78)); }
.giftbox__svg { width: min(220px, 60vw, 30svh); }
.scratch__d { font-size: clamp(4rem, 13svh, 6.4rem); }
.ticket { padding-block: clamp(14px, 2.6svh, 22px); }
.js .invite { --env-w: min(330px, 84vw, calc((100svh - var(--hud-h) - var(--dock-h) - 120px) * 1.5)); }
.invite__kicker { margin-top: calc(var(--env-h) / -2 - 50px); }
.invite__hint { margin-top: calc(var(--env-h) / 2 + 16px); }

/* landscape phones: slimmer top/bottom controls and the two-column chapter layout */
@media (max-height: 520px) and (orientation: landscape) and (min-width: 600px) {
  :root { --hud-h: calc(env(safe-area-inset-top, 0px) + 58px); --dock-h: calc(env(safe-area-inset-bottom, 0px) + 62px); --gutter: max(22px, env(safe-area-inset-left, 0px) + 12px); }
  .hud { padding-top: calc(env(safe-area-inset-top, 0px) + 6px); }
  .hud__row { margin-top: 0; }
  .dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .demo-switch { bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .dock__btn { height: 46px; min-width: 46px; }
  .chap__title { font-size: clamp(2rem, 9svh, 3rem); }
  .chap { margin-bottom: 10px; }
  .scene__body--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .scene__body--split > .chap { grid-column: 1; grid-row: 1; }
  .scene__body--split > :not(.chap) { grid-column: 2; grid-row: 1 / span 4; }
  .scene__body--split > .story-text, .scene__body--split > .day__info, .scene__body--split > .prog__list, .scene__body--split > .wear, .scene__body--split > .ways { grid-column: 1; grid-row: 2 / span 3; }
  .scene--met .met__hint { grid-column: 2; grid-row: 5; }
  .met__sky { width: min(100%, calc((100svh - 130px) * 4 / 3)); }
  .scene--journey .map { grid-column: 2; grid-row: 1 / span 4; }
  .ticket { width: min(320px, 100%); }
  .names { font-size: clamp(2.6rem, 13svh, 3.6rem); }
  .letter { padding: 24px 22px 20px; }
  .credits { height: calc(100svh - var(--hud-h) - var(--dock-h) - 120px); }
  .chat__thread { max-height: 30svh; }
  .lightbox__img { max-height: calc(100svh - 120px); }
  .lightbox__fig { padding: 20px 70px; }
  .lightbox__prev { left: 14px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__next { left: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .sheet { max-height: 100svh; }
  .sheet__inner { max-height: 100svh; }
  .atlas__hint { display: none; }
}

@media (min-width: 900px) and (min-height: 521px) { .js .invite { --env-w: min(480px, calc((100svh - 280px) * 1.5)); } }

/* big screens: let the hero illustrations fill their column */
@media (min-width: 1200px) and (min-height: 760px) {
  .scene--met .met__sky { width: min(100%, calc(68svh * 4 / 3)); }
  .giftbox__svg { width: min(340px, 34svh); }
  .js .invite { --env-w: min(560px, calc((100svh - 300px) * 1.5)); }
  .env-front__name { font-size: 3.6rem; }
  .env-front__label { font-size: .7rem; }
  .env-front__seats { font-size: .72rem; }
  .seal { width: 96px; height: 96px; }
  .scene--day .ticket { width: min(460px, 100%); }
  .vista, .sunarc, .map { max-width: min(640px, calc(100svh - 220px) * 1.3); }
  .scene--attire .wardrobe { max-width: 600px; }
  .polaroid { width: min(360px, calc((100svh - 330px) * .78)); }
}
.js .invite { overflow-x: clip; overflow-clip-margin: 24px; }
.vista { overflow-x: clip; overflow-clip-margin: 12px; }
.env-front__name { font-size: calc(var(--env-w) * .088) !important; }
.env-front__label { font-size: max(9px, calc(var(--env-w) * .026)) !important; }
.env-front__seats { font-size: max(9px, calc(var(--env-w) * .028)) !important; }
.env__from { font-size: max(15px, calc(var(--env-w) * .052)); }
@media (max-height: 520px) and (orientation: landscape) and (min-width: 600px) { .door__frame { max-width: min(150px, 30svh); } .map { max-width: calc(100svh - 120px); } .polaroid { width: min(240px, calc((100svh - 150px) * .9)); } }
/* DEMO ONLY: on phones the theme picker lives in the Info sheet instead of floating over content */
.demo-switch--sheet { position: static; margin-top: 4px; }
.demo-switch--sheet fieldset { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.demo-switch--sheet legend { float: left; margin: 0 6px 0 0; padding: 0; }
.demo-switch--sheet .demo-switch__opt { width: 44px; height: 44px; }
@media (min-width: 768px) { .demo-switch--sheet { display: none; } }
@media (max-width: 767.98px) { .demo-switch:not(.demo-switch--sheet) { display: none; } }
