/* დათა 20.12.2026: all styles for index.html. Mobile only by design: one
   min-width: 769px rule swaps the whole page for the desktop notice.
   Palette comes from the reference's wavy stripes + Data's blue velvet beret. */

@font-face {
  font-family: 'Brain Melt';
  src: url('brain-melt.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  /* block, not swap: the loader covers the block period, so there is no re-flow */
  font-display: block;
}

:root {
  --vh: 1vh;
  --cream: #fffdf7;
  --paper: #ffffff;
  --red: #e8574b;
  --yellow: #f5c443;
  --yellow-deep: #e9a915;
  --mint: #5fbf98;
  --sky: #a8cdf0;
  --sky-pale: #e4f0fb;
  --blue: #6e98d8;
  --blue-deep: #5079bf;
  --navy: #2c4a86;
  --navy-soft: #5a73a6;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --env-w: min(82vw, 330px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overscroll-behavior-y: none; }

html {
  background-color: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.8s ease;
}
html.is-open { scrollbar-color: var(--blue) var(--cream); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background-color: var(--cream); }
::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 6px; transition: background-color 0.8s ease; }
html.is-open ::-webkit-scrollbar-thumb { background-color: var(--blue); }

body {
  font-family: 'Brain Melt', 'Noto Sans Georgian', sans-serif;
  color: var(--navy);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* JS-trapped scroll lock: never position:fixed / overflow:hidden on the document
   (Chrome iOS from a chat app then freezes a short viewport). See script.js 3. */
html.is-locked, body.is-locked { overscroll-behavior: none; touch-action: none; }

i, em { font-style: normal; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ── Loader ─────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background-color: var(--cream);
  transition: opacity 0.6s ease;
}
.loader.is-hidden { opacity: 0; pointer-events: none; }
.loader__spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid var(--sky-pale);
  border-top-color: var(--red);
  border-right-color: var(--yellow);
  animation: spin 0.9s linear infinite;
}
.loader__bar {
  width: 120px;
  height: 5px;
  border-radius: 5px;
  background-color: var(--sky-pale);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  background-color: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
@keyframes spin { to { transform: rotate(360deg); } }

.desktop-notice { display: none; }

/* ── Intro ──────────────────────────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: hidden;
  background-color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}
.intro.is-leaving { opacity: 0; transform: scale(1.08); pointer-events: none; }
.intro.is-gone { display: none; }

/* One 130x96 tile of five wavy lines in the reference's colours. The layer is one
   tile taller than the screen and slides up by exactly one tile, so the loop is seamless. */
.intro__stripes {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 96px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='96' fill='none' stroke-width='6' stroke-linecap='round'%3E%3Cpath stroke='%23e8574b' d='M13 0q9 12 0 24t0 24t0 24t0 24'/%3E%3Cpath stroke='%23f5c443' d='M39 0q9 12 0 24t0 24t0 24t0 24'/%3E%3Cpath stroke='%235fbf98' d='M65 0q9 12 0 24t0 24t0 24t0 24'/%3E%3Cpath stroke='%23a8cdf0' d='M91 0q9 12 0 24t0 24t0 24t0 24'/%3E%3Cpath stroke='%236e98d8' d='M117 0q9 12 0 24t0 24t0 24t0 24'/%3E%3C/svg%3E");
  background-size: 130px 96px;
  opacity: 0.9;
  animation: stripes 7s linear infinite;
  animation-play-state: paused;
}
html.is-ready .intro__stripes { animation-play-state: running; }
@keyframes stripes { to { transform: translateY(-96px); } }

.intro__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--env-w) * 0.42);
}

/* Envelope: back, letter, front pocket and flap are stacked full-size boxes.
   Every clip-path polygon meets at the same centre line, so no gaps show. */
.env {
  position: relative;
  width: var(--env-w);
  outline: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition: opacity 0.7s ease, transform 0.9s var(--spring);
}
html.is-ready .env { opacity: 1; transform: none; }

.env__teddy {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 44px);
  width: 58%;
  z-index: 0;
  transform: translateX(-50%) translateY(65%);
  transform-origin: 50% 100%;
}
/* Pop and sway are chained, not a transition handing over to an animation:
   the pop ends on exactly the neutral pose the sway starts from, and the sway
   begins the moment the pop ends (0.35s delay + 1.1s), so there is no snap. */
html.is-ready .env__teddy {
  animation:
    teddy-pop 1.1s ease-out 0.35s both,
    teddy-sway 3.4s ease-in-out 1.45s infinite;
}
@keyframes teddy-pop {
  0% { transform: translateX(-50%) translateY(65%) scale(0.94, 1.04); }
  42% { transform: translateX(-50%) translateY(-9%) scale(0.97, 1.05); }
  62% { transform: translateX(-50%) translateY(3%) scale(1.05, 0.95); }
  80% { transform: translateX(-50%) translateY(-2%) rotate(-1.5deg) scale(1); }
  100% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
}
@keyframes teddy-sway {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  25% { transform: translateX(-50%) translateY(-4px) rotate(2.5deg); }
  75% { transform: translateX(-50%) translateY(-2px) rotate(-2.5deg); }
}
.env.is-open .env__teddy { animation: teddy-hop 0.9s var(--ease-out) forwards; }
@keyframes teddy-hop {
  0% { transform: translateX(-50%) scale(1, 1); }
  20% { transform: translateX(-50%) scale(1.06, 0.92) translateY(6px); }
  50% { transform: translateX(-50%) scale(0.96, 1.06) translateY(-38px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.env__body {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  animation: env-float 4s ease-in-out infinite;
}
@keyframes env-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.env.is-open .env__body { animation: none; }

.env__back, .env__front, .env__flap, .env__flap-shade {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.env__back { z-index: 1; background-color: var(--blue-deep); box-shadow: 0 18px 40px rgba(44, 74, 134, 0.25); }
.env__front {
  z-index: 3;
  background-color: var(--blue);
  background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(44, 74, 134, 0.12));
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}

.env__letter {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  bottom: 6px;
  height: 94%;
  padding: 10px 10px 0;
  border-radius: 6px;
  background-color: var(--paper);
  box-shadow: 0 6px 18px rgba(44, 74, 134, 0.18);
  transition: transform 1.4s var(--ease-out);
}
.env.is-rising .env__letter { transform: translateY(-74%); }
.env__letter::before {
  content: '';
  position: absolute;
  inset: 7px 7px 0;
  border: 2px dashed var(--sky);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
/* Same lettering as the hero, only smaller: its letters are the take-off points
   for the flight in script.js 4 */
/* Centred on the part of the paper a guest actually sees once it has risen:
   the sheet above the envelope plus the strip showing through the open V. */
.paper-name {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 46%;
  transform: translateY(-50%);
  text-align: center;
  font-weight: 400;
}
.paper-name .name__big { font-size: 54px; }
.paper-name .name__sub { font-size: 20px; }
.paper-name.is-flown { visibility: hidden; }

/* Soft shadow under the closed flap so its edges read against the pocket
   (clip-path also clips box-shadow / drop-shadow, so it is its own layer) */
.env__flap-shade {
  z-index: 4;
  background-color: rgba(44, 74, 134, 0.3);
  clip-path: polygon(0 0, 100% 0, 50% 67%);
  transition: opacity 0.3s ease;
}
.env.is-open .env__flap-shade { opacity: 0; }

/* Flap: drops behind the letter (z 4 -> 1) exactly while it is edge-on at 90deg,
   via a delayed discrete z-index transition, so the swap never shows as a pop. */
.env__flap {
  z-index: 4;
  background-color: #7ea6e2;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  transform-origin: 50% 0;
  transform: perspective(900px) rotateX(0deg);
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1), z-index 0s linear 0.5s, background-color 1.1s ease;
}
.env.is-open .env__flap { transform: perspective(900px) rotateX(180deg); z-index: 1; background-color: var(--blue-deep); }
.env__flap-text {
  padding-top: 13%;
  text-align: center;
  font-size: 22px;
  color: var(--paper);
  transition: opacity 0.25s ease;
}
.env__flap-text span { display: block; padding-top: 4px; font-size: 14px; opacity: 0.9; }
.env.is-open .env__flap-text { opacity: 0; }

.env__seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 62%;
  width: 26%;
  transform: translate(-50%, -62%);
  animation: seal-pulse 2.2s ease-in-out infinite;
}
@keyframes seal-pulse {
  0%, 100% { transform: translate(-50%, -62%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, -62%) scale(1.07) rotate(-4deg); }
}
.env.is-open .env__seal { animation: seal-pop 0.7s var(--ease-out) forwards; }
@keyframes seal-pop {
  30% { transform: translate(-50%, -90%) scale(1.25) rotate(-12deg); opacity: 1; }
  100% { transform: translate(-50%, 60%) scale(0.4) rotate(40deg); opacity: 0; }
}

.intro__hint {
  margin-top: 26px;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: var(--paper);
  font-size: 17px;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(44, 74, 134, 0.12);
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}
html.is-ready .intro__hint { opacity: 1; }
html.is-ready .intro__hint.is-hidden { opacity: 0; transition-delay: 0s; }
.dots i { display: inline-block; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ── Fixed UI ───────────────────────────────────────────────────── */
.music {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--paper);
  box-shadow: 0 4px 14px rgba(44, 74, 134, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s var(--spring);
}
.music.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.music:active { transform: scale(0.92); }
.music__note { font-size: 20px; color: var(--navy); }
.music__bars { display: none; gap: 3px; align-items: flex-end; height: 16px; }
.music__bars i { width: 3px; height: 100%; border-radius: 2px; background-color: var(--red); transform-origin: bottom; animation: bars 0.9s ease-in-out infinite; }
.music__bars i:nth-child(2) { background-color: var(--yellow-deep); animation-delay: 0.2s; }
.music__bars i:nth-child(3) { background-color: var(--mint); animation-delay: 0.4s; }
.music.playing .music__note { display: none; }
.music.playing .music__bars { display: flex; }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.confetti { position: fixed; inset: 0; z-index: 9500; pointer-events: none; width: 100%; height: 100%; }

/* ── Site ───────────────────────────────────────────────────────── */
.site { position: relative; overflow: hidden; padding-bottom: 20px; }

.sticker { position: absolute; pointer-events: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

.title { font-size: 26px; font-weight: 400; text-align: center; color: var(--navy); }
.title--light { color: var(--paper); }

/* The card: white with a scalloped sky-blue edge, built from a dot grid peeking
   out 8px around it (cheaper and crisper on phones than an SVG frame). */
.card-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 70px 18px 96px;
  display: flex;
  align-items: center;
}
.vh-lock .card-wrap { min-height: calc(var(--vh) * 100); }

.card {
  position: relative;
  width: 100%;
  padding: 34px 18px 26px;
  z-index: 0;
  border-radius: 22px;
  text-align: center;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 22px;
  background-color: var(--paper);
  border: 3px solid var(--sky);
}
.card::before {
  content: '';
  position: absolute;
  inset: -11px;
  z-index: -1;
  border-radius: 30px;
  background-image: radial-gradient(circle, var(--sky) 8.5px, transparent 9px);
  background-size: 18px 18px;
  background-position: center;
}

.sticker--sun { width: 66px; top: -26px; left: -8px; animation: spin-slow 16s linear infinite; }
.sticker--cloud { width: 78px; top: -18px; right: -10px; animation: drift 5s ease-in-out infinite; }
.sticker--star { width: 30px; top: 46%; left: -14px; animation: twinkle 2.6s ease-in-out infinite; }
.sticker--sprinkle { width: 52px; bottom: -22px; right: 14px; transform: rotate(10deg); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }

.card__kicker { font-size: 16px; color: var(--blue-deep); }

.portrait {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 18px auto 6px;
}
.portrait__photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 6px solid var(--yellow);
}
.portrait__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px dashed var(--blue);
  animation: spin-slow 22s linear infinite;
}
.portrait__hat {
  position: absolute;
  width: 70px;
  top: -30px;
  right: -16px;
  transform: rotate(18deg);
  transform-origin: 30% 100%;
  animation: hat-wobble 3s ease-in-out infinite;
}
@keyframes hat-wobble { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(26deg); } }

/* The name, shared by the paper in the envelope and the hero: each letter has its
   own colour + tilt. Hero copies stay invisible until their flying twin lands
   (script.js 4), then do a jelly squash from the bottom. */
.name { font-weight: 400; padding-top: 6px; }
.name__big { display: block; font-size: 74px; line-height: 1.05; }
.name__big i {
  display: inline-block;
  transform: rotate(var(--tilt));
  transform-origin: 50% 85%;
  text-shadow: 0 4px 0 rgba(44, 74, 134, 0.14);
}
.card .name__big i, .card .name__sub { opacity: 0; }
.card .name__big i.is-landed, .card .name__sub.is-landed { opacity: 1; animation: jelly 0.75s ease-out; }
@keyframes jelly {
  0% { transform: rotate(var(--tilt)) scale(1.32, 0.68); }
  28% { transform: rotate(var(--tilt)) scale(0.84, 1.2); }
  48% { transform: rotate(var(--tilt)) scale(1.12, 0.9); }
  68% { transform: rotate(var(--tilt)) scale(0.96, 1.05); }
  100% { transform: rotate(var(--tilt)) scale(1); }
}
/* the flying copies, above the fading intro and the confetti */
.flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9600;
  pointer-events: none;
  font-family: 'Brain Melt', 'Noto Sans Georgian', sans-serif;
  line-height: 1.05;
  white-space: nowrap;
  will-change: transform;
}
.name__big i:nth-child(1) { color: var(--red); --tilt: -6deg; }
.name__big i:nth-child(2) { color: var(--yellow-deep); --tilt: 4deg; }
.name__big i:nth-child(3) { color: var(--mint); --tilt: -3deg; }
.name__big i:nth-child(4) { color: var(--blue); --tilt: 6deg; }
.name__big i:nth-child(5) { color: var(--red); --tilt: -4deg; }
.name__sub {
  --tilt: 0deg;
  display: block;
  font-size: 27px;
  color: var(--navy);
  transform-origin: 50% 90%;
}

.when {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px dashed var(--sky);
}
.when__col { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; }
.when__col + .when__col { border-left: 2px dashed var(--sky); }
.when__small { font-size: 13px; color: var(--navy-soft); }
.when__big { font-size: 30px; line-height: 1.15; }
.when__big--word { font-size: 18px; line-height: 1.9; }
.when__big--red { color: var(--red); }
.when__big--blue { color: var(--blue-deep); }
.when__big--mint { color: #3f9f78; }

/* Scroll cue at the bottom of the hero: appears once the name has landed,
   then the chevron keeps nudging downward */
.cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--navy-soft);
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.7s ease 1.4s, transform 0.8s var(--spring) 1.4s;
}
.is-open .cue { opacity: 1; transform: translate(-50%, 0); }
.cue__text { font-size: 14px; }
.cue__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--yellow);
  position: relative;
  animation: cue-nudge 1.6s ease-in-out infinite;
}
.cue__arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
@keyframes cue-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ── Countdown ──────────────────────────────────────────────────── */
.countdown { padding: 30px 18px 10px; }
.countdown__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 10px;
  border-radius: 18px;
  color: var(--paper);
}
.tick:nth-child(odd) { transform: rotate(-3deg); }
.tick:nth-child(even) { transform: rotate(3deg); }
.tick b { font-weight: 400; font-size: 30px; line-height: 1.1; }
.tick b.bump { animation: bump 0.4s var(--spring); }
.tick span { font-size: 12px; opacity: 0.95; }
.tick--red { background-color: var(--red); }
.tick--yellow { background-color: var(--yellow-deep); }
.tick--mint { background-color: var(--mint); }
.tick--blue { background-color: var(--blue); }
@keyframes bump { 40% { transform: scale(1.2); } }
.countdown__done { margin-top: 14px; text-align: center; font-size: 22px; color: var(--red); }

/* ── Secret ticket ──────────────────────────────────────────────── */
.secret { position: relative; padding: 96px 18px 70px; }
.secret__teddy {
  position: absolute;
  z-index: 0;
  width: 128px;
  top: 8px;
  right: 34px;
  transform: translateY(40px) rotate(8deg);
  transition: transform 0.9s var(--spring) 0.4s;
}
.secret.is-in .secret__teddy { transform: translateY(0) rotate(8deg); }

/* Yellow ticket with punched half-circle notches on both sides (radial masks) */
.ticket {
  position: relative;
  z-index: 1;
  padding: 24px 20px 26px;
  border-radius: 16px;
  background-color: var(--yellow);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 13px, #000 13.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 13px, #000 13.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px) right / 51% 100% no-repeat;
  transform: rotate(-2deg);
  text-align: center;
}
.ticket__title { font-size: 22px; font-weight: 400; color: var(--navy); }

.cal { position: relative; margin: 16px 0 14px; padding: 12px 10px 10px; border-radius: 14px; background-color: var(--paper); }
.cal__month { font-size: 14px; color: var(--navy-soft); }
.cal__row { display: grid; grid-template-columns: repeat(6, 1fr); padding-top: 6px; }
.cal__day { position: relative; font-size: 22px; line-height: 40px; color: var(--navy-soft); }
.cal__day--party { color: var(--red); }
.cal__day--real { color: var(--blue-deep); }
.cal__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s ease 0.5s;
}
.secret.is-in .cal__ring { stroke-dashoffset: 0; }
.cal__star { position: absolute; width: 20px; top: -6px; right: 0; animation: twinkle 2.2s ease-in-out infinite; }

/* Hand-drawn arrow hopping from the 25th back to the 20th, drawn after the ring */
.cal__arrow { display: block; width: 100%; height: 34px; margin-top: 2px; }
.cal__arrow path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s ease 1.3s;
}
.cal__arrow .cal__arrow-head { transition-delay: 2.2s; transition-duration: 0.3s; }
.secret.is-in .cal__arrow path { stroke-dashoffset: 0; }
.cal__labels { display: flex; justify-content: space-between; padding: 0 2px; font-size: 12px; color: var(--navy-soft); }

.ticket__text { font-size: 16px; line-height: 1.55; color: var(--navy); }
.ticket__text--wink { margin-top: 10px; color: var(--red); }
/* keeps the emoji on the same line as its last word */
.nowrap { white-space: nowrap; }
.ticket__gift { position: absolute; width: 50px; bottom: -8px; left: 14px; transform: rotate(-12deg); }

.secret__bunting {
  position: absolute;
  width: 150px;
  bottom: 14px;
  right: 30px;
  transform: rotate(-4deg);
  transform-origin: 50% 0;
  animation: sway 3.4s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } }

/* ── Place: balloon on a string, the map pill tied to the end ───── */
.place { padding: 30px 18px 30px; text-align: center; }
.place__name { margin-top: 10px; font-size: 36px; color: var(--red); }
.place__sub { font-size: 15px; color: var(--navy-soft); }
.balloon { position: relative; height: 300px; margin-top: 10px; }
.balloon__main {
  position: absolute;
  left: 50%;
  top: 0;
  width: 104px;
  margin-left: -52px;
  animation: bob 3.6s ease-in-out infinite;
}
.balloon__side { position: absolute; width: 70px; top: 40px; }
.balloon__side--l { left: 14%; transform: rotate(-12deg); animation: bob-l 4.2s ease-in-out infinite; }
.balloon__side--r { right: 14%; transform: rotate(12deg); animation: bob-r 3.9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes bob-l { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-8px) rotate(-8deg); } }
@keyframes bob-r { 0%, 100% { transform: translateY(-6px) rotate(12deg); } 50% { transform: translateY(4px) rotate(8deg); } }
.balloon__string {
  position: absolute;
  left: 50%;
  top: 186px;
  width: 2px;
  height: 56px;
  margin-left: -1px;
  background-color: var(--navy-soft);
  opacity: 0.6;
}
.pill {
  position: absolute;
  left: 50%;
  top: 238px;
  padding: 12px 26px;
  border-radius: 999px;
  background-color: var(--navy);
  color: var(--paper);
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transform: translateX(-50%);
  transform-origin: 50% -50px;
  animation: swing 3.6s ease-in-out infinite;
  box-shadow: 0 8px 18px rgba(44, 74, 134, 0.25);
}
.pill:active { background-color: var(--blue-deep); }
@keyframes swing { 0%, 100% { transform: translateX(-50%) rotate(-3deg); } 50% { transform: translateX(-50%) rotate(3deg); } }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { padding: 20px 18px 34px; text-align: center; }
.footer__name { font-size: 30px; color: var(--blue); }
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: sans-serif;
  font-size: 12px;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.credit:hover, .credit:active { opacity: 0.7; }
/* The logo is tinted through a mask so it takes the site's navy */
.credit__logo {
  width: 18px;
  height: 18px;
  background-color: var(--navy);
  -webkit-mask: url('logo-vector.svg') center / contain no-repeat;
  mask: url('logo-vector.svg') center / contain no-repeat;
}

/* Hold every intro animation until the loader clears */
html.is-loading *, html.is-loading *::before, html.is-loading *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ── Desktop: notice only (this invitation is built for phones) ── */
@media (min-width: 769px) {
  .desktop-notice {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: var(--cream);
  }
  .desktop-notice__logo { width: 52px; opacity: 0.8; }
  .desktop-notice p { font-size: 18px; color: var(--navy); text-align: center; padding: 0 32px; }
  .intro, .site, .music, .loader { display: none; }
}
