/* ═══════════════════════════════════════════════════════════════
   bitingpup ✦ pastel carrd-style site
   palette: #FDC9DA · #E9EDF6 · #FDBFD3 · #FFCFE2 · #FDEEF5
   layout inspo: xiu.carrd.co — all code hand-rolled
   ═══════════════════════════════════════════════════════════════ */

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --lav:   #FDC9DA;
  --blue:  #E9EDF6;
  --pink:  #FDBFD3;
  --pink2: #FFCFE2;
  --pale:  #FDEEF5;
  --card:  #FFF9FC;
  --violet-ink: #8f78c8;
  --pink-ink:   #e287b6;
  --body-ink:   #6f5da3;
  --stitch:     #f6cade;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  color: var(--body-ink);
  background: #f8dcec;
  overflow-x: hidden;
}

::selection { background: var(--pink); color: #fff; }

img { max-width: 100%; }

/* ── intro: black screen → logo fade → curtain pull ──────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}
.intro-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: #000;
}
.intro-l { left: 0; }
.intro-r { right: 0; }
.intro-half::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background: repeating-linear-gradient(0deg, #FDBFD3 0 14px, #FDC9DA 14px 28px);
  opacity: .9;
}
.intro-l::after { right: 0; }
.intro-r::after { left: 0; }
.intro-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(600px, 82vw);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: introFade 1.5s ease .25s forwards;
  filter: drop-shadow(0 0 26px rgba(253,191,211,.35));
}
.intro.pull .intro-logo { animation: introOut .55s ease forwards; }
.intro.pull .intro-l { animation: curtainL 1.15s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro.pull .intro-r { animation: curtainR 1.15s cubic-bezier(.65, 0, .35, 1) forwards; }
body.intro-lock { overflow: hidden; }

@keyframes introFade { to { opacity: 1; } }
@keyframes introOut  { to { opacity: 0; } }
@keyframes curtainL  { to { transform: translateX(-101%); } }
@keyframes curtainR  { to { transform: translateX(101%); } }

/* ── animated argyle page background ─────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #f8dcec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23f8dcec'/%3E%3Cpath d='M-12 -12 L108 108 M108 -12 L-12 108' stroke='%23f3c6de' stroke-width='15' fill='none' opacity='.75'/%3E%3Cg fill='%23ffffff' opacity='.9'%3E%3Ccircle cx='0' cy='0' r='3.5'/%3E%3Ccircle cx='96' cy='0' r='3.5'/%3E%3Ccircle cx='0' cy='96' r='3.5'/%3E%3Ccircle cx='96' cy='96' r='3.5'/%3E%3C/g%3E%3Cg transform='translate(48 48)'%3E%3Cellipse cx='-7.5' cy='-4.5' rx='7' ry='4.6' transform='rotate(-28 -7.5 -4.5)' fill='%23ffffff'/%3E%3Cellipse cx='7.5' cy='-4.5' rx='7' ry='4.6' transform='rotate(28 7.5 -4.5)' fill='%23ffffff'/%3E%3Cellipse cx='-7.5' cy='5' rx='7' ry='4.6' transform='rotate(28 -7.5 5)' fill='%23ffffff'/%3E%3Cellipse cx='7.5' cy='5' rx='7' ry='4.6' transform='rotate(-28 7.5 5)' fill='%23ffffff'/%3E%3Ccircle r='3.4' fill='%23f3aacf'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 96px 96px;
  animation: bgMove 26s linear infinite;
}

.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 42% at 50% 50%, rgba(255,255,255,.62), transparent 72%),
    radial-gradient(48% 44% at 50% 50%, rgba(233,237,246,.85), transparent 72%),
    radial-gradient(38% 34% at 50% 50%, rgba(255,207,226,.55), transparent 72%);
  background-size: 170% 170%, 180% 180%, 160% 160%;
  background-repeat: no-repeat;
  animation: glowShift 18s ease-in-out infinite alternate;
}

.sparkles span {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 0;
  color: #fff;
  font-size: 17px;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255,255,255,.95), 0 0 18px rgba(255,182,213,.8);
  animation: twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d);
}

/* ── mat + marching lace dots ────────────────────────────────── */
.scene {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 40px 16px 70px;
}

.mat {
  position: relative;
  width: min(980px, 100%);
  padding: 16px;
  border-radius: 46px;
  background: linear-gradient(160deg, #ecd9f6 0%, #f8dcec 55%, #fde7f1 100%);
  box-shadow: 0 26px 60px rgba(160,100,150,.35);
}

.mat-dots {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  pointer-events: none;
}

.mat-dots rect {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0 4.6;
  vector-effect: non-scaling-stroke;
  animation: march 30s linear infinite;
}

/* ── main card: rotating candy-gradient border ───────────────── */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 12px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--spin), #FDBFD3, #FDC9DA, #E9EDF6, #FFCFE2, #FDBFD3) border-box;
  animation: spinB 10s linear infinite;
  box-shadow: 0 18px 50px rgba(190,120,175,.28);
}

/* ── header: striped band, arch, bow, doilies ────────────────── */
.stripes {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 46px 18px 26px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 26px, #dfe8f7 26px 52px);
  animation: stripesSlide 16s linear infinite;
}

.bow {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 112px;
  z-index: 4;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(214,120,168,.3));
  animation: bowSway 5s ease-in-out infinite;
}

.doily {
  position: absolute;
  width: 92px;
  top: 44px;
  animation: twirl 18s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 3px rgba(214,120,168,.25));
}
.doily-l { left: 30px; }
.doily-r { right: 30px; animation-delay: -9s; }

.arch {
  position: relative;
  width: min(600px, 100%);
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  background: linear-gradient(#ffffff, var(--pale));
  border: 4px solid #f3bcd7;
  border-bottom: 0;
  border-radius: 280px 280px 0 0 / 190px 190px 0 0;
}

.arch::after {
  content: '';
  position: absolute;
  inset: 7px 9px 0;
  border: 2.5px dashed var(--stitch);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

/* title logo — floats up/down while rocking like a seesaw */
.title-float { max-width: 88%; animation: floatY 5.5s ease-in-out infinite; }

.title-rock {
  display: block;
  width: auto;
  height: auto;
  max-width: min(500px, 84vw);
  max-height: 150px;
  transform-origin: 50% 62%;
  animation: seesaw 4.2s ease-in-out infinite;
  filter: drop-shadow(0 5px 9px rgba(214,120,168,.35));
  cursor: pointer;
}

/* scalloped lace strips */
.lace {
  height: 18px;
  background: radial-gradient(circle at 12px 0px, #fff 11.5px, transparent 12.5px) 0 0 / 24px 18px repeat-x;
}
.head-lace { position: relative; z-index: 3; margin: -2px 14px 0; }

/* nav buttons */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  padding: 16px 14px 12px;
}

.btn {
  --bc: #f0a9cc;
  position: relative;
  font-family: 'Sniglet', 'Trebuchet MS', sans-serif;
  font-size: 19px;
  color: #a48cd4;
  background: linear-gradient(#ffffff, #FDF0F7);
  padding: 9px 30px;
  border-radius: 16px;
  border: 3px solid var(--bc);
  box-shadow: 0 3px 0 rgba(214,143,182,.3);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 11px;
  border: 2px dashed rgba(226,135,182,.5);
  pointer-events: none;
}
.btn:nth-child(even) { --bc: #a99bd9; color: var(--violet-ink); }
.btn:nth-child(even)::after { border-color: rgba(150,135,200,.45); }
.btn:hover { transform: translateY(-3px) rotate(-1.2deg); box-shadow: 0 6px 10px rgba(214,120,168,.25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px dashed #b6a3e3; outline-offset: 3px; }
.btn.is-active {
  background: linear-gradient(120deg, #f68fbf, #f49cc7 55%, #b9c6ec);
  background-size: 220% 100%;
  animation: btnShine 5s linear infinite;
  border-color: #e07bab;
  color: #fff;
  text-shadow: 0 1px 2px rgba(170,70,120,.45);
}
.btn.is-active::after { border-color: rgba(255,255,255,.75); }

/* braided divider — slowly slides */
.braid {
  height: 15px;
  margin: 0 18px 16px;
  border-radius: 9px;
  opacity: .95;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.95) 8px 16px),
    repeating-linear-gradient(-45deg, #FDBFD3 0 8px, #cbb9ee 8px 16px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
  animation: braidSlide 7s linear infinite;
}

/* ── inner sheet: gingham frame ──────────────────────────────── */
.sheet {
  position: relative;
  margin: 4px 16px 16px;
  padding: 12px 12px 14px;
  border: 3px solid #f0aecd;
  border-radius: 22px;
  background:
    repeating-linear-gradient(0deg,  rgba(253,191,211,.30) 0 13px, transparent 13px 26px),
    repeating-linear-gradient(90deg, rgba(253,191,211,.30) 0 13px, transparent 13px 26px),
    var(--pale);
}
.sheet::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(255,255,255,.9);
  border-radius: 16px;
  pointer-events: none;
}
.sheet .lace { margin: 0 -2px 10px; }
.sheet .lace.flip { margin: 10px -2px 0; transform: scaleY(-1); }

/* page-title banner */
.page-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 10px;
}

.rosette { flex: 0 0 auto; width: 72px; height: 72px; animation: twirl 16s ease-in-out infinite alternate; }
.rosette-r { animation-delay: -8s; }

.banner {
  flex: 0 1 560px;
  text-align: center;
  border: 3px solid #b6a6e3;
  border-radius: 999px;
  padding: 7px 30px 9px;
  background: linear-gradient(110deg, #fff 30%, #FDECF5 46%, #E9EDF6 56%, #fff 72%);
  background-size: 230% 100%;
  animation: sheen 7s linear infinite;
  box-shadow: 0 3px 0 #e7dcf6;
}
.banner.pop { animation: sheen 7s linear infinite, popIn .5s cubic-bezier(.34,1.56,.64,1); }
.banner h1 {
  margin: 0;
  font-family: 'Pacifico', 'Segoe Script', cursive;
  font-weight: 400;
  font-size: clamp(23px, 3.6vw, 33px);
  line-height: 1.25;
  color: var(--violet-ink);
}
.banner p {
  margin: 1px 0 0;
  font-size: 13.5px;
  font-style: italic;
  color: #d98cb4;
}

/* pages */
.page { display: none; padding: 2px 4px; min-height: 240px; }
.page.is-active { display: block; animation: pageIn .45s cubic-bezier(.34,1.56,.64,1); }

/* ── home grid ───────────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: 215px minmax(0,1fr) 225px;
  gap: 14px;
  align-items: stretch;
  padding: 2px 4px 8px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 10px;
  background: #fff;
  border: 3px solid #cdbdee;
  border-radius: 18px;
  box-shadow: 0 4px 0 rgba(205,189,238,.35);
  background-image: linear-gradient(#fff,#fff);
}

.pfp {
  position: relative;
  width: 100%;
  padding: 8px;
  border: 3px solid #f0b7d5;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--pale), var(--blue));
}
.pfp svg, .pfp img { display: block; width: 100%; height: auto; border-radius: 12px; }
.pfp img { aspect-ratio: 1 / 1; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.pfp-pin {
  position: absolute;
  top: -13px;
  right: -11px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  background: #ef9cc4;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  animation: heartbeat 1.8s ease-in-out infinite;
}

.pname {
  margin: 12px 0 2px;
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: 27px;
  color: var(--pink-ink);
}
.pinfo { margin: 0 0 6px; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--violet-ink); }
.pinfo b { color: var(--pink-ink); }

.welcome {
  background: #fff;
  border: 3px solid #cdbdee;
  border-radius: 18px;
  padding: 14px 18px 10px;
  box-shadow: 0 4px 0 rgba(205,189,238,.35);
}

.ribbon {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 8px 46px;
  text-align: center;
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(120deg, #b7a3e8, #cbbaef);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  text-shadow: 0 1px 2px rgba(120,95,180,.35);
}

.notes {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 0 0 8px;
  font-size: 19px;
  color: #b9a8e6;
}
.notes i { font-style: normal; animation: noteBob 2.2s ease-in-out infinite; }
.notes i:nth-child(2) { animation-delay: .18s; }
.notes i:nth-child(3) { animation-delay: .36s; }
.notes i:nth-child(4) { animation-delay: .54s; }
.notes i:nth-child(5) { animation-delay: .72s; }
.notes i:nth-child(6) { animation-delay: .90s; }
.notes i:nth-child(7) { animation-delay: 1.08s; }

.blurb { margin: 0 2px 10px; text-align: center; font-size: 15.5px; line-height: 1.7; }
.blurb b { color: var(--pink-ink); }
.blurb a {
  color: var(--pink-ink);
  font-weight: 700;
  text-decoration: underline wavy rgba(226,135,182,.55) 1.5px;
  text-underline-offset: 3px;
  transition: color .25s;
}
.blurb a:hover { color: var(--violet-ink); }

.thanks {
  margin: 2px 0 8px;
  text-align: center;
  font-family: 'Pacifico', cursive;
  font-size: 23px;
  color: var(--violet-ink);
}
.hrt { display: inline-block; color: #ef9cc4; animation: heartbeat 1.6s ease-in-out infinite; }

.links {
  background: #fff;
  border: 3px solid #cdbdee;
  border-radius: 18px;
  padding: 12px 14px 8px;
  box-shadow: 0 4px 0 rgba(205,189,238,.35);
}
.links-tab {
  display: block;
  width: max-content;
  margin: 2px auto 8px;
  padding: 5px 36px;
  font-family: 'Pacifico', cursive;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(120deg, #f6bcd8, #e8a9d2);
  border: 2.5px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(214,143,182,.4);
  text-shadow: 0 1px 2px rgba(190,90,140,.35);
}
.links ul { list-style: none; margin: 0; padding: 0; }
.links li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7.5px 4px;
  border-bottom: 2px dashed #f6d7e8;
}
.links li:last-child { border-bottom: 0; }
.lico { font-size: 18px; }
.links a {
  display: inline-block;
  font-family: 'Sniglet', 'Trebuchet MS', sans-serif;
  font-size: 17px;
  color: #cf7fb1;
  text-decoration: none;
  transition: transform .25s, color .25s;
}
.links a:hover {
  color: var(--violet-ink);
  transform: translateX(5px) rotate(-1deg);
  text-decoration: underline wavy #e287b6 1.5px;
}

/* ── tos ─────────────────────────────────────────────────────── */
.tos-list { list-style: none; max-width: 660px; margin: 4px auto; padding: 4px; }
.tos-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 11px 16px;
  background: #fff;
  border: 2.5px dashed #e9b7d4;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  transition: transform .25s;
}
.tos-list li:hover { transform: rotate(-.5deg) translateX(3px); }
.tos-list li > span:first-child { color: #ef9cc4; margin-top: 1px; }
.tos-list b { color: var(--pink-ink); }

/* ── prices: one square per category ─────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px 14px;
  padding: 10px 4px 4px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 12px;
  background: #fff;
  border: 3px solid #f3bcd7;
  border-radius: 18px;
  box-shadow: 0 4px 0 rgba(240,174,205,.35);
  transition: transform .3s;
}
.pcard:hover { transform: translateY(-5px) rotate(-.5deg); }
.pcard:nth-child(even) { border-color: #cdbdee; box-shadow: 0 4px 0 rgba(205,189,238,.45); }

.pcard-tab {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: max-content;
  max-width: 94%;
  padding: 3px 20px;
  font-family: 'Sniglet', 'Trebuchet MS', sans-serif;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(120deg, #f6bcd8, #e8a9d2);
  border: 2.5px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(190,90,140,.35);
}
.pcard:nth-child(even) .pcard-tab {
  background: linear-gradient(120deg, #c3b1ee, #b7a3e8);
  text-shadow: 0 1px 2px rgba(120,95,180,.4);
}

.plist { list-style: none; margin: 2px 0 4px; padding: 0; width: 100%; }
.plist li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6.5px 2px;
  border-bottom: 2px dashed #f6d7e8;
  font-size: 14.5px;
  color: var(--body-ink);
}
.plist li:last-child { border-bottom: 0; }
.pi { font-weight: 800; color: var(--violet-ink); }
.lead { flex: 1; border-bottom: 2px dotted #f0c6dd; transform: translateY(-3px); }
.pp {
  font-family: 'Sniglet', 'Trebuchet MS', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--pink-ink);
  white-space: nowrap;
}
.pp small { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 11px; color: #c084ad; }

.pnote {
  margin: 2px 0 4px;
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
  color: #a08cc9;
}

.fine { margin: 14px 4px 4px; text-align: center; font-size: 13.5px; color: #a08cc9; }
.fine a { color: #cf7fb1; }

/* ── portfolio ───────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 6px 4px 2px;
}
.tile {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: var(--g, linear-gradient(150deg, var(--pink2), var(--lav)));
  border: 3px solid #f3bcd7;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.tile span { transform: rotate(-6deg); filter: drop-shadow(0 3px 4px rgba(0,0,0,.08)); }
.tile figcaption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2.5px 13px;
  font-family: 'Sniglet', sans-serif;
  font-size: 12.5px;
  color: #fff;
  background: rgba(226,135,182,.8);
  border-radius: 999px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(170,70,120,.4);
}
.tile:hover { transform: translateY(-6px) rotate(-1.4deg); box-shadow: 0 10px 18px rgba(214,120,168,.25); }

/* media gallery + protected tiles: blurred until clicked */
.media-gallery { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); }

.tile.media { aspect-ratio: 3 / 4; cursor: pointer; -webkit-touch-callout: none; }
.tile.media img,
.tile.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: blur(16px) saturate(1.05);
  transform: scale(1.12);
  transition: filter .55s ease, transform .55s ease;
}
.tile.media.open img,
.tile.media.open video { filter: none; transform: none; }

.tile.media .shield { position: absolute; inset: 0; z-index: 3; }

.tile.media figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  background: linear-gradient(160deg, rgba(253,238,245,.30), rgba(233,237,246,.45));
  border-radius: 0;
  white-space: normal;
  transition: opacity .45s ease;
}
.tile.media figcaption span {
  padding: 4px 16px;
  font-family: 'Sniglet', 'Trebuchet MS', sans-serif;
  font-size: 13px;
  color: #fff;
  background: rgba(226,135,182,.8);
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(170,70,120,.4);
  white-space: nowrap;
}
.tile.media.open figcaption { opacity: 0; }
.tile.media:focus-visible { outline: 3px dashed #b6a3e3; outline-offset: 3px; }

/* audio tile: tap to play */
.tile.audio-tile {
  aspect-ratio: 3 / 4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(155deg, #FFCFE2, #FDC9DA 55%, #E9EDF6);
}
.a-note {
  font-size: 64px;
  color: #fff;
  text-shadow: 0 3px 10px rgba(226,135,182,.55);
  transition: transform .3s;
}
.audio-tile:hover .a-note { transform: scale(1.12) rotate(-6deg); }
.audio-tile.playing .a-note { animation: noteBob 1.1s ease-in-out infinite; }
.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  opacity: 0;
  transition: opacity .3s;
}
.audio-tile.playing .eq { opacity: 1; }
.eq i {
  width: 5px;
  height: 8px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(226,135,182,.4);
  animation: eqBar 1s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: .14s; }
.eq i:nth-child(3) { animation-delay: .28s; }
.eq i:nth-child(4) { animation-delay: .42s; }
.eq i:nth-child(5) { animation-delay: .56s; }
@keyframes eqBar {
  0%, 100% { height: 7px; }
  50%      { height: 22px; }
}
.a-title {
  position: static;
  transform: none;
  max-width: 88%;
  padding: 4px 16px;
  font-family: 'Sniglet', 'Trebuchet MS', sans-serif;
  font-size: 14.5px;
  color: #fff;
  background: rgba(226,135,182,.85);
  border: 2px solid #fff;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(170,70,120,.4);
}

/* ── password vault ──────────────────────────────────────────── */
.vault-gate {
  max-width: 430px;
  margin: 18px auto 2px;
  padding: 16px 18px 12px;
  text-align: center;
  background: #fff;
  border: 3px dashed #cdbdee;
  border-radius: 18px;
}
.vault-hint { margin: 0 0 10px; font-family: 'Sniglet', 'Trebuchet MS', sans-serif; font-size: 15px; color: var(--violet-ink); }
.vault-form { display: flex; justify-content: center; gap: 8px; }
.vault-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  letter-spacing: 3px;
  text-align: center;
  color: var(--body-ink);
  background: var(--pale);
  border: 2.5px solid #f3bcd7;
  border-radius: 999px;
  outline: none;
}
.vault-form input:focus { border-color: var(--pink-ink); box-shadow: 0 0 0 3px rgba(253,191,211,.35); }
.vault-form input::placeholder { letter-spacing: 1px; color: #c9a3c0; }
.vault-btn { flex: 0 0 auto; padding: 9px 20px; font-size: 16.5px; }
.vault-msg { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: var(--pink-ink); }
.vault-form.shake { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-7px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}

.vault { margin-top: 16px; }
.vault[hidden] { display: none; }
.vault.is-open { animation: pageIn .5s cubic-bezier(.34,1.56,.64,1); }
.vault-title {
  margin: 4px 0 10px;
  text-align: center;
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: 22px;
  color: var(--violet-ink);
}

/* ── footer ──────────────────────────────────────────────────── */
.foot {
  padding: 14px 12px 16px;
  text-align: center;
  background: repeating-linear-gradient(90deg, #dcd2f4 0 20px, #ece6fa 20px 40px);
  animation: footSlide 18s linear infinite;
}
.pill {
  display: inline-block;
  padding: 6px 24px;
  font-size: 13.5px;
  color: var(--violet-ink);
  background: #fff;
  border: 2.5px solid #cdbdee;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(205,189,238,.4);
}
.pill b { color: #cf7fb1; }

/* ═══════════ keyframes ═══════════ */

@keyframes bgMove      { to { background-position: 96px 96px; } }

@keyframes glowShift   { to { background-position: 100% 0%, 0% 100%, 50% 100%; } }

@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.55) rotate(0deg); }
  50%      { opacity: .9;  transform: scale(1.05) rotate(18deg); }
}

@keyframes spinB       { to { --spin: 360deg; } }

@keyframes march       { to { stroke-dashoffset: -36.8; } }

@keyframes stripesSlide{ to { background-position: 52px 0; } }

@keyframes bowSway {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50%      { transform: translateX(-50%) rotate(4deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(2px); }
  50%      { transform: translateY(-9px); }
}

@keyframes seesaw {
  0%, 100% { transform: rotate(-2.5deg); }
  50%      { transform: rotate(2.5deg); }
}

@keyframes twirl {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(10deg); }
}

@keyframes braidSlide { to { background-position: 22.63px 0, -22.63px 0; } }

@keyframes btnShine   { to { background-position: 220% 0; } }

@keyframes sheen      { to { background-position: 230% 0; } }

@keyframes popIn {
  from { transform: scale(.9); }
  to   { transform: scale(1); }
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes noteBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-6px) rotate(5deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.28); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.22); }
  70%      { transform: scale(1); }
}

@keyframes footSlide  { to { background-position: 40px 0; } }

/* ═══════════ responsive ═══════════ */

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .menu-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .arch { height: 172px; }
}

@media (max-width: 780px) {
  .doily { display: none; }
  .btn { padding: 8px 20px; font-size: 17px; }
}

@media (max-width: 520px) {
  .scene { padding: 22px 8px 48px; }
  .mat { padding: 12px; border-radius: 36px; }
  .stripes { padding: 38px 10px 20px; }
  .arch { height: 150px; }
  .title-rock { max-height: 118px; }
  .ribbon { font-size: 22px; padding: 7px 34px; }
  .rosette { width: 56px; height: 56px; }
  .gallery { grid-template-columns: 1fr; }
  .menu { gap: 10px; }
  .btn { flex: 1 1 38%; }
}

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