/* 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; }
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: 24px; margin: -24px; 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: horizontal strip with a gold scrollbar */
.gallery-strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(16px, calc((100vw - 1160px) / 2)) 20px;
  scroll-padding-inline: max(16px, calc((100vw - 1160px) / 2));
  scrollbar-color: var(--gold) var(--line); scrollbar-width: thin;
}
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-track { background: var(--line); }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
/* 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-strip { padding-top: 34px; padding-bottom: 34px; }
#gallery { background: var(--bg-raised); }
.gallery-strip figure {
  position: relative; flex: 0 0 min(320px, 74vw); margin: 0; scroll-snap-align: start;
  background: #fff; padding: 14px 14px 0; border-radius: 3px;
  box-shadow: 0 14px 30px rgba(60,45,20,.18), 0 2px 6px rgba(60,45,20,.12);
  transform: rotate(var(--tilt, -2deg));
}
.gallery-strip figure:nth-child(3n+2) { --tilt: 1.8deg; margin-top: 18px; }
.gallery-strip figure:nth-child(3n+3) { --tilt: -1deg; }
.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 { font-family: var(--font-hand); font-size: 1.7rem; 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(0deg) translateY(-12px) scale(1.06); 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; }
}

/* ---------- 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 span { transition: color .3s, letter-spacing .4s var(--ease-out), text-shadow .3s; }
@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 span { color: var(--green); letter-spacing: .06em; text-shadow: var(--glow); transform: translateX(32px); }
  .brand span { display: inline-block; transition: color .3s, letter-spacing .4s var(--ease-out), text-shadow .3s, transform .45s var(--ease-pop); }
}
@media (prefers-reduced-motion: reduce) {
  .brand:hover img { transform: none; }
  .brand:hover span { 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; }
