/* ============ SOURLY — design tokens ============ */
:root {
  --cream:  #F4EEE2;
  --paper:  #FBF7EE;
  --citrus: #F1C34A;
  --mint:   #C4D3A0;
  --brown:  #3C3327;
  --coral:  #F08A77;
  --aqua:   #7FD1C9;
  --white:  #FFFDF6;

  --font-display: "Fredoka", sans-serif;
  --font-body: "Schibsted Grotesk", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 60px -28px rgba(60, 51, 39, 0.35);
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }

h1, h2, h3, .nav-logo, .footer-logo { font-family: var(--font-display); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 600; }
h3 { font-size: 1.45rem; font-weight: 600; }
.muted { color: rgba(60, 51, 39, 0.68); }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: rgba(60, 51, 39, 0.55); margin-bottom: 0.9rem;
}
.eyebrow.on-dark { color: rgba(255, 253, 246, 0.75); }

.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.muted { margin-top: 1rem; font-size: 1.08rem; }

/* ============ buttons & pills ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.78rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(60,51,39,0.4); }
.btn-dark   { background: var(--brown); color: var(--white); }
.btn-accent { background: var(--citrus); color: var(--brown); }
.btn-ghost  { background: rgba(255,253,246,0.14); color: var(--white); border-color: rgba(255,253,246,0.5); backdrop-filter: blur(6px); }
.btn-outline{ background: transparent; color: var(--brown); border-color: rgba(60,51,39,0.35); }

.pills { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.pill {
  font-size: 0.78rem; font-weight: 600; padding: 0.32rem 0.85rem;
  border-radius: 999px; background: rgba(60,51,39,0.07); color: var(--brown);
}
.pill-soon { background: var(--citrus); display: inline-block; margin-top: 1.4rem; }

/* ============ password lock (pre-launch) ============ */
.pw-gate {
  position: fixed; inset: 0; z-index: 300;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden;
  transition: opacity 0.5s var(--ease-out);
}
.pw-gate.leaving { opacity: 0; pointer-events: none; }
.pw-gate[hidden] { display: none; }
.age-fields input[type="password"] {
  flex: 1; min-width: 0; font: inherit; font-weight: 600; color: var(--brown);
  padding: 0.75rem 1rem; border: 2px solid rgba(60,51,39,0.18);
  border-radius: 14px; background: var(--paper); outline: none;
}
.age-fields input[type="password"]:focus { border-color: var(--citrus); }

/* ============ age gate ============ */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden;
  transition: opacity 0.5s var(--ease-out);
}
.age-gate.leaving { opacity: 0; pointer-events: none; }
.age-gate[hidden] { display: none; }
.age-card {
  position: relative; z-index: 2; text-align: center;
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-soft); max-width: 460px; width: 100%;
}
.age-logo {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--brown); margin-bottom: 1.4rem;
}
.age-card h2 { font-size: 1.9rem; margin-bottom: 0.7rem; }
.age-sub { color: rgba(60,51,39,0.65); font-size: 0.98rem; margin-bottom: 1.5rem; }
.age-fields { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.age-fields select {
  flex: 1; min-width: 0; font: inherit; font-weight: 600; color: var(--brown);
  padding: 0.75rem 0.9rem; border: 2px solid rgba(60,51,39,0.18);
  border-radius: 14px; background: var(--paper); outline: none;
  appearance: auto; cursor: pointer;
}
.age-fields select:focus { border-color: var(--citrus); }
.age-enter { width: 100%; font-size: 1.05rem; }
.age-denied { margin-top: 1.2rem; font-weight: 600; color: #B0472F; }
.age-fine { margin-top: 1.4rem; font-size: 0.72rem; color: rgba(60,51,39,0.45); }
.age-waves { position: absolute; inset: auto 0 0 0; height: clamp(70px, 10vw, 120px); z-index: 1; }
.age-waves svg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.age-locked { overflow: hidden; }

/* ============ nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--white);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.nav.solid {
  background: rgba(251, 247, 238, 0.82); color: var(--brown);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(60,51,39,0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 1.5rem; font-weight: 600; text-decoration: none; color: inherit;
}
.logo-sun {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at center, var(--white) 0 34%, transparent 35%),
    repeating-conic-gradient(var(--citrus) 0deg 22deg, transparent 22deg 45deg);
  border: 3px solid var(--citrus);
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: inherit; text-decoration: none; font-weight: 600; font-size: 0.92rem; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ============ 1 · hero ============ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--brown); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,29,20,0.45) 0%, rgba(35,29,20,0.12) 40%, rgba(35,29,20,0.55) 100%);
}
.hero-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 7vw, 7rem); color: var(--white);
  will-change: transform, opacity;
}
.hero-headline {
  font-size: clamp(3rem, 8.5vw, 6.8rem); font-weight: 700; line-height: 0.98;
  text-wrap: balance;
}
.hero-headline em { font-style: normal; color: var(--citrus); }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1rem, 1.6vw, 1.25rem); opacity: 0.9; }
.hero-ctas { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,253,246,0.7); border-radius: 15px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 3px;
  background: var(--citrus); transform: translateX(-50%);
  animation: cue 1.8s infinite var(--ease-out);
}
@keyframes cue { 0%{ opacity:0; top:7px; } 30%{ opacity:1; } 100%{ opacity:0; top:22px; } }

/* ============ two-colour waves ============ */
.wave-band { position: relative; height: clamp(110px, 14vw, 190px); overflow: hidden; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.wave-back  { transform: translateX(0); }
.wave-front { transform: translateX(0); }
.wave-into-cream   { background: var(--brown); margin-top: -1px; }
.wave-into-story   { background: var(--cream); }
.wave-into-cheers  { background: var(--paper); }
.wave-into-founders{ background: var(--brown); }

/* ============ 2 · can spin scene ============ */
.spin-scene { height: 260vh; position: relative; background: var(--cream); }
.spin-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
}
.spin-can-wrap {
  position: absolute; left: 24%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
}
.spin-blob {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(60vmin, 520px); height: min(60vmin, 520px); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--citrus) 0%, #EDD9A0 55%, transparent 72%);
  filter: blur(6px); opacity: 0.85; z-index: 0;
}
.spin-can {
  position: relative; z-index: 2; height: min(58vh, 520px); width: auto;
  filter: drop-shadow(0 40px 45px rgba(60,51,39,0.35));
  will-change: transform;
}
.spin-photos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.spin-photo {
  position: absolute; margin: 0;
  width: clamp(188px, 20vw, 312px);
  background: var(--white); border-radius: 18px;
  padding: 8px 8px 12px; box-shadow: var(--shadow-soft);
  opacity: 0; will-change: transform, opacity;
}
.spin-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px; display: block;
}
.spin-photo:nth-child(1) { left: 56%; top: 22%; }
.spin-photo:nth-child(2) { left: 86%; top: 40%; }
.spin-photo:nth-child(3) { left: 60%; top: 74%; }

.spin-words { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spin-word {
  position: absolute; left: 68%; top: 47%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 9.5rem); color: var(--word-color, var(--brown));
  opacity: 0; will-change: transform, opacity; white-space: nowrap;
  text-shadow: 0 0 28px rgba(244, 238, 226, 0.9), 0 0 60px rgba(244, 238, 226, 0.7);
}
.spin-sub {
  position: absolute; left: 68%; top: 62%; transform: translate(-50%, -50%);
  font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.35rem);
  color: rgba(60, 51, 39, 0.78); opacity: 0;
  will-change: transform, opacity; white-space: nowrap;
  text-shadow: 0 0 18px rgba(244, 238, 226, 0.95);
}
.spin-burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.burst-el {
  position: absolute; left: 0; top: 0; opacity: 0;
  will-change: transform, opacity; user-select: none;
  text-shadow: 0 6px 18px rgba(60,51,39,0.18);
}
/* phones: can floats in the top half, words punch in below it */
@media (max-width: 700px) {
  .spin-can-wrap { left: 50%; top: 38%; }
  .spin-can { height: min(34svh, 340px); }
  .spin-blob { width: 52vmin; height: 52vmin; }
  .spin-word { left: 50%; top: 72%; font-size: clamp(3.2rem, 17vw, 5rem); }
  .spin-sub { left: 50%; top: 82%; font-size: 0.95rem; }
  .spin-photo { width: 34vw; }
  .spin-photo:nth-child(1) { left: 20%; top: 21%; }
  .spin-photo:nth-child(2) { left: 82%; top: 31%; }
  .spin-photo:nth-child(3) { left: 17%; top: 55%; }
}

/* ============ 3 · flavours ============ */
.flavours { background: var(--cream); }
.flavour-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2.2rem); max-width: 1200px; margin-inline: auto;
}
.flavour-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.8rem; box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--accent, var(--citrus));
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.35s var(--ease-out);
}
.flavour-img-wrap { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.2rem; }
.flavour-img-wrap img { transition: transform 0.5s var(--ease-out); will-change: transform; }
.flavour-card:hover .flavour-img-wrap img { transform: scale(1.05) rotate(1.5deg); }
.flavour-tag { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(60,51,39,0.5); margin: 0.15rem 0 0.7rem; }
.buy-btn { margin-top: auto; width: 100%; font-size: 1rem; }
.flavour-card .pills { margin-bottom: 1.2rem; }

/* ============ 4 · our products ============ */
.story { background: var(--paper); }
.signature-line {
  margin-top: 1.3rem; font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; color: var(--brown);
}
.product-row {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem); max-width: 1200px;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
}
.product-row:last-child { margin-bottom: 0; }
.product-row.flip .story-media { order: 2; }
.product-row .story-media img { height: clamp(280px, 42vh, 440px); }
.product-copy h3 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 0.35rem; }
.product-tagline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--accent, var(--citrus));
  margin-bottom: 0.9rem;
}
.product-copy .muted { max-width: 54ch; }
.product-copy .pills { flex-wrap: wrap; }
@media (max-width: 900px) {
  .product-row { grid-template-columns: 1fr; }
  .product-row.flip .story-media { order: 0; }
}
.story-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem); max-width: 1200px; margin-inline: auto;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.story-media img { width: 100%; height: clamp(340px, 52vh, 560px); object-fit: cover; will-change: transform; }
.story-media figcaption { font-size: 0.85rem; color: rgba(60,51,39,0.55); padding: 0.7rem 1rem; background: var(--white); }
.story-copy h2 { margin-bottom: 1.3rem; }
.story-copy p { margin-bottom: 1.1rem; max-width: 54ch; }
.story-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--brown); }
.stat-num span { font-size: 1.1rem; margin-left: 2px; color: rgba(60,51,39,0.55); }
.stat-label { font-size: 0.85rem; color: rgba(60,51,39,0.6); }

/* ============ 4.5 · cheers ============ */
.cheers { position: relative; height: 74vh; min-height: 480px; overflow: hidden; background: var(--brown); }
.cheers-img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.cheers-overlay {
  position: absolute; inset: 0; display: grid; place-items: end start;
  padding: clamp(2rem, 6vw, 5rem);
  background: linear-gradient(180deg, transparent 30%, rgba(35,29,20,0.55) 100%);
}
.cheers-overlay h2 { color: var(--white); font-size: clamp(2.2rem, 5vw, 4rem); }

/* ============ 5 · find ============ */
.find { background: var(--cream); }
.find-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem); max-width: 1100px; margin-inline: auto;
}
.find-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-soft); will-change: transform;
  transition: transform 0.35s var(--ease-out);
}
.find-card-emoji { font-size: 2rem; margin-bottom: 0.8rem; }
.find-card h3 { margin-bottom: 0.5rem; }
.zip-form { display: flex; gap: 0.6rem; margin: 1.3rem 0 1.1rem; }
.zip-form input {
  flex: 1; min-width: 0; font: inherit; padding: 0.7rem 1.05rem;
  border: 2px solid rgba(60,51,39,0.18); border-radius: 999px; background: var(--paper);
  color: var(--brown); outline: none;
}
.zip-form input:focus { border-color: var(--citrus); }
.store-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(60,51,39,0.1);
}
.store-row-last { border-bottom: none; }
.store-name { font-weight: 700; }
.store-meta { font-size: 0.85rem; color: rgba(60,51,39,0.55); }
.store-dist { font-weight: 700; color: rgba(60,51,39,0.65); font-size: 0.9rem; }
.buy-sku {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(60,51,39,0.1);
}
.buy-sku:last-of-type { border-bottom: none; }
.buy-sku img { width: 62px; height: 62px; object-fit: cover; border-radius: 14px; flex: none; }
.buy-sku > div { flex: 1; }
.fine-print { margin-top: 1.1rem; font-size: 0.78rem; color: rgba(60,51,39,0.5); }

/* ============ 6 · founders ============ */
.founders { background: var(--cream); }
.founders-grid {
  display: grid; grid-template-columns: 0.8fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4rem); max-width: 1000px; margin-inline: auto;
}
@media (max-width: 800px) { .founders-grid { grid-template-columns: 1fr; } }
.founders-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  rotate: -2deg; transition: transform 0.35s var(--ease-out); will-change: transform;
}
.founders-photo img { width: 100%; height: clamp(320px, 44vh, 460px); object-fit: cover; }
.founders-copy h2 { margin-bottom: 1rem; }
.founders-copy p { max-width: 46ch; }

/* ============ footer ============ */
.footer { background: var(--brown); color: var(--white); position: relative; }
.footer-wave { position: relative; height: 70px; overflow: hidden; background: var(--cream); }
.footer-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
  padding: 2.4rem clamp(1.25rem, 5vw, 4rem) 2.8rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.55rem; font-size: 1.4rem; font-weight: 600; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,253,246,0.8); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.age-bar { font-size: 0.82rem; color: rgba(255,253,246,0.6); }

/* ============ motion helpers ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .spin-scene { height: auto; padding: 4rem 0; }
  .spin-sticky { position: static; height: auto; }
  .spin-word:first-child { opacity: 1; position: static; transform: none; }
}
