/* ===== Bing Chilling! — styles =====
   Palette: ivory / butter yellow / chocolate brown only.
   (Palm green lives exclusively inside the coconut pint photo.) */

:root {
  /* ===== Brand palette (Exotic Ice Cream Club) ===== */
  --orange: #ff8a33;     /* Sunset Orange  */
  --blue: #5ba8e6;       /* Ocean Blue     */
  --vanilla: #ffe6a7;    /* Tropical Vanilla */
  --pink: #ffb1c1;       /* Lychee Pink    */
  --cream: #fff7ec;      /* Coconut Cream  */
  --ink: #294a5f;        /* deep ocean — readable body/heading text */
  --orange-dark: #e06a15;/* button shadow  */
  --navy: #1c3a4d;       /* footer anchor  */

  /* ===== Semantic aliases (mapped onto the brand palette) ===== */
  --ivory: var(--cream);        /* page background */
  --ivory-deep: var(--vanilla); /* warm section */
  --butter: var(--orange);      /* primary accent / buttons */
  --butter-soft: var(--vanilla);/* soft accent panels */
  --brown: var(--ink);          /* headings, nav, dark text */
  --espresso: var(--navy);      /* footer + darkest tone */
  --caramel: #6e8ca0;           /* muted slate text */
  --line: #ead9c0;              /* soft border */

  --font-display: 'Lilita One', cursive;
  --font-flavor: 'Archivo Black', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius: 24px;
  --shadow: 0 10px 40px rgba(92, 67, 39, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--espresso);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brown); }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section { padding: 96px 0; }
.center { text-align: center; }

/* ===== Typography ===== */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.15;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
h3 { color: var(--brown); }

/* Big centered brand statements — JS scales font-size so the line
   fills the container edge to edge (see fitStatements) */
.statement {
  font-family: var(--statement-font, 'Titan One', cursive);
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(1.9rem, 6vw, 4.5rem); /* fallback before JS kicks in */
  line-height: 1.15;
  color: var(--orange);
  margin-bottom: 28px;
}

.story-header { margin-bottom: 48px; }

.eyebrow {
  font-family: var(--font-flavor);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 14px;
}

.section-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--caramel);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ffab5e);
  color: #fff;
  box-shadow: 0 4px 0 var(--orange-dark), 0 8px 24px rgba(224,106,21,.22);
  font-size: 1.1rem;
  padding: 18px 42px;
  letter-spacing: 0.02em;
  animation: btn-glow 2.5s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 7px 0 var(--orange-dark), 0 12px 32px rgba(224,106,21,.30);
  animation: none;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--orange-dark);
  animation: none;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 4px 0 var(--orange-dark), 0 8px 24px rgba(224,106,21,.22); }
  50% { box-shadow: 0 4px 0 var(--orange-dark), 0 10px 30px rgba(224,106,21,.34); transform: translateY(-2px); }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.brand-logo { height: 44px; width: auto; }

/* Prevent logos (and their clickable wrappers) from being selected,
   dragged, or flashing a tap highlight on Chrome/mobile */
.brand,
.brand-logo,
.hero-logo,
.footer-logo,
.poppable {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--brown);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--butter);
  transition: right 0.25s ease;
}

.main-nav a:hover::after { right: 0; }

/* ===== Header social icons ===== */
.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 22px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--brown);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--orange);
  background: rgba(255, 138, 51, 0.12);
  transform: translateY(-2px);
}

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  /* Room for the sticky header (65px) + marquee strip (57px), plus a 4px
     guard — lands the strip fully above the fold on first paint */
  min-height: calc(100vh - 126px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 5% 90px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 138, 51, 0.20), transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(255, 177, 193, 0.30), transparent 42%),
    radial-gradient(circle at 60% 15%, rgba(91, 168, 230, 0.16), transparent 38%),
    var(--cream);
  overflow: hidden;
}

.hero-logo {
  width: min(480px, 84vw);
  margin: 0 auto 18px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--blue);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--orange);
  margin-bottom: 30px;
}

/* ===== Marquee strip ===== */
.strip {
  background: var(--blue);
  overflow: hidden;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.strip-track span {
  font-family: var(--font-flavor);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--cream);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ===== Story ===== */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}

.story-row--flip .story-row-text { order: 2; }
.story-row--flip .story-row-img { order: 1; }

/* Row with no photo — closing statement spans the full width */
.story-row--solo {
  grid-template-columns: 1fr;
  /* Fill the column rather than shrink-wrapping, so a long line has the whole
     container to use before it wraps */
  justify-items: stretch;
  text-align: center;
}

.story-row--solo .story-row-text--lockup { justify-content: center; }

.story-row-text p { margin-bottom: 16px; font-size: 1.05rem; }
.story-row-text p:last-child { margin-bottom: 0; }

p.story-row-statement {
  font-family: var(--statement-font, 'Titan One', cursive);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--orange);
  margin-bottom: 0;
}

.story-row-text--lockup {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
}

.story-row-cone {
  height: 120px;
  width: auto;
  margin-top: 0;
  margin-left: -32px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(92, 67, 39, 0.15));
  animation: cone-float 3s ease-in-out infinite;
}

@keyframes cone-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.story-row-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(92, 67, 39, 0.15);
  display: block;
}

/* Story closer */
.story-closer {
  text-align: center;
  margin-top: 80px;
  padding: 60px 24px;
  position: relative;
}

.story-closer-cone {
  height: 100px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 6px 16px rgba(92, 67, 39, 0.18));
  animation: cone-float 3s ease-in-out infinite;
}

@keyframes cone-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.story-closer-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--brown);
  line-height: 1.25;
  max-width: 600px;
  margin: 0 auto 20px;
}

.story-closer-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--caramel);
  opacity: 0.8;
}

/* ===== Section colour rhythm ===== */
.story { background: var(--cream); }
.values { background: var(--vanilla); }

/* ===== Flavors ===== */
.flavors { background: var(--cream); }

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  max-width: 880px;
  margin: 24px auto 0;
}

.flavor-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
}

.flavor-card {
  /* White, not cream — the section behind is cream now, so cream cards
     would be invisible against it */
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flavor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(92, 67, 39, 0.18);
}

.flavor-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
}

.flavor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.flavor-card:hover .flavor-img { transform: scale(1.04); }

.flavor-info { padding: 28px 30px 34px; text-align: center; }

.flavor-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.flavor-desc { color: var(--caramel); margin-bottom: 14px; }

.flavor-tag {
  display: inline-block;
  font-family: var(--font-flavor);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--brown);
  background: var(--butter);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Coming Soon flavor card */
.flavor-coming-soon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(243, 223, 143, 0.2) 12px,
    rgba(243, 223, 143, 0.2) 24px
  );
  border: 3px dashed var(--butter);
  border-radius: var(--radius) var(--radius) 0 0;
}

.flavor-coming-soon-badge {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--caramel);
  background: var(--butter-soft);
  padding: 12px 28px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.flavor-card--coming-soon {
  opacity: 0.85;
}

.flavor-card--coming-soon:hover {
  opacity: 1;
}

/* ===== Values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.value-card {
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.value-ordinal {
  display: block;
  font-family: var(--font-flavor);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--caramel);
  opacity: 0.6;
  margin-bottom: 14px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0;
  color: var(--brown);
}

.value-rule {
  width: 36px;
  height: 2.5px;
  background: var(--butter);
  border-radius: 2px;
  margin: 18px auto;
}

.value-card p {
  color: var(--caramel);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ===== Find Us ===== */
.findus {
  background: var(--blue);
}
.findus h2 { color: #fff; }
.findus .eyebrow { color: var(--navy); }
.findus .section-sub { color: rgba(255, 255, 255, 0.92); }

/* ===== Drip section dividers =====
   Seamless repeating tile: drip bottoms and notches are exact semicircles
   joined by vertical lines, so the edge has no corners and never distorts
   at any viewport width. */
.section-drip {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 180px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
}

.drip-cream { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 180'%3E%3Cpath fill='%23fff7ec' d='M0 44 A12 12 0 0 1 12 56 V132 A26.0 26.0 0 0 0 64.0 132 V56 A11.9 11.9 0 0 1 87.9 56 V90 A20.0 20.0 0 0 0 127.9 90 V56 A14.1 14.1 0 0 1 156.1 56 V145 A29.0 29.0 0 0 0 214.1 145 V56 A10.8 10.8 0 0 1 235.8 56 V78 A18.0 18.0 0 0 0 271.8 78 V56 A13.0 13.0 0 0 1 297.8 56 V116 A24.0 24.0 0 0 0 345.8 116 V56 A11.9 11.9 0 0 1 369.7 56 V103 A25.0 25.0 0 0 0 419.7 103 V56 A14.1 14.1 0 0 1 447.9 56 V97 A21.0 21.0 0 0 0 489.9 97 V56 A15.2 15.2 0 0 1 520.3 56 V138 A28.0 28.0 0 0 0 576.3 138 V56 A10.8 10.8 0 0 1 598.0 56 V85 A19.0 19.0 0 0 0 636.0 85 V56 A13.0 13.0 0 0 1 662.0 56 V123 A23.0 23.0 0 0 0 708.0 123 V56 A12 12 0 0 1 720 44 V0 H0 Z'/%3E%3C/svg%3E"); }
.drip-vanilla { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 180'%3E%3Cpath fill='%23ffe6a7' d='M0 44 A12 12 0 0 1 12 56 V132 A26.0 26.0 0 0 0 64.0 132 V56 A11.9 11.9 0 0 1 87.9 56 V90 A20.0 20.0 0 0 0 127.9 90 V56 A14.1 14.1 0 0 1 156.1 56 V145 A29.0 29.0 0 0 0 214.1 145 V56 A10.8 10.8 0 0 1 235.8 56 V78 A18.0 18.0 0 0 0 271.8 78 V56 A13.0 13.0 0 0 1 297.8 56 V116 A24.0 24.0 0 0 0 345.8 116 V56 A11.9 11.9 0 0 1 369.7 56 V103 A25.0 25.0 0 0 0 419.7 103 V56 A14.1 14.1 0 0 1 447.9 56 V97 A21.0 21.0 0 0 0 489.9 97 V56 A15.2 15.2 0 0 1 520.3 56 V138 A28.0 28.0 0 0 0 576.3 138 V56 A10.8 10.8 0 0 1 598.0 56 V85 A19.0 19.0 0 0 0 636.0 85 V56 A13.0 13.0 0 0 1 662.0 56 V123 A23.0 23.0 0 0 0 708.0 123 V56 A12 12 0 0 1 720 44 V0 H0 Z'/%3E%3C/svg%3E"); }
.drip-pink { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 180'%3E%3Cpath fill='%23ffb1c1' d='M0 44 A12 12 0 0 1 12 56 V132 A26.0 26.0 0 0 0 64.0 132 V56 A11.9 11.9 0 0 1 87.9 56 V90 A20.0 20.0 0 0 0 127.9 90 V56 A14.1 14.1 0 0 1 156.1 56 V145 A29.0 29.0 0 0 0 214.1 145 V56 A10.8 10.8 0 0 1 235.8 56 V78 A18.0 18.0 0 0 0 271.8 78 V56 A13.0 13.0 0 0 1 297.8 56 V116 A24.0 24.0 0 0 0 345.8 116 V56 A11.9 11.9 0 0 1 369.7 56 V103 A25.0 25.0 0 0 0 419.7 103 V56 A14.1 14.1 0 0 1 447.9 56 V97 A21.0 21.0 0 0 0 489.9 97 V56 A15.2 15.2 0 0 1 520.3 56 V138 A28.0 28.0 0 0 0 576.3 138 V56 A10.8 10.8 0 0 1 598.0 56 V85 A19.0 19.0 0 0 0 636.0 85 V56 A13.0 13.0 0 0 1 662.0 56 V123 A23.0 23.0 0 0 0 708.0 123 V56 A12 12 0 0 1 720 44 V0 H0 Z'/%3E%3C/svg%3E"); }
.drip-blue { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 180'%3E%3Cpath fill='%235ba8e6' d='M0 44 A12 12 0 0 1 12 56 V132 A26.0 26.0 0 0 0 64.0 132 V56 A11.9 11.9 0 0 1 87.9 56 V90 A20.0 20.0 0 0 0 127.9 90 V56 A14.1 14.1 0 0 1 156.1 56 V145 A29.0 29.0 0 0 0 214.1 145 V56 A10.8 10.8 0 0 1 235.8 56 V78 A18.0 18.0 0 0 0 271.8 78 V56 A13.0 13.0 0 0 1 297.8 56 V116 A24.0 24.0 0 0 0 345.8 116 V56 A11.9 11.9 0 0 1 369.7 56 V103 A25.0 25.0 0 0 0 419.7 103 V56 A14.1 14.1 0 0 1 447.9 56 V97 A21.0 21.0 0 0 0 489.9 97 V56 A15.2 15.2 0 0 1 520.3 56 V138 A28.0 28.0 0 0 0 576.3 138 V56 A10.8 10.8 0 0 1 598.0 56 V85 A19.0 19.0 0 0 0 636.0 85 V56 A13.0 13.0 0 0 1 662.0 56 V123 A23.0 23.0 0 0 0 708.0 123 V56 A12 12 0 0 1 720 44 V0 H0 Z'/%3E%3C/svg%3E"); }

/* Sections with a drip hanging into them need extra headroom */
.flavors, .values, .community, .findus { padding-top: 230px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--espresso);
  color: var(--ivory);
  padding: 250px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-logo {
  height: 72px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p { color: var(--butter-soft); opacity: 0.85; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-flavor);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 16px;
}

.footer-col p { margin-bottom: 8px; font-size: 0.95rem; opacity: 0.85; }

.footer-col a { color: var(--ivory); text-decoration: none; }
.footer-col a:hover { color: var(--butter); }

.footer-bottom {
  border-top: 1px solid rgba(250, 245, 230, 0.15);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== Ice cream explosion ===== */
.poppable { cursor: pointer; user-select: none; -webkit-user-drag: none; }

.burst-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.burst-layer--back { z-index: 1; }   /* under the strip & sections below it */
.burst-layer--front { z-index: 999; } /* footer bursts fly above the page */

.burst-cone {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

/* ===== Easter-egg toast ===== */
.egg-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--espresso);
  background: var(--butter-soft);
  border: 2px solid var(--butter);
  border-radius: 999px;
  padding: 14px 32px;
  box-shadow: 0 8px 32px rgba(92, 67, 39, 0.2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.egg-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Persistent Telegram invite (unlocked after 40 logo clicks) */
.tg-invite {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 11px 16px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(24px) scale(0.9);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, filter 0.2s ease;
}

.tg-invite.show { transform: translateY(0) scale(1); opacity: 1; }
.tg-invite:hover { filter: brightness(1.06); transform: translateY(-2px) scale(1); }

.tg-invite-close {
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tg-invite-close:hover { background: rgba(255, 255, 255, 0.4); }

/* The strip and every section below it sit above the back burst layer,
   so falling cones disappear behind them. */
.strip, .story, .lifestyle-break, .flavors, .values, .community, .findus, .site-footer {
  position: relative;
  z-index: 2;
}

/* These sections inherit the page background; make it explicit so the
   cones can't show through. */
.story, .lifestyle-break, .community { background: var(--ivory); }
.values { background: var(--ivory-deep); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Lifestyle photo break ===== */
.lifestyle-break {
  padding: 0 24px;
  overflow: hidden;
}

.lifestyle-break-inner {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(92, 67, 39, 0.18);
}

.lifestyle-break-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

@media (max-width: 880px) {
  .lifestyle-break-img {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .lifestyle-break {
    padding: 0 16px;
  }
  .lifestyle-break-inner {
    border-radius: 20px;
  }
  .lifestyle-break-img {
    height: 280px;
  }
}

/* ===== Community ===== */
.community-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0 40px;
}

.community-carousel::-webkit-scrollbar {
  display: none;
}

.community-track {
  display: flex;
  gap: 36px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  width: max-content;
}

.community-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.community-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--butter);
  box-shadow: 0 8px 32px rgba(92, 67, 39, 0.15), 0 0 0 2px var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.community-circle:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(92, 67, 39, 0.22), 0 0 0 3px var(--butter);
}

.community-circle img,
.community-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-circle video {
  background: var(--ivory-deep);
}

.community-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--caramel);
  text-align: center;
}

/* When there's only one item, center it */
.community-track:has(.community-item:only-child) {
  justify-content: center;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .section { padding: 68px 0; }

  .section-drip { height: 100px; }
  .flavors, .values, .community, .findus { padding-top: 140px; }
  .site-footer { padding-top: 160px; }

  .story-row { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .story-row--flip .story-row-text { order: 1; }
  .story-row--flip .story-row-img { order: 2; }

  /* Stacked 3-line statement for mobile impact */
  .statement {
    white-space: normal !important;
    font-size: clamp(3rem, 14vw, 5.5rem) !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .stmt-line {
    display: block;
  }

  .values-grid { grid-template-columns: 1fr; gap: 40px; }
  .flavor-grid, .flavor-grid--three { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 2px solid var(--line);
    padding: 24px 8%;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    margin-left: 0;
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease;
  }


  .header-social { margin-left: auto; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .nav-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--brown);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 44px; }
  .header-inner { gap: 12px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Legal pages ===== */
.legal-page {
  background: var(--cream);
  padding: 140px 0 90px;
}

.legal-page .container { max-width: 780px; }

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--orange);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--caramel);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
  margin: 38px 0 12px;
}

.legal-page h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 22px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--blue); font-weight: 700; }

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.94rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.legal-page th { background: var(--vanilla); font-weight: 800; }

.legal-placeholder {
  background: var(--vanilla);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 700;
}

.legal-note {
  background: var(--vanilla);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.legal-note p:last-child { margin-bottom: 0; }

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}
.legal-back:hover { color: var(--orange); }

@media (max-width: 880px) {
  .legal-page { padding: 110px 0 70px; }
  .legal-page table { display: block; overflow-x: auto; }
}
