/* ============================================================
   OLLIE BITES — olliebites.com.au
   Natural. Nourishing. Light.
   ============================================================ */

:root {
  --ink: #142e28;
  --ink-soft: #1d3b33;
  --ink-40: rgba(20, 46, 40, 0.4);
  --orange: #e76f34;
  --orange-deep: #d55d22;
  --orange-soft: #fceadd;
  --peach: #f9dfc8;
  --cream: #fbf7ef;
  --cream-2: #f3ecdd;
  --white: #ffffff;
  --green-tint: #e7efe7;
  --red: #c94f2f;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", -apple-system, sans-serif;

  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --shadow-card: 0 2px 6px rgba(20, 46, 40, 0.05), 0 18px 44px -18px rgba(20, 46, 40, 0.22);
  --shadow-pop: 0 6px 16px rgba(20, 46, 40, 0.08), 0 30px 60px -22px rgba(20, 46, 40, 0.32);

  --container: 1180px;
  --nav-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }
@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; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; }

.accent { color: var(--orange); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.4rem;
}
.eyebrow--ondark { background: rgba(255, 255, 255, 0.1); color: var(--peach); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(20, 46, 40, 0.78);
  max-width: 56ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* squiggle under a key word */
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
}
.squiggle svg path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.in .squiggle svg path, .squiggle.in svg path { animation: draw 1s ease 0.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.btn .arr { transition: transform 0.25s ease; display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(231, 111, 52, 0.65);
}
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(231, 111, 52, 0.7); }

.btn--ghost { border-color: rgba(20, 46, 40, 0.25); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); background: rgba(20, 46, 40, 0.04); }

.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-3px); }

.btn--sm { padding: 0.65rem 1.35rem; font-size: 0.95rem; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--pop { transform: scale(0.9); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  height: 68px;
  background: rgba(251, 247, 239, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(20, 46, 40, 0.07), 0 12px 30px -18px rgba(20, 46, 40, 0.25);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo img { height: 44px; width: auto; transition: height 0.35s ease; }
.nav.scrolled .nav__logo img { height: 36px; }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:not(.btn):hover::after { right: 0; }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 46px; height: 46px;
  border-radius: 14px;
  position: relative;
  z-index: 130;
}
.nav__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, background 0.3s ease;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 29px; }
body.menu-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: grid; gap: 0.4rem; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
  padding: 0.35rem 0;
}
.mobile-menu a:not(.btn):hover { color: var(--orange); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
body.menu-open .mobile-menu li { opacity: 1; transform: none; }
body.menu-open .mobile-menu li:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu li:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu li:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu li:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu li:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu__foot { margin-top: 3rem; color: rgba(251, 247, 239, 0.55); font-size: 0.95rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: clip;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before { width: 560px; height: 560px; background: var(--peach); top: -180px; right: -140px; }
.hero::after { width: 480px; height: 480px; background: var(--green-tint); bottom: -220px; left: -160px; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* grid/flex children must be allowed to shrink below content width on small screens */
.hero__inner > *, .why__grid > *, .club__grid > *, .join__grid > *, .story__grid > *, .loaves__grid > * { min-width: 0; }

.hero h1 { margin: 0 0 1.4rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; color: rgba(20, 46, 40, 0.7); font-size: 0.95rem; font-weight: 600; }
.hero__trust .stars { color: var(--orange); letter-spacing: 0.1em; font-size: 1rem; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(20, 46, 40, 0.3); }

/* hero visual */
.hero__visual { position: relative; }
.hero__blob {
  position: relative;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  overflow: hidden;
  aspect-ratio: 1 / 0.92;
  box-shadow: var(--shadow-pop);
  animation: blob-morph 14s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
}
.hero__blob img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
@keyframes blob-morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  50%  { border-radius: 46% 54% 42% 58% / 55% 44% 56% 45%; }
  100% { border-radius: 54% 46% 58% 42% / 44% 56% 44% 56%; }
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  animation: float 5.5s ease-in-out infinite;
  z-index: 3;
  white-space: nowrap;
}
.chip--1 { top: 6%; left: -4%; animation-delay: 0s; }
.chip--2 { bottom: 16%; right: -3%; animation-delay: 1.6s; }
.chip--3 { bottom: -3%; left: 10%; animation-delay: 3s; }
.chip .ic { font-size: 1.05rem; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-11px) rotate(1.5deg); }
}

/* rotating badge */
.spin-badge {
  position: absolute;
  top: -34px;
  right: 4%;
  width: 128px;
  height: 128px;
  z-index: 4;
  filter: drop-shadow(0 10px 22px rgba(20, 46, 40, 0.25));
}
.spin-badge svg.ring { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge .mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.spin-badge .mark img { width: 44px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* deco paws */
.paw-deco { position: absolute; color: var(--ink); opacity: 0.06; pointer-events: none; z-index: 1; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(-1.4deg) scale(1.02);
  margin-block: clamp(1rem, 3vw, 2rem);
  padding: 0.95rem 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.ticker--flat { transform: none; margin-block: 0; }
.ticker__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
}
.ticker__track span::after { content: "✦"; color: var(--orange); font-size: 0.9em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding-block: clamp(4.2rem, 9vw, 7.5rem); position: relative; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .lead { color: rgba(251, 247, 239, 0.75); }

/* ============================================================
   LOAVES
   ============================================================ */
.loaves__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-pop); }

.card__media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card__media img { transform: scale(1.06); }

.card__flag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
}
.card__flag--orange { background: var(--orange); color: #fff; }

.card__price {
  position: absolute;
  bottom: -1.15rem;
  right: 1.3rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 1.15rem;
  box-shadow: 0 10px 22px -8px rgba(231, 111, 52, 0.7);
  z-index: 2;
}
.card__price small { font-size: 0.72em; font-weight: 500; opacity: 0.9; }

.card__body { padding: 2rem 1.7rem 1.7rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.card__body p { color: rgba(20, 46, 40, 0.75); font-size: 0.99rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.card__tags span {
  background: var(--cream-2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  color: var(--ink-soft);
}
.card__cta { margin-top: auto; padding-top: 1rem; }
.card__cta .btn { width: 100%; }

.card--tease .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 46, 40, 0) 55%, rgba(20, 46, 40, 0.28));
}

.loaves__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--green-tint);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.7rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink-soft);
}
.loaves__note strong { font-family: var(--font-display); font-weight: 600; }
.loaves__note .ic { font-size: 1.4rem; line-height: 1.2; }

/* ============================================================
   WHY / WHAT'S INSIDE
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.why__visual { position: sticky; top: calc(var(--nav-h) + 1rem); }
.why__imgwrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  position: relative;
  aspect-ratio: 0.82;
}
.why__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.why__imgwrap .badge-note {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.benefits { display: grid; gap: 0.9rem; }
.benefit {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.benefit:hover { transform: translateX(8px); box-shadow: var(--shadow-pop); }
.benefit__icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
}
.benefit:nth-child(even) .benefit__icon { background: var(--green-tint); color: var(--ink-soft); }
.benefit__icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.benefit p { color: rgba(20, 46, 40, 0.72); font-size: 0.97rem; }

/* ============================================================
   LOAF CLUB (dark)
   ============================================================ */
.club { overflow: clip; }
.club__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.club__math {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--peach);
  margin: 1.2rem 0 1.6rem;
}
.club__math .o11 { color: var(--orange); font-size: 1.35em; white-space: nowrap; }

.stamp-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.55);
  max-width: 520px;
}
.stamp-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.stamp-card__head h3 { font-size: 1.15rem; }
.stamp-card__count { font-family: var(--font-display); font-weight: 600; color: var(--orange-deep); font-size: 1rem; white-space: nowrap; }

.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.65rem; }
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px dashed rgba(20, 46, 40, 0.25);
  display: grid;
  place-items: center;
  color: rgba(20, 46, 40, 0.28);
  position: relative;
  transition: border-color 0.3s ease;
}
.stamp svg { width: 55%; height: 55%; }
.stamp.filled {
  border-style: solid;
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  animation: stamp-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes stamp-pop {
  0% { transform: scale(0.3) rotate(-14deg); }
  70% { transform: scale(1.12) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.stamp--free {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--peach);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.stamp--free.earned { background: var(--ink); color: var(--peach); animation: stamp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

.stamp-card__bar { margin-top: 1.3rem; height: 10px; background: rgba(20, 46, 40, 0.1); border-radius: 999px; overflow: hidden; }
.stamp-card__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.stamp-card__caption { margin-top: 0.8rem; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }

.club__visual { position: relative; }
.club__visual .arch {
  border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 0.86;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.55);
}
.club__visual .arch img { width: 100%; height: 100%; object-fit: cover; }
.club__visual .chip { position: absolute; }
.club__visual .chip--a { top: 8%; left: -6%; }
.club__visual .chip--b { bottom: -1.6rem; right: -2%; animation-delay: 2s; }

.club__points { display: grid; gap: 0.7rem; margin: 1.6rem 0 2rem; list-style: none; }
.club__points li { display: flex; gap: 0.75rem; align-items: flex-start; color: rgba(251, 247, 239, 0.85); }
.club__points .tick { color: var(--orange); font-weight: 800; flex: 0 0 auto; }

/* ============================================================
   JOIN / FORM
   ============================================================ */
.join__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.join__pitch .perk { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.join__pitch .perk__ic {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.join__pitch .perk h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.join__pitch .perk p { font-size: 0.96rem; color: rgba(20, 46, 40, 0.72); }
.join__photo {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 1.4;
}
.join__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}

.tabs { display: flex; background: var(--cream-2); border-radius: 999px; padding: 0.35rem; margin-bottom: 1.8rem; }
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.7rem 1rem;
  color: rgba(20, 46, 40, 0.6);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 6px 16px -6px rgba(20, 46, 40, 0.5); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 0.86rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.field label .opt { font-weight: 600; color: rgba(20, 46, 40, 0.45); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  border: 2px solid transparent;
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(231, 111, 52, 0.15);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23142e28' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }

.radio-pills { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.radio-pills label {
  border: 2px solid rgba(20, 46, 40, 0.18);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(20, 46, 40, 0.75);
}
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.radio-pills label.sel { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--orange); flex: 0 0 auto; }

.form-msg { display: none; margin-top: 1rem; border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-weight: 700; font-size: 0.95rem; }
.form-msg.show { display: block; }
.form-msg--err { background: #fdeae4; color: var(--red); }
.form-msg--ok { background: var(--green-tint); color: var(--ink-soft); }

.member-panel { display: none; }
.member-panel.show { display: block; }
.member-panel .stamp-card { max-width: none; background: var(--cream); box-shadow: none; border: 2px solid var(--cream-2); }
.member-panel__hello { text-align: center; margin-bottom: 1.4rem; }
.member-panel__hello .big { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.member-panel__hello p { color: rgba(20, 46, 40, 0.7); font-size: 0.98rem; }
.member-panel__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; }
.member-panel__meta span { background: var(--cream-2); border-radius: 999px; padding: 0.4rem 0.95rem; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.member-panel__actions { margin-top: 1.4rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.spinner {
  width: 1.1em; height: 1.1em;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .label { opacity: 0.7; }

/* ============================================================
   STORY
   ============================================================ */
.story__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.story__text p { margin-bottom: 1.1rem; color: rgba(20, 46, 40, 0.8); }
.story__text p strong { color: var(--ink); }
.story__sign {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--orange-deep);
  margin-top: 1.6rem;
}

.story__collage { position: relative; padding: 1rem; }
.polaroid {
  background: #fff;
  padding: 0.8rem 0.8rem 2.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.polaroid img { border-radius: 8px; aspect-ratio: 1.35; object-fit: cover; width: 100%; }
.polaroid--1 { transform: rotate(-3.5deg); width: 78%; }
.polaroid--2 { transform: rotate(2.8deg) translateY(-7%) translateX(3%); width: 72%; margin-left: auto; position: relative; z-index: 2; }
.polaroid:hover { transform: rotate(0) scale(1.03) translateY(-2%); z-index: 5; }
.polaroid figcaption { font-family: var(--font-display); font-weight: 500; text-align: center; margin-top: 0.7rem; font-size: 0.95rem; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.stat {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--orange); line-height: 1.1; }
.stat .cap { font-size: 0.9rem; font-weight: 700; color: rgba(20, 46, 40, 0.65); margin-top: 0.3rem; }

/* gallery strip */
.gallery { margin-top: clamp(3rem, 6vw, 4.5rem); overflow: hidden; padding-block: 1.5rem; }
.gallery__track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: ticker 55s linear infinite;
}
.gallery:hover .gallery__track { animation-play-state: paused; }
.gallery__item {
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 0.8;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 5px solid #fff;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
  padding: 0; background: none;
}
.gallery__item:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

dialog.lightbox {
  border: 0;
  background: transparent;
  padding: 0;
  max-width: min(92vw, 900px);
  max-height: 88vh;
}
dialog.lightbox::backdrop { background: rgba(14, 30, 26, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lightbox img { border-radius: var(--radius-md); max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; box-shadow: var(--shadow-pop); }
dialog.lightbox .close {
  position: absolute;
  top: -0.6rem; right: -0.6rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.3rem;
  box-shadow: var(--shadow-pop);
}

.pullquote {
  text-align: center;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.pullquote .display {
  font-size: clamp(1.45rem, 6vw, 3.2rem);
  font-weight: 600;
}
.pullquote .display .sep { color: var(--orange); margin-inline: 0.35em; }
.pullquote p { margin-top: 1rem; color: rgba(20, 46, 40, 0.7); font-size: 1.08rem; max-width: 52ch; margin-inline: auto; }

/* ============================================================
   ACKNOWLEDGEMENT
   ============================================================ */
.ack { background: var(--ink); color: rgba(251, 247, 239, 0.85); }
.ack__inner { max-width: 780px; margin-inline: auto; text-align: center; }
.ack__dots { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.ack__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); opacity: 0.85; }
.ack__dots i:nth-child(2) { background: var(--peach); }
.ack__dots i:nth-child(3) { background: #c98d5a; }
.ack h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 1.2rem; color: var(--peach); }
.ack p { margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(251, 247, 239, 0.75); border-top: 1px solid rgba(251, 247, 239, 0.08); }
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.98rem; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer a { color: rgba(251, 247, 239, 0.75); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--orange); }
.footer__bottom {
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  padding-block: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer__bottom .paw { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .loaves__grid { grid-template-columns: 1fr 1fr; }
  .loaves__grid .card--tease { grid-column: 1 / -1; }
  .card--tease .card__media { aspect-ratio: 16 / 7; }
  .why__grid, .club__grid, .join__grid, .story__grid { grid-template-columns: 1fr; }
  .why__visual { position: static; max-width: 480px; }
  .club__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .reveal--left, .reveal--right { transform: translateY(30px); }
  .reveal--left.in, .reveal--right.in { transform: none; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { height: 38px; }

  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .chip { font-size: 0.82rem; padding: 0.5rem 0.9rem; }
  .chip--1 { left: 0; }
  .chip--2 { right: 0; }
  .spin-badge { width: 96px; height: 96px; top: -22px; right: 2%; }
  .spin-badge .mark img { width: 34px; }

  .loaves__grid { grid-template-columns: 1fr; }
  .card--tease .card__media { aspect-ratio: 4 / 3.1; }

  .form-grid { grid-template-columns: 1fr; }
  .stamps { grid-template-columns: repeat(6, 1fr); gap: 0.45rem; }
  .stamp--free { font-size: 0.6rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .polaroid--1 { width: 88%; }
  .polaroid--2 { width: 82%; }

  .footer__main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .stamps { gap: 0.35rem; }
  .stat .num { font-size: 1.7rem; }
}

/* ============================================================
   ORDER DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(14, 30, 26, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 150;
  width: min(460px, 100%);
  background: var(--cream);
  box-shadow: -20px 0 60px rgba(14, 30, 26, 0.3);
  transform: translateX(105%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  background: var(--cream);
  border-bottom: 1.5px solid var(--cream-2);
}
.drawer__head h3 { font-size: 1.3rem; }
.drawer__close {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.drawer__close:hover { background: var(--peach); transform: rotate(90deg); }

.drawer__body, .drawer__success { padding: 1.3rem 1.4rem 2rem; }

.drawer__birthday {
  background: var(--peach);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.order-items { display: grid; gap: 0.7rem; margin-bottom: 1.4rem; }
.order-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-card);
}
.order-item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.order-item__info { flex: 1; min-width: 0; display: grid; gap: 0.05rem; }
.order-item__info strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.order-item__info span { font-size: 0.85rem; color: rgba(20, 46, 40, 0.6); font-weight: 700; }

.stepper { display: flex; align-items: center; gap: 0.15rem; background: var(--cream-2); border-radius: 999px; padding: 0.2rem; }
.stepper__btn {
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.stepper__btn:hover { background: var(--orange); color: #fff; }
.stepper__btn:active { transform: scale(0.9); }
.stepper__qty { min-width: 26px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.order-item.has-qty { outline: 2.5px solid var(--orange); outline-offset: -2.5px; }

.free-toggle {
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}

.order-totals {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.2rem;
  margin-top: 1.2rem;
}
.order-totals__row { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.98rem; padding: 0.25rem 0; color: var(--ink-soft); }
.order-totals__row--discount { color: var(--orange-deep); }
.order-totals__row--grand {
  border-top: 1.5px dashed rgba(20, 46, 40, 0.2);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.order-totals__note { font-size: 0.82rem; color: rgba(20, 46, 40, 0.55); font-weight: 600; margin-top: 0.7rem; line-height: 1.5; }

.drawer__success { text-align: center; }
.drawer__success-icon { font-size: 3rem; margin: 1rem 0 0.5rem; animation: stamp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.drawer__success h3 { font-size: 1.6rem; }
.drawer__success-number { font-family: var(--font-display); font-weight: 600; color: var(--orange-deep); margin-top: 0.3rem; }
.drawer__success .order-totals { text-align: left; }
.drawer__success-stamps { margin-top: 1rem; font-weight: 800; color: var(--ink-soft); background: var(--green-tint); border-radius: var(--radius-sm); padding: 0.8rem 1rem; }

.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(251, 247, 239, 0.75);
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer-link-btn:hover { color: var(--orange); }

@media (max-width: 480px) {
  .drawer { width: 100%; }
  .order-item img { width: 48px; height: 48px; }
}
