/* ==========================================================================
   Nails by Cate — styles
   ========================================================================== */

:root {
  --cream: #fbf4ee;
  --paper: #fffaf6;
  --blush: #f8e1e2;
  --blush-2: #f2c9ce;
  --rose: #b8476a;
  --rose-dark: #923250;
  --ink: #2f2328;
  --muted: #6c5760;
  --line: rgba(47, 35, 40, 0.14);
  --polaroid: #fdfbf6;
  --sharpie: #262b3f;
  --butter: #faeab3;
  --mint: #cdeadb;
  --lavender: #e3d8f3;
  --leather: #8e3a52;

  --header-h: 72px;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(47, 35, 40, 0.06), 0 6px 18px rgba(47, 35, 40, 0.08);
  --shadow-polaroid: 0 1px 1px rgba(0, 0, 0, 0.08), 0 6px 14px rgba(40, 22, 10, 0.2), 0 20px 32px -14px rgba(40, 22, 10, 0.4);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--rose-dark); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(72px, 10vw, 128px) 0; }

.eyebrow {
  font-family: var(--font-marker);
  color: var(--rose);
  font-size: 1.15rem;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40ch; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn--primary { background: var(--rose); color: #fff; box-shadow: 0 4px 0 var(--rose-dark); }
.btn--primary:hover { background: #c25275; transform: translateY(-2px); box-shadow: 0 6px 0 var(--rose-dark); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--rose-dark); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn--ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn--lg { padding: 18px 32px; font-size: 1.1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo em {
  font-family: var(--font-marker); font-style: normal; font-weight: 400;
  color: var(--rose); font-size: 0.8em; margin: 0 0.12em;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--blush); }
.site-nav a[aria-current="page"] { background: var(--blush); color: var(--rose-dark); font-weight: 600; }
.site-nav .nav-cta { background: var(--rose); color: #fff; margin-left: 8px; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--rose-dark); }
.site-nav .nav-cta[aria-current="page"] { background: var(--rose-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
  position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { top: 50%; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* On smaller screens the main tabs fold into the menu button,
   so the Book button gets its own spot in the header bar. */
.header-book { display: none; }
.header-book__short { display: none; }

@media (max-width: 920px) {
  .site-header__inner { gap: 10px; }
  .header-book {
    display: inline-flex; align-items: center;
    margin-left: auto;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--rose); color: #fff;
    font-weight: 600; font-size: 0.95rem; line-height: 1;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 3px 0 var(--rose-dark);
  }
  .header-book:hover { background: var(--rose-dark); }
  .nav-toggle { display: block; flex: none; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(47, 35, 40, 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav[data-open] { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 480px) {
  .site-header__inner { padding: 0 14px; }
  .logo { font-size: 1.35rem; }
  .header-book { padding: 10px 14px; font-size: 0.9rem; }
  .header-book__long { display: none; }
  .header-book__short { display: inline; }
}

/* ---------- Polaroid ---------- */

.polaroid {
  --pw: 220px;
  --r: 0deg;
  position: relative;
  display: block;
  width: var(--pw);
  padding: 0; margin: 0; border: 0;
  background: var(--polaroid);
  border-radius: 2px;
  box-shadow: var(--shadow-polaroid);
  color: var(--sharpie);
  font: inherit;
  text-align: center;
  transform: rotate(var(--r));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  container-type: inline-size;
}
button.polaroid { cursor: zoom-in; }
button.polaroid:hover, button.polaroid:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.08), 0 14px 26px rgba(40, 22, 10, 0.22), 0 34px 50px -18px rgba(40, 22, 10, 0.45);
  z-index: 6;
}
.polaroid__inner { display: block; padding: 6cqw 6cqw 0; }
.polaroid__photo {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  background: #e9e2da;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.polaroid__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(0, 0, 0, 0.06));
}
.polaroid__photo img, .polaroid__photo svg {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.polaroid__caption {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 24cqw; padding: 1cqw 5cqw 2cqw;
  font-family: var(--font-marker); line-height: 1.1;
}
.polaroid__title {
  font-size: 7.4cqw; max-width: 100%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
}
.polaroid__date { font-size: 5.6cqw; margin-top: 1.6cqw; opacity: 0.75; }

/* Push pin */
.polaroid--pinned::before {
  content: ""; position: absolute; z-index: 2;
  top: -8px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3.5px),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.28) 100%),
    var(--pin, var(--rose));
  box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.35);
}

/* Washi tape corners (colors set per photo with --tape-a / --tape-b) */
.polaroid--taped::before, .polaroid--taped::after {
  content: ""; position: absolute; z-index: 2;
  width: 36%; height: 9%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 4px, transparent 4px 8px), var(--tape-a, rgba(242, 201, 206, 0.85));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.polaroid--taped::before { top: -3%; left: -10%; transform: rotate(-32deg); }
.polaroid--taped::after { top: -3%; right: -10%; transform: rotate(32deg); background-color: var(--tape-b, rgba(205, 234, 219, 0.88)); }
.tape--dots::before, .tape--dots::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.4px, transparent 2px) 0 0 / 8px 8px, var(--tape-a);
}
.tape--dots::after { background-color: var(--tape-b); }
.tape--gingham::before, .tape--gingham::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.32) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 4px, transparent 4px 8px),
    var(--tape-a);
}
.tape--gingham::after { background-color: var(--tape-b); }

/* Die-cut emoji stickers: white outline + a soft shadow */
.sticker {
  position: absolute; z-index: 4;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: var(--s, 10cqw);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff)
    drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff)
    drop-shadow(0 3px 3px rgba(60, 30, 30, 0.3));
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HOME — cork board hero
   ========================================================================== */

.hero { padding: 16px; }

.corkboard {
  border-radius: 16px;
  padding: clamp(10px, 1.4vw, 18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.14)),
    repeating-linear-gradient(97deg, #8c5a35 0 7px, #7f4f2d 7px 10px, #976640 10px 17px, #7a4a29 17px 20px);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.25) inset, 0 20px 40px -18px rgba(60, 30, 10, 0.55);
}

.corkboard__surface {
  --strip: 0px;
  position: relative;
  min-height: calc(clamp(660px, calc(100vh - var(--header-h) - 64px), 900px) + var(--strip));
  display: grid; place-items: center;
  padding: 56px 24px calc(56px + var(--strip));
  border-radius: 6px;
  overflow: hidden;
  background-color: #c79563;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .19 0 0 0 0 .08 0 0 0 2.4 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .98 0 0 0 0 .86 0 0 0 0 .66 0 0 0 2.2 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 35%, rgba(255, 232, 196, 0.3), transparent 65%),
    radial-gradient(ellipse at 50% 120%, rgba(70, 35, 10, 0.35), transparent 60%);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.board-note {
  position: relative; z-index: 3;
  width: min(480px, 46%);
  padding: 48px 40px 40px;
  text-align: center;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(184, 71, 106, 0.08) 31px 32px),
    var(--paper);
  border-radius: 3px;
  box-shadow: var(--shadow-polaroid);
  transform: rotate(-1.2deg);
  animation: note-in 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.1) backwards;
}
.board-note h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); margin-bottom: 0.3em; }
.board-note h1 em { font-style: italic; color: var(--rose); }
.board-note .lede { margin: 0 auto 1em; }
.board-note__place {
  display: inline-block;
  margin: 0 0 1.6em;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--rose-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.board-note .actions { justify-content: center; }

.tape {
  position: absolute; top: -14px; left: 50%;
  width: 128px; height: 32px; margin-left: -64px;
  transform: rotate(-3deg);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 5px, transparent 5px 10px), rgba(242, 201, 206, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

#board { --strip: 132px; }
.board-group { position: absolute; inset: 0 0 var(--strip) 0; z-index: 2; pointer-events: none; }
.board-group .polaroid {
  /* Sized by width and height so three stacked polaroids never cover each other's captions */
  --pw: clamp(130px, min(15vw, calc((100vh - 200px) * 0.26)), 228px);
  position: absolute; left: var(--x); top: var(--y);
  pointer-events: auto;
  animation: pin-in 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
  animation-delay: var(--d, 0s);
}

/* Pinned polaroids sway gently from their pins */
.board-group .polaroid {
  transform-origin: 50% 0;
  animation:
    pin-in 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) var(--d, 0s) backwards,
    sway 5.5s ease-in-out calc(var(--d, 0s) + 0.9s) infinite;
}
.board-group .polaroid:nth-child(2n) { animation-duration: 0.75s, 6.5s; }
@keyframes sway {
  0%, 100% { rotate: 0deg; }
  50% { rotate: 1.6deg; }
}

/* Sticker on each pinned polaroid, matching its design */
.board-sticker { --s: 17cqw; bottom: -5%; right: -8%; rotate: 12deg; z-index: 3; }
.board-group .polaroid:nth-child(2n) .board-sticker { right: auto; left: -8%; rotate: -12deg; }

/* Loose stickers stuck straight onto the cork */
.board-loose { left: var(--x); top: var(--y); z-index: 1; --s: 2.2rem; }

/* Little sticky note stuck on the corner of the big note */
.board-sticky {
  position: absolute; top: -26px; right: -38px; z-index: 4;
  width: 118px; margin: 0;
  padding: 16px 12px 12px;
  background: var(--butter);
  font: 400 0.95rem/1.2 var(--font-marker);
  color: var(--ink);
  rotate: 8deg;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 12px 18px -8px rgba(60, 30, 10, 0.45);
  animation: wiggle 7s ease-in-out 2s infinite;
}
.board-sticky::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px), radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.28)), #4fb39a;
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.35);
}
@keyframes wiggle {
  0%, 88%, 100% { rotate: 8deg; }
  92% { rotate: 3deg; }
  96% { rotate: 11deg; }
}

/* Fairy lights across the top of the board */
.fairy-lights {
  position: absolute; z-index: 1; pointer-events: none;
  top: 0; left: 2%; right: 2%; height: 60px;
}
.fairy-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fairy-lights path { fill: none; stroke: #4a3a2a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fairy-lights__bulb {
  position: absolute;
  width: 10px; height: 14px; margin-left: -5px;
  border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 40% 35%, #fff 0 15%, var(--c) 55%);
  box-shadow: 0 0 10px 3px var(--c), 0 0 22px 6px color-mix(in srgb, var(--c) 45%, transparent);
  animation: twinkle 2.4s ease-in-out var(--d) infinite;
}
.fairy-lights__bulb::before {
  content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px;
  background: #5b4a3a; border-radius: 1px;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; filter: saturate(0.7); }
}

@keyframes pin-in {
  from { opacity: 0; transform: translateY(-36px) rotate(calc(var(--r) * -1.5)) scale(1.12); }
}
@keyframes note-in {
  from { opacity: 0; transform: translateY(20px) rotate(2deg) scale(0.97); }
}

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: max-content; margin: 18px auto 0;
  font-family: var(--font-marker); color: var(--muted); text-decoration: none;
}
.scroll-cue span { display: block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (max-width: 980px) {
  #board { --strip: 0px; }
  .corkboard__surface { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 44px 12px; min-height: 0; }
  .board-group { position: static; display: flex; justify-content: center; pointer-events: auto; }
  .board-group .polaroid { --pw: min(30vw, 190px); position: relative; left: auto; top: auto; margin: 0 -6px; }
  .board-group--left .polaroid:nth-child(2) { margin-top: 18px; }
  .board-note { width: min(520px, 100%); padding: 40px 24px 32px; }
  .board-loose { display: none; }
  .board-note { padding-bottom: 76px; }
  .board-sticky { top: auto; bottom: -14px; right: -4px; width: 92px; padding: 14px 8px 10px; font-size: 0.78rem; }
  .fairy-lights { height: 40px; }
}

/* ==========================================================================
   HOME — polaroid camera
   ========================================================================== */

.camera-section {
  background: linear-gradient(180deg, var(--cream), var(--blush) 55%, var(--cream));
  text-align: center;
  overflow: hidden;
}
.camera-section .lede { margin: 0 auto 1.8em; }

.camera-wrap {
  width: min(540px, 88vw);
  margin: 0 auto 8px;
  padding-bottom: calc(34% + 24px);
}
.camera-body { position: relative; }
.camera-body > svg { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(60, 30, 30, 0.25)); }

/* Sits right under the film slot; the print slides down out of it. */
.camera-eject {
  position: absolute; z-index: 3;
  left: 50%; top: 79%;
  width: 42%;
  transform: translateX(-50%);
  /* Hides the print while it's still inside the camera, but lets it be swiped sideways */
  clip-path: inset(0 -100vw -100vw -100vw);
  padding: 0 4% 28px;
  box-sizing: content-box;
}
.camera-print {
  display: block;
  transform: translateY(-104%);
  transition: transform 1.8s cubic-bezier(0.25, 0.7, 0.3, 1) 0.25s, translate 0.3s ease, rotate 0.3s ease;
  touch-action: pan-y;
}
.camera-print.is-held { transition-property: transform; cursor: grabbing; }
.camera-print.is-reset, .camera-print.is-reset * { transition: none !important; }
.camera-wrap.is-quick .camera-print { transition-duration: 1s, 0.3s, 0.3s; transition-delay: 0.05s, 0s, 0s; }
.camera-wrap.is-quick .camera-print .polaroid__photo > * { transition-duration: 2.4s; transition-delay: 0.6s; }
.camera-wrap.is-ejected .camera-print { cursor: grab; }
.camera-print .polaroid { --pw: 100%; width: 100%; }
.camera-print .polaroid__photo > * { filter: brightness(0.35) sepia(0.7) contrast(0.7) blur(1px); transition: filter 3.2s ease 1.4s; }
.camera-wrap.is-ejected .camera-print { transform: translateY(0) rotate(-2deg); }
.camera-wrap.is-ejected .camera-print .polaroid__photo > * { filter: none; }

.camera-flash {
  position: absolute; z-index: 3; pointer-events: none;
  left: 77%; top: 22%; width: 60%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
}
.camera-flash.is-flashing { animation: flash 0.6s ease-out; }
@keyframes flash { 15% { opacity: 1; } 100% { opacity: 0; } }

.camera-copy { max-width: 620px; margin: 0 auto; }

/* ==========================================================================
   HOME — booking band
   ========================================================================== */

.booking-band { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.steps { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blush); color: var(--rose-dark);
  font: 600 1.2rem/1 var(--font-display);
}
.steps strong { display: block; font-size: 1.05rem; }
.steps span { color: var(--muted); }

.info-card {
  position: relative;
  background: var(--paper);
  padding: 40px 32px 32px;
  border-radius: 6px;
  box-shadow: var(--shadow-polaroid);
  rotate: 1.2deg;
}
.info-card h3 { font-size: 1.5rem; }
.info-card .tape { background-color: rgba(205, 234, 219, 0.9); }
.hours { list-style: none; padding: 0; margin: 0 0 1.4em; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours li span:first-child { font-weight: 600; }
.info-card__meta { margin: 0; color: var(--muted); font-size: 0.95rem; }
.info-card__meta strong { color: var(--ink); }

@media (max-width: 860px) {
  .booking-band { grid-template-columns: 1fr; }
  .info-card { rotate: none; }
}

/* ==========================================================================
   Inner page heroes
   ========================================================================== */

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero .lede { max-width: 52ch; }

/* ==========================================================================
   PHOTOBOOK — page-turning album
   ========================================================================== */

.photobook-page { background: linear-gradient(180deg, var(--cream), #f6e6e4); }

.album-scroller { position: relative; }

.album-stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  overflow: hidden;
  /* Sideways swipes turn pages (handled in photobook.js); up/down still scrolls. */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.album img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.album-stage__title { text-align: center; }
.album-stage__title h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.album-stage__title p { margin: 2px 0 0; font-family: var(--font-marker); color: var(--rose); transition: opacity 0.3s ease; }

.album {
  --edge: clamp(6px, 1vw, 12px);
  --page-w: min(44vw, 520px, calc((100svh - var(--header-h) - 190px) / 1.34));
  --page-h: calc(var(--page-w) * 1.34);
  --open: 0;
  position: relative;
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  flex: none;
  transform: translateX(calc(var(--page-w) * -0.5 * (1 - var(--open))));
}

.album__base {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%;
  z-index: 1;
}

.leather {
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #a3485f, var(--leather) 60%, #74293f);
  box-shadow: 0 24px 40px -20px rgba(60, 20, 30, 0.6), 0 2px 6px rgba(60, 20, 30, 0.3);
}
.leather--right { border-radius: 0 12px 12px 0; }
.leather--left { border-radius: 12px 0 0 12px; }
.leather--right > .page { inset: var(--edge) var(--edge) var(--edge) 0; }
.leather--left > .page { inset: var(--edge) 0 var(--edge) var(--edge); }

.leaf {
  --p: 0;
  --shade: 0;
  position: absolute; left: 50%; top: 0;
  width: 50%; height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: perspective(2600px) rotateY(calc(var(--p) * -180deg)) skewY(calc(var(--shade) * -1.2deg));
  will-change: transform;
}
.leaf--page { top: var(--edge); width: calc(50% - var(--edge)); height: calc(100% - var(--edge) * 2); }

.leaf__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.leaf__face--back { transform: rotateY(180deg); }
.leaf__face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 10;
  opacity: var(--shade);
}
/* Shading across a turning page: dark at the spine, a soft sheen where the paper curves */
.leaf__face--front::after { background: linear-gradient(90deg, rgba(60, 25, 30, 0.4), transparent 32%, rgba(255, 255, 255, 0.3) 60%, transparent 76%, rgba(60, 25, 30, 0.16)); }
.leaf__face--back::after { background: linear-gradient(270deg, rgba(60, 25, 30, 0.4), transparent 32%, rgba(255, 255, 255, 0.3) 60%, transparent 76%, rgba(60, 25, 30, 0.16)); }

.page {
  position: absolute; inset: 0;
  overflow: hidden;
  container-type: inline-size;
  background-color: #fbf3ea;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%);
}
.page--grid {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(rgba(184, 71, 106, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 71, 106, 0.07) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}
.page--dots {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(circle, rgba(184, 71, 106, 0.18) 1.2px, transparent 1.7px);
  background-size: auto, 18px 18px;
}
.page--lined {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(80, 120, 180, 0.12) 27px 28px);
}
.page--right { border-radius: 0 6px 6px 0; box-shadow: inset 14px 0 18px -14px rgba(80, 40, 30, 0.35); }
.page--left { border-radius: 6px 0 0 6px; box-shadow: inset -14px 0 18px -14px rgba(80, 40, 30, 0.35); }

/* Doodles drawn on the paper, behind the photos */
.doodle {
  position: absolute; z-index: 0;
  width: 9cqw; height: 9cqw;
  fill: none; stroke: rgba(184, 71, 106, 0.5);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* Handwritten notes beside the photos */
.page-note {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  width: 36%;
  font-family: var(--font-marker);
  font-size: 4.3cqw; line-height: 1.15;
  color: var(--rose-dark);
  text-align: center;
}
.page-note__arrow {
  width: 9cqw; height: 6cqw; margin-top: 2cqw;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  align-self: flex-start; margin-left: 10%;
}
.page-note--a { top: 13%; right: 4%; rotate: 5deg; }
.page-note--b { bottom: 13%; left: 4%; rotate: -5deg; flex-direction: column-reverse; }
.page-note--b .page-note__arrow { transform: rotate(180deg); align-self: flex-end; margin: 0 10% 2cqw 0; }
.page-note--single { bottom: 4%; left: 6%; width: 64%; rotate: -2deg; flex-direction: column-reverse; }
.page-note--single .page-note__arrow { transform: rotate(120deg); margin: 0 0 1cqw 18%; }

.sticker--corner { --s: 12cqw; }
.page__slot--a .sticker--corner { bottom: -4%; left: -8%; rotate: -14deg; }
.page__slot--b .sticker--corner { top: -7%; right: -7%; rotate: 12deg; }
.page__slot--single .sticker--corner { top: -5%; right: -6%; --s: 14cqw; rotate: 12deg; }
.sticker--note { position: relative; --s: 9cqw; margin-bottom: 1cqw; rotate: -8deg; }
.page-note--b .sticker--note, .page-note--single .sticker--note { margin: 1cqw 0 0; rotate: 10deg; }
.page-note--single .sticker--note { position: absolute; right: -14%; bottom: 0; }

/* Stacked page edges: thickness follows how far through the book you are */
.album::before, .album::after {
  content: ""; position: absolute; z-index: 50; pointer-events: none;
  top: calc(var(--edge) + 3px); bottom: calc(var(--edge) + 3px);
  background: repeating-linear-gradient(90deg, #f7efe5 0 1px, #d9cab9 1px 2px);
  border-radius: 2px;
}
.album::before { left: calc(100% - var(--edge)); width: calc((1 - var(--read, 0)) * 7px); }
.album::after { right: calc(100% - var(--edge)); width: calc(var(--read, 0) * 7px); }

/* Satin ribbon bookmark peeking out under the book */
.album__ribbon {
  position: absolute; z-index: 2;
  right: 7%; top: -4px;
  width: 16px; height: calc(100% + 26px);
  background: linear-gradient(90deg, #9c3352, #c9577a 45%, #a83c5c);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.page__slot { position: absolute; width: 52%; }
.page__slot .polaroid { --pw: 100%; width: 100%; }
.page__slot--a { left: 8%; top: 5%; z-index: 2; }
.page__slot--b { right: 8%; bottom: 6%; z-index: 1; }
.page__slot--single { width: 78%; left: 11%; top: 9%; }

.page__num {
  position: absolute; bottom: 8px;
  font-family: var(--font-marker); font-size: 0.8rem; color: var(--muted); opacity: 0.8;
}
.page--left .page__num { left: 14px; }
.page--right .page__num { right: 14px; }

/* Cover */
.cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4%;
  padding: 10%;
  text-align: center;
  color: #f7dcc2;
  border-radius: 0 12px 12px 0;
}
.cover::before {
  content: ""; position: absolute; inset: 4.5%;
  border: 2px dashed rgba(247, 220, 194, 0.55); border-radius: 6px; pointer-events: none;
}
.cover__brand { font: 600 clamp(1.1rem, 2.6vw, 2rem)/1 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.cover__title { font: 400 clamp(1.5rem, 3.6vw, 2.8rem)/1 var(--font-marker); margin: 0; color: #fff1e4; }
.cover .polaroid { --pw: 54%; width: 54%; --r: -4deg; }
.cover__open {
  position: relative;
  border: 1.5px solid rgba(247, 220, 194, 0.7); background: rgba(255, 255, 255, 0.08);
  color: #fff1e4; border-radius: 999px; padding: 8px 16px;
  font: 600 0.85rem/1 var(--font-body); cursor: pointer;
}
.cover__open:hover { background: rgba(255, 255, 255, 0.18); }
.cover { container-type: inline-size; }
.cover__badge {
  position: absolute; bottom: 8%; right: 8%;
  display: grid; place-items: center;
  width: 22cqw; aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(146, 50, 80, 0.55);
  background: var(--butter);
  color: var(--rose-dark);
  font: 400 4.2cqw/1.05 var(--font-marker);
  text-align: center;
  rotate: -12deg;
  box-shadow: 0 0 0 2.5px #fff, 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Background decorations around the album (wide screens only) */
.album-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.album-decor__item {
  left: var(--x); top: var(--y);
  --s: 2.6rem;
  animation: drift 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0.9;
}
.album-decor .doodle { width: 46px; height: 46px; stroke: rgba(184, 71, 106, 0.35); }
@keyframes drift { 50% { translate: 0 -10px; } }

.album-tip {
  position: absolute; z-index: 2; display: none;
  right: 3.5%; top: 16%;
  width: 180px;
  padding: 22px 18px 18px;
  background: var(--butter);
  font: 400 1.05rem/1.25 var(--font-marker);
  color: var(--ink);
  text-align: center;
  rotate: 4deg;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), 0 14px 22px -10px rgba(60, 30, 10, 0.4);
}
.album-tip::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; margin-left: -35px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 4px, transparent 4px 8px), rgba(242, 201, 206, 0.9);
  rotate: -4deg;
}
.album-stage__title, .album, .album-controls { position: relative; z-index: 1; }

@media (min-width: 1100px) { .album-decor { display: block; } }
@media (min-width: 1240px) { .album-tip { display: block; } }

/* Emoji confetti when you reach the end */
.confetti { position: absolute; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.confetti span {
  position: absolute; top: -8%; left: var(--x);
  font-size: var(--s);
  animation: confetti-fall var(--t) cubic-bezier(0.25, 0.6, 0.4, 1) var(--d) forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(var(--spin)); opacity: 0; }
}

/* Final page + filler pages */
.page--end, .page--filler {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10%;
}
.page--end h2 { font-size: clamp(1.3rem, 2.6vw, 2.1rem); }
.page--end p { color: var(--muted); font-size: clamp(0.85rem, 1.3vw, 1rem); }
.page--end .btn { padding: 12px 20px; font-size: 0.95rem; }
.page--end .page__back { margin-top: 14px; font-size: 0.9rem; background: none; border: 0; color: var(--rose-dark); text-decoration: underline; cursor: pointer; font-family: inherit; }
.filler-note { margin: 0; font: 400 7cqw/1.2 var(--font-marker); color: var(--rose); rotate: -4deg; }

.album-controls { display: flex; align-items: center; gap: 16px; }
.album-controls button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.album-controls button:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.album-controls button[disabled] { opacity: 0.35; cursor: default; box-shadow: none; }
.album-status { min-width: 9.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Phones: one page at a time, the right-hand page centered on screen. */
.album--single {
  --page-w: min(84vw, calc((100svh - var(--header-h) - 190px) / 1.34));
  transform: translateX(calc(var(--page-w) * -0.5));
}

@media (max-width: 700px) {
  .album__ribbon { height: calc(100% + 12px); }
  .page__num { font-size: 0.65rem; bottom: 4px; }
  .cover__open { padding: 6px 10px; font-size: 0.7rem; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 24px;
  border: 0; background: transparent;
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(35, 20, 26, 0.78); backdrop-filter: blur(4px); }
.lightbox__figure {
  margin: 0; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.lightbox .polaroid { --pw: min(80vw, 50vh, 440px); --pw: min(80vw, 50dvh, 440px); --r: -1.5deg; }
.lightbox__details { max-width: 440px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.lightbox__text { margin: 0; font-size: 1.05rem; color: #fbeef0; }
.lightbox__close, .lightbox__nav {
  border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  transition: background-color 0.15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lightbox__nav { flex: none; width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; padding-bottom: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }

@media (max-width: 600px) {
  .lightbox { padding: 64px 8px 24px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__figure { align-self: flex-start; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { display: grid; place-items: center; padding: 24px; }
.about-photo .polaroid { --pw: min(380px, 80vw); --r: -3deg; }
.about-copy p { font-size: 1.08rem; }
.about-copy p:first-of-type { font-size: 1.25rem; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 1.4em 0 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 500; font-size: 0.95rem; }

.notes-board {
  border-radius: 16px; padding: clamp(10px, 1.4vw, 18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.14)),
    repeating-linear-gradient(97deg, #8c5a35 0 7px, #7f4f2d 7px 10px, #976640 10px 17px, #7a4a29 17px 20px);
}
.notes-board .corkboard__surface { min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 48px 32px; }
.sticky-note {
  position: relative;
  padding: 30px 22px 24px;
  background: var(--butter);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 14px 22px -10px rgba(40, 22, 10, 0.45);
  rotate: var(--r, -2deg);
}
.sticky-note:nth-child(2) { background: var(--blush-2); --r: 2deg; }
.sticky-note:nth-child(3) { background: var(--mint); --r: -1deg; }
.sticky-note:nth-child(4) { background: var(--lavender); --r: 3deg; }
.sticky-note h3 { font-family: var(--font-marker); font-weight: 400; font-size: 1.25rem; letter-spacing: 0; margin-bottom: 0.4em; }
.sticky-note p { margin: 0; font-size: 0.96rem; }
.sticky-note::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3.5px), radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.28)), var(--rose);
  box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .notes-board .corkboard__surface { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .notes-board .corkboard__surface { grid-template-columns: 1fr; padding: 36px 20px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background: var(--blush);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) 24px;
}
.cta-band .lede { margin: 0 auto 1.6em; }
.cta-band .actions { justify-content: center; }

/* ==========================================================================
   SERVICES
   ========================================================================== */

.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }
.jump-links a {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; background: var(--paper);
}
.jump-links a:hover { background: var(--blush); }

.service-cat { padding: 40px 0; border-top: 1.5px dashed var(--line); }
.service-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 24px; }
.service-cat__head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.service-cat__head p { margin: 0; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service-card {
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--blush-2); }
.service-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service-card h3 { margin: 0; font-size: 1.2rem; }
.service-card__price { font: 600 1.25rem/1 var(--font-display); color: var(--rose-dark); white-space: nowrap; }
.service-card__time { margin: 6px 0 10px; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.service-card__desc { color: var(--muted); flex: 1; }
.service-card__link { font-weight: 600; text-decoration: none; }
.service-card__link:hover { text-decoration: underline; }

.policies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.policies li { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); }
.policies strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.policies span { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   BOOK
   ========================================================================== */

.book-grid { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.form-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #d8c7c3;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232f2328' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(184, 71, 106, 0.16);
}
.field__hint { font-size: 0.86rem; color: var(--muted); }
.field__error { font-size: 0.88rem; color: #a3261e; font-weight: 500; min-height: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-status { margin: 0; font-weight: 500; }
.form-status--error { color: #a3261e; }

.form-success { text-align: center; padding: 24px 0; }
.form-success .polaroid { --pw: 220px; --r: -3deg; margin: 0 auto 26px; }

.book-aside { display: grid; gap: 22px; }
.book-aside .info-card { rotate: -1deg; }
.book-aside .payment-card { rotate: 0.8deg; padding-bottom: 28px; }
.payment-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.payment-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--rose-dark);
  font-weight: 600;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: #f1e3e6; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo em { color: #f2a9bd; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__tag { margin: 10px 0 0; color: #d9c4ca; max-width: 32ch; }
.site-footer nav, .site-footer__contact { display: grid; gap: 8px; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer h2 { font: 400 1.05rem/1 var(--font-marker); letter-spacing: 0; color: #f2a9bd; margin: 0 0 6px; }
.site-footer__legal { max-width: 1180px; margin: 40px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: #bfa9b0; }
/* Home page: the little gear that leads to the dashboard sign-in */
.site-footer__legal--admin { display: flex; align-items: center; gap: 10px; }
.site-footer__legal--admin p { margin: 0; }
/* keep it clear of the polish-bottle "back to top" button on phones */
@media (max-width: 560px) { .site-footer__legal--admin { padding-right: 72px; } }
.site-footer .footer-admin {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  color: #bfa9b0; opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease, rotate 0.4s ease;
}
.site-footer .footer-admin:hover, .site-footer .footer-admin:focus-visible { opacity: 1; color: #fff; rotate: 60deg; }
.footer-admin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Little extras (js/fun.js, js/home.js)
   ========================================================================== */

/* Paper grain over everything, so the site feels printed */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .14 0 0 0 1.25 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.22;
}

/* Glitter where you tap, sparkles behind the mouse */
.glitter-layer { position: fixed; inset: 0; z-index: 9500; pointer-events: none; overflow: hidden; }
.glitter {
  position: absolute; border-radius: 50%;
  background: var(--g); box-shadow: 0 0 5px var(--g);
  transform: translate(-50%, -50%);
}
.glitter--star {
  border-radius: 0; box-shadow: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* Polish bottle that fills as you scroll (tap it to go back to the top) */
.polish-meter {
  position: fixed; right: 14px; bottom: 16px; z-index: 60;
  width: 34px; height: 61px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 4px 5px rgba(60, 30, 30, 0.28));
  opacity: 0; translate: 0 14px; rotate: 8deg; pointer-events: none;
  transition: opacity 0.3s ease, translate 0.3s ease, rotate 0.3s ease, scale 0.2s ease;
}
.polish-meter.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.polish-meter:hover { rotate: -6deg; scale: 1.08; }
.polish-meter.is-full { animation: bottle-wiggle 0.7s ease; }
.polish-meter svg { display: block; width: 100%; height: 100%; overflow: visible; }
.polish-meter__fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.15s linear; }
@keyframes bottle-wiggle { 25% { rotate: -10deg; } 50% { rotate: 14deg; } 75% { rotate: 2deg; } }
.photobook-page .polish-meter { bottom: 12px; }

/* Toast message (sticky-note style) */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 9600;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(92vw, 440px);
  padding: 14px 18px;
  background: var(--butter); color: var(--ink);
  font: 400 1rem/1.3 var(--font-marker);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12), 0 16px 26px -10px rgba(60, 30, 10, 0.45);
  rotate: -1deg;
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.3s ease;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast__action {
  flex: none; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 600 0.85rem/1 var(--font-body); cursor: pointer;
}

.confetti--screen { position: fixed; z-index: 9400; }

/* Sound switch: a round icon button after the tabs, or a row in the phone menu */
.sound-toggle {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; margin-left: 6px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--ink);
  font: 500 1rem/1 var(--font-body); cursor: pointer;
  transition: background-color 0.15s ease;
}
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { background: var(--blush); }
@media (min-width: 921px) {
  .sound-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 920px) {
  .site-nav .sound-toggle {
    display: flex; gap: 10px; width: auto; height: auto; margin: 4px 0 0;
    padding: 14px 16px; border: 0; border-radius: 999px; background: none;
    font-size: 1.05rem; text-align: left;
  }
  .site-nav .sound-toggle:hover { background: var(--blush); }
}

/* The logo boings when tapped (tap it 5 times for a surprise) */
.site-header .logo { display: inline-block; touch-action: manipulation; }
.logo.is-tapped { animation: logo-boing 0.35s ease; }
@keyframes logo-boing { 40% { transform: scale(1.1) rotate(-3deg); } 70% { transform: scale(0.97) rotate(1deg); } }

/* Cate's signature, written in marker */
.signature { display: block; width: 100%; height: auto; overflow: visible; }
.signature path {
  fill: none; stroke: var(--rose-dark); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
}
.is-signing .signature path { animation: sign 1.7s cubic-bezier(0.45, 0.1, 0.4, 1) forwards; }
.is-signing .signature path:nth-child(2) { animation-duration: 0.3s; animation-delay: 1.75s; }
.is-signing .signature path:nth-child(3) { animation-duration: 0.6s; animation-delay: 2.1s; stroke: var(--rose); }
@keyframes sign { to { stroke-dashoffset: 0; } }

.signoff { display: flex; align-items: flex-end; gap: 10px; margin-top: 1.8em; }
.signoff__xo { font: 400 1.4rem/1 var(--font-marker); color: var(--rose); padding-bottom: 18px; }
.signoff__sign { display: block; width: 180px; rotate: -4deg; }

/* ---------- Cork board ---------- */

.board-group .polaroid { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.board-group .polaroid img { -webkit-user-drag: none; }

/* Tap: swings on its pin */
.board-group .polaroid.is-swinging { animation: swing 1.3s cubic-bezier(0.3, 0.6, 0.4, 1); }
@keyframes swing {
  0% { rotate: 0deg; }
  14% { rotate: 9deg; }
  34% { rotate: -7deg; }
  54% { rotate: 4deg; }
  76% { rotate: -1.6deg; }
  100% { rotate: 0deg; }
}

/* Picked up: the pin comes out, it lifts off the board */
.board-group .polaroid.is-lifted {
  animation: none;
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1), 0 26px 40px rgba(40, 22, 10, 0.32), 0 50px 60px -24px rgba(40, 22, 10, 0.5);
  cursor: grabbing;
  transition: transform 0.2s ease, box-shadow 0.2s ease, rotate 0.15s ease;
}
.board-group .polaroid.is-lifted::before { opacity: 0; }

.board-hint {
  margin: 14px auto 0; text-align: center;
  font-family: var(--font-marker); color: var(--rose); font-size: 0.98rem;
}
.board-hint + .scroll-cue { margin-top: 6px; }

/* Light switch at the end of the fairy-light wire */
.light-switch {
  position: absolute; z-index: 4;
  top: 14px; right: calc(2% - 22px);
  width: 44px; padding: 4px 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: none; cursor: pointer;
}
.light-switch::before {
  content: ""; position: absolute; bottom: calc(100% - 8px); left: 50%;
  width: 1.6px; height: 16px; margin-left: -0.8px; background: #4a3a2a;
}
.light-switch__plate {
  display: grid; place-items: center;
  width: 22px; height: 34px; border-radius: 5px;
  background: linear-gradient(#fffaf2, #ece0d1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.light-switch__rocker {
  width: 10px; height: 20px; border-radius: 3px;
  background: linear-gradient(#f39ab5 0 50%, #dacfc3 50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.light-switch[aria-pressed="false"] .light-switch__rocker { background: linear-gradient(#dacfc3 0 50%, #9d8f84 50%); }
.light-switch__label { font: 400 0.65rem/1 var(--font-marker); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }

#board::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(25, 12, 5, 0.25), rgba(25, 12, 5, 0.58));
  opacity: 0; transition: opacity 0.5s ease;
}
#board.lights-off::after { opacity: 1; }
.lights-off .fairy-lights__bulb {
  animation: none;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.8) 0 15%, rgba(222, 212, 202, 0.85) 60%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* "Spots left this week" ticket on the note's corner */
.board-ticket {
  position: absolute; z-index: 5; left: -46px; bottom: -26px;
  display: block; color: var(--ink); text-decoration: none;
  rotate: -7deg;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15)) drop-shadow(0 10px 12px rgba(60, 30, 10, 0.3));
  transition: rotate 0.25s ease, translate 0.25s ease;
}
.board-ticket:hover { rotate: -3deg; translate: 0 -3px; }
.board-ticket::before {
  content: ""; position: absolute; z-index: 1; top: -6px; left: 62%; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px), radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.28)), #e36b3c;
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.35);
}
.board-ticket__body {
  display: flex; text-align: left;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
}
.board-ticket__stub {
  display: grid; place-items: center; padding: 10px 8px 10px 13px;
  background: var(--rose); color: #fff;
  font: 700 0.62rem/1.15 var(--font-body); letter-spacing: 0.14em; text-align: center;
  border-right: 2px dashed rgba(255, 255, 255, 0.75);
}
.board-ticket__main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 9px 18px 9px 12px;
  background: #fff3c4;
  font: 400 0.98rem/1.15 var(--font-marker);
}
.board-ticket__main strong { font-weight: 400; color: var(--rose-dark); }
.board-ticket__cta { margin-top: 3px; font: 700 0.66rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-dark); }

/* Business card: tap to save Cate's contact */
.board-card {
  position: absolute; z-index: 3; right: 3%; bottom: 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 186px; padding: 14px 14px 12px;
  border: 0; border-radius: 3px;
  background: linear-gradient(135deg, #fffdf9, #f6eee6);
  color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 10px 18px -6px rgba(40, 22, 10, 0.45);
  rotate: 5deg;
  transition: rotate 0.25s ease, translate 0.25s ease;
}
.board-card:hover { rotate: 2deg; translate: 0 -3px; }
.board-card::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px), radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.28)), #8b6fd6;
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.35);
}
.board-card::after { content: ""; position: absolute; left: 14px; right: 14px; top: 38px; height: 1px; background: var(--blush-2); }
.board-card__logo { font: 600 1.05rem/1 var(--font-display); margin-bottom: 9px; }
.board-card__logo em { font: 400 0.8em var(--font-marker); color: var(--rose); }
.board-card__line { font-size: 0.78rem; line-height: 1.3; color: var(--muted); }
.board-card__save { margin-top: 6px; font: 400 0.8rem/1.1 var(--font-marker); color: var(--rose); }

/* Little photos hanging on a string with clothespins */
.board-string {
  --twine-h: 26px;
  position: absolute; z-index: 2;
  left: 50%; bottom: 14px; translate: -50% 0;
  width: min(560px, 46%); height: calc(var(--strip) - 22px);
}
.board-string__twine { position: absolute; left: -4%; width: 108%; top: 0; height: var(--twine-h); overflow: visible; }
.board-string__twine path { fill: none; stroke: #e9dcc6; stroke-width: 1.8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.35)); }
.board-string__item {
  position: absolute; left: calc(var(--u) * 100%); top: calc(var(--sag) * var(--twine-h) - 4px);
  width: 64px; margin-left: -32px;
  transform-origin: 50% 0;
  rotate: var(--r);
  animation: string-sway 4.5s ease-in-out var(--d) infinite;
}
@keyframes string-sway { 50% { rotate: calc(var(--r) * -0.6); } }
.board-string__item .polaroid { --pw: 100%; width: 100%; margin-top: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(40, 22, 10, 0.3); }
.board-string__item .polaroid__caption { height: 16cqw; }
.board-string__item .polaroid__title, .board-string__item .polaroid__date { display: none; }
.clothespin {
  position: absolute; z-index: 3; top: -4px; left: 50%;
  width: 8px; height: 22px; margin-left: -4px; border-radius: 2px;
  background: linear-gradient(90deg, #c99a63 0 46%, #8c6239 46% 54%, #d4a874 54%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

/* The secret ladybug */
.ladybug {
  position: absolute; z-index: 4; left: 4%; bottom: 10px;
  padding: 6px; border: 0; background: none; cursor: pointer;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05rem; line-height: 1;
  animation: crawl 22s linear infinite;
}
@keyframes crawl {
  0% { translate: 0 0; rotate: 80deg; }
  44% { translate: 150px -10px; rotate: 100deg; }
  50% { translate: 150px -10px; rotate: 260deg; }
  94% { translate: 0 0; rotate: 280deg; }
  100% { translate: 0 0; rotate: 440deg; }
}
.ladybug.is-flying { animation: fly-away 1.4s cubic-bezier(0.5, 0, 0.8, 0.6) forwards; }
@keyframes fly-away {
  0% { scale: 1; }
  20% { translate: 0 -10px; scale: 1.3; }
  100% { translate: 220px -520px; rotate: 30deg; scale: 0.6; opacity: 0; }
}

@media (max-width: 980px) {
  .board-ticket { left: 4px; bottom: -12px; rotate: -5deg; }
  .board-ticket__stub { padding: 8px 6px 8px 11px; font-size: 0.55rem; }
  .board-ticket__main { padding: 7px 13px 7px 9px; font-size: 0.82rem; }
  .board-ticket__cta { font-size: 0.6rem; }
  .board-string { position: relative; left: auto; bottom: auto; translate: none; width: min(88%, 400px); height: 96px; margin-top: -6px; }
  .board-string__item { width: min(14vw, 58px); margin-left: calc(min(14vw, 58px) / -2); }
  .board-card { position: relative; right: auto; bottom: auto; margin: -6px 0 4px; rotate: -3deg; }
  .ladybug { left: auto; right: 12%; bottom: 6px; }
}

/* ---------- Camera: shutter button, hint and photo pile ---------- */

.camera-shutter {
  position: absolute; z-index: 4;
  left: 18%; top: 71.25%; width: 13%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.camera-shutter::before {
  content: ""; position: absolute; inset: 25%; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.45) 0 14%, transparent 30%), #e2485a;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.camera-shutter:active::before { transform: scale(0.85); filter: brightness(0.85); }
.camera-shutter::after {
  content: ""; position: absolute; inset: 20%; border-radius: 50%;
  border: 3px solid rgba(226, 72, 90, 0.75);
  animation: shutter-ring 1.8s ease-out infinite;
}
.has-shot .camera-shutter::after { animation: none; opacity: 0; }
@keyframes shutter-ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }

.camera-hint {
  position: absolute; z-index: 3; margin: 0;
  left: 0; top: 92%; width: 27%;
  font: 400 0.92rem/1.15 var(--font-marker); color: var(--rose); text-align: center;
  rotate: -6deg; transition: opacity 0.4s ease;
}
.camera-hint span { display: block; animation: bob 1.4s ease-in-out infinite; }
.has-shot .camera-hint { opacity: 0; }

.camera-pile {
  position: absolute; z-index: 2;
  left: 74%; top: 95%; width: 25%; aspect-ratio: 1 / 1.18;
}
.camera-pile:empty::before {
  content: "swipe photos here ✨";
  position: absolute; inset: 0; display: grid; place-items: center; padding: 10%;
  border: 2px dashed rgba(184, 71, 106, 0.4); border-radius: 4px;
  font: 400 0.8rem/1.15 var(--font-marker); color: var(--rose); text-align: center; opacity: 0.8;
  rotate: 6deg;
}
.camera-pile__item { position: absolute; left: 0; top: 0; width: 100%; }
.camera-pile__item .polaroid { --pw: 100%; width: 100%; }

@media (min-width: 1000px) {
  .camera-hint { left: auto; right: 103%; top: 62%; width: 150px; font-size: 1.1rem; }
  .camera-hint span { display: inline-block; rotate: 90deg; margin-left: 4px; }
  .camera-pile { left: 108%; top: 28%; width: 30%; }
  .camera-pile:empty::before { font-size: 1rem; }
}

/* ---------- Photobook: date stamps, keepsakes, bookplate, last page ---------- */

.polaroid__stamp {
  position: absolute; z-index: 1; right: 5%; bottom: 4%;
  font: 700 6.2cqw/1 "Courier New", ui-monospace, monospace; letter-spacing: 0.02em;
  color: #ffa04a;
  text-shadow: 0 0 2px rgba(255, 110, 20, 0.95), 0 0 7px rgba(255, 80, 0, 0.6);
  opacity: 0.92;
}

.tuck { position: absolute; z-index: 0; pointer-events: none; }
.tuck--flower { width: 17cqw; left: 16%; top: 44%; rotate: -68deg; opacity: 0.92; filter: saturate(0.8) drop-shadow(0 1px 1px rgba(80, 40, 30, 0.25)); }
.tuck--glitter { width: 36cqw; left: 2%; bottom: 2%; }
.tuck--ticket { left: 6%; bottom: 2.5%; rotate: -5deg; filter: drop-shadow(0 1px 2px rgba(60, 30, 30, 0.3)); }
.tuck--ticket__body {
  display: flex;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 1.4cqw, #000 1.5cqw) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 1.4cqw, #000 1.5cqw) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 1.4cqw, #000 1.5cqw) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 1.4cqw, #000 1.5cqw) right / 51% 100% no-repeat;
}
.tuck--ticket__stub {
  display: grid; place-items: center; padding: 1.6cqw 1.6cqw 1.6cqw 2.6cqw;
  background: #f6c6cf; color: var(--rose-dark);
  font: 700 2.4cqw/1 var(--font-body); writing-mode: vertical-rl; rotate: 180deg;
  border-left: 1.5px dashed rgba(146, 50, 80, 0.5);
}
.tuck--ticket__main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.8cqw 3.4cqw 1.8cqw 2.6cqw;
  background: #fbe9a8; color: #7a4a20;
  font: 700 3.3cqw/1 var(--font-body); letter-spacing: 0.14em;
}
.tuck--ticket__main small { margin-top: 1cqw; font: 400 3cqw/1 var(--font-marker); letter-spacing: 0; color: var(--rose-dark); }

.album--single .tuck--flower { left: -2%; top: 30%; width: 21cqw; rotate: -24deg; }
.album--single .tuck--glitter { left: auto; right: 1%; top: 0; bottom: auto; width: 30cqw; }
.album--single .tuck--ticket { left: auto; right: -5%; bottom: 22%; rotate: 14deg; }

/* The shadow a turning page throws on the page below (drawn in photobook.js) */
.album__cast { position: absolute; inset: var(--edge) 0; z-index: 150; pointer-events: none; opacity: 0; }

.page--bookplate { display: grid; place-items: center; }
.bookplate {
  position: relative; z-index: 1;
  width: 74%; padding: 9cqw 6cqw 8cqw;
  background: #fffdf8; text-align: center;
  border: 1.5px solid rgba(146, 50, 80, 0.4); border-radius: 3px;
  outline: 1px solid rgba(146, 50, 80, 0.35); outline-offset: -2.6cqw;
  box-shadow: 0 2px 6px rgba(60, 30, 30, 0.14);
  rotate: -1.5deg;
}
.bookplate__ex { margin: 0 0 3cqw; font: italic 600 4.4cqw/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-dark); }
.bookplate__belongs { margin: 0; font: 400 4.8cqw/1.1 var(--font-marker); color: var(--muted); }
.bookplate__sign { width: 76%; margin: 1cqw auto 3cqw; }
.bookplate__note { margin: 0; font: italic 500 3.6cqw/1.35 var(--font-display); color: var(--muted); }
.page--bookplate .tuck--flower { z-index: 2; left: 6%; top: auto; bottom: 7%; width: 19cqw; rotate: -22deg; }

.page--yours { display: flex; align-items: center; justify-content: center; }
.yours { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6cqw; width: 64%; text-decoration: none; }
.yours__polaroid {
  display: block; width: 100%; padding: 4.5cqw 4.5cqw 0;
  background: var(--polaroid); box-shadow: var(--shadow-polaroid);
  rotate: -3deg; transition: rotate 0.3s ease, translate 0.3s ease;
}
.yours:hover .yours__polaroid { rotate: 0deg; translate: 0 -4px; }
.yours__photo {
  display: grid; place-items: center; aspect-ratio: 1;
  border: 2.5px dashed rgba(184, 71, 106, 0.45);
  background: repeating-linear-gradient(45deg, rgba(248, 225, 226, 0.55) 0 9px, rgba(255, 255, 255, 0.55) 9px 18px);
  font: 400 5.4cqw/1.15 var(--font-marker); color: var(--rose); text-align: center;
}
.yours__caption { display: block; padding: 4cqw 0 4.5cqw; font: 400 4.8cqw/1.1 var(--font-marker); color: var(--sharpie); }
.yours__cta {
  padding: 3cqw 5cqw; border-radius: 999px;
  background: var(--rose); color: #fff; box-shadow: 0 3px 0 var(--rose-dark);
  font: 600 3.8cqw/1 var(--font-body); white-space: nowrap;
}

/* ==========================================================================
   404 — "oops, this one smudged"
   ========================================================================== */

.oops { min-height: calc(100vh - var(--header-h) - 120px); display: grid; align-items: center; }
.oops__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.oops__photo { position: relative; display: grid; place-items: center; padding: 24px; }
.polaroid--smudged { --pw: min(320px, 72vw); --r: -5deg; }
.polaroid--smudged img { filter: blur(3px) saturate(0.8) brightness(1.05); transform: scale(1.08) translateX(-4%) skewX(-6deg); }
.oops__smear {
  position: absolute; inset: 0;
  background:
    linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.55) 34%, rgba(255, 240, 245, 0.25) 46%, transparent 58%),
    linear-gradient(112deg, transparent 52%, rgba(184, 71, 106, 0.25) 60%, transparent 70%);
}
.oops__drip { position: absolute; z-index: 3; top: -2px; right: 8%; width: 38%; fill: var(--rose); filter: drop-shadow(0 2px 2px rgba(80, 20, 40, 0.3)); }
.oops__sticker { --s: 3rem; right: 8%; bottom: 10%; rotate: 16deg; }
.oops .polaroid__title { font-size: 7cqw; }

@media (max-width: 800px) {
  .oops__grid { grid-template-columns: 1fr; text-align: center; }
  .oops__copy .lede { margin-inline: auto; }
  .oops__copy .actions { justify-content: center; }
}

/* ---------- Reduced motion ---------- */

/* "View as guest" draft preview bar (js/preview.js) */
.preview-bar {
  position: fixed; left: 50%; top: calc(var(--header-h) + 10px); z-index: 9500;
  translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 14px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(47, 35, 40, 0.55);
  font: 500 0.88rem/1.2 var(--font-body);
}
.preview-bar__label { white-space: nowrap; }
.preview-bar__btn {
  flex: none; padding: 7px 12px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font: 600 0.82rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.preview-bar__btn:hover { background: rgba(255, 255, 255, 0.26); }
.preview-bar__btn[data-preview="refresh"] { background: var(--rose); }
@media (max-width: 560px) {
  .preview-bar__long { display: none; }
  .preview-bar { gap: 4px; padding-left: 10px; }
  .preview-bar__btn { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
