/* The Girls Society, one page plus the privacy policy. Tokens first, then shared controls, then one block per section
   in page order. Each section's narrower layouts follow right after it: up to 1199px (wide tablets), up to 1023px, and
   the phone layout, whose query also covers phones held sideways and matches MOBILE_QUERY in main.js word for word. */

/* Fraunces and Mona Sans, SIL Open Font License 1.1 (assets/fonts/OFL.txt). Trimmed to the letters and settings the
   site uses: Fraunces fixed at weight 440, softness 100, no wonky letters, optical size 36; Mona Sans weights 400-700 at
   normal width; the second file of each holds only the Polish letters outside Latin-1. */
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-latin-440.woff2') format('woff2');
  font-weight: 440;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-polish-440.woff2') format('woff2');
  font-weight: 440;
  font-display: swap;
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: 'Mona Sans';
  src: url('assets/fonts/mona-sans-latin-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mona Sans';
  src: url('assets/fonts/mona-sans-polish-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}

:root {
  --burgundy: #7c0506;
  --cream: #f2e8d5;
  --burgundy-dark: #4a0304;
  --rose: #ab6059;
  --blush: #d4afa1;
  --paper: #f8f2e4;
  --ivory: #fffdf3;
  --brick: #9a3e3a;
  --night: #1b1310;
  /* A slightly darker night for scrims and shadows over photos. */
  --night-shade: #160f0c;
  /* The deepest burgundy: the chat photo placeholder and the tint of the darker shadows. */
  --burgundy-deep: #320202;
  /* The same colours as channels, for translucent shades: rgba(var(--burgundy-rgb), 0.35). */
  --burgundy-rgb: 124, 5, 6;
  --burgundy-dark-rgb: 74, 3, 4;
  --burgundy-deep-rgb: 50, 2, 2;
  --cream-rgb: 242, 232, 213;
  --ivory-rgb: 255, 253, 243;
  --night-rgb: 27, 19, 16;
  --night-shade-rgb: 22, 15, 12;
  --line: rgba(var(--burgundy-rgb), 0.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-text: 'Mona Sans', Arial, Helvetica, sans-serif;
  /* Fraunces tuned toward a soft, round serif: full softness, no wonky letters, a little lighter than medium. */
  --display-weight: 440;
  --display-tracking: -0.02em;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* A spring that overshoots by a few percent and settles; browsers without linear() get the cubic spring. */
  --ease-bounce: var(--ease-spring);

  --page-padding: clamp(20px, 4.444vw, 96px);
  --section-space: clamp(72px, 8.333vw, 128px);
  --content-max-width: 1560px;
  --transition-spring: transform 0.4s var(--ease-spring);

  /* Page-level stacking order. */
  --layer-behind: -1;
  --layer-corner: 60;
  --layer-sparkles: 90;
  --layer-top: 100;

  --shadow-raised: 0 1px 2px rgba(var(--burgundy-dark-rgb), 0.16), 0 18px 36px -20px rgba(var(--burgundy-dark-rgb), 0.45);
  --shadow-float: 0 1px 2px rgba(var(--burgundy-deep-rgb), 0.22), 0 28px 48px -24px rgba(var(--burgundy-deep-rgb), 0.6);

  /* svh keeps pinned layouts steady while the iOS address bar shows and hides */
  --viewport-height: 100vh;
  --large-viewport-height: 100vh;
}
@supports (height: 100svh) {
  :root {
    --viewport-height: 100svh;
    --large-viewport-height: 100lvh;
  }
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-bounce: linear(0, 0.18 8%, 0.6 20%, 0.92 34%, 1.04 46%, 1.03 58%, 0.995 74%, 1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--burgundy);
  font: 400 16px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p,
h1,
h2,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus, var(--burgundy));
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: var(--layer-top);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--burgundy);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible {
  transform: none;
}

/* Mistakes found in edition.js, listed by main.js on a local preview only. */
.config-errors {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--layer-top);
  padding: 12px var(--page-padding);
  border-bottom: 2px solid var(--burgundy);
  background: var(--ivory);
  color: var(--burgundy);
  font: 500 14px/1.5 var(--font-text);
}

/* Shared controls */

/* No grey tap flash on iOS: every one of these controls draws its own pressed state. */
.button,
.hero__video-toggle,
.gallery__tile--link,
.program__toc-link,
.main-partner__logo,
.partner__link,
.chat__reply {
  -webkit-tap-highlight-color: transparent;
}

/* One button: .button is the filled one, modifiers and element classes change only its look. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font: 600 15px/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-spring);
}
.button:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
}
.button:active {
  transform: scale(0.97);
}
.button:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.button--xl {
  min-height: 64px;
  margin-top: 24px;
  padding: 0 44px;
  border-radius: 16px;
  font-size: 20px;
}

/* For the photo of the invitation: light on dark. */
.button--light {
  background: var(--ivory);
  color: var(--burgundy);
}
.button--light:hover {
  background: var(--cream);
}

/* Outlined and smaller, for the social links; it fills on hover instead of lifting. */
.button--outline {
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--burgundy);
  background: var(--cream);
  color: var(--burgundy);
  font: 500 14px/1 var(--font-text);
}
.button--outline:hover {
  background: var(--burgundy);
  color: var(--cream);
  transform: none;
}
.button--outline:active {
  transform: scale(0.96);
}

.button--on-dark,
.hero__social.is-inverted .button--outline {
  border-color: var(--cream);
  background: var(--burgundy);
  color: var(--cream);
}
.button--on-dark {
  background: transparent;
}
.button--on-dark:hover,
.hero__social.is-inverted .button--outline:hover {
  background: var(--cream);
  color: var(--burgundy);
}
.hero__social.is-inverted .button--outline:focus-visible {
  outline-color: var(--cream);
}

.section-title {
  font: var(--display-weight) clamp(52px, 5.556vw, 104px)/1 var(--font-display);
  letter-spacing: var(--display-tracking);
}

.only-mobile {
  display: none;
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .only-desktop {
    display: none;
  }
  .only-mobile {
    display: inline;
  }
  .button--xl {
    width: 100%;
  }
}

/* Hero: a fixed-size stage scaled by --hero-unit, so 1440x900 and 390x760 match the design 1:1 */

.hero {
  /* Design size of the stage; main.js reads the width to turn design pixels into screen pixels. */
  --hero-design-width: 1440;
  --hero-design-height: 900;
  --hero-unit: min(100vw / var(--hero-design-width), var(--viewport-height) / var(--hero-design-height));
  --stage-width: calc(var(--hero-design-width) * var(--hero-unit));
  --stage-height: calc(var(--hero-design-height) * var(--hero-unit));
  --stage-top: calc((var(--viewport-height) - var(--stage-height)) / 2);
  --bar-height: 72px;
  --title-size: calc(70 * var(--hero-unit));
  /* The card group: the center card stands on the bar, the two side cards fan out behind it. */
  --card-width: calc(420 * var(--hero-unit));
  --card-height: calc(590 * var(--hero-unit));
  /* On screens narrower than 16:10 the title keeps its 64px edge offset, so the group moves right by the same amount. */
  --card-x: calc(940 * var(--hero-unit) + max(0px, 64px - (100vw - var(--stage-width)) / 2 - 64 * var(--hero-unit)));
  --card-bottom: calc(var(--bar-height) - var(--stage-top) + 28 * var(--hero-unit));
  --side-width: calc(336 * var(--hero-unit));
  --side-height: calc(472 * var(--hero-unit));
  /* Read by main.js too: design pixels each side card sits from the center, and its tilt. */
  --fan-x: 302;
  --fan-rotate: 3deg;
  /* When the two statement lines and the small logo come in: seconds into the phone sequence, the share of the scrubbed
     scroll on desktop. main.js reads these and the rise, in design pixels. */
  --statement-first-at: 0.55;
  --statement-second-at: 0.7;
  --small-logo-at: 0.75;
  --statement-rise: 60;
  /* Stacking order inside the hero, back to front. */
  --hero-layer-logo: 1;
  --hero-layer-title: 2;
  --hero-layer-deck: 3;
  --hero-layer-title-over: 4;
  --hero-layer-text: 6;
  --hero-layer-social: 7;
  --hero-layer-bar: 8;
  position: relative;
  height: var(--viewport-height);
  overflow: hidden;
  overflow-anchor: none;
  background: var(--cream);
  color: var(--burgundy);
}
.has-motion .hero {
  height: var(--large-viewport-height);
}

/* Holds everything shown in the hero; on phones it becomes the sticky screen, elsewhere it is just the hero's box. */
.hero__frame {
  position: absolute;
  inset: 0;
}

/* Scroll marker for the phone hero (main.js): once it has scrolled off the top, the burgundy screen comes on. */
.hero__trigger {
  display: none;
}

.hero__stage {
  position: absolute;
  left: calc(50% - var(--stage-width) / 2);
  top: var(--stage-top);
  width: var(--stage-width);
  height: var(--stage-height);
}

.hero__logo {
  --logo-width: min(62.222vw, calc(986 * var(--hero-unit)));
  position: absolute;
  left: calc(50% - var(--logo-width) / 2);
  top: calc(var(--stage-top) + 28 * var(--hero-unit));
  z-index: var(--hero-layer-logo);
  width: var(--logo-width);
  height: auto;
  rotate: -6deg;
  will-change: transform;
}

/* Anchored to the bar, which keeps its pixel height while the stage scales. */
/* Placed from the viewport edge, so it lines up with the bottom bar when the stage is narrower than the screen. */
.hero__title {
  position: absolute;
  left: calc(64px - (100vw - var(--stage-width)) / 2);
  bottom: calc(var(--bar-height) - var(--stage-top) + 24 * var(--hero-unit));
  z-index: var(--hero-layer-title);
  font: var(--display-weight) var(--title-size)/1.05 var(--font-display);
  letter-spacing: var(--display-tracking);
  white-space: nowrap;
}
.hero__title span {
  color: var(--rose);
}

/* The cards live in layers: the deck rises in once, the back and front layers follow the pointer. */
.hero__deck,
.hero__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__deck {
  z-index: var(--hero-layer-deck);
}
.hero__layer--front {
  z-index: 1;
}

.hero__rect {
  display: none;
  position: absolute;
  left: calc(var(--card-x) - 180 * var(--hero-unit));
  bottom: calc(var(--card-bottom) + var(--card-height) / 2 - 170 * var(--hero-unit));
  width: calc(360 * var(--hero-unit));
  height: calc(340 * var(--hero-unit));
  border-radius: calc(20 * var(--hero-unit));
  background: var(--burgundy);
  will-change: transform;
}

.hero__photo {
  position: absolute;
  left: calc(var(--card-x) - var(--side-width) / 2);
  bottom: calc(var(--card-bottom) + (var(--card-height) - var(--side-height)) / 2);
  width: var(--side-width);
  height: var(--side-height);
  border-radius: calc(18 * var(--hero-unit));
  object-fit: cover;
  box-shadow: var(--shadow-raised);
  will-change: transform, opacity;
}
.hero__photo--left {
  object-position: 50% 40%;
  transform: translateX(calc(-1 * var(--fan-x) * var(--hero-unit))) rotate(calc(-1 * var(--fan-rotate)));
}
.hero__photo--right {
  object-position: 50% 30%;
  transform: translateX(calc(var(--fan-x) * var(--hero-unit))) rotate(var(--fan-rotate));
}

.hero__card {
  position: absolute;
  left: calc(var(--card-x) - var(--card-width) / 2);
  bottom: var(--card-bottom);
  width: var(--card-width);
  height: var(--card-height);
  border-radius: calc(22 * var(--hero-unit));
  overflow: hidden;
  background: var(--burgundy-dark);
  box-shadow: var(--shadow-float);
  transform-origin: 0 0;
  pointer-events: auto;
  will-change: transform;
}

/* Entrance, once: the deck springs up from below, then the side cards fan out from behind the center card. */
@media (prefers-reduced-motion: no-preference) {
  .hero__deck {
    animation: deck-rise 0.9s var(--ease-bounce) backwards;
  }
  .hero__photo {
    animation: fan-out 0.8s var(--ease-spring) 0.25s backwards;
  }
  /* While the deck rises the title stays on top, so on phones the card slides up behind it instead of over it. */
  .hero__title {
    animation: title-over 0.9s;
  }
}
@keyframes title-over {
  from,
  to {
    z-index: var(--hero-layer-title-over);
  }
}
@keyframes deck-rise {
  from {
    transform: translateY(calc(var(--viewport-height) * 0.78));
  }
}
@keyframes fan-out {
  from {
    transform: scale(0.75);
  }
}

.hero__video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero__video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--cream-rgb), 0.88);
  color: var(--burgundy);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(var(--burgundy-deep-rgb), 0.6);
  transition: var(--transition-spring);
}
.hero__video-toggle:hover {
  background: var(--cream);
  transform: scale(1.06);
}
.hero__video-toggle:active {
  transform: scale(0.94);
}
.hero__video-toggle:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.hero__video-toggle .icon-play,
.hero__video-toggle[data-playing='true'] .icon-pause {
  display: block;
}
.hero__video-toggle .icon-pause,
.hero__video-toggle[data-playing='true'] .icon-play {
  display: none;
}

.hero__statement-part {
  display: none;
  position: absolute;
  left: calc(64 * var(--hero-unit));
  top: calc(232 * var(--hero-unit));
  z-index: var(--hero-layer-text);
  color: var(--cream);
  font: var(--display-weight) calc(66 * var(--hero-unit))/1.05 var(--font-display);
  letter-spacing: var(--display-tracking);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.hero__statement-part--second {
  top: calc(480 * var(--hero-unit));
  color: var(--blush);
}

.hero__logo-small {
  display: none;
  position: absolute;
  left: 40px;
  top: 20px;
  z-index: var(--hero-layer-text);
  width: 180px;
  height: auto;
  opacity: 0;
}

.has-motion .hero__rect,
.has-motion .hero__statement-part,
.has-motion .hero__logo-small {
  display: block;
}

.hero__social {
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: var(--hero-layer-social);
  display: flex;
  gap: 8px;
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  /* No title on phones: the card group sits in the room between the logo and the bar; the side cards peek out at the screen edges. */
  .hero {
    --hero-design-width: 390;
    --hero-design-height: 760;
    --bar-height: 76px;
    --card-width: calc(300 * var(--hero-unit));
    --card-height: calc(422 * var(--hero-unit));
    --card-x: calc(195 * var(--hero-unit));
    --card-bottom: calc(var(--bar-height) - var(--stage-top) + 72 * var(--hero-unit));
    --fan-x: 150;
    /* Side slots show a card at this share of the center card's size. */
    --side-scale: 0.8;
    /* With motion: extra scroll the hero screen stays stuck for, and how far into it the burgundy screen comes on. */
    --hero-hold: var(--viewport-height);
    --burgundy-after: calc(var(--viewport-height) * 0.2);
  }
  .hero__logo {
    --logo-width: calc(264 * var(--hero-unit));
    top: calc(var(--stage-top) + 64 * var(--hero-unit));
  }
  /* The page's heading stays for screen readers only. */
  .hero__title {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  /* The three cards share the center card's box; the slot main.js gives each one (data-slot) moves, tilts and scales it,
     so a swipe only changes transforms. The front layer drops its own stacking level, so a photo can come forward. */
  .hero__layer--front {
    z-index: auto;
  }
  .hero__photo,
  .hero__card {
    left: calc(var(--card-x) - var(--card-width) / 2);
    bottom: var(--card-bottom);
    width: var(--card-width);
    height: var(--card-height);
    border-radius: calc(18 * var(--hero-unit));
    box-shadow: 0 1px 2px rgba(var(--burgundy-deep-rgb), 0.2), 0 20px 36px -18px rgba(var(--burgundy-deep-rgb), 0.6);
    transform-origin: 50% 50%;
    pointer-events: auto;
    touch-action: pan-y pinch-zoom;
    transition: transform 0.45s var(--ease-bounce);
  }
  .hero__deck [data-slot='left'],
  .hero__deck [data-slot='right'] {
    z-index: 1;
  }
  .hero__deck [data-slot='left'] {
    transform: translateX(calc(-1 * var(--fan-x) * var(--hero-unit))) rotate(calc(-1 * var(--fan-rotate))) scale(var(--side-scale));
  }
  .hero__deck [data-slot='right'] {
    transform: translateX(calc(var(--fan-x) * var(--hero-unit))) rotate(var(--fan-rotate)) scale(var(--side-scale));
  }
  .hero__deck [data-slot='center'] {
    z-index: 2;
    transform: none;
  }
  /* A card going round from one edge to the other passes behind the rest. */
  .hero__deck .is-wrapping {
    z-index: 0;
  }
  .hero__video-toggle {
    right: 8px;
    bottom: 8px;
  }
  .hero__statement-part {
    left: calc(20 * var(--hero-unit));
    top: calc(74 * var(--hero-unit));
    font-size: calc(30 * var(--hero-unit));
  }
  .hero__statement-part--second {
    left: auto;
    right: calc(20 * var(--hero-unit));
    top: calc(672 * var(--hero-unit));
    text-align: right;
  }
  .hero__logo-small {
    left: 16px;
    top: 8px;
    width: 112px;
  }
  .hero__social {
    right: 12px;
    top: 8px;
    gap: 6px;
  }
  .hero__social .button {
    padding: 0 14px;
    font-size: 13px;
  }

  /* With motion the hero is one screen taller and its frame sticks to the top for that screen. Past --burgundy-after main.js
     sets .is-burgundy and the burgundy screen plays as a short timed sequence: the side cards tuck in, the burgundy fades over the
     whole hero (also any strip below the frame when an in-app browser's bars hide), the film card grows, the lines come in. */
  .has-motion .hero {
    height: calc(var(--large-viewport-height) + var(--hero-hold));
    overflow: visible;
  }
  .has-motion .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--burgundy);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
  }
  .has-motion .hero__frame {
    position: sticky;
    top: 0;
    height: var(--large-viewport-height);
    overflow: hidden;
  }
  .has-motion .hero__trigger {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: var(--burgundy-after);
    visibility: hidden;
  }
  .has-motion .hero__rect {
    display: none;
  }
  .has-motion .hero__logo,
  .has-motion .hero__logo-small {
    transition: opacity 0.3s var(--ease-out);
  }
  .has-motion .hero__statement-part {
    transform: translateY(calc(-40 * var(--hero-unit)));
    transition:
      opacity 0.35s var(--ease-out),
      transform 0.35s var(--ease-out);
  }
  .has-motion .hero__statement-part--second {
    transform: translateY(calc(var(--statement-rise) * var(--hero-unit)));
  }

  .hero.is-burgundy::before {
    opacity: 1;
    transition-delay: 0.15s;
  }
  .hero.is-burgundy .hero__logo {
    opacity: 0;
    transition-delay: 0.15s;
  }
  .hero.is-burgundy .hero__photo {
    opacity: 0;
    transform: scale(var(--side-scale));
    transition:
      transform 0.3s var(--ease-out),
      opacity 0.1s linear 0.25s;
  }
  /* --grow-x, --grow-y and --grow-scale come from main.js: the largest card that fits between the two lines. */
  .hero.is-burgundy .hero__card {
    transform: translate(var(--grow-x), var(--grow-y)) scale(var(--grow-scale));
    transition: transform 0.55s var(--ease-out) 0.3s;
  }
  .hero.is-burgundy .hero__statement-part {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--statement-first-at) * 1s);
  }
  .hero.is-burgundy .hero__statement-part--second {
    transition-delay: calc(var(--statement-second-at) * 1s);
  }
  .hero.is-burgundy .hero__logo-small {
    opacity: 1;
    transition-delay: calc(var(--small-logo-at) * 1s);
  }
}

.edition-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--viewport-height) - var(--bar-height));
  z-index: var(--hero-layer-bar);
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-height);
  padding: 0 24px 0 64px;
  border-top: 1.5px solid var(--burgundy);
  background: var(--paper);
  color: var(--burgundy);
  transition:
    transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.edition-bar:not(.is-shown) {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.edition-bar__thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.edition-bar__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.edition-bar__title {
  font: 600 16px/1.3 var(--font-text);
}
.edition-bar__meta {
  font: 400 12px/1.3 var(--font-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edition-bar__countdown {
  margin-left: auto;
  font: var(--display-weight) 24px/1 var(--font-display);
  letter-spacing: var(--display-tracking);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.edition-bar__cta {
  flex: none;
}

/* Below 1024px the bar has no room for the date and place next to the countdown and the button. */
@media (max-width: 1023px) {
  .edition-bar__meta.only-desktop {
    display: none;
  }
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .edition-bar {
    gap: 10px;
    padding: 0 12px 0 14px;
  }
  .edition-bar__thumb {
    width: 44px;
    height: 44px;
  }
  .edition-bar__title {
    font-size: 14px;
  }
  .edition-bar__meta--countdown {
    text-transform: none;
  }
  .edition-bar__cta {
    margin-left: auto;
    padding: 0 16px;
    font-size: 14px;
  }
}

.statement-band {
  padding: var(--section-space) var(--page-padding);
  background: var(--burgundy);
  color: var(--cream);
}
.statement-band p {
  max-width: var(--content-max-width);
  margin: 0 auto;
  font: var(--display-weight) clamp(32px, 4.444vw, 76px)/1.05 var(--font-display);
  letter-spacing: var(--display-tracking);
}
.statement-band span {
  display: block;
}
.statement-band span + span {
  margin-top: 0.3em;
  color: var(--blush);
}
.has-motion .statement-band {
  display: none;
}

/* Previous editions: three rows of photos from edge to edge, each a third of the screen height, framed by burgundy gaps */

.gallery {
  --gap: 6px;
  --radius: 6px;
  --design-row: 292;
  --gallery-unit: calc((var(--viewport-height) - 4 * var(--gap)) / 3 / var(--design-row));
  --row-height: calc(var(--design-row) * var(--gallery-unit));
  position: relative;
  height: var(--viewport-height);
  overflow: hidden;
  overflow-anchor: none;
  background: var(--burgundy);
}
.has-motion .gallery {
  height: var(--large-viewport-height);
}

.gallery__row {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--gap) + var(--row-index) * (var(--row-height) + var(--gap)));
  height: var(--row-height);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--blush) transparent;
}
.gallery__row:focus-visible {
  outline: 3px solid var(--ivory);
  outline-offset: -3px;
}
.has-motion .gallery__row {
  overflow: hidden;
  overflow: clip;
}

.gallery__strip {
  display: flex;
  gap: var(--gap);
  width: max-content;
  height: 100%;
  padding: 0 var(--gap);
}

/* The <picture> around each photo adds no box, so the photo stays a flex item of the strip; its sources would add gaps. */
.gallery picture {
  display: contents;
}
.gallery source {
  display: none;
}
/* A photo still waiting for main.js to hand it its file stays a blank tile, not alt text with a broken-image icon
   (content covers Chromium, color covers WebKit). */
@media (scripting: enabled) {
  .gallery img:not([src]) {
    color: transparent;
    content: linear-gradient(transparent, transparent);
  }
}

.gallery__img {
  flex: none;
  width: calc(var(--tile-ratio) * var(--row-height));
  height: 100%;
  border-radius: var(--radius);
  background: var(--paper);
  object-fit: cover;
}

.gallery__tile {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(12 * var(--gallery-unit));
  width: calc(var(--tile-ratio) * var(--row-height));
  height: 100%;
  padding: calc(26 * var(--gallery-unit));
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--burgundy);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(var(--burgundy-rgb), 0.14);
}
.gallery__tile-big {
  font: var(--display-weight) calc(116 * var(--gallery-unit))/0.9 var(--font-display);
  letter-spacing: var(--display-tracking);
}
.gallery__tile-text {
  max-width: 13em;
  font: 500 clamp(15px, calc(20 * var(--gallery-unit)), 22px)/1.35 var(--font-text);
}
.gallery__tile--link .gallery__tile-big {
  transition: transform 0.5s var(--ease-spring);
}
.gallery__tile--link:hover {
  background: var(--paper);
}
.gallery__tile--link:hover .gallery__tile-big {
  transform: translateX(8px);
}
.gallery__tile--link:active .gallery__tile-big {
  transform: translateX(8px) scale(0.98);
}
.gallery__tile--link:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: -9px;
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .gallery {
    --gap: 4px;
    --radius: 4px;
    --design-row: 248;
  }
  /* Not pinned on phones, so the section is exactly as tall as its rows. */
  .has-motion .gallery {
    height: var(--viewport-height);
  }
  /* Wide tiles never get wider than the phone screen. */
  .gallery__tile {
    width: min(calc(var(--tile-ratio) * var(--row-height)), calc(100vw - 2 * var(--gap)));
    padding: 16px;
  }
  .gallery__tile-big {
    font-size: min(calc(96 * var(--gallery-unit)), 22vw);
  }
  .gallery__tile-text {
    font-size: 15px;
  }
}

/* Current edition: a full-screen invitation over a photo; a dark neutral fade sits only under the copy */

.edition {
  --focus: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--viewport-height);
  overflow: clip;
  background: var(--night);
  color: var(--cream);
  isolation: isolate;
}

.edition__photo {
  position: absolute;
  inset: 0;
  z-index: var(--layer-behind);
}
.edition__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
/* A light shade in the bottom third only; the top two thirds of the photo stay untouched. */
.edition__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--night-shade-rgb), 0.5) 0%, rgba(var(--night-shade-rgb), 0.22) 18%, rgba(var(--night-shade-rgb), 0) 33.333%);
}

.edition__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--content-max-width) + 2 * var(--page-padding));
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.edition__main {
  display: grid;
  grid-template-columns: auto minmax(300px, 420px);
  justify-content: space-between;
  align-items: end;
  column-gap: 48px;
  margin-top: auto;
  padding: 120px 0 56px;
}

/* Large text needs 3:1, not 4.5:1, so the title gets a lighter shade than the other copy blocks. */
.edition__title {
  --shade-opacity: 0.4;
  position: relative;
  width: fit-content;
  font: var(--display-weight) clamp(36px, 4.167vw, 64px)/1.05 var(--font-display);
  letter-spacing: var(--display-tracking);
}

/* A soft shade right behind each copy block keeps the text readable over bright spots without darkening the rest of the photo. */
.edition__lead .edition__text,
.edition__note,
.edition__side {
  --shade-opacity: 0.62;
  position: relative;
}
.edition__title::before,
.edition__lead .edition__text::before,
.edition__note::before,
.edition__side::before {
  content: '';
  position: absolute;
  inset: -32px -40px;
  z-index: var(--layer-behind);
  border-radius: 48px;
  background: rgba(var(--night-shade-rgb), var(--shade-opacity));
  filter: blur(28px);
  pointer-events: none;
}
/* Without a countdown the title itself carries the screen. */
.edition:not([data-state='before']) .edition__title {
  font-size: clamp(48px, min(6.25vw, calc(var(--viewport-height) * 0.11)), 112px);
  line-height: 1;
}
.edition__lead .edition__text {
  margin-top: 18px;
}

/* Fraunces has no tabular figures, so every box is as wide as "00", its widest pair, and never changes width. */
.countdown {
  --digit-size: clamp(64px, min(7.222vw, calc(var(--viewport-height) * 0.13)), 124px);
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: calc(var(--digit-size) * 0.16);
  margin-top: 22px;
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--digit-size) * 1.65);
  padding: calc(var(--digit-size) * 0.14) calc(var(--digit-size) * 0.16) calc(var(--digit-size) * 0.16);
  border-radius: calc(var(--digit-size) * 0.2);
  background: var(--ivory);
  color: var(--burgundy);
  box-shadow:
    0 1px 2px rgba(var(--night-shade-rgb), 0.3),
    0 24px 40px -24px rgba(var(--night-shade-rgb), 0.8);
}
.countdown__num {
  display: flex;
  overflow: hidden;
  font: var(--display-weight) var(--digit-size)/1.1 var(--font-display);
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown__num > span {
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .countdown__num > span {
    animation: digit-in 0.5s var(--ease-out) both;
  }
}
@keyframes digit-in {
  from {
    transform: translateY(70%);
    opacity: 0;
  }
}
.countdown__unit {
  color: var(--brick);
  font: 500 15px/1.3 var(--font-text);
}

.edition__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.edition__text {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.55;
}
.edition__text a,
.signup-form__consent a,
.legal a {
  text-underline-offset: 2px;
}
.edition__text a:hover,
.signup-form__consent a:hover,
.legal a:hover {
  text-decoration-thickness: 2px;
}
.edition__text a:active,
.signup-form__consent a:active,
.legal a:active {
  opacity: 0.8;
}

.edition__note {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'label label'
    'input submit'
    'consent consent'
    'status status';
  column-gap: 8px;
  width: 100%;
  margin-top: 20px;
}
.signup-form__label {
  grid-area: label;
  font: 500 14px/1.5 var(--font-text);
}
.signup-form__input {
  grid-area: input;
  min-width: 0;
  height: 52px;
  margin-top: 6px;
  padding: 0 20px;
  border: 1.5px solid var(--ivory);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--burgundy);
  font: 400 16px/1 var(--font-text);
  -webkit-appearance: none;
  appearance: none;
}
.signup-form__input::placeholder {
  color: var(--brick);
  opacity: 1;
}
.signup-form__input:hover {
  box-shadow: 0 0 0 4px rgba(var(--ivory-rgb), 0.2);
}
.signup-form__input:focus-visible {
  outline-offset: 2px;
}
.signup-form__input[aria-invalid='true'] {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px var(--blush);
}
.signup-form__submit {
  grid-area: submit;
  height: 52px;
  margin-top: 6px;
  padding: 0 24px;
  border: 1.5px solid var(--ivory);
  background: var(--burgundy);
  color: var(--cream);
  font-size: 16px;
}
.signup-form__submit:hover {
  background: var(--brick);
}
.signup-form__consent {
  grid-area: consent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.signup-form__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--cream);
  cursor: pointer;
}
.signup-form__consent:hover input {
  box-shadow: 0 0 0 4px rgba(var(--ivory-rgb), 0.2);
}
.signup-form__consent input:focus-visible {
  outline-offset: 2px;
}
.signup-form__consent input[aria-invalid='true'] {
  outline: 2px solid var(--blush);
  outline-offset: 2px;
}
.signup-form__status {
  grid-area: status;
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}
.signup-form__status:empty {
  display: none;
}
.signup-form__status::before {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  font: 700 13px/1 var(--font-text);
}
.signup-form__status[data-tone='error'] {
  font-weight: 500;
}
.signup-form__status[data-tone='error']::before {
  content: '!';
}
.signup-form__status[data-tone='success']::before {
  content: '✓';
}

/* Up to wide tablets the invitation stacks. */
@media (max-width: 1199px) {
  .edition__main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
  .edition__side {
    max-width: 480px;
  }
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  /* The photo covers only the first screen; below it the section continues in the same dark tone. */
  .edition__photo {
    bottom: auto;
    height: var(--viewport-height);
  }
  .edition__photo::after {
    background: linear-gradient(0deg, var(--night) 0%, rgba(var(--night-rgb), 0.6) 14%, rgba(var(--night-rgb), 0) 33.333%);
  }
  /* Keeps the face in the photo clear: the copy starts below it and the form may run past the fold. */
  .edition__main {
    row-gap: 22px;
    padding: calc(var(--viewport-height) * 0.42) 0 40px;
  }
  .edition__title {
    font-size: 32px;
  }
  .edition:not([data-state='before']) .edition__title {
    font-size: min(11vw, 48px);
  }
  .countdown {
    --digit-size: min(12.4vw, 64px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }
  .countdown__cell {
    min-width: 0;
    padding-inline: 0;
    border-radius: 14px;
  }
  .countdown__unit {
    font-size: 13px;
  }
  .edition__text {
    font-size: 16px;
  }
  .signup-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'label'
      'input'
      'consent'
      'submit'
      'status';
  }
  .signup-form__input {
    padding: 0 18px;
  }
  .signup-form__submit {
    margin-top: 12px;
  }
}

/* Program: each card sticks to the screen and the next one slides over it; the heading and the list of points stay put */

/* Set on main because the partners section below also needs it, to start a short gap under the last card. */
main {
  --program-card-height: min(690px, calc(var(--viewport-height) * 0.767));
}

.program {
  --focus: var(--burgundy);
  padding: 0 var(--page-padding);
  border-top: 1px solid rgba(var(--burgundy-rgb), 0.12);
  background: var(--paper);
}

.program__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 466px minmax(0, 1fr);
  column-gap: 32px;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.program__head,
.program__toc {
  position: sticky;
  top: 0;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--viewport-height);
}
.program__head {
  grid-column: 1;
}

.program__facts {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font: 500 18px/1.5 var(--font-text);
}
.program__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
/* Centered on the first line of text, however many lines the fact wraps to. */
.program__fact-icon {
  flex: none;
  margin-top: calc((1.5em - 20px) / 2);
  color: var(--burgundy);
}

.program__toc {
  grid-column: 3;
  justify-self: end;
  width: min(100%, 320px);
}
.program__toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.program__toc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  color: var(--burgundy);
  font: 500 16px/1.3 var(--font-text);
  text-decoration: none;
  transition: var(--transition-spring);
}
.program__toc-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font: var(--display-weight) 18px/1 var(--font-display);
  font-variant-numeric: tabular-nums lining-nums;
}
.program__toc-link:hover {
  background: rgba(var(--burgundy-rgb), 0.07);
  transform: translateX(-4px);
}
.program__toc-link:active {
  transform: scale(0.98);
}
.program__toc-link:focus-visible {
  outline-offset: 2px;
}
.program__toc-link[aria-current='true'] {
  background: var(--burgundy);
  color: var(--cream);
}
.program__toc-link[aria-current='true'] .program__toc-num {
  border-color: rgba(var(--cream-rgb), 0.6);
}

.program__list {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.program__item {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--viewport-height);
}
.program__item:focus {
  outline: none;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: var(--program-card-height);
  aspect-ratio: 450 / 690;
  max-width: 100%;
  padding: 18px;
  border-radius: 20px;
  overflow: clip;
  background: var(--burgundy-dark);
  box-shadow: var(--shadow-float);
  isolation: isolate;
  transform: rotate(var(--tilt, 0deg));
}
/* The tilts repeat every five cards; the fifth one stands straight. */
.program__item:nth-child(5n + 1) .program-card {
  --tilt: 1deg;
}
.program__item:nth-child(5n + 2) .program-card {
  --tilt: -2deg;
}
.program__item:nth-child(5n + 3) .program-card {
  --tilt: -1deg;
}
.program__item:nth-child(5n + 4) .program-card {
  --tilt: 3deg;
}
.program-card__img {
  position: absolute;
  inset: 0;
  z-index: var(--layer-behind);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Number and title sit on a solid label, never on the bare photo; nothing darkens the photo around them. */
.program-card__head,
.program-card__text {
  border-radius: 12px;
  background: var(--cream);
  color: var(--burgundy);
}
.program-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 10px 18px 10px 14px;
}
.program-card__num {
  flex: none;
  font: var(--display-weight) 60px/1 var(--font-display);
  font-variant-numeric: lining-nums;
  letter-spacing: var(--display-tracking);
}
.program-card__title {
  margin: 0;
  font: var(--display-weight) 24px/1.15 var(--font-display);
  letter-spacing: -0.01em;
  /* An Instagram handle is one long word; on a narrow card it breaks instead of running out of the label. */
  overflow-wrap: anywhere;
}
.program-card__text {
  margin-top: auto;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
}

/* Up to wide tablets the heading and its list of points move above the card stack. */
@media (max-width: 1199px) {
  .program {
    padding-top: var(--section-space);
  }
  .program__inner {
    display: block;
  }
  .program__head {
    position: static;
    height: auto;
    align-items: center;
    text-align: center;
  }
  /* The list sits centered under the heading, its lines start at one edge so the icons form a column. */
  .program__facts {
    justify-items: start;
    margin-top: 18px;
    text-align: left;
  }
  /* The cards follow right below, so the list would only repeat them. */
  .program__toc {
    display: none;
  }
  /* One card per screen, as wide as the page allows, short enough to sit whole inside the screen while pinned. */
  main {
    --program-card-height: min(calc(min(100vw - 2 * var(--page-padding), 466px) * 690 / 450), calc(var(--viewport-height) - 48px));
  }
  .program-card {
    width: min(100%, 466px);
    height: var(--program-card-height);
    padding: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow-raised);
  }
  .program-card__head {
    gap: 12px;
    padding: 8px 14px 8px 12px;
  }
  .program-card__num {
    font-size: 48px;
  }
  .program-card__title {
    font-size: 20px;
  }
  .program-card__text {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .program__facts {
    font-size: 17px;
  }
}

/* About */

.about {
  --focus: var(--burgundy);
  padding: var(--section-space) var(--page-padding);
  background: var(--cream);
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6.667vw, 128px);
  max-width: 1312px;
  margin: 0 auto;
}
.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-raised);
}
.about__text {
  max-width: 30em;
  margin-top: 28px;
  font: 400 clamp(19px, 1.806vw, 30px)/1.45 var(--font-text);
}
.about__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-size: 16px;
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .about__photo {
    max-width: 420px;
  }
  .about__text {
    margin-top: 20px;
  }
}

/* Partners: the main partner in its own block, then an endless row of logos; hovering or focusing one shows what the partner brings */

/* The section carries on the program on the same paper. The last card sits centered in a full screen, so the section is
   pulled up into that screen to start a short gap below the card, or padded down where the card leaves less room than
   the gap. Relative keeps its links above the empty sticky boxes it overlaps. */
.partners {
  --focus: var(--burgundy);
  --stack-gap: clamp(40px, 3.889vw, 56px);
  --slack: calc((var(--viewport-height) - var(--program-card-height)) / 2 - var(--stack-gap));
  position: relative;
  margin-top: min(0px, -1 * var(--slack));
  padding: max(0px, -1 * var(--slack)) 0 var(--section-space);
}
/* The paper is painted below the page content, so the shadow of the last card is never cut off by it. */
/* Until the script fills in the cards there is no stack to tuck under, so the section stays in place. */
.program:has(.program__list:empty) + .partners {
  margin-top: 0;
}
.partners::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--layer-behind);
  background: var(--paper);
}
.partners__head {
  max-width: calc(var(--content-max-width) + 2 * var(--page-padding));
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.partners__lead {
  max-width: 400px;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.5;
}

.main-partner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.778vw, 40px);
  width: fit-content;
  max-width: 100%;
  margin-top: 36px;
  padding: 16px clamp(20px, 2.778vw, 40px) 16px 16px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-raised);
}
.main-partner__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 22px 28px;
  border-radius: 16px;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(var(--burgundy-rgb), 0.12);
  transition: var(--transition-spring);
}
.main-partner__logo[href]:hover {
  transform: translateY(-3px);
}
.main-partner__logo[href]:active {
  transform: scale(0.97);
}
.main-partner .partner__mark img {
  height: 64px;
}
.main-partner.partner--tall .partner__mark img {
  height: 104px;
}
.main-partner__text {
  max-width: 24em;
  font-size: 18px;
  line-height: 1.5;
}
.main-partner__text strong {
  display: block;
  font-weight: 600;
}

/* hidden, not clip: the browser must still be able to scroll a focused logo into view */
.marquee {
  display: flex;
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  flex: none;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
/* Keyboard focus parks the row at its start, so the browser can scroll the focused logo into view. */
.marquee:has(:focus-visible) .marquee__track {
  animation: none;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.partner {
  position: relative;
  flex: none;
  display: flex;
  height: 196px;
}
.partner:hover,
.partner:focus-within {
  z-index: 1;
}
.partner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 clamp(28px, 3.333vw, 56px);
  outline-offset: -6px;
}
.partner__mark {
  display: block;
  background: var(--burgundy);
  -webkit-mask: var(--logo-image) center / contain no-repeat;
  mask: var(--logo-image) center / contain no-repeat;
  transition: var(--transition-spring);
}
.partner__mark img {
  display: block;
  width: auto;
  height: 40px;
  visibility: hidden;
}
.partner--tall .partner__mark img {
  height: 66px;
}
.partner__mark--text {
  background: none;
  -webkit-mask: none;
  mask: none;
  color: var(--burgundy);
  font: var(--display-weight) 30px/1 var(--font-display);
  white-space: nowrap;
}
.partner:hover .partner__mark,
.partner__link:focus-visible .partner__mark {
  transform: translateY(-6px);
}
.partner__link[href]:active .partner__mark {
  transform: translateY(-6px) scale(0.97);
}
.partner__role {
  position: absolute;
  left: 50%;
  top: calc(50% + 44px);
  width: max-content;
  max-width: 30ch;
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--burgundy);
  color: var(--cream);
  font: 500 13px/1.3 var(--font-text);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.4s var(--ease-spring);
}
.partner:hover .partner__role,
.partner__link:focus-visible + .partner__role {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Without hover, and when nothing moves, every logo carries its label underneath. */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .partner {
    display: grid;
    grid-template-rows: 66px auto;
    align-content: start;
    justify-items: center;
    row-gap: 12px;
    height: auto;
    padding: 24px clamp(28px, 3.333vw, 56px) 28px;
  }
  .partner__link {
    padding: 0 8px;
  }
  .partner__role {
    position: static;
    max-width: 22ch;
    padding: 0;
    background: none;
    color: var(--burgundy);
    opacity: 1;
    transform: none;
  }
  .partner:hover .partner__mark,
  .partner__link:focus-visible .partner__mark {
    transform: none;
  }
}

/* Static row the visitor scrolls by hand. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }
  .marquee__track {
    animation: none;
  }
  .marquee__track--copy {
    display: none;
  }
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .partners__lead {
    margin-top: 14px;
    font-size: 17px;
  }
  .marquee {
    margin-top: 24px;
  }
  .main-partner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin-top: 28px;
    padding: 12px 12px 18px;
  }
  .main-partner__logo {
    align-self: stretch;
    padding: 18px;
  }
  .main-partner .partner__mark img {
    height: 48px;
  }
  .main-partner.partner--tall .partner__mark img {
    height: 80px;
  }
  .main-partner__text {
    padding: 0 6px;
    font-size: 16px;
  }
  .partner {
    padding-inline: 0;
  }
  .partner__link {
    padding-inline: 24px;
  }
  .partner__mark img {
    height: 32px;
  }
  .partner--tall .partner__mark img {
    height: 54px;
  }
}

/* Contact: a chat drawn over a photo; --chat-unit scales it with the photo */

.contact {
  --focus: var(--cream);
  padding: var(--section-space) var(--page-padding);
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy) 55%, var(--burgundy-dark) 100%);
  color: var(--cream);
}
.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1312px;
  margin: 0 auto;
  /* Room for the brand avatar that sticks out past the photo. */
  padding-right: 40px;
}
.contact__copy {
  flex: 0 1 600px;
}
.contact__title {
  font: var(--display-weight) min(76px, 5.278vw)/1.02 var(--font-display);
  letter-spacing: var(--display-tracking);
  white-space: nowrap;
}
.contact__lead {
  max-width: 460px;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.5;
}
.contact__buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.contact__button {
  height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font: 600 16px/1 var(--font-text);
}
.contact__button:hover {
  background: var(--cream);
  color: var(--burgundy);
}
.contact__button--filled {
  background: var(--cream);
  color: var(--burgundy);
}
.contact__button--filled:hover {
  background: var(--ivory);
}

.chat {
  --chat-unit: min(1px, 0.06944vw);
  position: relative;
  flex: none;
  width: min(480px, 33.333vw);
}
.chat__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: var(--burgundy-deep);
  object-fit: cover;
  object-position: 50% 100%;
  box-shadow: 0 28px 48px -24px rgba(var(--burgundy-deep-rgb), 0.7);
}
/* The thread is a window a little wider than the photo, so avatars can sit past its edges; it ends at the photo's top edge. */
.chat__thread {
  --out-left: calc(96 * var(--chat-unit));
  --out-right: calc(40 * var(--chat-unit));
  --thread-padding: calc(16 * var(--chat-unit));
  position: absolute;
  top: 3%;
  bottom: calc(4.4% - var(--thread-padding));
  left: calc(-1 * (var(--out-left) + var(--thread-padding)));
  right: calc(-1 * (var(--out-right) + var(--thread-padding)));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--thread-padding) var(--thread-padding);
  overflow: clip;
}
.chat__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(7 * var(--chat-unit));
}
/* Without the animation the chat shows its final state: the newest five messages (CHAT_VISIBLE_ROWS in main.js). */
html:not(.has-motion) .chat__row:nth-last-child(n + 6) {
  visibility: hidden;
}
.chat__row {
  --chat-shadow: 0 12px 24px -12px rgba(var(--burgundy-deep-rgb), 0.6);
  display: flex;
  align-items: flex-end;
  gap: calc(10 * var(--chat-unit));
}
.chat__row--friend {
  align-self: flex-start;
  transform-origin: 0 100%;
}
.chat__row--brand {
  align-self: flex-end;
  transform-origin: 100% 100%;
}
.chat__avatar {
  flex: none;
  width: calc(40 * var(--chat-unit));
  height: calc(40 * var(--chat-unit));
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--cream);
  object-fit: cover;
  box-shadow: var(--chat-shadow);
}
.chat__bubble,
.chat__reply {
  width: fit-content;
  max-width: calc(330 * var(--chat-unit));
  margin: 0;
  font-size: calc(16 * var(--chat-unit));
  line-height: calc(21 * var(--chat-unit));
  box-shadow: var(--chat-shadow);
}
.chat__bubble {
  padding: calc(9 * var(--chat-unit)) calc(15 * var(--chat-unit));
  border-radius: calc(18 * var(--chat-unit)) calc(18 * var(--chat-unit)) calc(18 * var(--chat-unit)) calc(5 * var(--chat-unit));
  background: var(--cream);
  color: var(--burgundy);
}
/* Typing dots and the reply share one cell, so the reply replaces the dots in place. */
.chat__slot {
  display: grid;
  justify-items: end;
  align-items: end;
}
.chat__slot > * {
  grid-area: 1 / 1;
}
.chat__reply,
.chat__typing {
  border: 1.5px solid var(--cream);
  border-radius: calc(18 * var(--chat-unit)) calc(18 * var(--chat-unit)) calc(5 * var(--chat-unit)) calc(18 * var(--chat-unit));
  background: var(--burgundy);
}
.chat__reply {
  display: block;
  padding: calc(7.5 * var(--chat-unit)) calc(13.5 * var(--chat-unit));
  color: var(--cream);
  text-decoration: none;
  transform-origin: 100% 100%;
  transition: var(--transition-spring);
}
.chat__reply:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}
.chat__reply:active {
  transform: scale(0.98);
}
.chat__link-text {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Only the animation shows the typing bubble; the static page is the finished chat. */
.chat__typing {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--chat-unit));
  height: calc(39 * var(--chat-unit));
  padding: 0 calc(13.5 * var(--chat-unit));
  box-shadow: var(--chat-shadow);
  visibility: hidden;
  opacity: 0;
}
.chat__typing > span {
  width: calc(7 * var(--chat-unit));
  height: calc(7 * var(--chat-unit));
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.35;
}

/* Up to wide tablets the chat moves under the copy. */
@media (max-width: 1199px) {
  .contact__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-right: 0;
  }
  .contact__copy {
    flex: none;
    width: 100%;
  }
  .contact__title {
    font-size: 60px;
  }
  /* Stacked, the avatars line up with the copy and the chat keeps its full size. */
  .chat {
    --chat-unit: 1px;
    width: 480px;
    margin: 56px 0 0 96px;
  }
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .contact {
    padding: 64px var(--page-padding) 80px;
  }
  .contact__title {
    font-size: 34px;
  }
  .contact__lead {
    margin-top: 14px;
    font-size: 17px;
  }
  .contact__buttons {
    margin-top: 24px;
  }
  .contact__button {
    flex: 1;
    height: 48px;
  }
  .chat {
    --chat-unit: min(1px, calc((100vw - 2 * var(--page-padding)) / 350));
    width: min(100%, 480px);
    margin: 40px 0 0;
  }
  .chat__photo {
    border-radius: 16px;
    box-shadow: 0 24px 40px -24px rgba(var(--burgundy-deep-rgb), 0.7);
  }
  .chat__row {
    --chat-shadow: 0 10px 20px -10px rgba(var(--burgundy-deep-rgb), 0.6);
    gap: calc(8 * var(--chat-unit));
  }
  .chat__thread {
    --out-left: calc(12 * var(--chat-unit));
    --out-right: calc(12 * var(--chat-unit));
    --thread-padding: calc(8 * var(--chat-unit));
    bottom: calc(3.8% - var(--thread-padding));
  }
  .chat__list {
    gap: calc(6 * var(--chat-unit));
  }
  .chat__avatar {
    width: calc(32 * var(--chat-unit));
    height: calc(32 * var(--chat-unit));
  }
  .chat__bubble,
  .chat__reply {
    max-width: calc(264 * var(--chat-unit));
    font-size: calc(14 * var(--chat-unit));
    line-height: calc(18 * var(--chat-unit));
  }
  .chat__bubble {
    padding: calc(7 * var(--chat-unit)) calc(12 * var(--chat-unit));
    border-radius: calc(15 * var(--chat-unit)) calc(15 * var(--chat-unit)) calc(15 * var(--chat-unit)) calc(4 * var(--chat-unit));
  }
  .chat__reply,
  .chat__typing {
    border-radius: calc(15 * var(--chat-unit)) calc(15 * var(--chat-unit)) calc(4 * var(--chat-unit)) calc(15 * var(--chat-unit));
  }
  .chat__reply {
    padding: calc(5.5 * var(--chat-unit)) calc(10.5 * var(--chat-unit));
  }
  .chat__typing {
    gap: calc(5 * var(--chat-unit));
    height: calc(35 * var(--chat-unit));
    padding: 0 calc(10.5 * var(--chat-unit));
  }
  .chat__typing > span {
    width: calc(6 * var(--chat-unit));
    height: calc(6 * var(--chat-unit));
  }
}

/* Footer */

.footer {
  --focus: var(--cream);
  padding: 72px var(--page-padding) 28px;
  background: var(--burgundy-dark);
  color: var(--cream);
}
.footer__inner {
  display: grid;
  gap: 48px;
  max-width: 1312px;
  margin: 0 auto;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.footer__logo {
  width: clamp(200px, 22vw, 320px);
  height: auto;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--cream-rgb), 0.2);
  font-size: 14px;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.footer__link:hover {
  color: var(--blush);
}
.footer__link:active {
  opacity: 0.7;
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .footer {
    padding-top: 56px;
  }
  .footer__inner {
    gap: 36px;
  }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Privacy policy page */

.legal-header {
  --focus: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.legal-header__home {
  display: block;
  border-radius: 8px;
  transition: var(--transition-spring);
}
.legal-header__home:hover {
  transform: rotate(-2deg);
}
.legal-header__home:active {
  transform: scale(0.97);
}
.legal-header__home img {
  width: clamp(140px, 22vw, 200px);
  height: auto;
}
.legal {
  --focus: var(--burgundy);
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 20px var(--section-space);
}
.legal__title {
  font: var(--display-weight) clamp(36px, 4.4vw, 64px)/1.05 var(--font-display);
  letter-spacing: var(--display-tracking);
}
.legal__lead {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
}
.legal h2 {
  margin-top: 44px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 700 19px/1.35 var(--font-text);
}
.legal p {
  max-width: 42em;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
}

/* Signup shortcut in the corner: a drawn arrow, the countdown and the button, readable on cream and on burgundy */

.corner-cta {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: var(--layer-corner);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.5s var(--ease-spring);
}
.corner-cta:not(.is-shown) {
  opacity: 0;
  transform: translateY(16px);
}
.corner-cta__arrow {
  width: 48px;
  height: 72px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.corner-cta__arrow path:first-child {
  stroke: var(--ivory);
  stroke-width: 8;
}
.corner-cta__arrow path:last-child {
  stroke: var(--burgundy);
  stroke-width: 3.2;
}
@media (prefers-reduced-motion: no-preference) {
  .corner-cta__arrow {
    animation: arrow-bob 1.6s ease-in-out infinite;
  }
}
@keyframes arrow-bob {
  50% {
    transform: translateY(7px);
  }
}
.corner-cta__count {
  padding: 9px 16px;
  border: 1.5px solid var(--ivory);
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font: 600 15px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow:
    0 1px 2px rgba(var(--burgundy-deep-rgb), 0.25),
    0 14px 28px -16px rgba(var(--burgundy-deep-rgb), 0.6);
}
.corner-cta__count:empty {
  display: none;
}
.corner-cta__button {
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--burgundy);
  background: var(--ivory);
  color: var(--burgundy);
  font: 700 16px/1 var(--font-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: auto;
  box-shadow:
    0 1px 2px rgba(var(--burgundy-deep-rgb), 0.25),
    0 18px 32px -16px rgba(var(--burgundy-deep-rgb), 0.55);
}
.corner-cta__button:hover {
  background: var(--cream);
  transform: translateY(-2px) rotate(-2deg);
}
.corner-cta__button:active {
  transform: scale(0.96);
}
.corner-cta__button:focus-visible {
  box-shadow: 0 0 0 7px var(--ivory);
}

@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .corner-cta {
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 4px;
  }
  .corner-cta__arrow {
    width: 24px;
    height: 36px;
  }
  .corner-cta__count {
    padding: 6px 12px;
    font-size: 13px;
  }
  .corner-cta__button {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }
}

/* Sparkles trail behind the pointer; main.js only creates the canvas for a mouse without reduced motion. */
.sparkles {
  position: fixed;
  inset: 0;
  z-index: var(--layer-sparkles);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.00001s !important;
    transition-delay: 0s !important;
  }
}
