/* House of Associates — shared site styles (homepage + events page).
   Moved out of index.html so every page uses the same tokens, nav, footer and motion. */

@font-face {
  font-family: "Arial Black HOA";
  src: local("Arial Black"), local("ArialBlack"), url("fonts/ariblk.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #7f3f95;
  --purple-dark: #522861;
  --lilac: #d8a9e4;
  --ink: #1c1420;
  --white: #ffffff;
  --gutter: 64px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: "Arial Black HOA", "Arial Black", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero (Figma node 10:194, 1440 × 820) ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 32px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter) 80px;
  overflow: hidden;
  color: var(--purple);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Darkening over the hero photo so the purple title stays readable on brighter photos */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(12, 6, 16, .45) 0%, rgba(12, 6, 16, .2) 30%, rgba(12, 6, 16, .55) 62%, rgba(12, 6, 16, .88) 100%);
  pointer-events: none;
}

.hero > .hero__title,
.hero > .hero__tagline { position: relative; z-index: 1; }

.hero__title {
  margin: 0;
  max-width: 1200px;
  /* Arial Black runs ~10% wider than Inter: 90px keeps the title on one
     line within the design's 1200px text box at 1440 */
  font-size: clamp(36px, 6.25vw, 90px);
  font-weight: 900;
  line-height: normal;
}

.hero__tagline {
  margin: 0;
  font-size: clamp(16px, 1.667vw, 24px); /* 24px at 1440 */
  font-weight: 500;
  line-height: 1.2;   /* same ratio as the end tagline so the flyer lines up */
  text-transform: uppercase;
}

/* ---------- Nav (Figma node 10:193) ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;                    /* never let the links touch the logo */
  height: 88px;
  padding: 0 var(--gutter);
  color: var(--purple);
}

.nav__logo {
  font-size: 24px;
  font-weight: 900;
  line-height: normal;
  white-space: pre;
  color: inherit;
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-size .35s cubic-bezier(.2, .8, .2, 1);
  /* underline that draws in from the left on hover */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 4px;
}

.nav__links a:hover,
.nav__links a:focus-visible { color: var(--white); background-size: 100% 2px; }

a:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* ---------- Intro (Figma node 10:199, 1440 × 400) ---------- */
.intro {
  display: flex;
  align-items: center;
  min-height: 27.78vw;             /* 400px at 1440; text block vertically centred */
  padding: 27px var(--gutter);
  background: var(--purple);
}

.intro__text {
  width: 100%;
  margin: 0;
  color: var(--purple-dark);
  /* Scales with the viewport (≈69px at 1440, as in Figma) and lines are
     justified edge to edge so the copy fills the section's width.
     4.8vw gives the fullest natural lines (each ≥85% before justifying). */
  font-size: 4.8vw;
  line-height: 1.015;            /* 69px rows at 68px */
  letter-spacing: -0.03em;       /* -2.04px at 68px */
  text-transform: uppercase;
  text-align: justify;
  text-align-last: left;
}

/* Hover per word: grows 68px → 83px in place, neighbours don't move */
.intro__word, .hover-word {
  display: inline-block;
  white-space: nowrap;
  transform-origin: 50% 50%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  cursor: default;
}

.intro__word:hover, .hover-word:hover {
  transform: scale(1.22);
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .intro__word, .hover-word { transition: none; }
}

/* ---------- Welcome / scroll end point (Figma node 87:216, 1440 × 181) ---------- */
.welcome {
  padding: 40px var(--gutter) 64px;
  background: var(--purple);
}

.welcome__text {
  margin: 0;
  color: var(--purple-dark);
  /* As big as possible: the line is 16.69× its font size wide in Arial
     Black, so this fills the content width edge to edge (≈78px at 1440) */
  font-size: calc((100vw - 2 * var(--gutter)) / 16.75);
  line-height: 1.2;                        /* 77px row, as in Figma */
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Event photo (Figma node 322:271, 1440 × 820) ---------- */
.photo-band {
  position: relative;
  aspect-ratio: 1440 / 820;
  overflow: clip;   /* clip (not hidden) so the photo's scroll-linked parallax follows the page */
  background: #000;
}

.photo-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Upcoming events (Figma node 10:208, 1440 × 804) ---------- */
.events {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 120px var(--gutter) 80px;   /* 804px tall at 1440, as in Figma */
  background: var(--purple-dark);
  color: var(--lilac);
}

.events__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.events__title {
  margin: 0;
  font-size: clamp(30px, 4.444vw, 64px);   /* 64px at 1440 */
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.events__all {
  flex-shrink: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.events__all:hover { text-decoration: underline; text-underline-offset: 4px; }

.events__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Event row — Default: dark purple, coloured 2px border */
.event-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  height: 152px;
  padding: 0 0 0 8px;
  border: 2px solid var(--row-border);
  background: var(--purple-dark);
  color: var(--lilac);
  font: inherit;
  text-align: left;
  text-decoration: none;       /* rows are links to their event page */
  cursor: pointer;
  transition: background-color .3s ease;
}

.event-row__dash {
  flex: 0 0 44px;
  height: 4px;
  background: var(--purple);
  transition: background-color .3s ease;
}

.event-row__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 660px;
  min-width: 0;
}

.event-row__meta {
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: pre;
}

.event-row__name {
  font-size: clamp(26px, 3.333vw, 48px);   /* 48px at 1440 */
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-row__arrow { font-family: system-ui, sans-serif; font-size: 30px; line-height: 1; }

/* Hover: blurred dark veil over the row content */
.event-row__veil {
  position: absolute;
  inset: -2px;
  background: rgba(18, 18, 18, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

/* Hover: event poster slides in, sticking up above the row */
.poster {
  position: absolute;
  right: 48px;                  /* Figma left 998 in a 1312 row, minus 2px border */
  bottom: 12px;                 /* Figma top -244, 382 tall, in a 152 row */
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 264px;
  height: 382px;
  padding: 12px;
  background: #eae4ef;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
  color: #121212;
  opacity: 0;
  transform: translate(24px, 26px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.poster__title { font-size: 19px;   /* Figma 23px; 19px so "CHRISTMAS BINGO" fits the 240px poster in Arial Black */ line-height: 1.2; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster__photo { display: block; width: 100%; height: 272px; object-fit: cover; flex-shrink: 0; }
.poster__ticket { display: block; height: 1px; background: var(--purple-dark); flex-shrink: 0; }
.poster__date { margin-top: 0; font-size: 13px; line-height: 1.2; text-transform: uppercase; }
.poster__place { margin-top: -4px; font-size: 11px; line-height: 1.2; color: var(--purple-dark); text-transform: uppercase; }

.event-row:hover,
.event-row:focus-visible { background: #211628; z-index: 3; }
.event-row:hover .event-row__dash,
.event-row:focus-visible .event-row__dash { background: var(--lilac); }
.event-row:hover .event-row__veil,
.event-row:focus-visible .event-row__veil { opacity: 1; }
.event-row:hover .poster,
.event-row:focus-visible .poster {
  opacity: 1;
  /* --tilt / --shift follow the mouse across the row (set by script) */
  transform: translateX(var(--shift, 0px)) rotate(var(--tilt, 0deg));
}
.event-row:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

@media (hover: none) { .poster, .event-row__veil { display: none; } }

/* ---------- Brand activations & partnerships (Figma node 10:220) ---------- */
.business {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 88px var(--gutter);
  background: var(--ink);
  color: var(--lilac);
  overflow-x: clip;   /* clip, not hidden: hidden would break the sticky steps */
}

/* Statement — dark purple words with the same per-word hover as the intro */
.business__statement {
  margin: 0;
  padding: 40px 44px 40px 0;
  color: var(--purple-dark);
  font-size: 4.8vw;               /* ≈69px at 1440 (Figma 68px) */
  line-height: 1.015;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Partners — slow endless horizontal scroll */
.partners { display: flex; flex-direction: column; gap: 16px; }
.partners__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.partners__banner {
  overflow: hidden;
  padding: 30px 0 30px 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
}
.partners__track {
  display: flex;
  gap: 48px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--white);
  font-size: 29px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  animation: partners-scroll 30s linear infinite;
}
.partners__banner:hover .partners__track { animation-play-state: paused; }
@keyframes partners-scroll {
  to { transform: translateX(calc(-50% - 24px)); }   /* one full copy + half a gap */
}

/* How we work */
.steps { display: flex; flex-direction: column; gap: 22px; }
.steps__title {
  margin: 0;
  font-size: clamp(28px, 3.056vw, 44px);   /* 44px at 1440 */
  line-height: 1.2;
  text-transform: uppercase;
}
.steps__list { margin: 0; padding: 0; list-style: none; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 600px) minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  padding: 34px 0 58px;
  border-top: 1px solid #654d6d;
  background: var(--ink);
  overflow: hidden;
}
.step__num  { font-size: clamp(28px, 2.917vw, 42px); line-height: 1.2; }
.step__main { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.step__name {
  margin: 0;
  font-size: var(--step-name);             /* 49px at 1440 */
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.step__tags { margin: 0; font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.step__desc {
  margin: 0;
  color: #d0c3d4;
  font-size: clamp(15px, 1.319vw, 19px);   /* 19px at 1440 */
  line-height: 1.3;
  text-transform: uppercase;
}

/* Sticky stacking on scroll (reference video): each step sticks a little
   lower than the one before, so the next step slides up over the previous
   one's details and leaves its number + title showing. When the list ends
   the whole stack scrolls away together — no extra space is added. */
.steps__list {
  --stack-top: 24px;                                   /* first step's resting spot */
  --stack-step: calc(34px + 1.2 * var(--step-name));   /* top padding + title row  */
  --step-name: clamp(30px, 3.403vw, 49px);
}
.step {
  position: sticky;
  top: calc(var(--stack-top) + var(--i, 0) * var(--stack-step));
}
.step:nth-child(2) { --i: 1; }
.step:nth-child(3) { --i: 2; }
.step:nth-child(4) { --i: 3; }
/* Release the whole stack together: each step gets an invisible bottom
   margin equal to the stack below it (so it unsticks at the same moment as
   the last step); the next step's negative top margin cancels it out, so
   the layout and spacing stay exactly the same. */
.step { margin-bottom: calc((3 - var(--i, 0)) * var(--stack-step)); }
.step + .step { margin-top: calc(-1 * (4 - var(--i, 0)) * var(--stack-step)); }

/* Let's create a room together */
.cta { padding: 0 48px 40px; }   /* no top padding: the section gap (64px) is enough */
.cta__link {
  display: flex;
  flex-direction: column;
  color: var(--lilac);
  font-size: 9.4vw;                /* fits the 1216px box in Arial Black (Figma 148px Inter) */
  line-height: .89;                /* Figma 132px leading on 148px */
  letter-spacing: -0.07em;         /* Figma -10.36px on 148px */
  text-decoration: none;
  text-transform: uppercase;
  transition: color .3s ease;
}
.cta__line { display: block; white-space: nowrap; }
.cta__line--right { text-align: right; }
.cta__arrow { width: .62em; height: .62em; margin-left: .14em; vertical-align: .06em; }
.cta__link:hover, .cta__link:focus-visible { color: #754087; }
.cta__link:focus-visible { outline: 2px solid var(--lilac); outline-offset: 8px; }

@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
  .partners__banner { overflow-x: auto; }
}

/* ---------- Meet the Associates (Figma node 140:247, 1440 × 780) ---------- */
.associates {
  display: grid;
  grid-template-columns: 706fr 734fr;     /* copy 706px | portrait 734px at 1440 */
  min-height: 54.17vw;                    /* 780px at 1440 */
  background: var(--purple);
  color: var(--purple-dark);
}

.associates__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 64px;
}

.associates__title {
  margin: 0;
  font-size: 6.1vw;                       /* ≈88px at 1440: "ASSOCIATES" just fills the 578px column (Figma 90px) */
  font-weight: 900;
  line-height: .94;
  letter-spacing: -0.06em;                /* Figma -5.4px at 90px */
  text-transform: uppercase;
}

.associates__text {
  max-width: 450px;
  margin: 0;
  font-size: clamp(16px, 1.528vw, 22px);  /* 22px at 1440 */
  line-height: 1.45;
  text-transform: uppercase;
}

/* overflow: clip (not hidden) so the photo's scroll-linked pan follows the page */
.associates__photo { position: relative; overflow: clip; background: var(--purple-dark); }
.associates__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Footer (Figma node 10:231, 1440 × 288) ---------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 80px var(--gutter) 48px;
  background: var(--purple-dark);
  color: var(--white);
  text-transform: uppercase;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;                  /* columns drop below the sign line if there isn't room */
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer__sign {
  margin: 0;
  color: var(--lilac);
  font-size: 2.3vw;                 /* ≈33px at 1440: fits beside the columns in Arial Black (Figma 40px Inter) */
  line-height: 1.2;
  white-space: nowrap;
}

.footer__cols { display: flex; gap: 56px; flex-shrink: 0; }
.footer__col  { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.2; }
.footer__label { margin: 0; color: #8c8c8c; font-size: 14px; font-weight: 700; line-height: 1.2; }

.footer__link {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease-out), color .2s ease;
}
.footer__link:hover, .footer__link:focus-visible { color: var(--lilac); background-size: 100% 1px; }

/* Newsletter: looks like plain "YOUR EMAIL  →" text until you use it */
.newsletter { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.newsletter:focus-within { border-bottom-color: var(--lilac); }
.newsletter__input {
  width: 10.5ch;
  padding: 0 0 2px;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  text-transform: uppercase;
  outline: none;
  transition: width .4s var(--ease-out);
}
.newsletter__input::placeholder { color: var(--white); opacity: 1; }
.newsletter__input:focus { width: 22ch; }
.newsletter__input:focus::placeholder { opacity: .4; }
.newsletter__send {
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: 16px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: transform .35s var(--ease-out), color .2s ease;
}
.newsletter__send:hover, .newsletter__send:focus-visible { color: var(--lilac); transform: translateX(4px); }
.newsletter__done { margin: 0; max-width: 22ch; color: var(--lilac); font-size: 14px; }

.footer__legal { margin: 0; color: #8c8c8c; font-size: 14px; line-height: 1.2; }

/* Full-screen photo (Figma 103:231, "Fuldskærmsfoto") */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
}
.lightbox::backdrop { background: #000; }
.lightbox__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox__close {
  position: absolute;
  top: 40px;
  right: 48px;
  padding: 12px 18px;
  border: 0;
  background: #121212;
  color: var(--white);
  font: inherit;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox__close:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.lightbox-open, .lightbox-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .event-row, .event-row__dash, .event-row__veil, .poster { transition: none; }
}

/* Full-page layer that clips the flyer so it can never widen the page */
body { position: relative; }
.tagline-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

/* The flying copy: same type as the end tagline, scaled down at the start */
.tagline-flyer {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

/* While the effect runs, the real taglines stay in place (for layout and
   screen readers) but are hidden; the flyer is drawn on top of them */
.tagline-anim .tagline-flyer { display: block; }
.tagline-anim .js-tagline-start,
.tagline-anim .js-tagline-end { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .nav__links { gap: 24px; }
  .nav__links a { font-size: 14px; }
  .footer__cols { flex-wrap: wrap; flex-shrink: 1; min-width: 0; gap: 28px 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-bottom: 48px; gap: 20px; }
  .nav { height: 64px; }
  .nav__logo { font-size: 16px; flex-shrink: 0; }
  .nav__links { gap: 10px; }
  .nav__links a { font-size: 11px; }
  .intro { min-height: 0; padding-top: 56px; padding-bottom: 56px; }
  .intro__text { font-size: 30px; text-align: left; }
  .events { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
  .events__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .events__all { font-size: 14px; }
  .event-row { height: auto; min-height: 120px; padding-top: 20px; padding-bottom: 20px; gap: 16px; }
  .event-row__name { font-size: 22px; white-space: normal; }
  .event-row__meta { font-size: 11px; white-space: normal; }
  .event-row__dash { flex-basis: 24px; }
  .event-row__arrow { margin-left: auto; margin-right: 16px; font-size: 24px; }
  .lightbox__close { top: 16px; right: 16px; font-size: 14px; }
  .business { padding-top: 56px; padding-bottom: 56px; gap: 48px; }
  .business__statement { padding: 0; font-size: 30px; }
  .partners__track { font-size: 20px; gap: 32px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 24px 0 36px; }
  .steps__list { --stack-top: 12px; --stack-step: calc(24px + 1.2 * var(--step-name)); }
  .step__main { gap: 12px; }
  .step__desc { grid-column: 2; margin-top: 12px; }
  .cta { padding: 16px 0; }
  .cta__link { font-size: 12.8vw; }   /* longest line is ≈7em wide */
  .associates { grid-template-columns: 1fr; min-height: 0; }
  .associates__copy { padding: 56px var(--gutter) 40px; gap: 24px; }
  .associates__title { font-size: 13vw; }
  .associates__photo { aspect-ratio: 4 / 5; }
  .footer { padding-top: 56px; padding-bottom: 32px; gap: 40px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__sign { font-size: 5.2vw; }
  .footer__cols { flex-wrap: wrap; gap: 28px 40px; }
  .footer__legal { font-size: 12px; }
}
/* =====================================================================
   Motion layer — load-in, scroll reveals, scroll-linked depth, hovers.
   Everything here is switched off for prefers-reduced-motion.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Hero load-in: photo settles, nav drops in, title rises */
.js .hero__media { animation: hero-photo-in 1.8s var(--ease-out) both; }
.js .nav         { animation: fade-down .9s var(--ease-out) .15s both; }
.js .hero__title:not(.is-split) { animation: rise-in 1.1s var(--ease-out) .3s both; }
.js .tagline-flyer { animation: fade-in .9s ease .75s both; }

@keyframes hero-photo-in { from { opacity: 0; transform: scale(1.08); } }
@keyframes fade-down     { from { opacity: 0; translate: 0 -16px; } }
@keyframes rise-in       { from { opacity: 0; translate: 0 48px; } }
@keyframes fade-in       { from { opacity: 0; } }

/* Scroll reveals: the script adds .reveal (+ a stagger delay --d) and then
   .is-in when the element enters the viewport. Uses the separate `translate`
   property so it never fights the hover `transform: scale()` on words. */
.js .reveal {
  opacity: 0;
  translate: 0 36px;
  transition:
    opacity .8s ease var(--d, 0ms),
    translate 1s var(--ease-out) var(--d, 0ms),
    transform .35s cubic-bezier(.2, .8, .2, 1),
    background-color .3s ease,
    letter-spacing .35s var(--ease-out);
}
.js .reveal--left  { translate: -8vw 0; }
.js .reveal--right { translate: 8vw 0; }
.js .reveal.is-in  { opacity: 1; translate: none; }

/* Scroll-linked depth (browsers that support scroll-driven animations) */
@supports (animation-timeline: view()) {
  /* hero photo drifts down a little slower than the page as you leave */
  .hero { view-timeline: --hero; }
  .js .hero__media {
    animation: hero-photo-in 1.8s var(--ease-out) both, hero-drift linear both;
    animation-timeline: auto, --hero;
    animation-range: normal, exit 0% exit 100%;
  }
  @keyframes hero-drift { to { translate: 0 18%; } }

  /* event photo opens up from a framed crop and moves with parallax */
  .photo-band {
    animation: band-open linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  .photo-band__img {
    scale: 1.14;
    animation: band-parallax linear both;
    animation-timeline: view();
  }
  /* portrait: pans inside its frame using the photo's own spare height
     (no zoom), so mid-scroll it shows exactly Figma's centred crop */
  .associates__photo img {
    animation: portrait-pan linear both;
    animation-timeline: view();
  }
  @keyframes portrait-pan { from { object-position: 50% 20%; } to { object-position: 50% 80%; } }

  @keyframes band-open     { from { clip-path: inset(9% 7%); } to { clip-path: inset(0); } }
  @keyframes band-parallax { from { translate: 0 -6%; } to { translate: 0 6%; } }
}

/* Small hover touches */
.cta__arrow { transition: transform .4s var(--ease-out); }
.cta__link:hover .cta__arrow,
.cta__link:focus-visible .cta__arrow { transform: translate(.08em, -.08em); }

.events__all { transition: letter-spacing .35s var(--ease-out); }
.events__all:hover { letter-spacing: .04em; }

.event-row__arrow { transition: transform .35s var(--ease-out); }
.event-row:hover .event-row__arrow { transform: translate(4px, -4px); }

/* Full-screen photo opens with a soft zoom; the close button slides in */
.lightbox[open]                  { animation: lightbox-circle .8s var(--ease-out) both; }
.lightbox[open] .lightbox__img   { animation: lightbox-in 1.1s var(--ease-out) both; }
@keyframes lightbox-circle {
  from { clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%)); }
  to   { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
}
.lightbox[open] .lightbox__close { animation: fade-down .5s var(--ease-out) .2s both; }
.lightbox[open]::backdrop        { animation: fade-in .3s ease both; }
@keyframes lightbox-in { from { opacity: 0; scale: 1.05; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero__media, .js .nav, .js .hero__title, .js .tagline-flyer,
  .photo-band, .photo-band__img, .associates__photo img,
  .lightbox[open], .lightbox[open] .lightbox__img, .lightbox[open] .lightbox__close { animation: none; }
  .photo-band__img { scale: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .nav__links a, .cta__arrow, .events__all, .event-row__arrow,
  .footer__link, .newsletter__input, .newsletter__send { transition: none; }
}
/* =====================================================================
   Motion layer 2 — more expressive effects (all off for reduced motion)
   ===================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Letter splitting: each word is a small mask, letters slide inside it */
.split-word {
  display: inline-block;
  white-space: nowrap;
  overflow: clip;
  overflow-clip-margin: .12em;
  vertical-align: top;
}
.ch { display: inline-block; }

/* Hero title: letters slide up out of their word masks, one after another */
.hero__title.is-split .ch {
  animation: char-up 1s var(--ease-out) both;
  animation-delay: calc(.35s + var(--ci) * 30ms);
}
@keyframes char-up { from { translate: 0 108%; } }

/* Footer sign: letters rise when it scrolls in, and do a wave on hover */
.footer__sign .ch {
  translate: 0 108%;
  transition: translate .9s var(--ease-out) calc(var(--ci) * 22ms);
}
.footer__sign.is-in .ch { translate: none; }
.footer__sign:hover .ch { animation: char-wave .55s ease calc(var(--ci) * 26ms); }
@keyframes char-wave { 45% { translate: 0 -22%; color: var(--white); } }

/* Headings rise line by line out of a mask */
.mask-line { display: block; overflow: clip; overflow-clip-margin: .14em; }
.mask-line > span {
  display: block;
  translate: 0 108%;
  transition: translate 1.1s var(--ease-out) calc(120ms + var(--li) * 120ms);
}
.is-in > .mask-line > span, .is-in .mask-line > span { translate: none; }

/* Intro + statement: words light up one by one as you scroll through */
.js .fill-word {
  opacity: calc(.16 + .84 * var(--p, 0));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s linear;
}

/* How we work: the row you point at nudges forward */
.step__name, .step__num { transition: translate .45s var(--ease-out), color .3s ease; }
.step:hover .step__name { translate: 14px 0; color: var(--white); }
.step:hover .step__num  { color: var(--white); }

/* Partner banner: script skews it with scroll speed */
.partners__track li { display: inline-block; transform: skewX(var(--skew, 0deg)); }

/* Scroll progress line along the top of the window */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 3px;
  background: var(--lilac);
  transform-origin: 0 50%;
  scale: 0 1;
  pointer-events: none;
}

/* Follower cursor (mouse/trackpad only) — inverts what it passes over */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  color: #000;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              background-color .25s ease, opacity .25s ease;
}
.cursor.is-on     { opacity: 1; }
.cursor.is-link   { width: 64px; height: 64px; }
.cursor.is-word   { width: 12px; height: 12px; background: #fff; }
.cursor.is-view   { width: 96px; height: 96px; background: #fff; }
.cursor.is-hidden { opacity: 0; }
.cursor__label { opacity: 0; transition: opacity .2s ease; }
.cursor.is-view .cursor__label { opacity: 1; }

@supports (animation-timeline: view()) {
  /* progress line */
  .progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
  @keyframes progress-grow { to { scale: 1 1; } }

  /* hero title spreads out and lifts away as you scroll past the hero */
  .hero__title.is-split {
    animation: title-out linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 85%;
  }
  @keyframes title-out { to { letter-spacing: .05em; opacity: 0; translate: 0 -35%; } }

  /* "Let's create a room together": lines slide in from opposite sides and
     lock into place as the block scrolls up the screen */
  .cta { view-timeline: --cta; }
  .cta__line {
    animation: cta-assemble linear both;
    animation-timeline: --cta;
    animation-range: entry 0% cover 45%;
  }
  .cta__line:nth-child(1) { --from: -22vw; }
  .cta__line:nth-child(2) { --from: 22vw; }
  .cta__line:nth-child(3) { --from: -34vw; }
  @keyframes cta-assemble {
    from { translate: var(--from) 0; opacity: 0; }
    35%  { opacity: 1; }
    to   { translate: none; opacity: 1; }
  }

  /* portrait opens like a curtain rising */
  .associates__photo {
    animation: curtain linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 40%;
  }
  @keyframes curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
}
@supports not (animation-timeline: view()) { .progress { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__title.is-split, .hero__title.is-split .ch, .cta__line, .associates__photo,
  .progress, .footer__sign:hover .ch { animation: none !important; }
  .footer__sign .ch, .mask-line > span { translate: none; transition: none; }
  .js .fill-word { opacity: 1; }
  .progress, .cursor { display: none; }
  .step__name, .step__num { transition: none; }
}


/* =====================================================================
   Events page + event cards (shared by events.html and event.html)
   ===================================================================== */
/* ---------- Events hero (Figma node 10:234, 1440 × 473) ---------- */
:root { --lilac-light: #e1b5eb; --paper: #f8f1f7; }

.ev-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  min-height: 32.85vw;                 /* 473px at 1440 */
  padding: 120px var(--gutter) 64px;
  overflow: clip;
  background: #121212;
  color: var(--paper);
}

/* photo: Figma crops the top of the frame at the photo's vertical middle */
.ev-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;              /* event photo: keep faces in the band */
  pointer-events: none;
}
.ev-hero::after {                      /* purple-tinted dark overlay */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 29, .47);
  pointer-events: none;
}
.ev-hero > :not(.ev-hero__media) { position: relative; z-index: 1; }

.ev-hero .nav { position: absolute; color: var(--lilac-light); z-index: 2; }
.nav__links a[aria-current="page"] { background-size: 100% 2px; }

.ev-hero__label {
  margin: 0;
  color: var(--lilac-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.ev-hero__title {
  margin: 0;
  font-size: clamp(48px, 8.611vw, 124px); /* 124px at 1440, as in Figma */
  font-weight: 900;
  line-height: .9;                        /* Figma 112px leading on 124px */
  letter-spacing: -0.06em;                /* Figma -7.44px on 124px */
  text-transform: uppercase;
}
.ev-hero__title .line { display: block; white-space: nowrap; }

/* Events page: the photo is the whole header background, taller and mostly clear —
   only a soft shade behind the menu (top) and the title (bottom) */
.ev-hero--photo {
  justify-content: flex-end;
  min-height: min(85svh, 56vw);
  padding-top: 0;
  gap: 20px;
}
.ev-hero--photo .ev-hero__media { object-position: 50% 35%; }
.ev-hero--photo::after {
  background:
    linear-gradient(to bottom, rgba(22, 16, 29, .55) 0, rgba(22, 16, 29, 0) 22%),
    linear-gradient(to top, rgba(22, 16, 29, .85) 0, rgba(22, 16, 29, .45) 25%, rgba(22, 16, 29, 0) 55%);
}
.ev-hero--photo .ev-hero__label,
.ev-hero--photo .ev-hero__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
@media (max-width: 600px) {
  .ev-hero.ev-hero--photo { min-height: 75svh; padding-top: 0; }
}

/* ---------- Upcoming events (Figma node 405:282, 1440 × 710) ---------- */
.upcoming {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 88px var(--gutter);
  background: var(--purple);
}

.upcoming__title {
  margin: 0;
  color: var(--purple-dark);
  font-size: clamp(32px, 4.444vw, 64px);   /* 64px at 1440 */
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.upcoming__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 × 424px + 2 × 20px = 1312 */
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Event card (component "Events / Date card", 424 × 421) */
.ev-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--purple);
  background: #211426;
  color: var(--paper);
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .35s ease, translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.ev-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 128px;                      /* compact, so the poster gets the room */
  padding: 16px 20px 12px;
}
.ev-card__name { font-size: 24px; line-height: 1.15; }
.ev-card__date { display: flex; align-items: center; gap: 14px; color: var(--lilac-light); white-space: nowrap; }
.ev-card__big  { font-size: 50px; line-height: 1.1; }
.ev-card__tag  { font-size: 14px; font-weight: 700; line-height: 1.2; }

/* poster frame: 4:5 like most event posters, so almost the whole picture shows */
.ev-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: clip; background: #160d1a; }
.ev-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  transition: scale .9s var(--ease-out), filter .6s ease;
}

.ev-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.ev-card__arrow { width: .7em; height: .7em; transition: transform .4s var(--ease-out); }

/* While revealing, keep the card's own hover transitions alongside the reveal */
.js .ev-card.reveal {
  transition: opacity .8s ease var(--d, 0ms), translate .9s var(--ease-out) var(--d, 0ms),
              border-color .35s ease, box-shadow .5s var(--ease-out);
}

/* Hover / focus: card lifts, border lights up, photo zooms slightly */
.ev-card:hover, .ev-card:focus-visible,
.js .ev-card.is-in:hover, .js .ev-card.is-in:focus-visible {
  border-color: var(--lilac-light);
  translate: 0 -6px;
  box-shadow: 0 18px 36px rgba(18, 10, 24, .45);
}
.ev-card:hover .ev-card__media img, .ev-card:focus-visible .ev-card__media img { scale: 1.04; filter: saturate(1.15); }
.ev-card:hover .ev-card__arrow, .ev-card:focus-visible .ev-card__arrow { transform: translate(3px, -3px); }
.ev-card:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

/* ---------- Past events (Figma node 10:257, 1440 × 786) ---------- */
.past {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 120px var(--gutter);
  background: var(--ink);
}
.past__title {
  margin: 0;
  color: var(--lilac);
  font-size: clamp(32px, 4.444vw, 64px);   /* 64px at 1440 */
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.05em;                 /* Figma -3.2px at 64px */
  text-transform: uppercase;
}

/* past card variant: lighter border, dark purple footer, no arrow */
.ev-card--past { border-color: #a56abb; }
.ev-card--past .ev-card__foot { background: var(--purple-dark); }
/* "—" date: drawn as a bar so it matches Figma's heavy dash */
.ev-card__big--dash {
  display: inline-block;
  width: .7em;
  height: .12em;
  margin: .54em 0;
  background: currentColor;
}
.ev-card--past .ev-card__media img { filter: saturate(.85); }
.ev-card--past:hover .ev-card__media img,
.ev-card--past:focus-visible .ev-card__media img { filter: saturate(1.1); }

@media (max-width: 1000px) { .upcoming__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .upcoming { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .past { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .upcoming__cards { grid-template-columns: 1fr; gap: 16px; }
  .ev-card__name { font-size: 22px; }
  .ev-card__big  { font-size: 44px; }
}

/* ---------- Motion ---------- */
.js .ev-hero__media { animation: hero-photo-in 1.8s var(--ease-out) both; }
.js .ev-hero .nav   { animation: fade-down .9s var(--ease-out) .15s both; }
.js .ev-hero__label { animation: fade-in .8s ease .25s both; }
.ev-hero__title.is-split .ch {
  animation: char-up 1s var(--ease-out) both;
  animation-delay: calc(.35s + var(--ci) * 32ms);
}

@supports (animation-timeline: view()) {
  .ev-hero { view-timeline: --evhero; }
  .js .ev-hero__media {
    animation: hero-photo-in 1.8s var(--ease-out) both, hero-drift linear both;
    animation-timeline: auto, --evhero;
    animation-range: normal, exit 0% exit 100%;
  }
  .ev-hero__title.is-split {
    animation: title-out linear both;
    animation-timeline: --evhero;
    animation-range: exit 0% exit 90%;
  }
}

@media (max-width: 600px) {
  .ev-hero { min-height: 0; padding-top: 104px; padding-bottom: 48px; gap: 28px; }
  .ev-hero__title { font-size: 13.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  .js .ev-hero__media, .js .ev-hero .nav, .js .ev-hero__label,
  .ev-hero__title.is-split, .ev-hero__title.is-split .ch { animation: none !important; }
  .ev-card, .ev-card__media img, .ev-card__arrow { transition: none; }
  .ev-card:hover, .ev-card:focus-visible,
  .js .ev-card.is-in:hover, .js .ev-card.is-in:focus-visible { translate: none; }
  .ev-card:hover .ev-card__media img { scale: none; }
}

.ev-card { text-decoration: none; }   /* cards are links to their event page */

/* =====================================================================
   Event details page (Figma frame "03 Event detail", 10:272)
   ===================================================================== */
body.page-event { background: #121212; }

/* Hero (10:274, 1440 × 680): photo + dark overlay, content sits at the bottom */
/* Event pictures are tall posters, so the whole poster is shown uncropped on the right,
   with a blurred copy of it filling the background. Title sits bottom-left, clear of the poster. */
.ev-hero.ed-hero {
  justify-content: flex-end;
  gap: 18px;
  min-height: min(90svh, 60vw);
  padding: 0 var(--gutter) 56px;
}
.ed-hero .ev-hero__media {
  inset: -60px;                           /* blur edges stay off-screen */
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-position: 50% 40%;
  filter: blur(36px) saturate(1.25);
}
.ed-hero::after {
  background:
    linear-gradient(to right, rgba(18, 12, 24, .78) 0, rgba(18, 12, 24, .45) 60%, rgba(18, 12, 24, .3) 100%),
    linear-gradient(to bottom, rgba(18, 12, 24, .5) 0, rgba(18, 12, 24, 0) 22%);
}
.ed-hero > .ed-hero__poster {
  position: absolute;
  z-index: 1;
  top: 112px;
  right: var(--gutter);
  height: calc(100% - 168px);             /* fills the space between menu and bottom edge */
  width: auto;                            /* width follows the poster's own shape */
  max-width: 42%;
  object-fit: contain;
  object-position: 100% 50%;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ed-hero .ev-hero__label,
.ed-hero .ev-hero__title { max-width: calc(58% - 48px); }
.ed-hero .ev-hero__label { font-size: 16px; white-space: pre; }
.ed-hero .ev-hero__title { font-size: clamp(44px, 6.2vw, 96px); }
.ed-hero .ev-hero__title .line { white-space: normal; }
/* no poster uploaded: back to the full-width photo look */
.ed-hero--no-poster .ev-hero__media { inset: 0; width: 100%; height: 100%; filter: none; }
.ed-hero--no-poster .ev-hero__label, .ed-hero--no-poster .ev-hero__title { max-width: none; }

.js .ed-hero__poster { animation: poster-in 1.2s var(--ease-out) .2s both; }
@keyframes poster-in { from { opacity: 0; translate: 0 40px; scale: .96; } }
@supports (animation-timeline: view()) {
  .js .ed-hero__poster {
    animation: poster-in 1.2s var(--ease-out) .2s both, poster-drift linear both;
    animation-timeline: auto, --evhero;
    animation-range: normal, exit 0% exit 100%;
  }
  @keyframes poster-drift { to { translate: 0 -12%; } }
}
@media (max-width: 800px) {
  /* phone/tablet: poster on top, centred, title underneath */
  .ev-hero.ed-hero { min-height: 0; padding-top: 96px; justify-content: flex-start; }
  .ed-hero > .ed-hero__poster {
    position: relative; top: auto; right: auto; height: auto;
    order: -1;
    align-self: center;
    width: auto; max-width: 100%;
    max-height: 62svh;
    margin-bottom: 20px;
  }
  .ed-hero .ev-hero__label, .ed-hero .ev-hero__title { max-width: none; }
  .ed-hero::after { background: rgba(18, 12, 24, .55); }
}
@media (prefers-reduced-motion: reduce) { .js .ed-hero__poster { animation: none !important; } }

/* Content (10:279): copy + line-up on the left, sticky info box on the right */
.ed-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 96px;
  align-items: start;
  padding: 120px var(--gutter);
  color: var(--paper);
  text-transform: uppercase;
}
.ed-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; max-width: 780px; }
.ed-headline { margin: 0; font-size: clamp(26px, 2.778vw, 40px); line-height: 1.2; }
.ed-body     { margin: 0; font-size: clamp(16px, 1.389vw, 20px); line-height: 1.45; }
.ed-tagline  { margin: 0; color: var(--lilac-light); font-size: clamp(16px, 1.389vw, 20px); }
.ed-label    { margin: 0; color: var(--lilac-light); font-size: 14px; font-weight: 700; }

.ed-lineup { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ed-lineup__item { display: flex; flex-direction: column; gap: 12px; }
.ed-lineup__photo {
  display: grid;
  place-items: center;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid var(--purple);
  background: #211426;
  color: var(--lilac-light);
  font-size: 14px;
  transition: border-color .3s ease;
}
.ed-lineup__item:hover .ed-lineup__photo { border-color: var(--lilac-light); }
.ed-lineup__name { font-size: 18px; }
.ed-tba { color: var(--lilac-light); font-size: 14px; }

/* Info box (10:298) — follows you while scrolling */
.ed-info {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  background: #211426;
}
.ed-info__row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ed-info__row dt { color: var(--lilac-light); font-size: 12px; font-weight: 700; }
.ed-info__row dd { margin: 0; font-size: 18px; line-height: 1.25; }
.ed-info__row dd span { display: block; }

.ed-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out);
}
.ed-btn svg { width: .75em; height: .75em; transition: transform .4s var(--ease-out); }
a.ed-btn:hover, a.ed-btn:focus-visible { background: var(--lilac-light); color: #211426; }
a.ed-btn:hover svg, a.ed-btn:focus-visible svg { transform: translate(3px, -3px); }
.ed-btn[aria-disabled="true"] { background: #3a2a44; color: #b9a5c2; cursor: default; }
.ed-note { margin: 0; color: var(--lilac-light); font-size: 13px; }

/* Location (10:315) */
.ed-location {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 var(--gutter) 120px;
}
.ed-location__title, .ed-more__title {
  margin: 0;
  font-size: clamp(34px, 3.889vw, 56px);  /* 56px at 1440 */
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.ed-location__title { color: var(--lilac-light); }
.ed-map {
  position: relative;
  height: 400px;
  border: 1px solid var(--purple);
  background: #211426;
  overflow: clip;
}
.ed-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.9);   /* dark map to match the page */
}
.ed-map__empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--lilac-light);
  font-size: 14px;
  text-transform: uppercase;
}
.ed-map__link {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease;
}
.ed-map__link:hover, .ed-map__link:focus-visible { background: var(--lilac-light); color: #211426; }

/* More events (10:319) */
.ed-more {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 120px var(--gutter);
  background: var(--purple);
}
.ed-more__title { color: var(--paper); font-size: clamp(34px, 4.444vw, 64px); }

@media (max-width: 1000px) {
  .ed-content { grid-template-columns: 1fr; gap: 48px; }
  .ed-info { position: static; max-width: 520px; }
}
@media (max-width: 600px) {
  .ev-hero.ed-hero { padding-bottom: 36px; gap: 12px; }
  .ed-hero .ev-hero__title { font-size: 11vw; }   /* long single words like AFROFUSION must fit */
  .ed-content { padding: 56px var(--gutter); gap: 40px; }
  .ed-copy { gap: 22px; }
  .ed-lineup__item { width: calc(50% - 8px); }
  .ed-lineup__photo { width: 100%; }
  .ed-lineup__name { font-size: 14px; }
  .ed-info { padding: 28px; }
  .ed-location { padding-bottom: 56px; gap: 24px; }
  .ed-map { height: 300px; }
  .ed-more { padding: 56px var(--gutter); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-btn, .ed-btn svg, .ed-lineup__photo { transition: none; }
}

/* =====================================================================
   For businesses page (Figma "04 Business")
   ===================================================================== */

/* Hero (10:328, 1440 × 603) */
.biz-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  min-height: 41.875vw;                    /* 603px at 1440 */
  padding: 160px var(--gutter) 42px;
  background: var(--purple);
  overflow: clip;
}
.biz-hero .nav { color: var(--lilac-light); }

.biz-hero__label {
  margin: 0;
  color: var(--lilac-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.biz-hero__title {
  margin: 0;
  color: var(--purple-dark);
  font-size: clamp(40px, 7.5vw, 112px);    /* Figma 112px Inter; 108px at 1440 so "PHYSICAL BRANDING." fits in Arial Black */
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.biz-hero__title .line { display: block; }

.biz-hero__text {
  max-width: 720px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(16px, 1.528vw, 22px);   /* 22px at 1440 */
  line-height: 1.35;
  text-transform: uppercase;
}

/* "Headline reveals one word at a time on load" (Figma note) — words rise out of
   their own masks one after another; set up by site.js */
.biz-hero__title .word-mask {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: .1em;
  vertical-align: top;
}
.biz-hero__title .word-mask > span {
  display: inline-block;
  animation: word-up 1s var(--ease-out) both;
  animation-delay: calc(.3s + var(--wi) * 140ms);
}
@keyframes word-up { from { translate: 0 110%; } }

.js .biz-hero__label { animation: fade-in .8s ease .15s both; }
.js .biz-hero__text  { animation: rise-in 1s var(--ease-out) 1.1s both; }
.js .biz-hero .nav   { animation: fade-down .9s var(--ease-out) .1s both; }

@media (max-width: 600px) {
  .biz-hero { min-height: 0; padding-top: 120px; padding-bottom: 72px; gap: 28px; }
  .biz-hero__title { font-size: 10.5vw; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-hero__title .word-mask > span,
  .js .biz-hero__label, .js .biz-hero__text, .js .biz-hero .nav { animation: none; }
}

/* =====================================================================
   Phone menu (all pages) — links fold into a "Menu" button below 600px
   ===================================================================== */
.nav__toggle { display: none; }

@media (max-width: 600px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav__links {
    position: absolute;
    top: 60px;
    left: var(--gutter);
    right: var(--gutter);
    z-index: 70;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--purple);
    border-radius: 8px;
    background: var(--ink);
    color: var(--lilac);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity .25s ease, translate .35s var(--ease-out), visibility 0s linear .35s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    translate: none;
    transition: opacity .25s ease, translate .35s var(--ease-out);
  }
  .nav__links a { font-size: 16px; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .nav__links { transition: none; }
}

/* =====================================================================
   For businesses — "How we work" sticky scroll (Figma 10:334 + 10:462)
   The section is 4 screens tall; its inner panel sticks while you scroll.
   Starts on Figma's purple and gets clearly lighter at every step.
   On the two light steps the text switches to dark purple so it stays
   readable. All colours come from these per-step variables:
     --shade  background   --fg  text   --num  big number   --accent  active bar
   ===================================================================== */
.biz-steps,
.biz-step {
  --shade: #7f3f95; --fg: #ffffff; --num: #f3dcf8; --accent: #f3dcf8;      /* 01: Figma purple */
}
.biz-steps[data-step="2"], .biz-step[data-i="2"] {
  --shade: #985ab0; --fg: #ffffff; --num: #f3dcf8; --accent: #ffffff;      /* 02 */
}
.biz-steps[data-step="3"], .biz-step[data-i="3"] {
  --shade: #c792d9; --fg: #2a1235; --num: #522861; --accent: #2a1235;      /* 03: light — dark text */
}
.biz-steps[data-step="4"], .biz-step[data-i="4"] {
  --shade: #e6c9f0; --fg: #2a1235; --num: #7f3f95; --accent: #2a1235;      /* 04: lightest */
}

.biz-steps {
  position: relative;
  height: 400vh;                             /* one screen per step */
  background: var(--shade);
  color: var(--fg);
  text-transform: uppercase;
  transition: background-color .9s ease, color .9s ease;
}

.biz-steps__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  gap: 96px;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding: 0 var(--gutter);
}

/* Left: kicker, heading, step list */
.biz-steps__left { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.biz-steps__kicker { margin: 0; font-size: 14px; font-weight: 700; }
.biz-steps__title { margin: 0; font-size: clamp(40px, 4.444vw, 64px); line-height: 1.15; }

.biz-steps__nav { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.biz-steps__nav button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: .62;                              /* steps you're not on */
  font: inherit;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .4s ease;
}
.biz-steps__nav .bar {
  display: block;
  width: 16px;
  height: 3px;
  background: currentColor;
  transition: width .5s var(--ease-out), background-color .9s ease;
}
.biz-steps__nav button:hover { opacity: .9; }
.biz-steps__nav button[aria-current="step"] { opacity: 1; }
.biz-steps__nav button[aria-current="step"] .bar { width: 40px; background: var(--accent); }

/* Right: the four step panels sit on top of each other; the active one slides in */
.biz-steps__right { display: grid; }
.biz-step {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2.6vh, 24px);
  color: var(--fg);
  opacity: 0;
  translate: 0 48px;
  pointer-events: none;
  transition: opacity .5s ease, translate .8s var(--ease-out);
}
.biz-step.is-past   { translate: 0 -48px; }
.biz-step.is-active { opacity: 1; translate: none; pointer-events: auto; }

.biz-step__num {
  margin: 0;
  color: var(--num);
  font-size: min(160px, 11.1vw, 16vh);       /* 160px at 1440 on a tall screen */
  line-height: 1;
}
.biz-step__name { margin: 0; font-size: clamp(32px, min(3.333vw, 6vh), 48px); line-height: 1.1; }
.biz-step__text { max-width: 520px; margin: 0; font-size: clamp(16px, 1.389vw, 20px); line-height: 1.35; }

/* Photo: every step photo gets the SAME 4:3 frame (cropped from the centre),
   as large as the screen allows — up to 640 × 480 */
.biz-step__media {
  width: min(100%, calc((100svh - 400px) * 4 / 3));
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: clip;
  background: rgba(30, 10, 40, .22);
}
.biz-step__media img {
  position: absolute;                        /* so the photo can't stretch the 4:3 frame */
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;                  /* slightly above centre keeps faces in frame */
}
/* the number gently scales as each step arrives */
.biz-step.is-active .biz-step__num { animation: step-num-in .9s var(--ease-out) both; }
@keyframes step-num-in { from { opacity: 0; scale: .85; } }

/* Phones / small tablets: no sticky — the four steps simply stack,
   each on its own (progressively lighter) shade, same 4:3 photo frame */
@media (max-width: 800px) {
  .biz-steps { height: auto; }
  .biz-steps__sticky { position: static; display: block; height: auto; padding: 0; }
  .biz-steps__left { padding: 72px var(--gutter) 40px; gap: 20px; }
  .biz-steps__nav { display: none; }
  .biz-steps__right { display: block; }
  .biz-step { opacity: 1; translate: none; pointer-events: auto; padding: 48px var(--gutter); gap: 16px; background: var(--shade); }
  .biz-step__num { font-size: 72px; }
  .biz-step__media { width: 100%; }
  .biz-step.is-active .biz-step__num { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-steps, .biz-step, .biz-steps__nav button, .biz-steps__nav .bar { transition: none; }
  .biz-step.is-active .biz-step__num { animation: none; }
}

/* =====================================================================
   For businesses — Works (Figma 10:359)
   Same purple as the hero at the top of the page. Tiles: photo, then a
   numbered title row; "View case" slides in over the photo on hover.
   One case → a featured card; two → two wide tiles; three+ → rows of three.
   ===================================================================== */
.works {
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding: 104px var(--gutter) 112px;
  background: var(--purple);
}
.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(248, 241, 247, .22);
}
.works__title {
  margin: 0;
  color: var(--purple-dark);
  font-size: clamp(44px, 5.694vw, 82px);     /* 82px at 1440 */
  font-weight: 900;
  line-height: 1.07;                          /* Figma 88px leading */
  letter-spacing: -0.06em;                    /* Figma -4.92px */
  text-transform: uppercase;
}
.works__count {
  margin: 0 0 8px;
  color: #f3dcf8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 × 424px + 2 × 20px = 1312 */
  gap: 48px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tile: square artwork, then number · title · client and year */
.work {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
}
.work__art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: clip;
  background: #392341;
  box-shadow: 0 24px 48px -28px rgba(30, 10, 38, .7);
}
.work__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: scale 1s var(--ease-out), filter .6s ease;
}
/* soft shade at the bottom so the "View case" label always reads */
.work__art::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(34, 12, 42, .65), rgba(34, 12, 42, 0) 45%);
  opacity: 0;
  transition: opacity .5s ease;
}
/* placeholder squares: a soft sheen moves across on hover so they still feel alive */
.work__art--empty { background: var(--art); }
.work__art--empty::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(216, 169, 228, .14) 50%, transparent 65%);
  translate: -100% 0;
  transition: translate 1.1s var(--ease-out);
}
/* "View case" label on the photo: touch screens only (computers get the round View cursor) */
.work__view {
  display: none;
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  translate: 0 12px;
  transition: opacity .35s ease, translate .5s var(--ease-out);
}
.work__view-arrow, .work__more-arrow { width: .75em; height: .75em; transition: translate .4s var(--ease-out); }

.work__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.work__num { color: #f3dcf8; font-size: 12px; font-weight: 700; line-height: 1.2; opacity: .8; }
.work__title { font-size: clamp(17px, 1.39vw, 20px); font-weight: 700; line-height: 1.15; }
.work__caption { color: #f3dcf8; font-size: 13px; line-height: 1.2; }

.work:hover .work__art img, .work:focus-visible .work__art img { scale: 1.06; filter: saturate(1.15); }
.work:hover .work__art::before, .work:focus-visible .work__art::before { opacity: 1; }
.work:hover .work__art--empty::after, .work:focus-visible .work__art--empty::after { translate: 100% 0; }
.work:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }

@media (max-width: 1000px) { .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Two cases: two wide tiles side by side */
.works__grid.works__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works__grid--2 .work__art { aspect-ratio: 4 / 3; }

/* One case: a featured card — photo on the left, a dark purple panel on the right */
.works__grid.works__grid--1 { grid-template-columns: 1fr; }
.work--feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0;
  overflow: clip;
  background: var(--purple-dark);
  box-shadow: 0 40px 80px -40px rgba(30, 10, 38, .8);
}
.work--feature .work__art { aspect-ratio: 4 / 3; box-shadow: none; }
.work--feature .work__view { display: none; }
.work--feature .work__body {
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 2.8vw, 44px);
}
.work--feature .work__num { font-size: 13px; }
.work--feature .work__title {
  margin-top: auto;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.work__lead {
  margin-top: -16px;
  color: #f3dcf8;
  font-size: 15px;
  line-height: 1.3;
}
.work__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 241, 247, .2);
}
.work__fact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.work__fact em { color: var(--lilac); font-size: 11px; font-style: normal; font-weight: 700; }
.work__more {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: flex-start;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .3s ease, color .3s ease;
}
.work--feature:hover .work__more, .work--feature:focus-visible .work__more { background: var(--lilac); }
.work--feature:hover .work__more-arrow, .work--feature:focus-visible .work__more-arrow { translate: 2px -2px; }
.work--feature:hover .work__art img, .work--feature:focus-visible .work__art img { scale: 1.04; }

@media (max-width: 800px) {
  .work--feature { grid-template-columns: 1fr; }
  .work--feature .work__body { gap: 24px; }
  .work--feature .work__title { margin-top: 0; }
}
@media (max-width: 600px) {
  .works { padding: 64px var(--gutter); gap: 28px; }
  .works__head { padding-bottom: 20px; }
  .works__count { margin-bottom: 4px; font-size: 11px; }
  .works__grid { grid-template-columns: 1fr; gap: 40px; }
  .works__grid.works__grid--2 { grid-template-columns: 1fr; }
  .works__grid--2 .work__art { aspect-ratio: 1; }
}
/* touch screens have no hover: keep "View case" visible on the photos */
@media (hover: none) {
  .work__view { display: inline-flex; opacity: 1; translate: none; }
  .work--feature .work__view { display: none; }
  .work__art::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .work__art img, .work__art--empty::after, .work__view, .work__art::before, .work__more, .work__view-arrow, .work__more-arrow { transition: none; }
}

/* =====================================================================
   For businesses — "We've worked with" rolling banner (Figma 10:371, 1440 × 213)
   Figma motion: track moves -1440px (one copy) in 22s, linear, forever.
   ===================================================================== */
.biz-partners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 0 56px;
  background: var(--purple);
  color: var(--paper);
  overflow: clip;
}
.biz-partners__label {
  margin: 0;
  padding: 0 var(--gutter);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.biz-partners__viewport { height: 68px; overflow: clip; }
.biz-partners__track {
  display: flex;
  width: max-content;
  animation: partners-roll 22s linear infinite;
}
.biz-partners__viewport:hover .biz-partners__track { animation-play-state: paused; }
/* each copy is at least one screen wide; the three names spread across it */
.biz-partners__set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 96px;
  min-width: 100vw;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  font-size: clamp(28px, 3.194vw, 46px);     /* 46px at 1440 */
  line-height: 1.2;
  letter-spacing: -0.04em;                    /* Figma -1.84px */
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes partners-roll { to { transform: translateX(-50%); } }   /* -50% = exactly one copy */

@media (max-width: 600px) {
  .biz-partners { padding: 40px 0 36px; gap: 14px; }
  .biz-partners__viewport { height: 48px; }
  .biz-partners__set { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-partners__track { animation: none; }
  .biz-partners__viewport { overflow-x: auto; }
}

/* =====================================================================
   For businesses — Contact (Figma 10:386, 1440 × 505)
   ===================================================================== */
.biz-contact {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 94px var(--gutter);
  background: #ead0f1;
  color: #23142a;
}
.biz-contact__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; flex: 0 1 740px; min-width: 0; }
.biz-contact__label {
  margin: 0;
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.biz-contact__title {
  margin: 0;
  font-size: clamp(48px, 7.917vw, 114px);    /* 114px at 1440, as in Figma */
  font-weight: 900;
  line-height: .91;                           /* Figma 104px leading on 114px */
  letter-spacing: -0.07em;                    /* Figma -7.98px */
  text-transform: uppercase;
}
.biz-contact__title .line { display: block; white-space: nowrap; }
.biz-contact__text { max-width: 600px; margin: 0; font-size: clamp(16px, 1.389vw, 20px); line-height: 1.35; text-transform: uppercase; }

.biz-contact__divider { flex: 0 0 1px; align-self: center; height: 152px; background: #9e76ab; }

.biz-contact__enquiries { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1 1 0; min-width: 0; color: var(--purple-dark); }
.biz-contact__email {
  color: inherit;
  font-size: clamp(18px, 1.944vw, 28px);      /* 28px at 1440, as in Figma */
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  transition: color .3s ease, text-underline-offset .35s var(--ease-out), text-decoration-thickness .35s ease;
}
.biz-contact__email:hover, .biz-contact__email:focus-visible {
  color: var(--purple);
  text-underline-offset: 9px;
  text-decoration-thickness: 3px;
}
.biz-contact__email:focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 6px; }

/* title letters rise when the section scrolls in (set up by site.js) */
.biz-contact__title .ch { translate: 0 108%; transition: translate .9s var(--ease-out) calc(var(--ci) * 22ms); }
.biz-contact__title.is-in .ch { translate: none; }

@media (max-width: 900px) {
  .biz-contact { flex-direction: column; align-items: flex-start; gap: 36px; }
  .biz-contact__intro { flex: none; width: 100%; }
  .biz-contact__divider { align-self: stretch; flex: none; width: auto; height: 1px; }
  .biz-contact__title { font-size: 12.5vw; }
}
@media (max-width: 600px) { .biz-contact { padding-top: 64px; padding-bottom: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .biz-contact__email { transition: none; }
  .biz-contact__title .ch { translate: none; transition: none; }
}

/* =====================================================================
   Contact page (Figma "06 Contact", 475:337)
   ===================================================================== */
body.page-contact { background: #121212; }

/* Nav sits on its own dark bar here (88px), not over a hero image */
.ct-bar { position: relative; height: 88px; background: #121212; }
.ct-bar .nav { color: var(--lilac-light); }
.js .ct-bar .nav { animation: fade-down .9s var(--ease-out) .1s both; }

/* Hero (475:345, 1440 × 566) */
.ct-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 100px var(--gutter) 105px;
  color: var(--paper);
  overflow-x: clip;
}
.ct-hero__label { margin: 0; color: #ead0f1; font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.ct-hero__title {
  margin: 0;
  font-size: clamp(44px, 8.125vw, 117px);    /* 117px at 1440 if it fits — see note below */
  font-weight: 900;
  line-height: .94;                           /* Figma 110px leading on 117px */
  letter-spacing: -0.07em;                    /* Figma -8.19px */
  text-transform: uppercase;
}
.ct-hero__title .line { display: block; white-space: nowrap; }
.ct-hero__text { max-width: 660px; margin: 0; color: #ead0f1; font-size: clamp(17px, 1.667vw, 24px); line-height: 1.35; }

/* hero title letters slide up on load (split by site.js) */
.ct-hero__title.is-split .ch { animation: char-up 1s var(--ease-out) both; animation-delay: calc(.3s + var(--ci) * 26ms); }
.js .ct-hero__label { animation: fade-in .8s ease .15s both; }
.js .ct-hero__text  { animation: rise-in 1s var(--ease-out) 1s both; }

/* Direct email (475:349, 1440 × 177) */
.ct-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 65px var(--gutter);
  background: var(--purple);
  color: var(--paper);
}
.ct-email__label { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.ct-email__link {
  color: inherit;
  font-size: clamp(20px, 2.708vw, 39px);     /* 39px at 1440 */
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transition: color .3s ease, text-underline-offset .35s var(--ease-out), text-decoration-thickness .35s ease;
}
.ct-email__link:hover, .ct-email__link:focus-visible { color: #ead0f1; text-underline-offset: 11px; text-decoration-thickness: 3px; }
.ct-email__link:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }

/* The team (480:323, 1440 × 860) */
.ct-team { display: flex; flex-direction: column; gap: 32px; padding: 84px var(--gutter) 88px; color: var(--paper); }
.ct-team__title { margin: 0; font-size: clamp(40px, 5vw, 72px); font-weight: 900; line-height: 1.2; text-transform: uppercase; }
.ct-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 × 416px + 2 × 32px = 1312 */
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-person { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-transform: uppercase; }
.ct-person__photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 416 / 500;
  background: #33223b;
  color: #ead0f1;
  font-size: 14px;
  font-weight: 700;
  overflow: clip;
}
.ct-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-person__name { font-size: clamp(18px, 1.597vw, 23px); line-height: 1.2; }
.ct-person__role { color: #ead0f1; font-size: 14px; font-weight: 700; line-height: 1.2; }

/* Become an Associate (477:318, 1440 × 329) */
.ct-join {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 62px var(--gutter);
  background: #ead0f1;
  color: #23142a;
  text-transform: uppercase;
}
.ct-join__title { margin: 0; font-size: clamp(32px, 3.889vw, 56px); line-height: 1.2; }
.ct-join__text  { margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.3; }
.ct-join__form  { display: flex; flex-direction: column; gap: 15px; }
.ct-join__label { font-size: 14px; font-weight: 700; }
.ct-join__row   { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-join__input {
  width: 370px;
  max-width: 100%;
  padding: 16px;
  border: 1px solid #23142a;
  border-radius: 0;
  background: transparent;
  color: #23142a;
  font: inherit;
  font-size: 16px;
  text-transform: none;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.ct-join__input::placeholder { color: #23142a; opacity: .55; }
.ct-join__input:focus { outline: none; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px #23142a; }
.ct-join__btn {
  padding: 16px 20px;
  border: 0;
  background: #23142a;
  color: #ead0f1;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s var(--ease-out);
}
.ct-join__btn:hover, .ct-join__btn:focus-visible { background: var(--purple); }
.ct-join__btn:active { transform: translateY(1px); }
.ct-join__btn:focus-visible { outline: 2px solid #23142a; outline-offset: 3px; }
.ct-join__done { margin: 0; font-size: 16px; font-weight: 700; }

@media (max-width: 900px) {
  .ct-email { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ct-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ct-bar { height: 64px; }
  .ct-hero { padding-top: 56px; padding-bottom: 64px; gap: 22px; }
  .ct-hero__title { font-size: 8.8vw; }   /* "A ROOM TOGETHER." is ≈10.2em wide */
  .ct-email { padding-top: 44px; padding-bottom: 44px; }
  .ct-team { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .ct-team__grid { grid-template-columns: 1fr; gap: 28px; }
  .ct-join { padding-top: 48px; padding-bottom: 48px; }
  .ct-join__input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-hero__title.is-split .ch, .js .ct-bar .nav, .js .ct-hero__label, .js .ct-hero__text { animation: none !important; }
  .ct-email__link, .ct-join__btn, .ct-join__input { transition: none; }
}

/* Shown when a list has no events (e.g. no upcoming events yet) */
.list-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--paper);
  font-size: clamp(16px, 1.389vw, 20px);
  text-transform: uppercase;
  opacity: .85;
}

/* =====================================================================
   Partner logos in the rolling banners (homepage + For businesses)
   Logos are scaled to the banner's text size and shown in white so
   different brands look consistent; "original colours" keeps them as-is.
   ===================================================================== */
.partners__track .partner-logo,
.biz-partners__set .partner-logo { display: inline-flex; align-items: center; }
.partner-logo img {
  display: block;
  height: 1.25em;                 /* ≈36px on the homepage banner, ≈58px on the business banner */
  width: auto;
  max-width: 7em;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.partner-logo--original img { filter: none; opacity: 1; }

/* =====================================================================
   Homepage — rolling gallery of event photos (replaces the photo band)
   Two rows glide in opposite directions (CSS), react to scroll speed
   (assets/gallery.js), and the "wall" straightens as it scrolls in.
   ===================================================================== */
.gallery {
  position: relative;
  padding: 72px 0 88px;
  background: var(--ink);
  overflow: clip;
}
.gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding: 0 var(--gutter);
  color: var(--lilac);
  text-transform: uppercase;
}
.gallery__label { margin: 0; font-size: 14px; font-weight: 700; }
.gallery__link {
  color: inherit;
  font-size: 16px;
  text-decoration: none;
  transition: letter-spacing .35s var(--ease-out), color .3s ease;
}
.gallery__link:hover, .gallery__link:focus-visible { letter-spacing: .04em; color: var(--white); }

/* the wall: both rows, with soft fades at the left and right edges */
.gallery__wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.gallery__row { --h: clamp(200px, 24vw, 360px); }
.gallery__row--b { --h: clamp(160px, 18vw, 270px); }

.gallery__track {
  display: flex;
  gap: 14px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: gallery-roll var(--dur, 120s) linear infinite;
}
.gallery__row--b .gallery__track { animation-direction: reverse; }
.gallery__row:hover .gallery__track { animation-play-state: paused; }
/* the track holds two identical copies; moving one copy + one gap loops seamlessly */
@keyframes gallery-roll { to { transform: translateX(calc(-50% - 7px)); } }

.gallery__item {
  flex: none;
  height: var(--h);
  overflow: clip;
  background: #2a1f30;
  transform: skewX(var(--skew, 0deg));        /* leans with scroll speed */
}
.gallery__item img {
  display: block;
  height: 100%;
  width: auto;                                 /* every photo keeps its own shape */
  filter: brightness(.9) saturate(.95);
  transition: filter .45s ease, scale .7s var(--ease-out);
}
/* hover: the row pauses, the others dim, the photo you point at lights up */
.gallery__row:hover .gallery__item img { filter: brightness(.45) saturate(.55); }
.gallery__row:hover .gallery__item:hover img { filter: none; scale: 1.05; }

@supports (animation-timeline: view()) {
  /* "tilted wall": starts rotated and zoomed, straightens as it scrolls into view */
  .gallery__wall {
    animation: gallery-straighten linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  @keyframes gallery-straighten {
    from { rotate: -5deg; scale: 1.18; opacity: .35; }
    to   { rotate: 0deg;  scale: 1;    opacity: 1; }
  }
}

@media (max-width: 600px) {
  .gallery { padding: 48px 0 56px; }
  .gallery__head { margin-bottom: 24px; }
  .gallery__link { font-size: 13px; }
  .gallery__row { --h: 200px; }
  .gallery__row--b { --h: 150px; }
  .gallery__wall, .gallery__track { gap: 10px; }
  @keyframes gallery-roll { to { transform: translateX(calc(-50% - 5px)); } }
}

@media (prefers-reduced-motion: reduce) {
  /* no rolling: each row becomes a row you can scroll sideways */
  .gallery__wall { animation: none !important; }
  .gallery__track { animation: none; }
  .gallery__row { overflow-x: auto; }
  .gallery__item[aria-hidden="true"] { display: none; }
  .gallery__item { transform: none; }
}

/* =====================================================================
   Case page (Figma frame "05 Case detail", 10:406) — case.html?c=slug
   Light lilac page; a past event told as a case for businesses.
   ===================================================================== */
body.page-case { background: #ead0f1; color: #121212; }

/* Nav (10:407): purple logo, dark links */
.cs-bar { position: relative; height: 88px; }
.cs-bar .nav { color: var(--purple); }
@media (min-width: 601px) { .cs-bar .nav__links { color: #121212; } }
.js .cs-bar .nav { animation: fade-down .9s var(--ease-out) .1s both; }

/* Title (10:408): back link, client, big title */
.cs-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  padding: 120px var(--gutter) 64px;
  overflow-x: clip;
}
.cs-back {
  color: #5d4264;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease-out), color .2s ease;
}
.cs-back:hover, .cs-back:focus-visible { background-size: 100% 2px; color: var(--purple); }
.cs-client { margin: 0 0 -20px; color: var(--purple); font-size: 14px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.cs-title {
  max-width: 1300px;
  margin: 0;
  font-size: clamp(38px, 5.8vw, 84px);      /* Figma 88px Inter Black; Arial Black runs wider */
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.cs-title .split-word { white-space: nowrap; }
.cs-title.is-split .ch { animation: char-up 1s var(--ease-out) both; animation-delay: calc(.35s + var(--ci) * 18ms); }
.js .cs-back   { animation: fade-in .8s ease .15s both; }
.js .cs-client { animation: fade-in .8s ease .25s both; }

/* Hero image (10:412): full width, 1440 × 760 */
.cs-hero {
  position: relative;
  margin: 0;
  height: min(52.78vw, 86svh);              /* 760px at 1440 */
  overflow: clip;
  background: #d9b9e2;
}
.cs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.js .cs-hero img { animation: hero-photo-in 1.8s var(--ease-out) .2s both; }
@supports (animation-timeline: view()) {
  .cs-hero { view-timeline: --cshero; }
  .js .cs-hero img {
    animation: hero-photo-in 1.8s var(--ease-out) .2s both, cs-hero-drift linear both;
    animation-timeline: auto, --cshero;
    animation-range: normal, cover 0% cover 100%;
  }
  @keyframes cs-hero-drift { from { translate: 0 -6%; scale: 1.12; } to { translate: 0 6%; scale: 1.12; } }
}

/* Facts (10:415): four columns */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 64px var(--gutter) 0;
}
.cs-fact { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cs-fact dt { color: #5d4264; font-size: 12px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.cs-fact dd { margin: 0; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }   /* Figma 10:418: 20px */

/* The challenge / What we did (10:428) */
.cs-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  padding: 120px var(--gutter);
}
.cs-story__item { display: flex; flex-direction: column; gap: 20px; }
.cs-story__title { margin: 0; font-size: clamp(26px, 2.5vw, 36px); font-weight: 900; line-height: 1.2; }   /* Figma 10:430: 36px */
.cs-story__text { max-width: 560px; margin: 0; font-size: clamp(17px, 1.389vw, 20px); line-height: 1.3; white-space: pre-line; }   /* Figma 10:431: 20px, 560 wide */

/* Gallery (10:435): one big photo + two stacked (760 + 536, 16px gaps, 560 tall) */
.cs-gallery { display: grid; gap: 16px; padding: 0 var(--gutter); }
.cs-gallery--1 { grid-template-columns: 1fr; }
.cs-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-gallery--3 { grid-template-columns: 760fr 536fr; }
.cs-gallery__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.cs-shot { position: relative; margin: 0; overflow: clip; background: #d9b9e2; min-height: 272px; }
.cs-gallery--1 .cs-shot, .cs-gallery--2 .cs-shot, .cs-gallery--3 > .cs-shot { height: min(38.9vw, 560px); }
.cs-gallery__stack .cs-shot { min-height: 0; }
.cs-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.cs-shot:hover img { scale: 1.04; }
/* gallery hidden → keep the space before Results the same */
.cs-story + .cs-results { padding-top: 0; }

/* Results (10:443): big counting numbers */
.cs-results { display: flex; flex-direction: column; gap: 48px; padding: 120px var(--gutter); }
.cs-results__label { margin: 0; color: var(--purple); font-size: 14px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.cs-results__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cs-result__value {
  display: inline-block;
  align-self: flex-start;
  color: var(--purple);
  font-size: clamp(56px, 6.667vw, 96px);    /* Figma 10:447: 96px at 1440 */
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cs-result__label { font-size: 18px; line-height: 1.2; }   /* Figma 10:448: 18px */

@media (max-width: 1000px) {
  .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cs-story { gap: 56px; }
}
@media (max-width: 800px) {
  .cs-story { grid-template-columns: 1fr; gap: 48px; padding: 72px var(--gutter); }
  .cs-gallery--2, .cs-gallery--3 { grid-template-columns: 1fr; }
  .cs-gallery--1 .cs-shot, .cs-gallery--2 .cs-shot, .cs-gallery--3 > .cs-shot { height: 72vw; }
  .cs-gallery__stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .cs-gallery__stack .cs-shot { height: 40vw; }
  .cs-results { padding: 72px var(--gutter); gap: 32px; }
  .cs-results__list { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .cs-title-block { padding: 56px var(--gutter) 40px; gap: 28px; }
  .cs-client { margin-bottom: -8px; }
  .cs-hero { height: 78vw; }
  .cs-facts { padding-top: 40px; gap: 24px 16px; }
  .cs-fact dd { font-size: 16px; }
  .cs-story__text, .cs-result__label { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cs-bar .nav, .js .cs-back, .js .cs-client, .js .cs-hero img,
  .cs-title.is-split .ch { animation: none !important; }
  .cs-shot img, .cs-back { transition: none; }
  .cs-shot:hover img { scale: none; }
}
