/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Pinyon Script"; src: url("/assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Gilda Display"; src: url("/assets/fonts/gilda-display-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Junge"; src: url("/assets/fonts/junge-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("/assets/fonts/gelasio-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rouge Script"; src: url("/assets/fonts/rouge-script-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tinos"; src: url("/assets/fonts/tinos-latin-400-normal.woff2") format("woff2"); font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --olive-ink: #505336;   /* headings & body copy */
  --wine: #6b2520;        /* letter / landing copy */
  --pink: #f78fa7;        /* accents */
  --olive: #99976c;       /* footer paper */
  --cream: #f3f2ec;       /* landing paper */
  --card: #f3efe9;        /* letter card */
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Junge", "Gilda Display", Georgia, serif;
  --caps: "Gilda Display", Georgia, serif;
  --times: "Tinos", "Times New Roman", Times, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--olive-ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
.script { font-family: var(--script); font-weight: 400; }
/* Pinyon Script's own ampersand reads oddly; the design uses a classic copperplate one */
.amp { font-family: "Rouge Script", var(--script); font-size: .92em; margin: 0 -.055em 0 .1em; }
[hidden] { display: none !important; }

/* ---------- Views & transitions ---------- */
.view { min-height: 100svh; overflow-x: clip; animation: viewIn .7s ease both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   1. OUR WEDDING — sealed envelope
   ============================================================ */
.view--envelope {
  background: var(--cream);
  position: fixed; inset: 0; z-index: 20;
  overflow: hidden;
}
.landing { position: absolute; inset: 0; overflow: hidden; }
/* The stage keeps the design's 1366×800 proportions and covers the screen */
.landing__stage {
  --h: min(100svh, 196vw);
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  height: var(--h); width: max(100vw, calc(var(--h) * 1.7075));
  background: url("/assets/img/landing.webp") center / 100% 100% no-repeat;
  container-type: size;
  text-align: center; color: var(--wine);
}
.landing__stage > * { position: absolute; left: 50%; translate: -50% -50%; white-space: nowrap; }
.landing__eyebrow { top: 20.2%; font-family: var(--times); font-size: 2.85cqh; animation: rise .9s .2s ease both; }
.landing__names { top: 30.6%; margin: 0; font-size: 5.6cqh; line-height: 1.2; color: var(--wine); animation: rise .9s .4s ease both; }
.landing__seal {
  top: 56.5%; width: 17.5cqw; height: 25cqh; min-width: 120px;
  border-radius: 45% 45% 50% 50% / 40% 40% 60% 60%;
  animation: pulse 2.4s 1.6s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247,143,167,.35); } 70%,100% { box-shadow: 0 0 0 22px rgba(247,143,167,0); } }
/* sharper seal laid exactly over the one in the background, with a crisp S&R */
.landing__stage > .landing__sealimg {
  translate: none; left: 40.117%; top: 41.875%; width: 19.766%; height: 28.75%;
  pointer-events: none; animation: rise .9s .6s ease both;
}
.landing__stage > .landing__mono { translate: none; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; animation: rise .9s .6s ease both; }
.landing__mono > span {
  position: absolute; translate: -50% -50%; line-height: 1;
  color: #fff3f6;
  text-shadow: 0 .08cqh .12cqh rgba(160,60,95,.6), 0 -.05cqh 0 rgba(255,255,255,.75);
}
.m-s { left: 48.25%; top: 55.5%; font-family: var(--script); font-size: 5.4cqh; }
.m-amp { left: 49.3%; top: 58.4%; font-family: "Rouge Script", var(--script); font-size: 3.2cqh; }
.m-r { left: 51.15%; top: 59.2%; font-family: var(--script); font-size: 5.25cqh; }
.landing__cta { top: 81.5%; font-family: var(--times); font-size: 2.85cqh; color: var(--wine); padding: 10px 18px; animation: rise .9s .8s ease both; }
.landing__seal:focus-visible, .landing__cta:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
@keyframes rise { from { opacity: 0; margin-top: 14px; } to { opacity: 1; margin-top: 0; } }

/* opening animation */
.view--envelope.opening .landing__stage { animation: sealPop .6s ease forwards; transform-origin: 50% 56.5%; }
.view--envelope.opening .landing__eyebrow,
.view--envelope.opening .landing__names,
.view--envelope.opening .landing__cta { animation: fadeOut .4s ease forwards; }
.view--envelope.opening { animation: slideAway .8s .45s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes sealPop { 35% { transform: scale(1.04); } 100% { transform: scale(1.12); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes slideAway { to { transform: translateY(-100%); } }

/* ============================================================
   2. HOME
   ============================================================ */
.home {
  max-width: 520px; margin: 0 auto;
  container-type: inline-size;
  padding: 28px 0 0;
}

/* Envelope hero */
.hero { width: 90cqw; margin-left: 1cqw; position: relative; z-index: 1; }

/* Letter card */
.letter-wrap { position: relative; z-index: 2; }
.letter {
  position: relative;
  width: 88cqw; margin: -20cqw 4cqw 0 auto;
  container-type: inline-size;
  z-index: 3;
}
.letter__shape {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(5px 7px 7px rgba(0,0,0,.16));
}
.letter__fill { fill: var(--card); }
.letter__emboss { fill: none; stroke: rgba(120,105,90,.22); stroke-width: 1.2; }
.letter__emboss-hi { fill: none; stroke: #fff; stroke-width: 1.4; transform: translate(1px, 1.2px); }
.letter__bouquet {
  position: absolute; z-index: 2;
  width: 110.4cqw; max-width: none; left: -2.6cqw; top: -52.4cqw;
  pointer-events: none;
}
.letter__text {
  position: relative; z-index: 1;
  padding: 22cqw 14.5cqw 15cqw;
  text-align: center; color: var(--wine);
  font-family: var(--caps); font-size: 3.55cqw; line-height: 1.6; letter-spacing: .1em;
}
.letter__text p + p { margin-top: 1.6em; }
.letter__text p.letter__sign { margin-top: .3em; font-size: 7cqw; letter-spacing: 0; line-height: 1.3; }

/* Polaroid */
.polaroid {
  position: relative; z-index: 4;
  width: 58cqw; margin: -9cqw 0 0 5cqw;
  padding: 2.9cqw 2.9cqw 15cqw;
  background: #f2f0f0;
  box-shadow: 0 1px 1px rgba(0,0,0,.25), 3px 5px 10px rgba(0,0,0,.12);
  transform: rotate(-10deg);
  transform-origin: 60% 20%;
  outline: 1px solid rgba(0,0,0,.35); outline-offset: -1px;
}
.polaroid.reveal { transform: translateY(24px) rotate(-10deg); }
.polaroid.reveal.in { transform: rotate(-10deg); }
.polaroid img { width: 100%; filter: contrast(1.02); }
.polaroid.wiggle { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-4deg) scale(1.03); } 60% { transform: rotate(-12deg); } 100% { transform: rotate(-10deg); } }

/* Weekend events composite */
.weekend { position: relative; width: 100cqw; margin-top: 6cqw; container-type: inline-size; }
.weekend > p { margin: 0; }
/* the green envelope's seal, replaced with the same sharp seal as the front page */
.weekend__seal { position: absolute; left: 52.65%; top: 35.36%; width: 16.36%; height: auto; pointer-events: none; }
.weekend__mono > span {
  position: absolute; translate: -50% -50%; line-height: 1; color: #fff3f6; pointer-events: none;
  text-shadow: 0 .05cqw .08cqw rgba(160,60,95,.6), 0 -.04cqw 0 rgba(255,255,255,.75);
}
.w-s { left: 59.38%; top: 40.22%; font-family: var(--script); font-size: 2.62cqw; }
.w-amp { left: 60.25%; top: 41.26%; font-family: "Rouge Script", var(--script); font-size: 1.55cqw; }
.w-r { left: 61.78%; top: 41.54%; font-family: var(--script); font-size: 2.55cqw; }
.weekend__title {
  position: absolute; left: 26.2%; top: 16%; translate: -50% -50%;
  font-size: 7.4cqw; line-height: 1; color: rgb(93,92,66); white-space: nowrap; pointer-events: none;
}
.weekend__locket { position: absolute; left: 15.17%; top: 59.01%; width: 26.0%; pointer-events: none; }
.weekend__lk { position: absolute; translate: -50% -50%; font-family: var(--script); line-height: 1; color: #2a2a2a; pointer-events: none; }
.weekend__lk--s { left: 26.02%; top: 70.6%; font-size: 3.6cqw; rotate: -6deg; }
.weekend__lk--r { left: 34.2%; top: 69.02%; font-size: 3.3cqw; rotate: 8deg; }
.weekend__poem {
  position: absolute; left: 27.8%; top: 74.4%; translate: -50% 0;
  font-size: 4.9cqw; line-height: 1.24; color: rgb(92,94,67); text-align: center; white-space: nowrap;
}
.weekend__link {
  position: absolute; left: 1.5%; top: 1%; width: 48%; height: 52%;
  border-radius: 40% 40% 12% 12%;
  text-decoration: none;
}
.weekend__cta {
  position: absolute; left: 50.5%; top: 41%; translate: -50% -50%;
  font-family: "Gilda Display", var(--times); font-size: 3.3cqw; color: #5a4a3a; white-space: nowrap;
  letter-spacing: .01em;
  padding: 4px 6px;
  animation: nudge 2.6s 2s ease-in-out infinite;
}
@keyframes nudge { 0%,100% { transform: none; } 50% { transform: translateY(-2px); } }
.weekend__link:active .weekend__cta { color: #000; }
.weekend__link:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

/* Countdown */
.countdown { text-align: center; padding: 40px 0 34px; }
.countdown__title { font-size: 42px; line-height: 1.2; color: var(--olive-ink); margin: 0 0 4px; }
.countdown__grid {
  display: flex; justify-content: center; align-items: flex-start; gap: 4px;
  font-family: var(--times); color: #000;
}
.countdown__cell { display: flex; flex-direction: column; align-items: center; min-width: 62px; }
.countdown__num { font-size: 46px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.countdown__sep { font-size: 40px; line-height: 1.2; }
.countdown__label { font-size: 12.5px; letter-spacing: .01em; margin-top: 2px; }

/* Footer (olive paper) */
.footer {
  background: var(--olive) url("/assets/img/olive-paper.webp") center / cover;
  color: #fff; text-align: center;
  padding: 56px 24px calc(56px + env(safe-area-inset-bottom));
}
.footer__monogram { position: relative; width: 58%; max-width: 280px; margin: 0 auto 40px; }
.footer__monogram img { width: 100%; }
.footer__letters { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; }
.footer__love { font-family: var(--times); font-size: 16px; letter-spacing: .02em; }
.footer__names { font-size: 46px; line-height: 1.2; margin: 6px 0 10px; }
.footer__q { font-family: "Gilda Display", var(--times); font-size: 16px; }
.footer__back { display: inline-block; margin-top: 46px; font-family: var(--times); font-size: 14px; text-decoration: none; padding: 8px; }
.footer--details { padding-top: 44px; }
.footer--details .footer__back { margin-top: 22px; }

/* ============================================================
   3. THE DETAILS
   ============================================================ */
.dheader {
  background: var(--olive) url("/assets/img/olive-paper.webp") center / cover;
  color: #fff; text-align: center;
  padding: calc(34px + env(safe-area-inset-top)) 16px 30px;
}
.dheader__back { font-family: var(--times); font-size: 13px; text-decoration: none; display: inline-block; padding: 6px; }
.dheader__title { font-size: 34px; line-height: 1.25; margin: 2px 0 0; }

.details {
  max-width: 420px; margin: 0 auto; padding: 18px 24px 64px;
  text-align: center; font-size: 15px; line-height: 1.45;
}
.dsec { padding-top: 38px; }
.dsec__title { font-size: clamp(38px, 11.6vw, 56px); line-height: 1.15; margin: 0 0 22px; color: var(--olive-ink); }
.dsec p + p { margin-top: 1.05em; }
.d-label { font-family: "Gilda Display", var(--serif); font-size: 20px; margin-bottom: 26px !important; }
.d-date { font-family: "Gelasio", Georgia, serif; font-weight: 700; font-size: 18px; margin-top: 0; }
.dsec p.d-date + p { margin-top: 0; }
.d-lg { font-size: 17.5px; line-height: 1.45; }
.d-md { font-size: 16px; }
.d-xl { font-family: "Gilda Display", var(--serif); font-size: 22px; }
.dsec p.d-gap { margin-top: 2em; }
.dsec p.d-gap-sm { margin-top: 1.4em; }
.dsec p.d-gap-xl { margin-top: 3.6em; }
.dsec p.d-tight { margin-top: .1em; font-size: 20px; }
.d-red { color: var(--wine); font-family: "Gilda Display", var(--serif); font-weight: 400; font-size: 20px; margin: 34px 0 18px; letter-spacing: .01em; }
.d-pink { color: var(--pink); }
.d-link { font-family: "Gilda Display", var(--serif); text-underline-offset: 3px; display: inline-block; margin-top: 4px; padding: 2px 4px; }
.palette { width: 92%; margin: 14px auto 0; }
.sketch { margin: -6px auto 24px; }
.sketch--car { width: 200px; }
.sketch--lock { width: 116px; margin-top: 0; }
.bank { line-height: 1.55; }
.copy { font: inherit; color: inherit; border-bottom: 1px dotted rgba(80,83,54,.45); padding: 0 1px; }
.copy:active { color: var(--pink); }
/* ---------- Big Day: animated timeline ---------- */
.tl { position: relative; margin: 6px -16px 0; padding: 34px 0 0; }
.tl__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tl__swirl { fill: none; stroke: var(--olive-ink); stroke-width: 2; stroke-linecap: round; }
.tl__dots { fill: none; stroke: var(--olive-ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 9; opacity: .75; }
.tl__tip { fill: var(--pink); opacity: 0; transition: opacity .3s; }
.tl.drawing .tl__tip { opacity: 1; }
.tl__list { list-style: none; margin: 0; padding: 0; position: relative; }

.ev { position: relative; width: 50%; padding: 0 0 0; text-align: center; }
.ev--l { padding-right: 31px; padding-left: 0; }
.ev--r { margin-left: 50%; padding-left: 22px; padding-right: 0; }
.ev + .ev { margin-top: -22px; }
.ev__time { font-family: "Gilda Display", var(--serif); font-size: 13.5px; letter-spacing: .09em; color: var(--wine); line-height: 1.3; }
.dsec .ev p + p { margin-top: 2px; }
.ev__what .amp-plain { font-family: "Gilda Display", Georgia, serif; }
.ev__what { font-family: "Junge", var(--serif); font-size: 14px; line-height: 1.35; color: var(--olive-ink); }
.ev__art { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 12px auto 0; min-height: 40px; padding-bottom: 56px; }


/* reveal as the line reaches each event */
.ev > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.ev .ev__what { transition-delay: .08s; }
.ev .ev__art { transform: translateY(14px) scale(.85); transition-delay: .16s; }
.ev.on > * { opacity: 1; transform: none; }

.tl__end { position: relative; width: 132px; margin: -30px auto 0; opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.tl__end.on { opacity: 1; transform: none; }
.tl__heart { fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linejoin: round; }
.tl.started .tl__heart { animation: heartbeat 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 70%; }

.ev__art img { display: block; height: auto; }
.tl__coupe { display: block; width: 100%; height: auto; }

/* ---------- micro-interactions (run only once revealed) ---------- */
.ev.on .a-key { transform-origin: 85% 50%; animation: keyTurn 3.4s 1s ease-in-out infinite; }
@keyframes keyTurn { 0%, 62%, 100% { transform: none; } 70% { transform: translateX(4px); } 78% { transform: translateX(4px) rotate(-16deg); } 88% { transform: translateX(4px) rotate(0); } 94% { transform: none; } }

.ev.on .a-glasses { transform-origin: 50% 90%; animation: clink 2.8s .8s ease-in-out infinite; }
@keyframes clink { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-7deg); } 70% { transform: rotate(5deg); } 76% { transform: rotate(-2deg); } 82% { transform: rotate(0); } }
.ting { position: absolute; left: 52%; top: -2px; width: 16px; height: 16px; translate: -50% 0; opacity: 0; pointer-events: none; }
.ting::before, .ting::after { content: "✦"; position: absolute; color: #e8a23a; font-size: 15px; line-height: 1; left: 50%; top: 50%; translate: -50% -50%; }
.ting::after { font-size: 9px; translate: 80% -170%; }
.ev.on .ting { animation: ting 2.8s .8s ease-out infinite; }
@keyframes ting { 0%, 64% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.15); } 84%, 100% { opacity: 0; transform: scale(.8) translateY(-6px); } }

.ev.on .a-rings { animation: float 3s .6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }

.ev--camera .ev__art { gap: 0; }
.a-flash { align-self: flex-start; margin-left: -2px; }
.ev.on .a-flash { animation: flash 3.2s 1s ease-out infinite; }
@keyframes flash { 0%, 70%, 100% { transform: scale(1) rotate(0); } 76% { transform: scale(1.6) rotate(25deg); } 86% { transform: scale(1) rotate(45deg); } }
.burst { position: absolute; left: calc(50% - 4px); top: 50%; width: 70px; height: 70px; translate: -50% -78%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 20%, rgba(255,240,200,.55) 40%, transparent 70%); opacity: 0; }
.ev.on .burst { animation: burst 3.2s 1s ease-out infinite; }
@keyframes burst { 0%, 72%, 100% { opacity: 0; transform: scale(.4); } 76% { opacity: 1; transform: scale(1); } 90% { opacity: 0; transform: scale(1.3); } }

.a-cakewrap { display: flex; flex-direction: column; align-items: center; }
.a-caketop { margin-bottom: -2px; transform-origin: 50% 100%; }
.ev.on .a-caketop { animation: heartbeat 1.6s .8s ease-in-out infinite; }
@keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 28% { transform: scale(1.06); } }
.ev.on .a-cake { transform-origin: 50% 100%; animation: jiggle 4s 1.4s ease-in-out infinite; }
@keyframes jiggle { 0%, 80%, 100% { transform: none; } 84% { transform: scaleX(1.04) scaleY(.97); } 88% { transform: scaleX(.98) scaleY(1.02); } 92% { transform: none; } }

.ev--dance1 .ev__art { height: 60px; padding-bottom: 40px; margin-top: 22px; }
.a-note { position: absolute; bottom: 40px; }
.a-note1 { left: calc(50% - 44px); }
.a-note2 { left: calc(50% + 12px); }
.ev.on .a-note1 { animation: noteUp 3s .6s ease-in-out infinite; }
.ev.on .a-note2 { animation: noteUp 3s 2.1s ease-in-out infinite; }
@keyframes noteUp { 0% { transform: translate(0, 6px) rotate(0); opacity: 0; } 20% { opacity: 1; } 60% { transform: translate(4px, -14px) rotate(8deg); opacity: 1; } 100% { transform: translate(-2px, -28px) rotate(-6deg); opacity: 0; } }

.ev--dinner .ev__art { gap: 0; }
.a-hand { margin-left: -8px; transform-origin: 90% 90%; }
.ev.on .a-hand { animation: toast 3.6s 1s ease-in-out infinite; }
@keyframes toast { 0%, 55%, 100% { transform: rotate(0); } 68% { transform: rotate(-14deg) translateY(-4px); } 78% { transform: rotate(-10deg) translateY(-6px); } 88% { transform: rotate(0); } }

.ev--dancers .ev__art { gap: 10px; }
.ev.on .a-dancer1 { transform-origin: 50% 100%; animation: sway 1.2s ease-in-out infinite alternate; }
.ev.on .a-dancer2 { transform-origin: 50% 100%; animation: bop .6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg) translateY(-2px); } }
@keyframes bop { from { transform: translateY(0) rotate(2deg); } to { transform: translateY(-5px) rotate(-3deg); } }

.ev.on .a-burger { transform-origin: 50% 100%; animation: hop 2.4s .8s ease-in-out infinite; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 66% { transform: scaleY(.9) scaleX(1.05); } 76% { transform: translateY(-9px) scaleY(1.04); } 86% { transform: scaleY(.95); } 92% { transform: none; } }
.ev.on .a-fries { transform-origin: 50% 100%; animation: jiggle 2.4s 1.1s ease-in-out infinite; }

.a-fire { position: relative; display: flex; flex-direction: column; align-items: center; }
.a-flames { position: relative; z-index: 0; margin-bottom: -14px; transform-origin: 50% 100%; }
.a-bowl { position: relative; z-index: 1; }
.ev.on .a-flames { animation: flicker 1.3s ease-in-out infinite; }
@keyframes flicker {
  0% { transform: scaleY(1) skewX(0); } 20% { transform: scaleY(1.07) skewX(-2deg); } 40% { transform: scaleY(.95) skewX(1.5deg); }
  60% { transform: scaleY(1.05) skewX(2deg); } 80% { transform: scaleY(.97) skewX(-1deg); } 100% { transform: scaleY(1) skewX(0); } }
.ember { position: absolute; bottom: 44px; width: 4px; height: 4px; border-radius: 50%; background: #f0a93b; box-shadow: 0 0 6px #f6c66a; opacity: 0; }
.e1 { left: 38%; } .e2 { left: 55%; } .e3 { left: 47%; }
.ev.on .e1 { animation: ember 2.2s .2s ease-out infinite; }
.ev.on .e2 { animation: ember 2.6s 1s ease-out infinite; }
.ev.on .e3 { animation: ember 2s 1.6s ease-out infinite; }
@keyframes ember { 0% { opacity: 0; transform: translate(0,0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(8px,-46px) scale(.4); } }

/* bubbles in the coupe — pink & matcha */
.bub { position: absolute; bottom: 62%; width: 14px; height: 14px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9) 0 18%, transparent 22%), var(--c);
  box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.55); }
.b1 { left: 26%; --c: #f7a8bb; }
.b2 { left: 42%; width: 18px; height: 18px; --c: #a9c18a; }
.b3 { left: 60%; --c: #f9c3d0; }
.b4 { left: 34%; width: 11px; height: 11px; --c: #c3d6a4; }
.b5 { left: 51%; width: 16px; height: 16px; --c: #f48fa8; }
.b6 { left: 66%; width: 10px; height: 10px; --c: #9bb57a; }
.tl__end.on .b1 { animation: bubble 2.6s .4s ease-in infinite; }
.tl__end.on .b2 { animation: bubble 3.1s 1.2s ease-in infinite; }
.tl__end.on .b3 { animation: bubble 2.8s 2s ease-in infinite; }
.tl__end.on .b4 { animation: bubble 3.4s 2.7s ease-in infinite; }
.tl__end.on .b5 { animation: bubble 3s 3.3s ease-in infinite; }
.tl__end.on .b6 { animation: bubble 2.9s 1.7s ease-in infinite; }
@keyframes bubble { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 15% { opacity: .95; } 50% { transform: translate(3px,-30px) scale(.9); } 80% { opacity: .9; } 100% { opacity: 0; transform: translate(-2px,-62px) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .ev > *, .tl__end { opacity: 1 !important; transform: none !important; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 20px;
  background: rgba(80,83,54,.94); color: #fff; font-family: var(--times); font-size: 14px;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .25s, translate .25s; z-index: 50;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Larger screens: keep the mobile composition, centred */
@media (min-width: 560px) {
  .view--home, .view--details { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
