/* Hanken Grotesk, hosted here (Latin subset, weights 400 to 900). Licence: fonts/OFL.txt */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f0ede3;
  --cream-alt: #e8e3d3;
  --ink: #0f0e0d;
  --accent: #c5341b;
  --accent-dark: #a12a15;
  --lime: #c8f902;
  --ice: #c4dee9;
  --muted: rgba(15, 14, 13, 0.75);
  --muted-2: rgba(15, 14, 13, 0.6);
  --line: rgba(15, 14, 13, 0.14);
  --on-dark: #f0ede3;
  --on-dark-muted: rgba(240, 237, 227, 0.75);
  --on-dark-label: rgba(240, 237, 227, 0.6);
  --on-dark-line: rgba(240, 237, 227, 0.4);
  --radius: 2px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

.display, .h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.display { font-size: clamp(2.75rem, 8vw, 6rem); }
.display--sm { font-size: clamp(2.25rem, 6vw, 4.25rem); text-align: center; }

.h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
.h2--onblack { color: var(--on-dark); text-align: center; }
.h2--center { text-align: center; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.eyebrow--center { text-align: center; }

.lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin: 1.25rem 0 1.75rem;
}

.lede--center { max-width: 50ch; margin-left: auto; margin-right: auto; text-align: center; }

/* Announcement bar */
/* Announcement bar: a looping marquee linking to Become a Member. The items are generated by
   build_pages.py from ANNOUNCE_REPEATS, repeated enough times that the strip stays full at any
   screen width; translateX(-50%) always lands on an item boundary because the repeat count is
   even, so the loop is seamless. */
.announce {
  display: block;
  background: var(--ink);
  overflow: hidden;
  padding: 0.65rem 0;
  text-decoration: none;
}

.announce__track {
  display: flex;
  width: max-content;
  animation: announce-scroll 40s linear infinite;
}

.announce:hover .announce__track,
.announce:focus-visible .announce__track {
  animation-play-state: paused;
}

.announce__item {
  /* deliberately not display:flex: flex containers collapse the whitespace around their own
     inline children (e.g. the space either side of the member-cap span), which ate the gaps
     around the number here */
  display: inline-block;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.announce__dot { margin: 0 0.9em; color: var(--on-dark-muted); }

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announce__track { animation: none; }
  .announce__item[aria-hidden] { display: none; }
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 50;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav__join { margin-left: 0.6rem; }

.nav__toggle { display: none; }

/* Logo: stacked all-caps wordmark (Hanken Grotesk 900, tracking -45), one shared vector */
.logo { display: block; height: auto; aspect-ratio: 3023 / 1637; overflow: visible; fill: currentColor; }
.logo--nav { width: 81px; color: var(--ink); }
.logo--footer { width: 100px; color: var(--on-dark); margin-bottom: 0.9rem; }

/* Black on ice blue lockup */
.lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  background: var(--ice);
  color: var(--ink);
  border-radius: var(--radius);
}
.lockup__mark { width: 64.5%; height: auto; aspect-ratio: 3023 / 1637; overflow: visible; fill: currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #050403; }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-dark); color: var(--cream); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--outline-light {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--on-dark-line);
}
.btn--outline-light:hover { background: var(--on-dark); color: var(--ink); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.72rem; }

.btn--block { width: 100%; }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Site-wide background wordmark.
   One fixed layer sits above every section background but below all content, so each section
   slides over it. Blend mode "difference" keeps it a faint dark tint on light sections and a
   faint light tint on the black ones. */
.bg-wordmark {
  position: fixed;
  top: 14vh;
  right: -4vw;
  width: min(1000px, 75vw);
  height: auto;
  aspect-ratio: 3023 / 1637;
  overflow: visible;
  fill: #fff;
  mix-blend-mode: difference;
  opacity: 0.075;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* Sections with a solid colour draw it on a layer beneath the wordmark */
.waitlist, .flavours, .footer { position: relative; }
.waitlist::before, .flavours::before, .footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
}
.waitlist::before, .footer::before { background: var(--ink); }
.flavours::before { background: var(--cream-alt); }

.hero__text, .hero__media { position: relative; z-index: 1; }

.hero__text { max-width: 46ch; }

/* Hero: text lines and the box rise in on load (or whenever the home page is switched back to,
   since the SPA router just toggles [hidden] and a CSS animation restarts once an element is
   displayed again). Pure CSS, no JS: nothing to gate beyond the reduced-motion override below. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__text > * { animation: hero-rise 0.7s ease both; }
.hero__text > *:nth-child(1) { animation-delay: 0s; }
.hero__text > *:nth-child(2) { animation-delay: 0.08s; }
.hero__text > *:nth-child(3) { animation-delay: 0.16s; }
.hero__text > *:nth-child(4) { animation-delay: 0.24s; }
.hero__media { animation: hero-rise 0.8s ease 0.15s both; }

@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .hero__media { animation: none; }
}

.hero__img {
  width: 100%;
  height: auto;
  /* transparent cutout, so the shadow follows the box itself and it floats above the wordmark */
  filter: drop-shadow(0 34px 30px rgba(15, 14, 13, 0.3));
}

/* Waitlist */
.waitlist {
  color: var(--on-dark);
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  text-align: center;
  scroll-margin-top: 5rem;
}

.waitlist__copy {
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin: 1rem auto 2.25rem;
  line-height: 1.6;
}

.form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { display: block; margin-bottom: 1rem; }
.field--full { grid-column: 1 / -1; }

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.field__checkbox {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

.field__checkbox:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field__checkbox:invalid.touched { outline: 2px solid #b0361a; outline-offset: 2px; }

.field__checkbox-label {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.4;
}
.form--light .field__checkbox-label { color: var(--ink); }

.field__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-label);
  margin-bottom: 0.4rem;
}

.field__input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  color: var(--on-dark);
  font-family: inherit;
  font-size: 0.95rem;
}

.field__textarea { resize: vertical; }

.field__input::placeholder { color: rgba(240, 237, 227, 0.4); }
.field__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field__input:invalid.touched { border-color: #d97070; }
.form--light .field__input:invalid.touched { border-color: #b0361a; }

/* Dropdown */
.form--light select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230f0e0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
.form--light select.field__input:required:invalid { color: rgba(15, 14, 13, 0.4); }
.form--light select.field__input option { color: var(--ink); }

.form__required {
  margin: 0.25rem 0 1rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* Light-theme form (Become a Member) */
.form--light .field__label { color: var(--muted-2); }
.form--light .field__input {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--cream);
}
.form--light .field__input::placeholder { color: rgba(15, 14, 13, 0.4); }

.form__consent {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted-2);
}

.form__note {
  margin-top: 0.9rem;
  min-height: 1.2em;
  font-size: 0.85rem;
  text-align: center;
  color: var(--lime);
}

.form--light .form__note { color: var(--accent); }

.form__note--error { color: #e08a6d; }
.form--light .form__note--error { color: #b0361a; }

/* Ingredient section */
.ingredient {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ingredient__img {
  width: 100%;
  height: auto;
  /* transparent line drawing: sits straight on the page, no shadow */
}

.principles {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.principles li {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.principles__num { color: var(--accent); font-weight: 900; font-size: 0.85rem; }

/* Principles list: each line rises in as the ingredient section scrolls into view. */
.principles li.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.principles li.reveal.is-visible { opacity: 1; transform: translateY(0); }
.principles li.reveal:nth-child(2) { transition-delay: 0.1s; }
.principles li.reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .principles li.reveal { opacity: 1; transform: none; transition: none; }
}

/* Four flavours */
.flavours {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.flavour-grid {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.flavour-card__img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: contain;
  object-position: center bottom;
  /* transparent cutouts: shadow follows each box so they float on the section */
  filter: drop-shadow(0 18px 16px rgba(15, 14, 13, 0.28));
}

/* Cards slide into shot the first time they scroll into view. JS adds .reveal up front, then
   .is-visible once each card crosses the viewport threshold, so a page with JS disabled just
   shows the grid in its normal state instead of getting stuck hidden. */
.flavour-card.reveal {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.flavour-card.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.flavour-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.flavour-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.flavour-card.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .flavour-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.flavour-card__swatches {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0.6rem;
}

.flavour-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 14, 13, 0.14);
}

.flavour-card__name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* Follow */
.follow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.follow__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.follow__handle {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.follow__handle:hover { text-decoration: underline; }

/* Follow: simple handle-only version (image grid hidden) */
.follow--simple { text-align: center; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.follow--simple .follow__head { flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0; }
.follow--simple .follow__handle { font-size: clamp(1.4rem, 4vw, 2.25rem); font-weight: 900; letter-spacing: -0.02em; }

.follow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Footer (home page only) */
.footer {
  color: var(--on-dark-muted);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer__copy { font-size: 0.85rem; margin: 0.75rem 0 0; }

.footer__signup { flex: 1 1 320px; max-width: 420px; }
.footer__consent { margin: 0.7rem 0 0; font-size: 0.72rem; line-height: 1.5; color: var(--on-dark-label); }
.footer__consent a, .form__consent--dark a { color: inherit; text-decoration: underline; }
.footer__note { margin: 0.5rem 0 0; min-height: 1.1em; font-size: 0.8rem; color: #e08a6d; }
.footer__note a { color: inherit; text-decoration: underline; }

.footer__links { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer__links a { color: var(--on-dark-muted); text-decoration: none; }
.footer__links a:hover { color: var(--on-dark); text-decoration: underline; }

.footer__form {
  display: flex;
  width: 100%;
}

.footer__input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--on-dark-line);
  border-right: none;
  background: transparent;
  color: var(--on-dark);
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

.footer__input::placeholder { color: rgba(240, 237, 227, 0.4); }
.footer__input:focus { outline: none; border-color: var(--accent); }

.footer__btn {
  background: var(--accent);
  color: var(--ink);
  border: none;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

.footer__btn:hover { background: var(--accent-dark); }

/* Sub-pages: Buy / Events */
.subpage {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
}

.subpage__title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin: 0 0 1.25rem;
}

.subpage__copy {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 2rem;
}

/* Little ice cube tray on the Buy page */
.freezer {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  padding: 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.freezer__cube {
  width: clamp(30px, 8vw, 40px);
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--ice);
  box-shadow: inset 0 0 0 1px rgba(15, 14, 13, 0.14), inset 6px 6px 0 rgba(255, 255, 255, 0.5);
}

.freezer__cube--setting {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(15, 14, 13, 0.25);
  animation: setting 2.4s ease-in-out infinite;
}

@keyframes setting {
  0%, 100% { background: transparent; }
  50% { background: rgba(196, 222, 233, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .freezer__cube--setting { animation: none; background: rgba(196, 222, 233, 0.5); }
}

.freezer__label {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Events */
.event { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem); }
.event__inner { max-width: var(--maxw); margin: 0 auto; }

.display--event { font-size: clamp(2.5rem, 6.5vw, 4.75rem); margin-bottom: 0.6rem; }

.event__layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.event__tagline {
  font-weight: 700;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.event__meta {
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.event__meta li { font-size: 0.95rem; font-weight: 600; }

.event__meta-label {
  display: inline-block;
  min-width: 92px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event__cue { font-weight: 700; margin: 0 0 2rem; }

.btn--lg { padding: 1.1rem 2.2rem; font-size: 0.95rem; }

.event__card {
  background: var(--ink);
  color: var(--on-dark);
  padding: 1.75rem;
  border-radius: var(--radius);
  position: sticky;
  top: 6rem;
}

.event__card-title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.event__card-row {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  margin-bottom: 0.4rem;
}

.event__card .btn { margin-top: 1.25rem; width: 100%; }

.event__card-note {
  font-size: 0.72rem;
  color: var(--on-dark-label);
  margin-top: 0.85rem;
  text-align: center;
}

/* Become a Member */
.apply {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.apply__inner { max-width: 1000px; margin: 0 auto; }
.apply .lede { margin-bottom: 0.75rem; }

.apply__notice {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted-2);
}

/* Perks: 2x2 on the Become a Member page. The home page teaser overrides this to one column. */
.perks {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.perk {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.3rem;
  background: var(--cream-alt);
  border-radius: var(--radius);
}

.perk__num { color: var(--accent); font-weight: 900; font-size: 0.85rem; }
.perk__title { font-weight: 900; font-size: 1.1rem; letter-spacing: -0.01em; text-transform: uppercase; }
.perk__text { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* Become a Member teaser (home page, between Four Flavours and Follow Along) */
.member-teaser {
  background: var(--cream-alt);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.member-teaser__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.member-teaser__text .lede { margin-bottom: 1.75rem; }
.member-teaser__perks { grid-template-columns: 1fr; margin: 0; }
.member-teaser__perks .perk { background: var(--cream); }

/* Member teaser: the whole card rises and fades in the first time it scrolls into view. */
.member-teaser__inner.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.member-teaser__inner.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .member-teaser__inner.reveal { opacity: 1; transform: none; transition: none; }
}

/* Waitlist success follow-up: nudges toward free membership right after joining */
.join-followup {
  position: relative;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--ice);
  color: var(--ink);
  border-radius: 12px;
  text-align: left;
}

.join-followup__tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.join-followup__title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; }
.join-followup__text { margin: 0 0 0.9rem; font-size: 0.85rem; line-height: 1.45; }

@media (max-width: 860px) {
  .member-teaser__inner { grid-template-columns: 1fr; }
}

/* Card + form */
.apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.apply__grid .form { max-width: 520px; margin: 0; }

.member-card-wrap { position: sticky; top: 7rem; }

.member-card__preview-label {
  margin: 0 0 0.75rem;
  text-align: center;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Live membership card: fills in as the form is filled in */
.member-card {
  position: relative;
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #d9eef7 0%, var(--ice) 50%, #b3d1df 100%);
  box-shadow: 0 30px 40px -26px rgba(15, 14, 13, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.member-card-wrap:hover .member-card { transform: rotate(0deg) translateY(-3px); }

.member-card__logo { width: 66.5px; height: auto; aspect-ratio: 3023 / 1637; overflow: visible; fill: currentColor; }

.member-card__tag {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  padding: 0.25em 0.7em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-card__name {
  margin-top: auto;
  font-weight: 900;
  font-size: clamp(1.4rem, 4.2vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-card__row { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 0.7rem; }
.member-card__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.member-card__value { font-size: 0.95rem; font-weight: 900; text-transform: uppercase; overflow-wrap: anywhere; }

.member-card__foot {
  margin-top: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.member-card__hint { margin: 1.6rem 0 0; text-align: center; font-size: 0.8rem; color: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
  .member-card, .member-card-wrap:hover .member-card { transition: none; }
}

/* Dropzones (image placeholders) */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream-alt);
  border: 1.5px dashed rgba(15, 14, 13, 0.28);
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover { border-color: var(--accent); }
.dropzone.is-dragover { border-color: var(--accent); background: #ded5b8; }

/* Past events photos: each one rises in, staggered, the first time the grid scrolls into view. */
.dropzone.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.15s ease, background 0.15s ease;
}
.dropzone.reveal.is-visible { opacity: 1; transform: translateY(0); }
.dropzone.reveal:nth-child(2) { transition-delay: 0.1s; }
.dropzone.reveal:nth-child(3) { transition-delay: 0.2s; }
.dropzone.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .dropzone.reveal { opacity: 1; transform: none; transition: border-color 0.15s ease, background 0.15s ease; }
}

.dropzone--tall { aspect-ratio: 4 / 5; }
.dropzone--square { aspect-ratio: 1 / 1; }
.dropzone--flavour { aspect-ratio: 4 / 5; margin-bottom: 0; }
.event__banner-wrap {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.event__banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 26px 40px -30px rgba(15, 14, 13, 0.4);
}

/* Sold out state: shown when the section carries the data-sold-out attribute */
.event__stamp,
.event__soldout,
.event__card-soldout { display: none; }

.event[data-sold-out] .event__tickets { display: none; }
.event[data-sold-out] .event__stamp { display: block; }
.event[data-sold-out] .event__soldout { display: block; }
.event[data-sold-out] .event__card-soldout { display: block; }

/* Members only badge: shown when the section carries the data-members-only attribute */
.event__members-badge {
  display: none;
  margin-left: 0.6rem;
  padding: 0.2em 0.6em;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.event[data-members-only] .event__members-badge { display: inline-block; }

.event__stamp {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2.25rem);
  bottom: calc(-1 * clamp(0.9rem, 2.4vw, 1.6rem));
  transform: rotate(-7deg);
  padding: 0.25em 0.7em;
  border: 3px solid var(--accent);
  border-radius: 4px;
  background: rgba(240, 237, 227, 0.92);
  color: var(--accent);
  font-weight: 900;
  font-size: clamp(0.85rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.event__soldout {
  background: var(--ice);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 46ch;
}

.event__soldout-title {
  margin: 0 0 0.6rem;
  font-weight: 900;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event__card-soldout .btn + .btn { margin-top: 0.6rem; }

.event__soldout-copy {
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.event__badge {
  display: inline-block;
  margin: 0.8rem 0 1rem;
  padding: 0.35em 0.8em;
  border: 2px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  background: var(--on-dark);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Past events: empty until there is a first one to show (see the HTML comment above it) */
.past-events {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.past-events .lede { margin-bottom: 2rem; }
.past-events .follow__grid { text-align: left; }

.dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
  pointer-events: none;
}

.dropzone__icon {
  width: 22px;
  height: 22px;
  fill: rgba(15, 14, 13, 0.35);
}

.dropzone__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(15, 14, 13, 0.55);
  line-height: 1.3;
}

.dropzone__browse {
  font-size: 0.68rem;
  color: var(--accent);
  text-decoration: underline;
}

.dropzone.has-image .dropzone__empty { display: none; }

.dropzone__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.dropzone.has-image .dropzone__img { display: block; }

.dropzone__replace {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 14, 13, 0.75);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.dropzone.has-image:hover .dropzone__replace { opacity: 1; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .bg-wordmark { width: 100vw; right: 0; top: 55vh; transform: translateY(-50%); }
  .ingredient { grid-template-columns: 1fr; }
  .event__layout { grid-template-columns: 1fr; }
  .apply__grid { grid-template-columns: 1fr; }
  .member-card-wrap { position: static; max-width: 380px; margin: 0 auto; }
  .apply__grid .form { max-width: none; }
  .event__card { position: static; }
  .form__row { grid-template-columns: 1fr; }
  .flavour-grid { grid-template-columns: repeat(2, 1fr); }
  .follow__grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; }
  .footer__signup { flex: none; width: 100%; max-width: none; }
}

@media (max-width: 480px) {
  .flavour-grid { grid-template-columns: 1fr; }
  .follow__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .perks { grid-template-columns: 1fr; }
}

/* Raining ice cubes (easter egg) */
.ice-bit {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--ice) 60%, #a9cbdc 100%);
  border: 1px solid rgba(59, 91, 167, 0.4);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), 0 2px 4px rgba(15, 14, 13, 0.15);
  will-change: transform, opacity;
}

.logo--footer, .lockup { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Small helpers */
.nowrap { white-space: nowrap; }

/* Hidden trap field for bots: real people never see or fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__consent--dark { color: var(--on-dark-label); }
.form__note a { color: inherit; text-decoration: underline; }

/* Privacy page */
.legal { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem); }
.legal__inner { max-width: 720px; margin: 0 auto; }
.legal__title { margin: 0 0 0.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(2.3rem, 6vw, 3.75rem); }
.legal__updated { margin: 0 0 1.5rem; font-size: 0.85rem; color: var(--muted-2); }
.legal h2 { margin: 2.25rem 0 0.6rem; font-size: 1.15rem; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }
.legal p, .legal li { line-height: 1.65; color: var(--muted); }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.6rem; }
.legal li strong { color: var(--ink); }
.legal a { color: var(--accent); }

/* Phones and small tablets: slim sticky menu (logo, Join button, menu button) */
@media (max-width: 900px) {
  .nav { padding: 0.55rem clamp(1rem, 4vw, 1.5rem); gap: 0.5rem; }
  .nav__brand { margin-right: auto; min-height: 44px; }
  .logo--nav { width: 66px; }
  .nav__join { margin-left: 0; min-height: 44px; padding: 0.5rem 1rem; }

  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.2s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0;
    padding: 1rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -22px rgba(15, 14, 13, 0.4);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links .btn { min-height: 48px; font-size: 0.8rem; }
}

@media (max-width: 560px) {
  .announce { padding: 0.5rem 0; }
  .announce__item { font-size: 0.68rem; }
  .announce__dot { margin: 0 0.7em; }
  .hero { padding-top: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__toggle span { transition: none; }
}
