/* MoMatt's Prints and Crafts: light, crafty look with cinematic accents (dark hero photo, dark film strip).
   Every color, size and spacing value lives here as a token, so the whole site can be re-themed in one place.
   Contrast on white: --text 16:1, --text-muted 7.5:1, --green 10:1, --gold-deep 5.3:1 (all fine for small text);
   --gold 3.2:1 is for large text, icons and decoration only. */
:root {
  --bg: #ffffff;          /* page background */
  --bg-raised: #f7f3ea;   /* warm paper: cards, gallery board */
  --line: #e7e0d2;        /* hairlines and borders */
  --text: #1c1b19;        /* headings and main text (ink) */
  --text-muted: #57524a;  /* body copy and captions */
  --green: #1f4d43;       /* the logo's green: labels, links, footer */
  --gold: #b8862b;        /* accent for big numbers, stars, tape, dividers, glows */
  --gold-deep: #8a6418;   /* gold that is dark enough for small text on white */
  --gold-bright: #d4a84b; /* buttons and highlights on dark areas (hero, film strip) */
  --on-dark: #f5f1e8;     /* text on the dark hero and film strip */
  --overlay: rgba(0, 0, 0, 0.62); /* darkens the hero photo so text stays readable */
  --radius: 4px;
  --label-spacing: 0.32em;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive; /* handwritten accents: Polaroid captions, section notes */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden things must never cover or block the page */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.1; margin: 0 0 .5em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Small, widely spaced gold capitals (the reference's signature detail) */
.label, .label-heading {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  color: var(--gold-deep);
  font-weight: 600;
}
.label-heading { font-size: clamp(1.3rem, 2.6vw, 1.9rem); text-align: center; margin-bottom: 16px; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); }
.brand img { border-radius: 50%; background: #fff; }
nav { display: flex; gap: 28px; align-items: center; }
nav a { position: relative; text-decoration: none; font-size: .92rem; color: var(--text); padding: 6px 0; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
nav a:hover, nav a.is-active { color: var(--green); }
nav a:hover::after, nav a.is-active::after { transform: scaleX(1); }

/* Hero: full-bleed photo under a dark overlay */
.hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 120px 0 120px; overflow: hidden; background: #111; }
.hero-bg { position: absolute; inset: -10% 0 0 0; background-size: cover; background-position: center; transform: scale(1.08); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--overlay) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.35) 88%, var(--bg) 100%); }
.hero-inner { position: relative; }
.hero h1 { color: #fff; font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 5.4rem); letter-spacing: -0.01em; max-width: 14ch; margin-inline: auto; }
.hero .label { color: var(--gold-bright); font-size: clamp(.85rem, 1.6vw, 1.05rem); margin: 8px 0 18px; }
.lead { max-width: 40em; margin: 0 auto; font-size: 1.05rem; color: #e2ddd3; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--gold-bright); color: #1c1b19; border: 1px solid var(--gold-bright); }
.btn-primary:hover { background: #e3bd66; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #cfc6b5; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.hero .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* Sections */
.section { padding: 110px 0; }
.section-lead { text-align: center; max-width: 30em; margin: 0 auto 56px; font-family: var(--font-hand); font-size: 1.7rem; line-height: 1.2; color: var(--text-muted); transform: rotate(-1.2deg); }
#contact .section-lead { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--text-muted); transform: none; max-width: 40em; }

/* Products: numbered columns, "01. Mugs" */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 48px 36px; }
.product { padding: 16px; margin: -16px; border: 1px solid transparent; border-radius: var(--radius); }
.product h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; color: var(--green); line-height: 1.3; margin-bottom: 12px; }
.product p { margin: 0; }

/* Gallery: a wall of Polaroids, every photo visible at once (no sideways scrolling) */
.gallery-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 26px;
  width: min(1160px, 100% - 32px); margin-inline: auto; padding: 34px 0 20px;
}
/* Gallery items are Polaroid prints: white frame, thick bottom, handwritten caption,
   a strip of gold washi tape, and a slight tilt like photos pinned to a board */
#gallery { background: var(--bg-raised); }
.gallery-strip figure {
  position: relative; margin: 0;
  background: #fff; padding: 10px 10px 0; border-radius: 3px;
  box-shadow: 0 8px 22px rgba(60,45,20,.10), 0 1px 3px rgba(60,45,20,.08);
  transform: rotate(var(--tilt, 0deg));
}


.gallery-strip figure::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; z-index: 2;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(212,168,75,.78) 0 8px, rgba(232,192,106,.78) 8px 16px);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.gallery-strip figure:nth-child(even)::before { transform: translateX(-50%) rotate(5deg); }
.gallery-strip .photo { position: relative; overflow: hidden; }
.gallery-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1px; }
.gallery-strip figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-hand); font-size: 1.3rem; font-weight: 700; line-height: 1; color: #2b2b2b; text-align: center; padding: 14px 4px 18px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; background: #fff; box-shadow: 0 6px 20px rgba(60,45,20,.06); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review-stars { color: var(--gold); letter-spacing: 3px; }
.review blockquote { margin: 0; color: var(--text); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { display: flex; flex-direction: column; }
.review { border-top: 2px solid var(--line); }
.review-name { font-weight: 600; color: var(--text); }
.review-invite { grid-column: 1 / -1; max-width: 560px; margin-inline: auto; text-align: center; align-items: center; border-top-color: var(--gold); }
.review-invite blockquote::before, .review-invite blockquote::after { content: none; }
.review-meta { font-size: .85rem; }

/* Steps: same numbered style as products */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step-num { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; }
.steps p { margin: 0; }

/* About */
.about { max-width: 720px; text-align: center; }
.maker-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--text); margin: 8px 0 0; line-height: 1.15; }
.maker-role { text-transform: uppercase; letter-spacing: var(--label-spacing); font-size: .78rem; font-weight: 600; color: var(--gold-deep); margin: 10px 0 24px; }

/* Contact / QR */
#contact { text-align: center; }
.phone { font-weight: 600; white-space: nowrap; }
.qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.qr { margin: 0; background: #fff; box-shadow: 0 6px 20px rgba(60,45,20,.06); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.qr img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 2px; padding: 8px; }
.qr figcaption { margin-top: 12px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--green); }
.mobile-note { margin-top: 32px; }

.footer { background: var(--green); color: #dfe9e5; text-align: center; padding: 32px 0; font-size: .85rem; }
.footer p { margin: 0; }

/* Back-to-top button */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 40px; height: 40px; display: grid; place-items: center; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .25s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* =========================================================
   ANIMATIONS — the site's signature
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* fast start, soft landing */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1); /* slight overshoot, feels springy */
  --glow: 0 0 16px rgba(184, 134, 43, .45);
}

/* Split headings: every letter is its own little element */
.split .word { display: inline-block; white-space: nowrap; }
.split .letter { display: inline-block; transition: transform .35s var(--ease-pop), color .25s, text-shadow .25s; }

/* Hero headline letters rise in one after another on page load */
.hero h1 .letter { opacity: 0; transform: translateY(.6em) rotate(6deg); }
.is-loaded .hero h1 .letter {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), color .25s, text-shadow .25s;
  transition-delay: calc(var(--i) * 28ms), calc(var(--i) * 28ms), 0s, 0s;
}
/* Once the entrance has played, drop the delays so hovers react instantly */
.intro-done .hero h1 .letter, .intro-done .hero .label { transition-delay: 0s !important; }
.settled .step-num { transition-delay: 0s !important; }
.hero .label, .hero .lead, .hero-actions { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), letter-spacing .4s var(--ease-out), text-shadow .3s, color .3s; }
.is-loaded .hero .label { opacity: 1; transform: none; transition-delay: .9s, .9s, 0s, 0s, 0s; }
.is-loaded .hero .lead { opacity: 1; transform: none; transition-delay: 1.05s; }
.is-loaded .hero-actions { opacity: 1; transform: none; transition-delay: 1.2s; }

/* Logo breathes with a soft gold glow */
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 rgba(184,134,43,0); } 50% { box-shadow: 0 0 14px rgba(184,134,43,.5); } }
.brand img { animation: breathe 4s ease-in-out infinite; }

/* Scroll reveal: sections slide up, then their items follow one by one */
.has-reveal .section .wrap,
.has-reveal .stagger { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.has-reveal .section.is-in .wrap { opacity: 1; transform: none; }
.has-reveal .section.is-in .stagger { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * 110ms); }

/* Step numbers count up visually: they pop in bigger */
.has-reveal .step-num { transform: scale(.4); opacity: 0; transition: transform .7s var(--ease-pop), opacity .5s; }
.has-reveal .is-in .step-num { transform: none; opacity: 1; transition-delay: calc(.3s + var(--i, 0) * 110ms); }

/* ---------- Hover effects (only on devices with a mouse) ---------- */
@media (hover: hover) {
  /* Letters grow, lift and glow gold under the pointer */
  .split .letter:hover, .is-loaded .hero h1 .letter:hover { transform: scale(1.4) translateY(-4px); color: var(--gold); text-shadow: var(--glow); }
  .label-heading .letter:hover { transform: scale(1.6) translateY(-3px); color: var(--green); }

  /* Business name spreads its letters apart */
  .hero .label:hover { letter-spacing: .6em; color: #fff; text-shadow: var(--glow); }

  /* Menu links zoom */
  nav a { transition: transform .3s var(--ease-pop), color .2s; }
  nav a:hover { transform: scale(1.2); }

  /* Buttons zoom with a glow */
  .btn { transition: transform .3s var(--ease-pop), background .2s, color .2s, border-color .2s, box-shadow .3s; }
  .btn:hover { transform: scale(1.12); box-shadow: var(--glow); }

  /* Product cards: gold frame lights up, card lifts, title grows */
  .product { transition: transform .4s var(--ease-out), border-color .3s, box-shadow .3s, background .3s, opacity .8s var(--ease-out); }
  .product:hover { transform: translateY(-8px); border-color: var(--gold); background: var(--bg-raised); box-shadow: 0 14px 30px rgba(60,45,20,.12); }
  .product h3 { transition: transform .35s var(--ease-pop), text-shadow .3s; transform-origin: left center; }
  .product:hover h3 { transform: scale(1.12); text-shadow: var(--glow); }

  /* Steps: number swells and glows */
  .steps li { transition: transform .4s var(--ease-out), opacity .8s var(--ease-out); }
  .steps li:hover { transform: translateY(-6px); }
  .steps li:hover .step-num { transform: scale(1.25) rotate(-4deg); text-shadow: var(--glow); transition-delay: 0s; }
  .steps li:hover h3 { color: var(--green); }

  /* Gallery: photo zooms and dims, caption slides up over it */
  /* Polaroid: straightens, lifts and pops forward; the photo zooms gently and the flash fires */
  .gallery-strip figure { transition: transform .5s var(--ease-pop), box-shadow .5s, opacity .8s var(--ease-out); }
  .gallery-strip figure:hover { transform: rotate(-1.5deg) translateY(-8px) scale(1.04); box-shadow: 0 28px 50px rgba(60,45,20,.28), 0 0 30px rgba(184,134,43,.3); z-index: 3; }
  .gallery-strip img { transition: transform .8s var(--ease-out); }
  .gallery-strip figure:hover img { transform: scale(1.06); }
  .gallery-strip figure:hover .photo::after { animation: flash .6s ease-out; }

  /* Products: a gold stitched border runs around the card on hover */
  .product:hover { border-style: dashed; }

  /* Reviews and QR cards lift with a gold edge */
  .review, .qr { transition: transform .4s var(--ease-out), border-color .3s, box-shadow .3s, opacity .8s var(--ease-out); }
  .review:hover, .qr:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(60,45,20,.14); }
  .review:hover { border-top-color: var(--gold); }
  .review:hover .review-stars { text-shadow: var(--glow); letter-spacing: 6px; }
  .review-stars { transition: letter-spacing .4s var(--ease-pop), text-shadow .3s; }
  .qr:hover img { transform: scale(1.04); }
  .qr img { transition: transform .4s var(--ease-pop); }

  /* Back-to-top bounces up */
  .to-top { transition: opacity .25s, transform .3s var(--ease-pop), box-shadow .3s; }
  .to-top:hover { transform: translateY(-4px) scale(1.1); box-shadow: var(--glow); }
}

/* ---------- Camera flash (photobooth signature) ---------- */
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.photo::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.page-flash { position: fixed; inset: 0; z-index: 30; background: #fff; pointer-events: none; opacity: 0; }
.page-flash.is-firing { animation: flash .7s ease-out; }

/* ---------- "Cut here" dividers between sections (crafts) ---------- */
.section + .section { position: relative; }
.section + .section::before {
  content: "✂"; position: absolute; top: 0; left: max(16px, calc((100% - 1160px) / 2)); right: max(16px, calc((100% - 1160px) / 2));
  height: 0; border-top: 1px dashed rgba(184,134,43,.45);
  color: var(--gold); font-size: 18px; line-height: 0; text-indent: -2px;
}

/* ---------- Marquee band of products, styled as a photobooth film strip ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 34px 0; background: #141312;
  border-block: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee::before, .marquee::after { /* sprocket holes along the top and bottom edge */
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(246,243,236,.22) 14px 26px);
  border-radius: 2px;
}
.marquee::before { top: 10px; }
.marquee::after { bottom: 10px; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; gap: 40px; padding-right: 40px; white-space: nowrap; }
.marquee__item { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(245,241,232,.45); transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee__item:nth-child(4n+1) { color: var(--on-dark); -webkit-text-stroke-color: transparent; }
.marquee__star { color: var(--gold-bright); font-size: clamp(1rem, 2.4vw, 1.8rem); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .marquee__item:hover { color: var(--gold-bright); -webkit-text-stroke-color: transparent; }
}

/* ---------- Magnetic buttons ---------- */
.magnet { display: inline-block; }
.magnet-inner { display: inline-block; will-change: transform; }

/* ---------- Film grain ---------- */
.page-grain {
  position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: .25; background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ---------- Phone menu ---------- */
.burger { display: none; position: relative; z-index: 80; width: 44px; height: 44px; border-radius: 999px; place-content: center; gap: 5px; cursor: pointer; background: #fff; border: 1px solid var(--line); }
.burger span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--text); transition: transform .3s var(--ease-out), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 18; display: flex; flex-direction: column; justify-content: center;
  padding: max(96px, calc(env(safe-area-inset-top) + 88px)) 24px max(32px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.menu-links a:not(.btn) {
  display: block; padding: 12px 0; color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 8vw, 40px); letter-spacing: -.02em;
}
.menu-links a { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.menu-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(100ms + var(--i) * 80ms); }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; }
.menu-links .menu-cta { margin-top: 28px; }
body.menu-open { overflow: hidden; }
@media (max-width: 767px) {
  .burger { display: grid; }
  .topbar nav { display: none; }
}
@media (min-width: 768px) { .menu { display: none; } }

/* Respect visitors who turn animations off in their device settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .letter, .hero .label, .hero .lead, .hero-actions { opacity: 1 !important; transform: none !important; }
}

/* Tablet */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-grid { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
}

/* Phone */
@media (max-width: 680px) {
  .topbar-inner { height: 64px; }
  .hero { min-height: 78vh; padding-top: 100px; }
  .section { padding: 72px 0; }
  .product-grid, .steps, .review-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } /* equal columns even with long captions */
  .gallery-strip figure { padding: 8px 8px 0; }
  .gallery-strip figcaption { font-size: 1.15rem; padding: 10px 2px 12px; }
  .gallery-strip figure::before { width: 60px; height: 18px; top: -9px; }
}

/* ---------- Logo hover: the MoMatt's badge grows big and glows ---------- */
.brand img { transition: transform .45s var(--ease-pop), box-shadow .3s; transform-origin: left center; position: relative; z-index: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.15rem; }
.brand-tag { margin-top: 4px; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.brand-text, .brand-name { transition: color .3s, letter-spacing .4s var(--ease-out), text-shadow .3s, transform .45s var(--ease-pop); }
@media (hover: hover) {
  .brand:hover img {
    transform: scale(1.9) rotate(-8deg);
    box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(184,134,43,.6);
    animation: none;
  }
  .brand:hover .brand-text { transform: translateX(32px); }
  .brand:hover .brand-name { color: var(--green); letter-spacing: .06em; text-shadow: var(--glow); }
}
@media (prefers-reduced-motion: reduce) {
  .brand:hover img { transform: none; }
  .brand:hover .brand-text { transform: none; }
}

/* ---------- Camera cursor (mouse only; see render.js) ---------- */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px #fff; /* the white edge keeps it visible on the dark hero too */
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center;
}
/* The ring's look lives on ::before so it can grow without fighting the position transform */
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--gold); background: transparent;
  transition: transform .35s var(--ease-pop), border-radius .3s, background .3s, border-color .3s, box-shadow .3s;
}
.cursor-label {
  position: relative; font: 700 9px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-pop);
}

/* Over links, buttons and cards: the ring swells and fills with soft gold */
.cursor-ring.is-link::before { transform: scale(1.7); background: rgba(212,168,75,.18); border-color: var(--gold-bright); }
/* Over the big split headings: a larger, thinner halo */
.cursor-ring.is-text::before { transform: scale(2.2); border-width: 1px; background: rgba(212,168,75,.08); }

/* Over Polaroids: a camera viewfinder (corner brackets) that says SNAP */
.cursor-ring.is-photo::before {
  transform: scale(2.4); border-radius: 4px; border-color: transparent; background-color: rgba(28,27,25,.35);
  background-image:
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 7px 1.5px, 1.5px 7px, 7px 1.5px, 1.5px 7px, 7px 1.5px, 1.5px 7px, 7px 1.5px, 1.5px 7px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.cursor-ring.is-photo .cursor-label { opacity: 1; transform: scale(1); }
.has-cursor:has(.cursor-ring.is-photo) .cursor-dot { background: #fff; }

/* Click: a quick shutter squeeze and flash */
@keyframes shutter {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.95); }
  100% { box-shadow: 0 0 0 22px rgba(255,255,255,0); }
}
.cursor-ring.is-click::before { animation: shutter .45s ease-out; }

/* ---------- Meet the maker: portrait Polaroid beside the story ---------- */
.about { max-width: 920px; }
.about-body { display: flex; align-items: center; gap: 56px; text-align: left; }
.about-body .about-text { flex: 1; }
.about-photo {
  position: relative; flex: 0 0 280px; margin: 0; background: #fff; padding: 14px 14px 46px; border-radius: 3px;
  box-shadow: 0 14px 30px rgba(60,45,20,.18), 0 2px 6px rgba(60,45,20,.12); transform: rotate(-3deg);
  transition: transform .5s var(--ease-pop);
}
.about-photo::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(212,168,75,.78) 0 8px, rgba(232,192,106,.78) 8px 16px); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.about-photo .photo { position: relative; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.about:has(.about-photo[hidden]) .about-body { text-align: center; }
@media (hover: hover) { .about-photo:hover { transform: rotate(0deg) scale(1.04); } .about-photo:hover .photo::after { animation: flash .6s ease-out; } }
@media (max-width: 680px) {
  .about-body { flex-direction: column; text-align: center; gap: 36px; }
  .about-photo { flex-basis: auto; width: min(260px, 80%); }
}

/* Gallery Polaroids open the full-size viewer */
#gallery-list figure { cursor: zoom-in; }
#gallery-list figure:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }

/* ---------- Full-size photo viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px;
  background: rgba(20,19,18,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; transform: scale(.96); transition: transform .35s var(--ease-pop); }
.lightbox.is-open .lightbox-figure { transform: none; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #fff; padding: 10px; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-figure figcaption { font-family: var(--font-hand); font-size: 1.8rem; color: var(--on-dark); }
.lightbox-close, .lightbox-nav {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s var(--ease-pop);
}
.lightbox-close { position: absolute; top: 18px; right: 18px; font-size: 1.1rem; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold-bright); color: #1c1b19; transform: scale(1.1); }
body.lightbox-open { overflow: hidden; }
.has-cursor .lightbox, .has-cursor .lightbox button { cursor: none; }
@media (max-width: 680px) {
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 12px; }
  .lightbox-nav { display: none; } /* swipe instead */
}

/* ---------- Music button ---------- */
.music-btn {
  position: fixed; left: 20px; bottom: 20px; z-index: 20; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(60,45,20,.14);
  font: 600 .72rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--green); cursor: pointer;
  transition: transform .3s var(--ease-pop), box-shadow .3s, border-color .3s;
}
.music-btn:hover { transform: translateY(-3px) scale(1.05); border-color: var(--gold); box-shadow: 0 10px 28px rgba(60,45,20,.2), var(--glow); }
/* Play / pause icon inside a small gold circle */
.music-icon { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); flex: none; }
.music-icon svg { width: 14px; height: 14px; fill: #fff; }
.music-icon .icon-play { margin-left: 2px; } /* optically centre the triangle */
.music-icon .icon-pause, .music-btn.is-playing .icon-play { display: none; }
.music-btn.is-playing .icon-pause { display: block; }
.music-btn.is-playing .music-icon::after { /* soft pulse while the song plays */
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); animation: music-pulse 1.6s ease-out infinite;
}
@keyframes music-pulse { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 680px) { .music-btn .music-label { display: none; } .music-btn { padding: 8px; } }

/* ---------- Headline photo pop (click a headline letter) ---------- */
.hero h1 .letter { cursor: pointer; }
.has-cursor .hero h1 .letter { cursor: none; }
.pop-photo {
  position: absolute; z-index: 1; pointer-events: none; background: #fff; padding: 7px 7px 26px; border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 18px rgba(212,168,75,.15);
  opacity: 0; transform: rotate(var(--rot)) scale(.82) translateY(14px);
  transition: opacity .45s ease, transform .5s var(--ease-pop);
}
.pop-photo.is-in { opacity: .96; transform: rotate(var(--rot)) scale(1); }
.pop-photo.is-out { opacity: 0; transform: rotate(var(--rot)) scale(.9) translateY(-10px); transition-duration: .45s; }
.pop-photo .photo { position: relative; overflow: hidden; }
.pop-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pop-photo.is-in .photo::after { animation: flash .5s ease-out; } /* camera flash as it appears */
/* Small handwritten hint so visitors discover it */
.hero-hint { font-family: var(--font-hand); font-size: 1.7rem; color: var(--gold-bright); margin: 2px 0 10px; transform: rotate(-2deg); opacity: 0; transition: opacity .8s; }
.is-loaded .hero-hint { opacity: .9; transition-delay: 1.6s; }
@media (prefers-reduced-motion: reduce) { .pop-photo { animation: none; display: none; } .hero-hint { display: none; } }

/* Calmer gallery: no tape on every photo, single-line captions, extra photos behind a button */
.gallery-strip figure::before { display: none; }
.gallery-strip figcaption { padding: 10px 6px 12px; }
.gallery-strip .is-extra { display: none; }
.gallery-strip.show-all .is-extra { display: block; }
.gallery-more { text-align: center; margin-top: 36px; }

/* ---------- Welcome screen (first visit): tap to enter, music starts ---------- */
.intro {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,168,75,.18), transparent 55%),
    linear-gradient(180deg, rgba(20,19,18,.92), rgba(20,19,18,.97)),
    url("/images/planner-floral.jpg") center / cover;
  transition: opacity .6s ease, visibility .6s;
}
.intro.is-leaving { opacity: 0; visibility: hidden; }
body.intro-open { overflow: hidden; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intro-logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--gold-bright), 0 0 40px rgba(212,168,75,.45); animation: breathe 4s ease-in-out infinite; }
.intro .label { color: var(--gold-bright); margin: 10px 0 0; font-size: .85rem; }
.intro-title { color: #fff; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 18px; line-height: 1.05; }
.intro-enter {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--on-dark); font: 600 .8rem/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase;
}
.intro-play {
  position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease-pop), background .2s;
}
.intro-play svg { width: 38px; height: 38px; fill: #1c1b19; margin-left: 5px; }
.intro-play::before, .intro-play::after { /* rings pulsing outward, inviting the tap */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-bright); animation: intro-ring 2s ease-out infinite;
}
.intro-play::after { animation-delay: 1s; }
@keyframes intro-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.intro-enter:hover .intro-play, .intro-enter:focus-visible .intro-play { transform: scale(1.1); background: #e3bd66; }
.intro-enter:focus-visible { outline: none; }
.intro-enter:focus-visible .intro-play { box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(0,0,0,.4); }
.intro-note { color: rgba(245,241,232,.7); font-size: .9rem; margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) { .intro-play::before, .intro-play::after { animation: none; display: none; } }

/* ---------- Review form ---------- */
.review-cta { text-align: center; margin-top: 36px; }
.review-form {
  max-width: 560px; margin: 28px auto 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(60,45,20,.08); display: grid; gap: 16px; text-align: left;
}
.review-form-title { font-size: 1.3rem; margin: 0; }
.review-form-note { margin: -8px 0 4px; font-size: .9rem; }
.review-form label { display: grid; gap: 6px; font-size: .92rem; color: var(--text); }
.review-form .field-label { font-weight: 600; }
.review-form input[type=text], .review-form select, .review-form textarea {
  font: inherit; font-weight: 400; color: var(--text); padding: 11px 12px; border: 1px solid #d6cdbc; border-radius: var(--radius); background: #fff;
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.review-form .req { color: #a33; }
.review-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text-muted); }
.review-form .consent input { margin-top: 5px; accent-color: var(--green); }
.review-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.review-form-msg { margin: 0; min-height: 1.4em; font-weight: 600; color: #a33; }
.review-form-msg.is-ok { color: var(--green); }
.review-form button[type=submit] { justify-self: start; }
.review-form button[disabled] { opacity: .6; pointer-events: none; }
/* Star picker: shown right-to-left so hovering a star lights it and the ones before it */
.star-field { border: 0; padding: 0; margin: 0; }
.star-field legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .92rem; color: var(--text); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: inline-block; font-size: 2rem; line-height: 1; color: #d9d1c1; cursor: pointer; transition: color .15s, transform .2s var(--ease-pop); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.2); }
.star-input input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Review page (review.html) ---------- */
.review-page { background: var(--bg-raised); }
.review-page .topbar { position: sticky; }
.back-link { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--green); }
.back-link:hover { text-decoration: underline; }
.review-main { padding: 64px 0 96px; }
.review-main .review-form { margin-top: 0; }
.review-fallback, .review-thanks {
  max-width: 560px; margin: 0 auto; padding: 32px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(60,45,20,.08);
}
.review-thanks-title { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--text); margin: 0 0 6px; }
.review-thanks .btn { margin-top: 18px; }
