/* Ishita & Sarvesh wedding site
   Colours and type follow the invite: cream paper, sage border, rose names,
   olive dates. Fraunces + Playfair Display stand in for the Canva fonts. */

/* Uses the original invite font if it's installed; see README to self-host it. */
@font-face {
  font-family: "Frunchy Serif";
  src: local("Frunchy Serif"), local("FrunchySerif-Regular");
  font-display: swap;
}

:root {
  --paper: #f7f3ea;
  --paper-2: #ebe6da;
  --card: #fbf8f1;
  --sage: #a9b58e;
  --sage-soft: #c8d3a3;
  --olive: #6b7a45;
  --rose: #c96f7d;
  --rose-deep: #a9566a;
  --ink: #3f4033;
  --muted: #6e6c5e;
  --gold: #c9a227;
  --line: rgba(107, 122, 69, .28);
  --shadow: 0 1px 2px rgba(63, 64, 51, .08), 0 18px 40px -18px rgba(63, 64, 51, .35);
  --accent: #c96f7d;
  /* Pulp Fiction tiles and their drawings */
  --tile-rose: #f6ece8;
  --tile-sage: #eef1e4;
  --rose-tint2: #f2d9d6;
  --sage-tint2: #dfe6cc;
  --chai: #ecd2ac;

  --display: "Frunchy Serif", "Fraunces", "Playfair Display", Georgia, serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --topbar: 84px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  letter-spacing: -.01em;
  line-height: 1.02;
  margin: 0;
}
.eyebrow {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
}

.ornament {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  color: var(--rose); margin: 1rem auto; max-width: 220px;
}
.ornament span { flex: 1; height: 1px; background: currentColor; opacity: .55; position: relative; }
.ornament span::after {
  content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.ornament span:first-child::after { right: 0; }
.ornament span:last-child::after { left: 0; }
.ornament i { font-style: normal; font-size: .9rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--serif); font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease-bounce), background .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn--primary { background: var(--rose); color: #fff; box-shadow: 0 8px 18px -10px var(--rose-deep); }
.btn--primary:hover { background: var(--rose-deep); }
.btn--ghost { border-color: currentColor; color: var(--olive); background: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: #fff; }
.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--rose-deep); }

:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- 1. Gate / home ---------- */

.gate {
  position: relative;
  overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: 20px 16px 32px;
}
.gate .particles { opacity: 1; }
.gate .particles span { animation-play-state: running; }
.gate__art {
  position: relative; z-index: 1;
  width: min(78%, 330px);
  animation: art-in 1.1s var(--ease-out) both;
}
.gate__art img {
  width: 100%; height: auto; max-height: 42svh; object-fit: contain;
  animation: breathe 6s 1.1s ease-in-out infinite;
}
.gate__panel {
  width: min(100%, 400px);
  margin-top: 4px;
  position: relative; z-index: 1;
  padding: 0 10px 8px;
  text-align: center;
}
.gate__panel > * { animation: rise .9s var(--ease-out) both; animation-delay: calc(.3s + var(--d, 0) * .1s); }
.gate__panel > :nth-child(2) { --d: 1; }
.gate__panel > :nth-child(3) { --d: 2; }
.gate__panel > :nth-child(4) { --d: 3; }
.gate__panel > :nth-child(5) { --d: 4; }
.gate__panel > :nth-child(n+6) { --d: 5; }
.gate__panel .eyebrow { margin-bottom: .3rem; }
.gate__title { color: var(--rose); font-size: clamp(2.3rem, 9vw, 3.4rem); }
.gate__title .amp { display: block; font-size: .5em; line-height: 1.1; }
.gate__dates { margin: .5rem 0 0; color: var(--olive); font-size: 1.05rem; }
.gate__form { display: grid; gap: 12px; text-align: left; margin-top: .25rem; }
.gate__heart { margin: 1rem 0 0; color: var(--rose); letter-spacing: .2em; font-size: .9rem; }
.gate__error {
  margin: 0; padding: .6rem .8rem; border-radius: 8px;
  background: #fbe6e6; color: #8a2f3d; font-size: .92rem; line-height: 1.4;
  white-space: pre-line;
}
.field { display: grid; gap: 4px; }
.field span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%; min-height: 48px; padding: .6rem .9rem;
  border: 1.5px solid var(--sage); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 111, 125, .15); }
.shake { animation: shake .45s; }

.gate--leaving .gate__art { animation: card-out .65s var(--ease-out) both; }
.gate--leaving .gate__panel { animation: fade-down .5s var(--ease-out) both; }

@media (min-width: 900px) {
  .gate {
    grid-template-columns: minmax(0, 460px) minmax(0, 420px);
    justify-content: center;
    gap: 64px;
    padding: 40px;
  }
  .gate__art { width: 100%; }
  .gate__art img { max-height: 80vh; margin: 0 auto; }
  .gate__panel { margin-top: 0; padding: 0; }
}

/* ---------- Top bar: names left, IS logo centre, menu right ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--topbar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 20px;
  background: var(--paper);
}
.topbar__names { display: block; width: max-content; max-width: 100%; transition: transform .3s var(--ease-bounce); }
.topbar__names img { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.topbar__names:hover { transform: translateY(-1px); }
.brand__mono {
  display: block; width: 74px; height: 74px; text-decoration: none;
  transition: transform .35s var(--ease-bounce);
}
.brand__mono img { width: 100%; height: 100%; }
.brand__mono:hover { transform: rotate(-8deg) scale(1.06); }

.menu { position: relative; justify-self: end; }
.menu__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .35rem .9rem .35rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .5);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--olive);
  transition: color .25s, border-color .25s, background .25s;
  -webkit-tap-highlight-color: transparent;
}
.menu__btn:hover, .menu__btn[aria-expanded="true"] { color: var(--rose-deep); border-color: var(--rose); background: #fff; }
.menu__chev {
  width: 7px; height: 7px; margin-top: -3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  transition: transform .3s var(--ease-bounce), margin .3s;
}
.menu__btn[aria-expanded="true"] .menu__chev { transform: rotate(-135deg); margin-top: 3px; }
.menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 200px; margin: 0; padding: 8px; list-style: none;
  background: var(--card); border-radius: 14px;
  box-shadow: 0 14px 34px -14px rgba(63, 64, 51, .5), 0 0 0 1px rgba(107, 122, 69, .15);
  transform-origin: top right;
}
.menu__list.is-open { animation: menu-in .28s var(--ease-out); }
.menu__list a {
  position: relative; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .8rem;
  border-radius: 9px; text-decoration: none;
  font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--ink);
  transition: background .2s, color .2s;
}
.menu__list a:hover { background: var(--paper); color: var(--rose-deep); }
.menu__list a.is-current { color: var(--rose-deep); }
.menu__list a.is-current::before {
  content: ""; position: absolute; left: .3rem; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--rose);
}
.menu__sub { margin: 0; padding: 0; list-style: none; }
.menu__sub a.is-current::before { left: 1.1rem; }
.menu__sub a { padding-left: 1.7rem; font-size: .98rem; color: var(--muted); min-height: 40px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }

@media (max-width: 899px) {
  :root { --topbar: 70px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar__names img { height: auto; max-height: 20px; }
  .brand__mono { width: 62px; height: 62px; }
  .menu__btn { font-size: .98rem; padding: .3rem .75rem .3rem .85rem; min-height: 40px; }
}

/* ---------- 2. Events scroller ---------- */

main { padding-top: var(--topbar); }
.view--events { position: relative; }
.scroller {
  height: calc(100vh - var(--topbar));
  height: calc(100svh - var(--topbar));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 14px 16px 52px;
}
.panel--art { padding: 0; display: block; }
.art-wrap { position: absolute; inset: 0; z-index: 1; }
.panel { background: var(--paper); }

.dots {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; z-index: 5;
  justify-items: end;
}
.dot {
  display: flex; align-items: center; gap: 8px; flex-direction: row-reverse;
  padding: 2px; border: 0; background: none; cursor: pointer;
  color: var(--olive); font-family: var(--serif); font-style: italic; font-size: .9rem;
}
.dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--olive);
  transition: transform .3s var(--ease-bounce), background .3s, border-color .3s;
}
.dot span {
  opacity: 0; transform: translateX(6px); white-space: nowrap;
  transition: opacity .25s, transform .25s;
  background: rgba(251, 248, 241, .85); padding: 0 .4rem; border-radius: 6px;
}
.dot:hover span, .dot:focus-visible span, .dot.is-active span { opacity: 1; transform: none; }
.dot.is-active { color: var(--accent); }
.dot.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
@media (max-width: 899px) {
  .dots { right: 4px; gap: 10px; }
  .dot { font-size: .75rem; }
  .dot::before { width: 8px; height: 8px; }
  .dot span { display: none; }
}

/* Welcome */
.welcome { text-align: center; max-width: 920px; position: relative; z-index: 1; }
.welcome__hi { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.15rem; margin: 0; }
.welcome__flower { color: var(--rose); font-size: 1.6rem; margin: .3rem 0; }
.welcome__lead { font-style: italic; color: var(--olive); font-size: clamp(1.05rem, 3.6vw, 1.35rem); margin: 0 0 1rem; }
.welcome__couple { display: grid; gap: .25rem; align-items: center; }
.person__name { color: var(--rose); font-size: clamp(2.6rem, 11vw, 4.6rem); }
.person__line { margin: .4rem 0 .2rem; font-size: clamp(.8rem, 2.7vw, .95rem); color: var(--olive); }
.person__parents { margin: 0; font-size: clamp(.95rem, 3.2vw, 1.15rem); color: var(--ink); }
.ornament--v { margin: .6rem auto; }
.welcome__invited { margin: 1.2rem 0 0; color: var(--muted); }
.welcome__invited strong { color: var(--rose-deep); font-weight: 500; }
@media (min-width: 900px) {
  .welcome__couple { grid-template-columns: 1fr auto 1fr; gap: 2rem; }
  .ornament--v { flex-direction: column; height: 180px; width: 20px; }
  .ornament--v span { width: 1px; height: auto; flex: 1; }
  .ornament--v span::after { left: -2.5px !important; right: auto !important; }
  .ornament--v span:first-child::after { bottom: 0; top: auto; }
  .ornament--v span:last-child::after { top: 0; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .person__line { display: none; }
  .welcome__lead { margin-bottom: .4rem; }
}

/* ---- Phones (and portrait screens): the whole invite on one screen ---- */
.m-view {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Room at the bottom so the buttons and the next-event cue clear the
     phone's home bar and browser toolbar */
  padding: 8px 12px calc(62px + env(safe-area-inset-bottom, 0px)); gap: 12px;
}
.m-img {
  flex: 0 1 auto; min-height: 0; max-height: calc(100% - 60px); width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, #000 92%, transparent);
}
/* The invite breathes: drifts up and down a few pixels while on screen */
.panel.is-active .m-img { animation: breathe 6s 1s ease-in-out infinite; }
.m-actions { flex: none; }
.d-view { display: none; }

/* Buttons: white chips with a soft shadow; event ones carry a round icon */
.art-link, .outro__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 46px; box-sizing: border-box; padding: 0 1.05rem; border: 0; border-radius: 999px;
  background: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1;
  box-shadow: 0 1px 2px rgba(63, 64, 51, .08), 0 8px 20px -12px rgba(63, 64, 51, .4);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-bounce), box-shadow .2s;
}
.art-link { color: var(--ev); padding-left: .35rem; }
.art-link__ic {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, currentColor 14%, #fff);
}
.art-link__ic svg { width: 19px; height: 19px; }
.art-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem .7rem; }
.art-link:hover, .outro__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(63, 64, 51, .08), 0 12px 24px -12px rgba(63, 64, 51, .5);
}
.art-link:focus-visible, .outro__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.art-link:active, .outro__link:active { transform: scale(.96); }
.art-note { margin: 0; font-style: italic; color: var(--olive); font-size: 1.02rem; line-height: 1.45; text-align: center; }
.art-note__hi { display: block; color: var(--rose-deep); font-size: 1.15rem; }
@media (max-width: 899px), (orientation: portrait) {
  .m-actions .art-links { flex-wrap: nowrap; }
  .m-actions .art-link { font-size: 1.08rem; }
  .m-actions .art-note { font-size: .9rem; line-height: 1.35; }
  .m-actions .art-note__hi { font-size: 1rem; }
}
@media (max-width: 380px) {
  .m-actions .art-links { gap: .45rem; }
  .art-link, .outro__link { font-size: .98rem; padding-right: .8rem; }
  .outro__link { padding-left: .8rem; }
  .art-link__ic { width: 32px; height: 32px; }
}

/* ---- Desktop: the invite pieces spread across the whole page ---- */
@media (min-width: 900px) and (orientation: landscape) {
  .m-view { display: none; }
  .d-view { display: block; position: absolute; inset: 0; }
  .d-p { position: absolute; object-fit: contain; }
  .d-col { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1.2vh; }
  .d-col .d-p { position: static; }
  .art-link { font-size: 1.3rem; }

  /* Haldi: the couple big along the bottom-left, the words on the right */
  .h-art { left: 0; bottom: 0; height: 74%; width: 62vw; object-position: left bottom; }
  .h-col { right: 5%; top: 50%; transform: translateY(-50%); width: 32vw; }
  .h-text { height: 66vh; max-height: calc(100vh - var(--topbar) - 140px); width: 100%; object-fit: contain; }

  /* Sangeet: dancers top-right, DJ dog bottom-left, date in between */
  .s-dance { right: 0; top: 0; height: 100%; width: 60vw; object-position: right top; }
  .s-dog { left: 0; bottom: 0; height: 60%; width: 40vw; object-position: left bottom; }
  .s-col { left: 19%; top: 16%; width: 22vw; }
  .s-text { width: 100%; height: auto; max-height: 34vh; }

  /* Phera Pheri: film strip down the left, title and details on the right */
  .wd-strip { left: 6%; top: 0; height: 100%; width: 34vw; object-position: left top; }
  .wd-col { right: 10%; top: 50%; transform: translateY(-50%); width: 34vw; }
  .wd-title { width: 100%; height: auto; max-height: 30vh; }
  .wd-text { width: 80%; height: auto; max-height: 40vh; }

  /* Toast & Tonic: the glass and the couple full height in the middle,
     the sky and grass carried across the whole page */
  .c-art {
    left: 50%; top: 0; height: 100%; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  }
  .c-col { right: 6%; top: 46%; }

  .panel.is-active .d-view .h-col, .panel.is-active .d-view .wd-col { transform: translateX(-50%); }
  .panel.is-active .d-view .h-col, .panel.is-active .d-view .wd-col { transform: translateY(-50%); }
  .panel.is-active .d-view .c-art { transform: translateX(-50%); }
}

/* ---- Welcome: the couple and a letter to the guest by name ---- */
.panel--letter { container-type: size; padding: 0; display: block; }
.letter {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.4cqh; padding: 12px 24px 52px;
}
.letter__art {
  position: relative; display: block; flex: none;
  width: min(100%, 560px, clamp(180px, 100cqh - 340px, 54cqh) * 1138 / 916);
  aspect-ratio: 1138 / 916;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.letter__art img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* Phones: the stem carries on from under the dog, down behind the words */
.letter__art::after {
  content: ""; position: absolute; left: 0; top: 100%; width: 100%; aspect-ratio: 1138 / 972;
  background: url(../assets/letter-stem.webp) center top / 100% auto no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.letter__art:focus-visible { outline-offset: 6px; border-radius: 18px; }
.letter__art.is-popping img { animation: letter-pop .75s var(--ease-bounce); }
.letter__burst {
  position: absolute; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  background: center / contain no-repeat; pointer-events: none;
  animation: letter-burst 1.2s var(--ease-out) forwards;
}
.letter__text {
  position: relative; isolation: isolate; max-width: 30rem;
  text-align: center; font-family: var(--serif); font-style: italic;
  color: #b8708f; font-size: clamp(.92rem, 4.1cqw, 1.1rem); line-height: 1.42;
}
.letter__text::before {
  content: none; position: absolute; z-index: -1; left: -10%; right: -10%; top: -6%; bottom: -14%;
  background: url(../assets/letter-stem.webp) center top / contain no-repeat; opacity: .8;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 75%, transparent);
}
.letter__text p { margin: 0; text-wrap: balance; }
.letter__text p + p { margin-top: 1em; }
.letter__dear { font-size: 1.3em; overflow-wrap: anywhere; }
.letter__divider { display: block; width: 7.5em; height: auto; margin: .5em auto 1em; }

/* Pops in when the page comes into view, then the words follow */
.letter__art, .letter__text { opacity: 0; transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.letter__text { transform: translateY(30px); transition-delay: .25s; }
.panel.is-active .letter__art { opacity: 1; animation: letter-in .9s var(--ease-bounce) both; }
.panel.is-active .letter__text { opacity: 1; transform: none; }

@media (min-width: 900px) and (orientation: landscape) {
  .letter { flex-direction: row; gap: 5vw; padding: 3cqh 8vw 64px 6vw; }
  .letter__art { flex: 0 1 auto; width: min(52vw, 84cqh * 1138 / 916, 46vw); }
  .letter__art img {
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, #000 86%, transparent);
  }
  /* Computers: the stem sits behind the words instead */
  .letter__art::after { content: none; }
  .letter__text::before { content: ""; }
  .letter__text { flex: 0 1 34rem; max-width: 34rem; font-size: clamp(1.15rem, 1.75vw, 1.6rem); }
}
/* Event illustrations pop when tapped. Uses scale/rotate rather than
   transform so it doesn't fight the layouts that position them with transform. */
.m-img, .d-view > .d-p { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.panel.is-active .m-img.is-popping, .panel.is-active .d-p.is-popping { animation: art-pop .75s var(--ease-bounce); }
@keyframes art-pop {
  0% { scale: 1; } 30% { scale: 1.06; rotate: -2deg; }
  55% { scale: .98; rotate: 1.5deg; } 78% { scale: 1.02; rotate: -.5deg; } 100% { scale: 1; rotate: 0deg; }
}
@keyframes letter-in { 0% { transform: scale(.82); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes letter-pop {
  0% { transform: scale(1); } 30% { transform: scale(1.1) rotate(-3deg); }
  55% { transform: scale(.96) rotate(2deg); } 78% { transform: scale(1.03) rotate(-1deg); } 100% { transform: scale(1); }
}
@keyframes letter-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.3); }
  12%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
}

/* Next-event cue */
.scroll-cue {
  background: none; border: 0; cursor: pointer;
  color: var(--olive); font-style: italic; font-size: .95rem;
  display: inline-flex; gap: .4rem; align-items: center;
  margin-top: 1.4rem;
}
.scroll-cue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
.scroll-cue--next {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  margin: 0; z-index: 2; white-space: nowrap;
  padding: .3rem .8rem; border-radius: 999px;
}
.scroll-cue--next { color: var(--ev, var(--olive)); }
@media (max-width: 899px) { .scroll-cue--next { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); font-size: .85rem; } }

/* Outro */
.outro { text-align: center; max-width: 560px; position: relative; z-index: 1; }
.outro__title { color: var(--rose); font-size: clamp(3.5rem, 16vw, 7rem); }
.outro__text { color: var(--olive); font-style: italic; font-size: 1rem; margin: .4rem 0 0; }
.outro__text strong { color: var(--ink); font-weight: 500; }
/* Last Events page: plain text links, "Itinerary · Stay · Pulp Fiction" */
/* Last Events page: "Itinerary", "Stay", "Pulp Fiction" as painted buttons */
.outro__links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem .7rem; margin-top: 1.6rem; }
.outro__link { color: var(--rose-deep); }
.countdown { margin: 1.1rem 0 0; color: var(--olive); font-style: italic; font-size: 1rem; }
.countdown b { font-family: var(--display); font-style: normal; font-weight: 400; font-size: 2.2rem; color: var(--rose); font-variant-numeric: tabular-nums; vertical-align: -.12em; margin-right: .15em; }
.countdown:not([hidden]) { animation: rise .8s .3s var(--ease-out) both; }
.outro__out { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
/* Need a hand? pinned to the bottom of the last Events page, small */
.outro__help {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 24px); width: max-content; text-align: center; z-index: 1;
  opacity: 0; transition: opacity .7s .36s var(--ease-out), transform .9s .36s var(--ease-out);
}
.panel.is-active .outro__help { opacity: 1; transform: translate(-50%, 0); }
.outro__help .eyebrow { margin: 0; }

/* ---------- Scroll animation: pieces rise into place ---------- */

.m-img, .m-actions, .d-p, .d-col,
.welcome > *, .outro > * {
  opacity: 0;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.m-img, .m-actions, .welcome > *, .outro > * { transform: translateY(36px); }
.panel.is-active .m-img, .panel.is-active .m-actions,
.panel.is-active .welcome > *, .panel.is-active .outro > * { opacity: 1; transform: none; }
.panel.is-active .m-actions { transition-delay: .25s; }
@media (min-width: 900px) and (orientation: landscape) {
  .d-p, .d-col { translate: 0 40px; transition: opacity .8s var(--ease-out), translate 1s var(--ease-out); }
  .panel.is-active .d-p, .panel.is-active .d-col { opacity: 1; translate: 0 0; }
  .panel.is-active .d-view > :nth-child(2) { transition-delay: .12s; }
  .panel.is-active .d-view > :nth-child(3) { transition-delay: .24s; }
  .panel.is-active .d-view > :nth-child(4) { transition-delay: .36s; }
  .panel.is-active .d-view > :nth-child(5) { transition-delay: .48s; }
  .d-col .d-p { opacity: 1; translate: none; }
}
.panel.is-active .outro > *:nth-child(2) { transition-delay: .12s; }
.panel.is-active .outro > *:nth-child(3) { transition-delay: .24s; }

/* Floating bits behind each panel */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1s; }
.panel.is-active .particles { opacity: 1; }
.particles span {
  position: absolute; bottom: -50px;
  width: var(--size, 18px); height: var(--size, 18px);
  background: center / contain no-repeat;
  opacity: 0;
  animation: float-up linear infinite;
  animation-play-state: paused;
}
.panel.is-active .particles span { animation-play-state: running; }
/* Cocktail: soft champagne bubbles that rise without spinning */
.particles--bubble span {
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, .55);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9) 0 18%, rgba(233, 205, 140, .22) 40%, transparent 72%);
}

/* ---------- 3 & 4. Content pages ---------- */

.view--page { min-height: calc(100svh - var(--topbar)); }
.page { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; text-align: center; }
.page--narrow { max-width: 560px; }
.page__title { color: var(--rose); font-size: clamp(2.2rem, 8vw, 3.6rem); }
.page__lede { color: var(--muted); margin: .6rem 0 1.4rem; }
.view--page:not([hidden]) .page > * { animation: rise .7s var(--ease-out) both; }
.view--page:not([hidden]) .page > *:nth-child(2) { animation-delay: .06s; }
.view--page:not([hidden]) .page > *:nth-child(3) { animation-delay: .12s; }
.view--page:not([hidden]) .page > *:nth-child(4) { animation-delay: .18s; }
.view--page:not([hidden]) .page > *:nth-child(5) { animation-delay: .24s; }

/* Stay: resort name, "Your stay", then the drawn map with a small card by the tapped pin */
.stay-line { margin: .3rem 0 1.2rem; font-style: italic; color: var(--olive); font-size: 1.2rem; }
.mapbox { position: relative; width: min(880px, 100%, (100svh - var(--topbar) - 230px) * 740 / 640); margin: 0 auto; text-align: left; }
.mapbox__map { --map-paper: var(--paper); }
.mapbox__hint { margin: .6rem 0 0; font-style: italic; color: var(--muted); font-size: .9rem; }
.map-svg {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.map-village { font-family: var(--serif); font-style: italic; font-size: 15px; fill: #9a9682; }
.map-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.view--page:not([hidden]) .map-route { animation: draw 2.2s .3s var(--ease-out) forwards; }
.map-sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.map-sparkle:nth-of-type(2n) { animation-delay: 1.1s; }

.venue { cursor: pointer; outline: none; }
.venue__halo { fill: rgba(201, 111, 125, .18); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s var(--ease-bounce); }
.venue__disc { fill: var(--paper); }
.venue__logo { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease-bounce); }
.venue__name { font-family: var(--display); font-size: 24px; fill: #3f4033; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; transition: fill .25s; }
.venue:hover .venue__logo, .venue:focus-visible .venue__logo { transform: scale(1.1); }
.venue.is-selected .venue__halo { transform: scale(1); animation: halo 2.4s ease-in-out infinite; }
.venue.is-selected .venue__logo { transform: scale(1.15); }
.venue.is-selected .venue__name { fill: var(--rose-deep); }
.venue:focus-visible .venue__halo { transform: scale(1); }

.map-card {
  --tx: 44px; --ty: -26px;
  position: absolute; z-index: 3; width: max-content; max-width: min(250px, 62%);
  transform: translate(calc(var(--tx) + var(--sx, 0px)), calc(var(--ty) + var(--sy, 0px)));
  background: var(--card); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 10px 28px -12px rgba(63, 64, 51, .45), 0 0 0 1px rgba(107, 122, 69, .15);
}
.map-card::before {
  content: ""; position: absolute; width: 12px; height: 12px; background: var(--card); transform: rotate(45deg);
}
.map-card--right::before { left: -6px; top: calc(20px - var(--sy, 0px)); }
.map-card--left { --tx: calc(-100% - 44px); }
.map-card--left::before { right: -6px; top: calc(20px - var(--sy, 0px)); }
.map-card--above { --tx: -50%; --ty: calc(-100% - 30px); }
.map-card--above::before { bottom: -6px; left: calc(50% - 6px - var(--sx, 0px)); }
.map-card--below { --tx: -50%; --ty: 30px; }
.map-card--below::before { top: -6px; left: calc(50% - 6px - var(--sx, 0px)); }
.map-card.is-in { animation: card-pop .35s var(--ease-bounce); }
.mp-name { margin: 0; font-family: var(--display); color: var(--rose-deep); font-size: 1.25rem; line-height: 1.1; }
.mp-mine { margin: .1rem 0 0; font-style: italic; color: var(--olive); font-size: .95rem; }
.mp-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 4px; }
.mp-list li { display: grid; padding-left: 9px; border-left: 2px solid var(--sage-soft); }
.mp-ev { font-size: .98rem; color: var(--ink); line-height: 1.2; }
.mp-ev i { display: none; }
.mp-when { font-style: italic; color: var(--olive); font-size: .82rem; }
.mp-go { display: inline-block; margin-top: .5rem; color: var(--rose-deep); font-style: italic; font-size: .95rem; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .map-card { padding: 9px 11px; }
  .mapbox { width: 100%; }
  .mp-name { font-size: 1rem; }
  .mp-mine { font-size: .85rem; }
  .mp-ev { font-size: .85rem; }
  .mp-ev i { display: inline; color: var(--olive); font-size: .8rem; }
  .mp-when { display: none; }
  .mp-list { margin-top: .3rem; gap: 2px; }
  .mp-go { margin-top: .3rem; font-size: .85rem; }
  .map-card { max-width: 52%; }
  .mp-when { font-size: .76rem; }
}

/* ---------- Itinerary: one day per block, a line down the middle like the tent card ---------- */

.page--itinerary { max-width: 760px; }
.itin__tabs {
  display: flex; justify-content: center; gap: clamp(24px, 9vw, 64px);
  margin: 2rem auto 0; padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  max-width: 520px;
}
.itin__tab {
  position: relative; display: grid; justify-items: center; gap: 3px;
  padding: .5rem .25rem 1rem; border: 0; background: none; cursor: pointer;
  color: var(--muted); transition: color .25s;
  -webkit-tap-highlight-color: transparent;
}
.itin__tab::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--rose); transform: scale(0); transition: transform .3s var(--ease-bounce);
}
.itin__tab-day { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.15; }
.itin__tab-date { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.itin__tab:hover { color: var(--olive); }
.itin__tab[aria-selected="true"] { color: var(--rose-deep); }
.itin__tab[aria-selected="true"]::after { transform: scale(1); }
.itin__day { margin-top: 2.4rem; }
.itin__day:not([hidden]) { animation: rise .45s var(--ease-out) both; }
.itin__list { list-style: none; margin: 0; padding: 0; position: relative; }
.itin__list::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 1.5px; margin-left: -.75px;
  background: var(--sage); opacity: .7;
}
.itin__item {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 92px; padding: 6px 0;
}
.itin__item::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--sage); opacity: .7;
}
.itin__icon { width: 88px; height: 76px; object-fit: contain; }
.itin__text { display: grid; justify-items: start; text-align: left; }
.itin__what { margin: 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.itin__time { margin: .15rem 0 0; letter-spacing: .06em; font-size: .95rem; color: var(--ink); }
.itin__place { margin: 0; font-size: .95rem; color: var(--olive); font-style: italic; }
.itin__item { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.itin__item .itin__icon, .itin__item .itin__text { transition: transform .25s var(--ease-bounce); }
.itin__item:hover .itin__icon { transform: scale(1.06) rotate(-3deg); }
.itin__item.is-pop .itin__icon { animation: itin-pop .55s var(--ease-bounce); }
.itin__item.is-pop .itin__text { animation: itin-nudge .55s var(--ease-bounce); }
@keyframes itin-pop { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes itin-nudge { 35% { transform: scale(1.06); } }
/* odd rows: icon left of the line, words right. Even rows: the other way. */
.itin__item:nth-child(odd) .itin__icon { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 26px; }
.itin__item:nth-child(odd) .itin__text { grid-column: 2; grid-row: 1; padding-left: 26px; }
.itin__item:nth-child(odd)::before { margin-left: 0; }
.itin__item:nth-child(even) .itin__icon { grid-column: 2; grid-row: 1; justify-self: start; margin-left: 26px; }
.itin__item:nth-child(even) .itin__text { grid-column: 1; grid-row: 1; justify-items: end; text-align: right; padding-right: 26px; }
.itin__item:nth-child(even)::before { margin-left: -14px; }
.view--page:not([hidden]) .itin__item { animation: rise .6s var(--ease-out) both; animation-delay: calc(.15s + var(--i, 0) * .05s); }
@media (max-width: 600px) {
  .itin__icon { width: 64px; height: 58px; }
  .itin__item { min-height: 76px; }
  .itin__what { font-size: 1.25rem; }
  .itin__time, .itin__place { font-size: .85rem; }
  .itin__item:nth-child(odd) .itin__icon { margin-right: 18px; }
  .itin__item:nth-child(odd) .itin__text { padding-left: 18px; }
  .itin__item:nth-child(even) .itin__icon { margin-left: 18px; }
  .itin__item:nth-child(even) .itin__text { padding-right: 18px; }
}

/* ---------- Travel plans (under the Stay map): how are you travelling? ---------- */

.travel { max-width: 460px; margin: 3rem auto 0; scroll-margin-top: calc(var(--topbar) + 12px); outline: none; }
.travel:empty { display: none; }
.travel__title { color: var(--rose); font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 1.4rem; }
.travel__card { display: grid; gap: 26px; padding: 4px 4px 0; text-align: left; }
.travel__q { margin: 0; font-family: var(--display); font-size: 1.35rem; color: var(--ink); text-align: center; }
.travel__q--sm { font-size: 1.05rem; text-align: center; color: var(--olive); font-family: var(--serif); font-style: italic; }
/* Same look as the itinerary day tabs: plain text, a rose dot under the chosen one */
.travel__modes {
  display: flex; justify-content: center; gap: clamp(28px, 11vw, 64px);
  padding-bottom: 2px; border-bottom: 1px solid var(--line);
}
.mode {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: .4rem .4rem 1rem; cursor: pointer;
  color: #9a9d88; transition: color .25s;
  -webkit-tap-highlight-color: transparent;
}
.mode::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--rose); transform: scale(0); transition: transform .3s var(--ease-bounce);
}
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode__icon { display: block; width: 22px; height: 22px; opacity: .9; }
.mode__icon svg { display: block; }
.mode__name { font-style: italic; font-size: 1.02rem; color: var(--muted); transition: color .25s; }
.mode:hover, .mode:hover .mode__name { color: var(--olive); }
.mode:has(input:checked) { color: var(--rose); }
.mode:has(input:checked) .mode__name { color: var(--rose-deep); }
.mode:has(input:checked)::after { transform: scale(1); }
.mode:has(input:checked) .mode__icon { animation: itin-pop .5s var(--ease-bounce); }
.mode:has(input:focus-visible) { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }
.travel__flight { display: grid; gap: 16px; }
.travel__flight:not([hidden]) { animation: rise .4s var(--ease-out) both; }
.travel__when { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.travel__when .field span { text-align: center; }
.field select, .field input[type="time"] {
  width: 100%; min-height: 44px; padding: .4rem .2rem;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); text-align: center; text-align-last: center;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.field input[type="time"]::-webkit-calendar-picker-indicator { opacity: .35; }
.field select:focus, .field input[type="time"]:focus { outline: none; border-bottom-color: var(--rose); }
.travel__form .btn { justify-self: center; width: auto; min-width: 160px; margin-top: 2px; }
.travel__card--done { text-align: center; justify-items: center; gap: 8px; }
.travel__thanks { margin: 0; color: var(--olive); font-style: italic; }
.travel__answer { margin: 0; font-family: var(--display); font-size: 1.25rem; color: var(--rose-deep); }

/* ---------- Wardrobe dialog ---------- */

.wardrobe {
  border: 0; padding: 0; background: transparent;
  width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
}
.wardrobe::backdrop { background: rgba(48, 46, 36, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wardrobe[open] { animation: pop .45s var(--ease-bounce) both; }
.wardrobe[open]::backdrop { animation: fade .3s both; }
.wardrobe.is-closing { animation: pop-out .22s ease-in both; }
.wardrobe__inner {
  position: relative; background: var(--card); border-radius: 14px;
  padding: 26px 18px 18px; text-align: center;
  max-height: calc(100svh - 24px); overflow-y: auto;
  border-top: 6px solid var(--ev);
}
.wardrobe__close {
  position: absolute; top: 8px; right: 10px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .05);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.wardrobe__close:hover { background: rgba(0, 0, 0, .1); }
.wardrobe__title { color: var(--ev); font-size: clamp(2rem, 8vw, 2.8rem); }
.wardrobe__shade { margin: .4rem 0 0; letter-spacing: .22em; text-transform: uppercase; color: #a35a3f; font-size: .85rem; }
.wardrobe__line { margin: .3rem 0 .8rem; font-style: italic; color: #3e527c; }
.wardrobe__img { margin-top: 14px; border-radius: 8px; width: 100%; height: auto; }
.wardrobe__soon { font-size: 3rem; margin: .5rem 0 1rem; animation: bob 1.8s ease-in-out infinite; }

/* Playlist page */
.playlist { position: relative; text-align: left; }
.pl-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pl-search { position: relative; z-index: 5; width: min(86%, 380px); margin: 0 auto; }
.pl-search input {
  width: 100%; padding: 12px 18px 12px 46px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font: inherit; font-size: 1rem; color: var(--ink); box-shadow: var(--shadow);
  -webkit-appearance: none; appearance: none;
}
.pl-search input::placeholder { color: var(--muted); font-style: italic; }
.pl-search input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 111, 125, .15), var(--shadow); }
.pl-search__icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; }
.pl-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  animation: card-pop .25s var(--ease-bounce);
}
.pl-results__wait { padding: 10px 12px; color: var(--muted); font-style: italic; }
.pl-hit {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px;
  background: none; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pl-hit:hover, .pl-hit:focus-visible { background: var(--paper-2); outline: none; }
.pl-hit--typed { border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; margin-top: 2px; }
.pl-hit__text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.pl-hit__text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-hit__text small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-hit__add { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--rose); color: #fff; font-size: 1.3rem; line-height: 1; }
.pl-art { width: 48px; height: 48px; border-radius: 8px; flex: none; object-fit: cover; background: var(--paper-2); }
.pl-art--note { display: grid; place-items: center; color: var(--rose); font-size: 1.3rem; }
.pl-spotify {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin: .6rem auto 0; padding: 8px 16px 8px 10px;
  border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .95rem;
  transition: background .2s, transform .25s var(--ease-bounce);
}
.pl-spotify:hover { background: rgba(30, 215, 96, .08); }
.pl-spotify:active { transform: scale(.96); }
.pl-spotify svg { width: 22px; height: 22px; flex: none; }
.pl-spotify circle { fill: #1ed760; }
.pl-spotify path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.pl-spotify span:last-child { color: var(--muted); font-size: .85rem; }
.pl-note {
  margin: .8rem auto 0; min-height: 1.5em; font-size: .95rem; color: var(--olive); text-align: center;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease-out);
}
.pl-note.is-on { opacity: 1; transform: none; }
.pl-note b { font-weight: 500; color: var(--ink); }
.pl-note__tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1ed760; color: #fff; font-size: .75rem; margin-right: 2px; }

/* Need a hand? (bottom of the last Events page): one contact under another */
.help__list { list-style: none; margin: .5rem auto 0; padding: 0; display: grid; gap: 6px; width: fit-content; }
.help__list li { display: flex; align-items: center; gap: 8px; }
.help__name { font-family: var(--serif); font-size: .98rem; color: var(--muted); margin-right: auto; padding-right: 12px; }
.help__btn {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); color: var(--olive); transition: background .2s, transform .25s var(--ease-bounce);
}
.help__btn:hover { background: rgba(201, 111, 125, .1); }
.help__btn:active { transform: scale(.9); }
.help__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.help__btn--wa { color: #25d366; }
.help__btn--wa:hover { background: rgba(37, 211, 102, .1); }
.help__btn--wa svg { width: 18px; height: 18px; }
.help__btn--wa .wa-ring { stroke-width: 1.7; }
.help__btn--wa .wa-phone { fill: currentColor; stroke: none; }

/* Pulp Fiction page: a line on why it's here, then a tile per extra, each
   with a line-drawn dog. TPO Insider and Vibe open a popup; the rest are links. */
.page--pulp { max-width: 440px; }
.pulp__title { text-align: center; }
.pulp__divider { display: block; width: 130px; height: auto; margin: 10px auto 0; }
.pulp__lede { display: grid; gap: 4px; max-width: 340px; margin: 22px auto 0; }
.pulp__lede p { margin: 0; color: var(--ink); }
.pulp__lede .pulp__lede-big { font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1.15; color: var(--olive); }
.pulp-tiles { display: grid; grid-template-columns: repeat(2, 146px); gap: 12px; justify-content: center; margin: 24px auto 0; }
.pulp-tile {
  display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 12px 10px 14px; border: 0; border-radius: 18px;
  background: var(--tile-rose); color: var(--rose-deep); text-decoration: none; text-align: center;
  font: inherit; cursor: pointer; transition: transform .35s var(--ease-bounce);
  -webkit-tap-highlight-color: transparent;
}
.pulp-tile--sage { background: var(--tile-sage); color: var(--olive); }
.pulp-tile:hover { transform: translateY(-2px); }
.pulp-tile:active { transform: scale(.97); }
.pulp-tile:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 18px; }
.pulp-draw { display: block; width: 110px; height: auto; transition: transform .45s var(--ease-bounce); }
.pulp-tile .pulp-draw { margin-bottom: 4px; }
.pulp-tile:hover .pulp-draw { transform: rotate(-4deg); }
.pulp-tile__name { font-family: var(--display); font-size: 1.12rem; line-height: 1.1; }
.pulp-tile__pre { font-family: var(--display); font-size: 1.02rem; line-height: 1.1; }
.pulp-tile__line { font-size: .74rem; font-style: italic; color: var(--muted); }
/* The last tile spans the row when the Insider tile is there (five tiles) */
.pulp-tile--wide { grid-column: 1 / -1; grid-template-columns: 112px 1fr; justify-items: start; align-items: center; gap: 4px; padding: 10px 14px 10px 8px; text-align: left; }
.pulp-tile--wide .pulp-draw { width: 108px; margin: 0; }
.pulp-tile__text { display: grid; }
.pulp-tile--wide .pulp-tile__name { font-size: 1.25rem; }
/* Everyone else has four tiles: two rows of two */
.pulp-tiles--guest .pulp-tile--wide { grid-column: auto; grid-template-columns: none; justify-items: center; gap: 2px; padding: 12px 10px 14px; text-align: center; }
.pulp-tiles--guest .pulp-tile--wide .pulp-draw { width: 110px; margin-bottom: 4px; }
.pulp-tiles--guest .pulp-tile__pre { font-size: .92rem; }
.pulp-tiles--guest .pulp-tile--wide .pulp-tile__name { font-size: 1.04rem; }
@media (max-width: 340px) { .pulp-tiles { grid-template-columns: repeat(2, 132px); } }

/* Pulp Fiction popups: the tile's drawing on top, then what to do */
.pulp-pop {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(330px, calc(100vw - 32px)); max-height: calc(100svh - 24px); overflow: visible;
}
.pulp-pop::backdrop { background: rgba(48, 46, 36, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.pulp-pop[open] { animation: pulp-in .4s var(--ease-out) both; }
.pulp-pop[open]::backdrop { animation: fade .3s both; }
.pulp-pop.is-closing { animation: pop-out .22s ease-in both; }
.pulp-pop__inner { position: relative; max-height: calc(100svh - 24px); overflow: hidden auto; border-radius: 22px; background: var(--card); text-align: center; }
.pulp-pop__top { display: grid; place-items: center; padding: 18px 0 8px; background: var(--tile-rose); color: var(--rose-deep); }
.pulp-pop--sage .pulp-pop__top { background: var(--tile-sage); color: var(--olive); }
.pulp-pop__top .pulp-draw { width: 150px; }
.pulp-pop__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .75); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.pulp-pop__close:hover { background: #fff; }
.pulp-pop__body { padding: 16px 18px 20px; }
.pulp-pop .pulp__head { font-size: 1.55rem; color: var(--rose-deep); }
.pulp-pop--sage .pulp__head { color: var(--olive); }
.pulp-pop .pulp__line { font-style: italic; font-size: .92rem; margin-bottom: 14px; }
.pulp-pop .pl-search { width: 100%; }
.pulp-pop .pl-results { position: static; margin-top: 8px; }
@keyframes pulp-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.insider { text-align: center; }
.insider__link {
  display: inline-flex; align-items: center; gap: 10px; margin: .1rem 0;
  font-family: var(--display); font-size: 2.4rem; color: var(--rose); text-decoration: none;
  transition: color .2s, transform .25s var(--ease-bounce);
}
.insider__link { line-height: 1; }
.insider__link:hover { color: var(--rose-deep); }
.insider__link:active { transform: scale(.97); }
.insider__link svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.insider__link svg .dot { fill: currentColor; stroke: none; }

/* Pulp Fiction buttons: the same white icon chips as Wardrobe planner / Directions */
.insider__link, .pl-spotify {
  display: flex; width: fit-content; margin: 0 auto; align-items: center; gap: .55rem;
  height: 46px; box-sizing: border-box; padding: 0 1.05rem 0 .35rem; border: 0; border-radius: 999px;
  background: #fff; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1;
  box-shadow: 0 1px 2px rgba(63, 64, 51, .08), 0 8px 20px -12px rgba(63, 64, 51, .4);
}
.insider__link svg, .pl-spotify svg {
  width: 36px; height: 36px; padding: 8.5px; box-sizing: border-box; border-radius: 50%; flex: none;
  background: color-mix(in srgb, currentColor 14%, #fff);
}
.insider__link { color: var(--rose-deep); }
.pl-spotify { color: #2e7d4a; margin-top: 16px; }
.pl-spotify span:last-child { color: inherit; font-size: .9rem; }
/* Text sizes follow Wardrobe planner / Directions on each screen */
@media (max-width: 899px), (orientation: portrait) {
  .insider__link, .pl-spotify { font-size: 1.08rem; }
}
@media (max-width: 380px) {
  .insider__link, .pl-spotify { font-size: .98rem; padding-right: .8rem; }
  .insider__link svg, .pl-spotify svg { width: 32px; height: 32px; padding: 7px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .insider__link, .pl-spotify { font-size: 1.3rem; }
}
.insider__link:hover, .pl-spotify:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(63, 64, 51, .08), 0 12px 24px -12px rgba(63, 64, 51, .5);
}

/* Song search on phones: a smaller box */
@media (max-width: 640px) {
  .pl-search { width: min(84%, 300px); }
  .pl-search input { padding: 8px 14px 8px 38px; }
  .pl-search__icon { left: 14px; width: 16px; height: 16px; }
  /* The "is on the playlist" note only takes up room once a song is added */
  .pl-note:not(.is-on) { height: 0; min-height: 0; margin-top: 0; overflow: hidden; }
}

/* ---------- Keyframes ---------- */

@keyframes breathe { 50% { translate: 0 -6px; } }
@keyframes art-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes card-out { to { opacity: 0; transform: translateY(-60px) rotate(6deg) scale(.9); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade-down { to { opacity: 0; transform: translateY(30px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes bob { 50% { transform: translateY(5px); } }
@keyframes float-up {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10%, 75% { opacity: var(--o, .7); }
  100% { transform: translate(var(--drift), -110vh) rotate(var(--spin, 320deg)); opacity: 0; }
}
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.85) rotate(-3deg); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(20px) scale(.92); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 50% { transform: scale(.55); opacity: .5; } }
@keyframes halo { 50% { opacity: .55; } }
@keyframes card-pop { from { opacity: 0; scale: .85; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .particles { display: none; }
  .scroller { scroll-behavior: auto; }
}
