/* ==========================================================================
   LUCKY YOU page
   Section layouts for the one page, the hero and the moving pictures.
   Tokens only. Ground sequence: hero stout, bottle, foam, stout, moss,
   bottle, moss, foam, stout, bottle. No two neighbours share a ground.
   ========================================================================== */

/* ================================================================== hero */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Bottom-anchored: a short screen pushes the text up into the photo,
     never the button down. */
  padding-top: calc(var(--nav-h) + var(--sp-5));
  padding-bottom: calc(var(--ticker-h) + var(--sp-7));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}
.hero-media img {
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-pos);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-hero-top), var(--scrim-hero-bottom), var(--scrim-hero-side);
}

.hero-body > * { grid-column: var(--span-text); }
.hero-body { row-gap: 0; }
.hero-body .eyebrow { color: var(--cream); margin-bottom: var(--sp-4); }

/* Wordmark. Real h1 text, one line, each letter in its own mask. The layout
   box is reserved from the first frame, so the button never moves. */
.wordmark {
  font-size: var(--fs-wordmark);
  line-height: var(--lh-wordmark);
  white-space: nowrap;
  margin-bottom: var(--sp-5);
}
.wm { display: inline-flex; }
.wm-l {
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  margin-block: calc((var(--lh-wordmark) - 1) / 2 * 1em);
}
.wm-l > span { display: inline-block; }
.wm-sp { display: inline-block; width: 0.2em; }

.hero-date {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: var(--fw-semi);
}
.hero-proof { color: var(--cream-dim); }

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: var(--sp-6);
  row-gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero-tier {
  margin-top: var(--sp-3);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  color: var(--cream-dim);
}

/* Hero entrance: letters rise, then the supporting lines. Gated on
   html.js-motion; with JS off everything is simply there. */
.js-motion .wm-l > span {
  transform: translate3d(0, 105%, 0);
  animation: rise var(--dur-hero) var(--ease-entrance) forwards;
  animation-delay: calc(var(--delay-wordmark) + var(--i) * var(--stagger-letter));
}
.js-motion .hero-line {
  opacity: 0;
  transform: translate3d(0, var(--reveal-rise), 0);
  animation: hero-in var(--dur-reveal) var(--ease-entrance) forwards;
  animation-delay: calc(var(--delay-hero-lines) + var(--i) * var(--stagger));
}
@keyframes rise { to { transform: translate3d(0, 0, 0); } }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Moving pictures. Transform only, inside overflow hidden, so the zoom can
   never move layout. Paused while its section is offscreen. */
.kenburns {
  transform-origin: 60% 40%;
  animation: kenburns var(--dur-kenburns) var(--ease-drift) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(var(--kenburns-scale)) translateX(var(--kenburns-shift)); }
}
.js-motion [data-inview-play]:not(.is-playing) .kenburns { animation-play-state: paused; }

/* Section plates drift with the scroll, CSS only. */
@keyframes plate-drift {
  from { transform: translateY(var(--parallax-range)); }
  to   { transform: translateY(calc(-1 * var(--parallax-range))); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 700px) {
    .plate:not(.plate--loud) img {
      animation: plate-drift var(--ease-linear) both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}
/* No scroll timeline, or a phone: the plates get the slow zoom instead. */
@supports not (animation-timeline: view()) {
  .plate img {
    transform-origin: 50% 40%;
    animation: kenburns var(--dur-kenburns) var(--ease-drift) infinite alternate;
  }
  .js-motion [data-inview-play]:not(.is-playing) .plate img { animation-play-state: paused; }
}
@media (max-width: 699.98px) {
  .plate img {
    transform-origin: 50% 40%;
    animation: kenburns var(--dur-kenburns) var(--ease-drift) infinite alternate;
  }
  .js-motion [data-inview-play]:not(.is-playing) .plate img { animation-play-state: paused; }
}

.plate--loud img { opacity: var(--plate-opacity-loud); }
.plate--loud::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--scrim-full);
}

/* Phone hero: the tall frame in a top band fading to stout. */
@media (max-width: 699.98px) {
  .hero {
    padding-top: calc(var(--nav-h-ph) + var(--sp-4));
    padding-bottom: calc(var(--ticker-h-ph) + var(--sp-6));
  }
  .wordmark { font-size: var(--fs-wordmark-ph); margin-bottom: var(--sp-4); }
  .hero-row { margin-top: var(--sp-4); column-gap: var(--sp-4); }
  .hero-ctas { margin-top: var(--sp-4); flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { min-height: var(--btn-h-ph); }
  .hero-ctas .btn--ghost {
    min-height: 0;
    border: 0;
    padding: var(--sp-2) 0;
    justify-content: flex-start;
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }
  .cd-num { font-size: var(--fs-h3); }
  .countdown-cells { gap: var(--sp-3); }
}
/* ------------------------------------------------------------ hero video

   One clip, two placements, two <video> elements. motion.js gives a source
   only to the one whose data-video-media matches, after first paint, so the
   other never downloads. With JS off, Save-Data or reduced motion, neither
   gets a source and the poster stays. Atmosphere only: no caption, no label,
   no bar or neighborhood name near it. */
.hero-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--stout);
}

/* Phones and small tablets: the clip is the hero background. */
.hero-video--bg { display: none; }
@media (max-width: 767.98px) {
  .hero-media picture { display: none; }
  .hero-video--bg { display: block; position: absolute; inset: 0; }
  .hero-scrim { background: var(--scrim-phone-video); }
  .hero-video--panel { display: none; }
}

/* Desktop and tablet: a 9:16 story card against the right edge of the grid,
   N columns wide unless that would break the height ceiling. Absolutely
   placed inside the hero .wrap, so it never changes the text's layout and
   cannot move the button. Centred on the text block. No shadow: the house
   rule is occlusion and a hairline. */
@media (min-width: 768px) {
  .hero-video--panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(
      calc((100% - (var(--grid-cols) - 1) * var(--grid-gap)) / var(--grid-cols) * var(--hero-panel-cols)
           + (var(--hero-panel-cols) - 1) * var(--grid-gap)),
      calc(var(--hero-panel-hmax) * 9 / 16)
    );
    aspect-ratio: var(--video-ratio);
    pointer-events: none;
  }
  .hero-panel-frame {
    width: 100%;
    height: 100%;
    border-radius: var(--r-media);
    border: var(--hairline-panel);
    overflow: hidden;
    background: var(--stout);
  }
}
/* Tablet: the text gives up columns 6 to 8 to the card. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-body > *:not(.hero-video) { grid-column: 1 / span 5; }
}

/* Backstop under 360px: the wordmark may wrap rather than overflow. */
@media (max-width: 359.98px) {
  .wordmark { white-space: normal; }
  .wm { flex-wrap: wrap; }
}

/* ======================================================= ticket choice */

.ticket-cards { row-gap: var(--grid-gap); }

/* ================================================================ prices */

.ladder-block--aa { margin-top: var(--sp-8); }
.ladder--short {
  max-width: calc((100% + var(--sp-2)) * 4 / 7 - var(--sp-2));
}
.ladder-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (max-width: 699.98px) {
  .ladder--short { max-width: none; }
  .ladder-cta .btn { width: 100%; }
}

/* ============================================================== included */

.stats { margin-bottom: var(--sp-7); }
.stat {
  border-top: var(--hairline);
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.stat-num {
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  font-weight: var(--fw-black);
  color: var(--cream);
}

/* ================================================================ pickup */

.pickup-group { margin-top: var(--sp-5); color: var(--cream); }

.shirt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-5);
  padding: var(--card-inset);
  border-radius: var(--r-card);
  background-color: var(--foam);
  background-image: var(--tex-fibre);
  color: var(--ink);
}
.shirt-num {
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  font-weight: var(--fw-black);
}
.shirt-copy { display: grid; gap: var(--sp-2); }
/* The four-leaf mark stands where a number used to: no count is promised. */
.shirt .shirt-leaf { font-size: var(--fs-h2); }
@media (max-width: 699.98px) {
  .shirt { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ============================================================= last year */

.lastyear .head { margin-bottom: 0; }
.reel-foot .text-link { font-weight: var(--fw-semi); }

/* =================================================================== FAQ */

.faq-photo {
  grid-row: 2;
  overflow: hidden;
  border-radius: var(--r-media);
  aspect-ratio: 16 / 9;
}
.faq-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--plate-pos-land);
}
.faq-list { grid-row: 3; }

@media (min-width: 1024px) {
  .faq-wrap .head { grid-column: 1 / span 7; grid-row: 1; }
  .faq-list { grid-column: 1 / span 7; grid-row: 2; }
  .faq-photo {
    grid-column: 8 / -1;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-h) + var(--sp-5));
    aspect-ratio: 4 / 5;
  }
}

/* ================================================================ signup */

.signup-block { grid-column: 4 / span 6; }
.signup-block .eyebrow { margin-bottom: var(--sp-3); }
.signup-block h2 { margin-bottom: var(--sp-5); }
.form-fallback a { color: var(--cream); }
@media (max-width: 1023.98px) {
  .signup-block { grid-column: var(--span-full); }
}
@media (min-width: 700px) and (max-width: 1023.98px) {
  .signup-block { grid-column: 2 / span 6; }
}

/* ================================================================ footer */

.footer { padding-bottom: 0; }
.footer-wrap { row-gap: var(--sp-6); }
.footer-brand { display: grid; gap: var(--sp-2); align-content: start; }
.footer-nav { align-self: start; }
.footer-nav ul { display: grid; gap: var(--sp-2); }
.footer-nav a {
  text-decoration: none;
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { display: grid; gap: var(--sp-2); color: var(--cream-dim); }
.footer-brand a, .footer-legal a { color: var(--cream); }

@media (min-width: 700px) {
  .footer-brand { grid-column: 1 / span 4; }
  .footer-nav   { grid-column: 5 / span 4; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-brand { grid-column: 1 / span 5; }
  .footer-nav   { grid-column: 6 / span 3; }
  .footer-legal { grid-column: 9 / -1; align-content: start; }
}

/* The oversized wordmark: moss on bottle, aria-hidden, the one sanctioned
   decorative contrast exception. */
.footer-mark {
  position: relative;
  z-index: 2;
  margin-top: var(--sp-8);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-footer-mark);
  line-height: var(--lh-wordmark);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--moss);
  user-select: none;
}
