:root {
  --demo-ink: #302b2b;
  --demo-muted: #675f5d;
  --demo-paper: #fffdf9;
  --demo-accent: #87364f;
  --demo-accent-soft: #f6e6e8;
  --demo-line: #ded5cf;
  --demo-max: 72rem;
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--demo-ink);
  background: var(--demo-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
body.reveal-active { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.demo-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 54px;
  padding: 10px max(18px, calc((100vw - var(--demo-max)) / 2));
  color: #fff;
  background: #38262d;
  font-size: .88rem;
}
.demo-bar strong { display: block; }
.demo-bar-actions { display: flex; align-items: center; gap: 18px; }
.demo-replay { min-height: 36px; padding: 5px 10px; color: #fff; border: 1px solid rgba(255,255,255,.48); border-radius: 4px; background: transparent; cursor: pointer; }
.demo-replay:hover, .demo-replay:focus-visible { background: rgba(255,255,255,.12); }
.invitation-reveal { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; overflow: clip; overscroll-behavior: none; color: #2f2528; border: 0; background: #f7efeb; }
.invitation-reveal::backdrop { background: #21191b; }
.invitation-reveal[open] { display: grid; place-items: center; }
.reveal-backdrop { position: absolute; inset: -18px; background: url('demo-espace-mariage.webp') center / cover no-repeat; filter: blur(9px); transform: scale(1.05); opacity: .27; }
.reveal-birth .reveal-backdrop { background-image: url('demo-invitation-naissance.webp'); }
.reveal-birthday .reveal-backdrop { background-image: url('demo-invitation-anniversaire.webp'); }
.reveal-professional .reveal-backdrop { background-image: url('demo-invitation-professionnelle.webp'); }
.invitation-reveal::after { content: ""; position: absolute; inset: 0; background: rgba(255,248,244,.74); }
.reveal-professional::after { background: rgba(242,247,244,.82); }
.reveal-content { position: relative; z-index: 2; width: min(calc(100% - 28px), 42rem); height: 100%; max-height: 100%; padding: clamp(14px,3vh,32px) clamp(14px,4vw,24px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.reveal-kicker { margin: 0 0 8px; color: var(--demo-accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.reveal-content h2 { max-width: 16ch; margin: 0 auto 12px; font: 700 clamp(1.8rem,5vw,3rem)/1.12 Georgia, 'Times New Roman', serif; }
.reveal-intro { max-width: 35rem; margin: 0 auto clamp(10px,2vh,18px); color: var(--demo-muted); }
.reveal-scene { --reveal-progress: 0; position: relative; flex: 0 1 auto; width: min(72vw,52vh,24rem); max-width: 100%; aspect-ratio: 1.45; margin: 0 auto clamp(10px,2vh,18px); }
.reveal-scene-button { padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.reveal-scene-button:focus-visible { outline: 4px solid rgba(135,54,79,.34); outline-offset: 5px; }
.scene-action { position: absolute; z-index: 12; left: 50%; bottom: 5%; min-width: 9rem; padding: 7px 13px; color: #fff; border-radius: 999px; background: rgba(74,42,51,.88); box-shadow: 0 5px 14px rgba(47,37,40,.2); transform: translateX(-50%); font-size: .78rem; font-weight: 800; white-space: nowrap; transition: opacity .3s ease; }
.birth-reveal-scene .scene-action { background: rgba(74,105,84,.92); }
.birthday-reveal-scene .scene-action { background: rgba(135,54,79,.92); }
.envelope-scene { perspective: 1000px; filter: drop-shadow(0 18px 22px rgba(57,38,44,.18)); }
.envelope-back { position: absolute; inset: 18% 0 0; background: #d8b5b8; border: 1px solid #b98b94; border-radius: 5px; }
.envelope-letter { position: absolute; z-index: 2; width: 82%; height: 72%; left: 9%; top: 14%; padding: 16px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--demo-accent); border: 1px solid #d9c8bf; border-radius: 3px; background: #fffdf9; transform: translateY(calc(var(--reveal-progress) * -.48px)); }
.envelope-letter img { width: 64px; height: 64px; object-fit: contain; }
.envelope-letter span { font: italic 1.15rem/1.2 Georgia, 'Times New Roman', serif; }
.envelope-flap { position: absolute; z-index: 5; inset: 18% 0 auto; height: 56%; clip-path: polygon(0 0,100% 0,50% 100%); background: #e8ccca; border-top: 1px solid #b98b94; transform: rotateX(calc(var(--reveal-progress) * -1.65deg)); transform-origin: top center; backface-visibility: hidden; }
.envelope-front { position: absolute; z-index: 4; inset: 18% 0 0; background: #ead5cf; pointer-events: none; }
.envelope-front.left { clip-path: polygon(0 0,52% 52%,0 100%); }
.envelope-front.right { clip-path: polygon(100% 0,48% 52%,100% 100%); background: #e2c5c3; }
.envelope-seal { position: absolute; z-index: 7; left: 50%; top: 54%; width: 64px; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; place-items: center; color: #fff8f5; border: 3px double rgba(255,255,255,.62); border-radius: 50%; background: var(--demo-accent); box-shadow: 0 6px 14px rgba(63,27,39,.28); transform: translate(-50%,-50%) scale(calc(1 - var(--reveal-progress) * .003)); opacity: calc(1 - var(--reveal-progress) * .009); font: 700 1rem/1 Georgia, 'Times New Roman', serif; }
.envelope-seal span { font-size: .72rem; }
.reveal-control { flex: 0 0 auto; width: min(100%, 30rem); max-width: 100%; margin: 0 auto; }
.reveal-control label { display: block; margin-bottom: 8px; font-weight: 700; }
.reveal-control input[type="range"] { width: 100%; height: 38px; margin: 0; accent-color: var(--demo-accent); cursor: grab; }
.reveal-control input[type="range"]:active { cursor: grabbing; }
.reveal-control input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: #dbc8c3; }
.reveal-control input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; appearance: none; border: 3px double #fff8f5; border-radius: 50%; background: var(--demo-accent); box-shadow: 0 3px 9px rgba(63,27,39,.25); }
.reveal-control input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: #dbc8c3; }
.reveal-control input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 3px double #fff8f5; border-radius: 50%; background: var(--demo-accent); box-shadow: 0 3px 9px rgba(63,27,39,.25); }
.reveal-status { min-height: 24px; margin: 4px 0 0; color: var(--demo-muted); font-size: .84rem; }
.gift-steps { display: flex; justify-content: center; gap: 8px; margin: 2px 0 6px; }
.gift-steps i { width: 24px; height: 5px; border-radius: 99px; background: #d8cbc7; transition: background-color .2s ease, transform .2s ease; }
.gift-steps i.is-active { background: var(--demo-accent); transform: scaleX(1.15); }
.hold-control { --hold-progress: 0; }
.hold-access { position: relative; width: 100%; min-height: 54px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 11px 18px; color: #315b49; border: 1px solid #6f9182; border-radius: 5px; background: rgba(255,255,255,.78); cursor: pointer; touch-action: none; font-weight: 800; }
.hold-access::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: #426c5a; transform: scaleX(calc(var(--hold-progress) * .01)); transform-origin: left center; }
.hold-access:focus-visible { outline: 4px solid rgba(66,108,90,.28); outline-offset: 4px; }
.hold-access[aria-pressed="true"] { color: #fff; background: #426c5a; }
.hold-icon { width: 22px; height: 16px; border: 2px solid currentColor; border-radius: 3px; }
.hold-icon::before { content: ""; display: block; width: 7px; height: 7px; margin: 2px auto 0; border: 2px solid currentColor; border-radius: 50%; }
.reveal-direct { min-height: 44px; margin-top: 8px; padding: 9px 16px; color: var(--demo-accent); border: 1px solid var(--demo-accent); border-radius: 4px; background: rgba(255,255,255,.65); font-weight: 700; cursor: pointer; }
.reveal-direct:hover, .reveal-direct:focus-visible { color: #fff; background: var(--demo-accent); }
.birth-reveal-scene { overflow: hidden; border: 1px solid #c8d7ca; border-radius: 50% 50% 8px 8px; background: radial-gradient(circle at 50% 32%,#fff 0 26%,#e8f0e9 72%); }
.birth-photo-card { position: absolute; z-index: 1; inset: 7% 9%; overflow: hidden; border: 5px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px rgba(53,76,61,.17); opacity: calc(var(--reveal-progress) * .01); transform: scale(calc(.72 + var(--reveal-progress) * .0028)); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.birth-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.birth-photo-card span { position: absolute; inset: auto 0 8%; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); font: 700 1.2rem/1 Georgia,serif; }
.birth-reveal-scene.is-reveal-ready .birth-photo-card { transform: scale(1.04); }
.rose-stem { position: absolute; z-index: 2; left: calc(50% - 3px); bottom: 2%; width: 6px; height: 45%; border-radius: 99px; background: #6f897a; opacity: calc(1 - var(--reveal-progress) * .009); transform: scaleY(calc(.35 + var(--reveal-progress) * .0065)); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .42s ease; }
.rose-stem i, .rose-stem b { position: absolute; width: 34px; height: 18px; border-radius: 100% 0 100% 0; background: #8ea596; }
.rose-stem i { left: -31px; top: 48%; transform: rotate(18deg); }
.rose-stem b { left: 3px; top: 66%; transform: scaleX(-1) rotate(18deg); }
.rose-bloom { position: absolute; z-index: 3; left: 50%; top: 37%; width: 82px; height: 82px; opacity: calc(1 - var(--reveal-progress) * .009); transform: translate(-50%,-50%) scale(calc(.5 + var(--reveal-progress) * .005)); transition: transform .72s cubic-bezier(.2,.8,.2,1), opacity .42s ease; }
.rose-bloom i { position: absolute; inset: 18px 24px; border-radius: 70% 20% 65% 25%; background: #c7798d; transform-origin: 50% 82%; box-shadow: inset 0 0 0 1px rgba(123,54,75,.12); }
.rose-bloom i:nth-child(2) { transform: rotate(72deg); }.rose-bloom i:nth-child(3) { transform: rotate(144deg); }.rose-bloom i:nth-child(4) { transform: rotate(216deg); }.rose-bloom i:nth-child(5) { transform: rotate(288deg); }
.birth-reveal-scene.is-reveal-ready .rose-stem, .birth-reveal-scene.is-reveal-ready .rose-bloom { opacity: 0; transform: translate(58px,-18px) scale(.55); }
.birth-reveal-scene.is-reveal-ready .scene-action { opacity: 0; pointer-events: none; }
.birthday-reveal-scene { filter: drop-shadow(0 16px 20px rgba(91,42,52,.16)); }
.birthday-photo-card { position: absolute; z-index: 1; left: 14%; top: 1%; width: 72%; height: 64%; overflow: hidden; border: 5px solid #fff; border-radius: 5px; background: #fff; opacity: calc(var(--reveal-progress) * .01); transform: translateY(calc(58px - var(--reveal-progress) * .62px)) rotate(-2deg); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.birthday-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.birthday-photo-card span { position: absolute; inset: auto 0 0; padding: 6px; color: #fff; background: rgba(111,36,52,.78); font-weight: 700; }
.birthday-reveal-scene.is-reveal-ready .birthday-photo-card { transform: translateY(-8px) rotate(-1deg) scale(1.03); }
.gift-box { position: absolute; z-index: 3; left: 21%; bottom: 2%; width: 58%; height: 44%; border-radius: 4px; background: #b74f60; box-shadow: inset 0 -10px 0 rgba(91,42,52,.13); opacity: calc(1 - var(--reveal-progress) * .0093); transform: translateY(calc(var(--reveal-progress) * .48px)); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.gift-box b { position: absolute; left: calc(50% - 12px); top: 0; width: 24px; height: 100%; background: #f0c8aa; }
.gift-box i { position: absolute; left: -7%; top: -18%; width: 114%; height: 24%; border-radius: 4px; background: #c66070; transform: translateY(calc(var(--reveal-progress) * -.42px)) rotate(calc(var(--reveal-progress) * -.05deg)); transform-origin: 20% 100%; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.gift-box span::before, .gift-box span::after { content: ""; position: absolute; left: 50%; top: -42%; width: 42px; height: 25px; border: 8px solid #f0c8aa; border-radius: 50%; }
.gift-box span::before { transform: translateX(-95%) rotate(22deg); }.gift-box span::after { transform: translateX(-5%) rotate(-22deg); }
.confetti i { position: absolute; z-index: 4; width: 8px; height: 18px; border-radius: 4px; background: #d28b57; opacity: calc(var(--reveal-progress) * .01); transform: translateY(calc((100 - var(--reveal-progress)) * .35px)) rotate(24deg); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.confetti i:nth-child(1){left:8%;top:18%}.confetti i:nth-child(2){left:24%;top:5%;background:#7b9e83}.confetti i:nth-child(3){left:41%;top:12%;background:#d9a6b2}.confetti i:nth-child(4){right:38%;top:3%}.confetti i:nth-child(5){right:19%;top:15%;background:#7b9e83}.confetti i:nth-child(6){right:5%;top:6%;background:#d9a6b2}
.birthday-reveal-scene.is-reveal-ready .gift-box { opacity: 0; transform: translateY(82px) scale(.86); }
.birthday-reveal-scene.is-reveal-ready .confetti { opacity: .28; }
.birthday-reveal-scene.is-reveal-ready .scene-action { opacity: 0; pointer-events: none; }
.professional-reveal-scene { filter: drop-shadow(0 16px 22px rgba(32,65,52,.16)); }
.professional-card { position: absolute; z-index: 1; left: 17%; top: 2%; width: 66%; height: 63%; overflow: hidden; border: 4px solid #fff; border-radius: 3px; background: #fff; opacity: calc(var(--reveal-progress) * .01); transform: translateY(calc(62px - var(--reveal-progress) * .67px)); transition: width .55s ease, height .55s ease, left .55s ease, top .55s ease, transform .55s ease; }
.professional-card img { width: 100%; height: 100%; object-fit: cover; }
.professional-card span { position: absolute; inset: auto 0 0; padding: 7px; color: #fff; background: rgba(37,76,60,.88); font-size: .78rem; font-weight: 700; }
.event-folder { position: absolute; z-index: 3; left: 12%; bottom: 2%; width: 76%; height: 56%; padding: 18px; color: #fff; border-radius: 4px; background: #426c5a; text-align: left; box-shadow: inset 0 -12px 0 rgba(15,50,35,.12); opacity: calc(1 - var(--reveal-progress) * .0093); transform: translateY(calc(var(--reveal-progress) * .48px)); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.event-folder::before { content: ""; position: absolute; left: 0; top: -16%; width: 42%; height: 18%; border-radius: 4px 6px 0 0; background: #426c5a; }
.event-folder b, .event-folder span { display: block; position: relative; z-index: 1; }.event-folder b { font-size: .78rem; letter-spacing: .08em; }.event-folder span { margin-top: 8px; font: 700 1.1rem/1 Georgia,serif; }
.event-folder i { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; }
.event-folder i::before, .event-folder i::after { content: ""; position: absolute; background: rgba(255,255,255,.75); }.event-folder i::before { width: 16px; height: 2px; left: 7px; top: 15px; }.event-folder i::after { width: 2px; height: 16px; left: 14px; top: 8px; }
.professional-reveal-scene.is-reveal-ready .event-folder { opacity: 0; transform: translateY(82px) scale(.86); }
.professional-reveal-scene.is-reveal-ready .professional-card { z-index: 4; width: 86%; height: 82%; left: 7%; top: 3%; transform: translateY(0) scale(1.02); }
.invitation-reveal.is-opening .envelope-flap { animation: revealFlap .7s ease-in-out forwards; }
.invitation-reveal.is-opening .envelope-letter { animation: revealLetter .9s .35s ease-out forwards; }
.invitation-reveal.is-opening .envelope-seal { animation: revealSeal .35s ease-in forwards; }
.invitation-reveal.is-leaving { animation: revealLeave .55s ease-in forwards; }
@keyframes revealFlap { to { transform: rotateX(-168deg); } }
@keyframes revealLetter { to { transform: translateY(-76px) scale(1.03); } }
@keyframes revealSeal { to { opacity: 0; transform: translate(-50%,-50%) scale(.72); } }
@keyframes revealLeave { to { opacity: 0; transform: scale(1.025); } }
.demo-bar a { font-weight: 700; text-underline-offset: 4px; }
.demo-shell { width: min(var(--demo-max), calc(100% - 36px)); margin-inline: auto; }
.demo-hero { position: relative; min-height: 72vh; display: grid; align-items: end; overflow: hidden; }
.demo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wedding .demo-hero > img { object-position: center top; }
.demo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,20,22,.77) 0%, rgba(25,20,22,.52) 42%, rgba(25,20,22,.08) 76%); }
.demo-hero-copy { position: relative; z-index: 1; max-width: 42rem; padding: 72px 0; color: #fff; }
.demo-kicker { margin: 0 0 10px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.demo-hero h1 { max-width: 13ch; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: 0; }
.demo-hero-copy > p:not(.demo-kicker) { max-width: 35rem; margin: 20px 0 0; font-size: 1.08rem; }
.demo-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.demo-button { display: inline-flex; min-height: 48px; padding: 11px 20px; align-items: center; justify-content: center; border: 2px solid var(--demo-accent); border-radius: 4px; color: #fff; background: var(--demo-accent); font-weight: 700; text-decoration: none; cursor: pointer; }
.demo-button.secondary { border-color: currentColor; color: inherit; background: transparent; }
.demo-section { padding: 74px 0; }
.demo-section.soft { background: #f5f1ec; }
.demo-heading { max-width: 46rem; margin-bottom: 34px; }
.demo-heading h2 { margin: 0 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: 0; }
.demo-heading p { margin: 0; color: var(--demo-muted); }
.demo-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--demo-line); }
.demo-fact { padding: 24px; border-right: 1px solid var(--demo-line); }
.demo-fact:first-child { padding-left: 0; }
.demo-fact:last-child { border-right: 0; }
.demo-fact strong, .demo-fact span { display: block; }
.demo-fact strong { color: var(--demo-accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.demo-fact span { margin-top: 4px; font-size: 1.05rem; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.demo-panel { padding: 28px 0; border-top: 3px solid var(--demo-accent); }
.demo-panel h3 { margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; }
.demo-panel p { margin: 0; color: var(--demo-muted); }
.demo-practical-layout { display: grid; gap: 58px; }
.demo-map-block { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 42px; align-items: center; }
.demo-map-block h3, .demo-useful-item h3, .demo-countdown h3 { margin: 0 0 9px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; line-height: 1.2; }
.demo-map-block p:not(.demo-kicker), .demo-useful-item p:not(.demo-kicker) { margin: 0 0 10px; color: var(--demo-muted); }
.demo-map-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #c9d2c4; border-radius: 6px; background: #e7eadf; box-shadow: 0 14px 34px rgba(55,68,49,.1); }
.demo-map-stage { position: relative; min-height: 300px; overflow: hidden; border-radius: 6px; }
.demo-map-stage iframe, .demo-leaflet-map { width: 100%; height: 100%; min-height: 360px; display: block; border: 1px solid #c9d2c4; border-radius: 6px; background: #e7eadf; }
.demo-leaflet-map .leaflet-control-attribution { padding: 2px 5px; color: #5d5754; background: rgba(255,255,255,.88); font-size: .62rem; }
.demo-leaflet-map .leaflet-control-attribution a { color: #5d5754; }
.demo-map-preview::before, .demo-map-preview::after { content: ""; position: absolute; border-radius: 50%; background: rgba(126,158,116,.22); }
.demo-map-preview::before { width: 180px; height: 180px; top: -70px; right: -35px; }
.demo-map-preview::after { width: 130px; height: 130px; bottom: -55px; left: -25px; }
.demo-road { position: absolute; z-index: 1; height: 24px; border: 1px solid #d3d0c7; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.road-one { width: 130%; top: 46%; left: -15%; transform: rotate(-14deg); }
.road-two { width: 92%; top: 45%; left: 17%; transform: rotate(64deg); }
.road-three { width: 76%; top: 69%; left: 34%; height: 14px; transform: rotate(8deg); }
.demo-map-water { position: absolute; inset: auto -8% 5% 18%; height: 28px; border-radius: 55% 45% 50% 40%; background: #b9d4d2; transform: rotate(-8deg); }
.demo-map-label { position: absolute; z-index: 2; color: #445044; font-size: .78rem; font-weight: 700; }
.label-laon { top: 19%; left: 13%; font-size: 1rem; }
.label-church { top: 43%; left: 57%; }
.demo-map-marker { position: absolute; z-index: 3; top: 48%; left: 62%; width: 28px; height: 28px; border: 7px solid var(--demo-accent); border-radius: 50% 50% 50% 0; background: #fff; transform: translate(-50%,-100%) rotate(-45deg); box-shadow: 0 4px 10px rgba(45,37,38,.25); }
.demo-useful-stack { border-top: 1px solid var(--demo-line); }
.demo-useful-item { padding: 34px 0; display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); gap: 42px; align-items: center; border-bottom: 1px solid var(--demo-line); }
.demo-useful-item:nth-child(even) .demo-mini-site { order: 2; }
.demo-mini-site { min-width: 0; overflow: hidden; border: 1px solid #d3cbc4; border-radius: 6px; background: #fff; box-shadow: 0 14px 34px rgba(51,38,42,.08); }
.mini-browser { min-height: 32px; padding: 7px 10px; display: flex; align-items: center; gap: 5px; color: #807772; border-bottom: 1px solid #e7e0da; background: #f8f5f1; font-size: .7rem; }
.mini-browser > span { width: 7px; height: 7px; border-radius: 50%; background: #cbbfba; }
.mini-browser small { margin-left: 6px; }
.mini-site-body { min-height: 180px; padding: 22px; color: #3c3533; background: #fffdf9; }
.mini-site-body > p { margin: 0 0 16px !important; color: var(--demo-accent) !important; font: 700 1.15rem/1.2 Georgia, 'Times New Roman', serif; }
.mini-lodging { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-lodging span { min-height: 92px; padding: 44px 10px 10px; display: flex; flex-direction: column; justify-content: end; border-radius: 3px; background: #dce6dc; }
.mini-lodging span:last-child { background: #eadfd8; }
.mini-lodging b, .mini-lodging small { display: block; }
.mini-lodging b { font-size: .72rem; }
.mini-lodging small { color: #675f5d; font-size: .65rem; }
.mini-gifts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mini-gifts span { min-height: 86px; padding: 10px 5px; display: grid; place-items: end center; border-radius: 3px; color: #fff; background: #9aafa0; font-size: .68rem; font-weight: 700; }
.mini-gifts span:nth-child(2) { background: #be8a8f; }
.mini-gifts span:nth-child(3) { background: #b59a7f; }
.mini-progress { height: 7px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: #eee6df; }
.mini-progress i { width: 68%; height: 100%; display: block; background: var(--demo-accent); }
.music-site .mini-site-body { min-height: 210px; display: grid; place-items: center; align-content: center; background: #efe9e4; }
.mini-record { width: 84px; height: 84px; display: grid; place-items: center; border: 2px solid #3f3734; border-radius: 50%; background: repeating-radial-gradient(circle, #3f3734 0 3px, #504745 4px 6px); }
.mini-record span { width: 24px; height: 24px; border-radius: 50%; background: var(--demo-accent); }
.music-site .mini-site-body > p { margin: 12px 0 8px !important; color: #3c3533 !important; font-size: .88rem; }
.mini-wave { height: 28px; display: flex; align-items: center; gap: 4px; }
.mini-wave i { width: 3px; height: 9px; display: block; border-radius: 3px; background: var(--demo-accent); }
.mini-wave i:nth-child(2), .mini-wave i:nth-child(7) { height: 18px; }
.mini-wave i:nth-child(3), .mini-wave i:nth-child(6) { height: 25px; }
.mini-wave i:nth-child(4), .mini-wave i:nth-child(5) { height: 14px; }
.demo-text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--demo-accent); font-weight: 700; text-underline-offset: 4px; }
.demo-secret-audio { margin-top: 14px; }
.demo-secret-audio audio { display: none; }
.demo-music-player { width: 100%; min-height: 112px; margin: 0; padding: 18px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 16px; align-items: center; color: #fff; text-align: left; font: inherit; border: 0; border-radius: 6px; background: #35252c; box-shadow: 0 10px 24px rgba(45,37,38,.14); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.demo-music-player:hover, .demo-music-player:focus-visible { background: #4a2d38; transform: translateY(-2px); }
.demo-music-player[aria-pressed="true"] .demo-play::before { width: 12px; height: 16px; margin-left: 0; border: 0; border-inline: 4px solid #fff; }
.demo-music-player[aria-pressed="true"] .demo-player-wave i { animation: demoAudioWave .8s ease-in-out infinite alternate; }
.demo-music-player[aria-pressed="true"] .demo-player-wave i:nth-child(2), .demo-music-player[aria-pressed="true"] .demo-player-wave i:nth-child(5) { animation-delay: .18s; }
.demo-music-player[aria-pressed="true"] .demo-player-wave i:nth-child(3) { animation-delay: .32s; }
.demo-play { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--demo-accent); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.demo-play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #fff; }
.demo-track small, .demo-track strong, .demo-track em { display: block; }
.demo-track small { margin-bottom: 3px; color: #e6d9dd; font-size: .72rem; text-transform: uppercase; }
.demo-track strong { font: 700 1.15rem/1.2 Georgia, 'Times New Roman', serif; }
.demo-track em { margin-top: 3px; color: #e6d9dd; font-size: .86rem; font-style: normal; }
.demo-player-wave { height: 38px; display: flex; align-items: center; gap: 4px; }
.demo-player-wave i { width: 3px; height: 10px; display: block; border-radius: 3px; background: #d9b1c0; }
.demo-player-wave i:nth-child(2), .demo-player-wave i:nth-child(5) { height: 22px; }
.demo-player-wave i:nth-child(3) { height: 34px; }
.demo-player-wave i:nth-child(4) { height: 17px; }
@keyframes demoAudioWave { from { transform: scaleY(.55); } to { transform: scaleY(1.12); } }
.demo-countdown { margin-top: 52px; padding: 28px 0; display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); gap: 36px; align-items: center; border-block: 1px solid var(--demo-line); }
.demo-countdown-values { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.demo-countdown-values span { min-width: 0; padding: 14px 8px; color: var(--demo-muted); text-align: center; font-size: .72rem; text-transform: uppercase; }
.demo-countdown-values strong { display: block; color: var(--demo-accent); font: 700 clamp(1.6rem,4vw,2.55rem)/1 Georgia, 'Times New Roman', serif; }
.demo-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.demo-timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--demo-line); }
.demo-timeline time { color: var(--demo-accent); font-weight: 700; }
.demo-timeline strong, .demo-timeline span { display: block; }
.demo-timeline span { color: var(--demo-muted); }
.demo-form { max-width: 48rem; padding: 32px; border: 1px solid var(--demo-line); border-radius: 6px; background: #fff; box-shadow: 0 16px 40px rgba(51,38,42,.08); }
.demo-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.demo-field { display: grid; gap: 6px; }
.demo-field.full { grid-column: 1 / -1; }
.demo-field label { font-size: .86rem; font-weight: 700; }
.demo-field input, .demo-field select, .demo-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #958a85; border-radius: 4px; background: #fff; }
.demo-field textarea { min-height: 110px; resize: vertical; }
.demo-form-note { color: var(--demo-muted); font-size: .8rem; }
.demo-status { min-height: 24px; margin-top: 14px; color: #2e6a45; font-weight: 700; }
.demo-footer { padding: 34px 0; color: #fff; background: #38262d; text-align: center; }
.demo-footer p { margin: 5px 0; }
.demo-footer a { text-underline-offset: 4px; }
.birth { --demo-accent: #6f897a; --demo-accent-soft: #e9f0eb; }
.birth .demo-hero::after { background: linear-gradient(90deg, rgba(35,48,40,.78) 0%, rgba(35,48,40,.5) 45%, rgba(35,48,40,.06) 76%); }
.birthday { --demo-accent: #a3434f; --demo-accent-soft: #f8e9e8; }
.wedding { --demo-accent: #748a6d; --demo-accent-soft: #edf1e9; }
.professional { --demo-accent: #426c5a; --demo-accent-soft: #e8f0ec; }
.professional .demo-hero::after { background: linear-gradient(90deg, rgba(22,39,34,.82) 0%, rgba(22,39,34,.59) 45%, rgba(22,39,34,.05) 76%); }
@media (min-width: 46.01rem) {
  .wedding .demo-hero-copy { width: min(42rem,48vw); margin-left: 48%; margin-right: auto; }
}
@media (max-width: 46rem) {
  .demo-bar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .demo-bar-actions { width: 100%; flex-wrap: wrap; gap: 10px 14px; }
  .demo-hero { min-height: 78vh; }
  .wedding .demo-hero { min-height: 0; display: block; background: #38262d; }
  .wedding .demo-hero > img { position: relative; inset: auto; height: min(75vw, 24rem); object-position: left center; }
  .wedding .demo-hero::after { display: none; }
  .wedding .demo-hero-copy { width: min(var(--demo-max), calc(100% - 36px)); max-width: none; margin-inline: auto; padding: 40px 0 48px; }
  .demo-hero::after { background: linear-gradient(0deg, rgba(25,20,22,.86) 0%, rgba(25,20,22,.42) 68%, rgba(25,20,22,.05) 100%); }
  .demo-hero-copy { padding: 52px 0; }
  .demo-facts, .demo-grid, .demo-form-grid, .demo-practical-layout, .demo-map-block, .demo-useful-item, .demo-countdown { grid-template-columns: 1fr; }
  .demo-useful-item { gap: 22px; }
  .demo-useful-item:nth-child(even) .demo-mini-site { order: 0; }
  .demo-countdown-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo-fact { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--demo-line); }
  .demo-fact:last-child { border-bottom: 0; }
  .demo-field.full { grid-column: auto; }
  .demo-form { padding: 24px 18px; }
  .demo-timeline li { grid-template-columns: 70px 1fr; gap: 12px; }
  .demo-music-player { grid-template-columns: 48px minmax(0,1fr); }
  .demo-player-wave { display: none; }
}
@media (max-width: 30rem) {
  .reveal-content { width: 100%; padding-inline: 12px; }
  .reveal-content h2 { font-size: clamp(1.55rem,8vw,2.15rem); }
  .reveal-intro { font-size: .92rem; }
  .reveal-scene { width: min(82vw,48vh,22rem); }
  .reveal-control { width: calc(100% - 8px); }
}
@media (max-height: 36rem) {
  .reveal-content { padding-block: 8px; }
  .reveal-kicker { margin-bottom: 3px; font-size: .7rem; }
  .reveal-content h2 { margin-bottom: 5px; font-size: 1.45rem; }
  .reveal-intro { display: none; }
  .reveal-scene { width: min(52vw,42vh,18rem); margin-bottom: 5px; }
  .reveal-control label { margin-bottom: 2px; font-size: .82rem; }
  .reveal-control input[type="range"] { height: 30px; }
  .reveal-status { min-height: 18px; margin-top: 0; font-size: .75rem; }
  .reveal-direct { min-height: 36px; margin-top: 3px; padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-music-player[aria-pressed="true"] .demo-player-wave i { animation: none; }
  .demo-music-player { transition: none; }
  .invitation-reveal *, .invitation-reveal::after { animation: none !important; transition: none !important; }
}
