/* Wireframed'26 - Mumbai Maxxing */

:root {
  --yellow: #ffc60b;
  --paper: #fdf4d6;
  --grid-line: rgba(196, 170, 96, 0.22);
  --ink: #141414;
  --fof-blue: #4d49fc;
  --green-dark: #1d5a2c;
  --maroon: #a3194b;
  --maroon-dark: #6b0d2e;

  /* stamp scallops */
  --scallop-r: clamp(10px, 1.45vw, 21px);
  --scallop-gap: clamp(36px, 5.1vw, 74px);

  /* display face for headings; body text is Manrope */
  --font-display: "Montserrat", "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

/* FAQ questions are buttons in an h3; .faq__text sets their font */
h1,
h2,
h3:not(.faq__q) {
  font-family: var(--font-display);
}

/* ---------- Top bar → sticky navbar ----------
   Fixed to the top. At the top of the page it's tall with the logo centred;
   with .is-scrolled (set by JS) it slims to --bar-h, the logo glides to the
   left edge and the nav fades in on the right. */

:root {
  --topbar-h: 80px;           /* tall state (overridden on desktop) */
  --bar-h: 60px;              /* slim, scrolled state */
  --page-gutter: clamp(16px, 3.5vw, 50px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: var(--bar-h);
}

main {
  padding-top: var(--topbar-h);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar-h);
  padding: 0 var(--page-gutter);
  background: var(--yellow);
  transition: height 0.5s var(--ease-out), box-shadow 0.3s ease;
}

.topbar.is-scrolled {
  height: var(--bar-h);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.12), 0 8px 24px rgba(20, 20, 20, 0.08);
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 1480px;           /* lines up with the hero stamp */
  height: 100%;
  margin: 0 auto;
}

/* Official FoF Mumbai lined logo (assets/img/fof-logos) */
.fof-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  line-height: 0;
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.topbar.is-scrolled .fof-logo {
  left: 0;
  transform: translate(0, -50%);
}

.fof-logo img {
  height: clamp(32px, 3.4vw, 48px);
  width: auto;
  /* the logo is absolutely positioned from the centre, so the global
     img max-width:100% would squeeze it to half the bar on phones and it
     would visibly grow as it slides left. Size it by height only. */
  max-width: none;
  transition: height 0.5s var(--ease-out);
}

.topbar.is-scrolled .fof-logo img {
  height: 32px;
}

.fof-logo:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

/* section links + Register: hidden at the top, fade in once scrolled */
.topnav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out), visibility 0s linear 0.35s;
}

.topbar.is-scrolled .topnav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease 0.15s, transform 0.45s var(--ease-out) 0.15s, visibility 0s;
}

.topnav__list {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav__list a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.topnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.topnav__list a:hover::after,
.topnav__list a:focus-visible::after {
  transform: scaleX(1);
}

.topnav__cta {
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--maroon);
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--maroon-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.topnav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--maroon-dark);
}

.topnav a:focus-visible,
.topnav__toggle:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* mobile menu button - only shown on small screens once scrolled */
.topnav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
}

.topnav__toggle-bars,
.topnav__toggle-bars::before,
.topnav__toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.topnav__toggle-bars {
  position: relative;
}

.topnav__toggle-bars::before,
.topnav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.topnav__toggle-bars::before { top: -5px; }
.topnav__toggle-bars::after { top: 5px; }

/* ---------- Hero stamp ---------- */

.hero {
  /* yellow below the stamp is as wide as the side margins, so the hero
     runs straight into the rewards without a big empty band */
  padding: 0 var(--page-gutter) var(--page-gutter);
}

.stamp {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
  isolation: isolate;
}

/* Scalloped stamp edge - real cut-outs (mask), so whatever is behind the
   stamp shows through; nothing is painted yellow. They cut the illustration
   too, as in the design.
   Corners stay square: each row of bites is laid out inside the content box
   (the stamp's padding = --scallop-corner keeps them clear of the corners),
   then shifted out by that padding so the circles sit centred on the edge. */
.stamp {
  --scallop-corner: calc(var(--scallop-r) * 0.8);
  --bite-top: radial-gradient(circle at 50% 0, #000 calc(var(--scallop-r) - 0.5px), #0000 var(--scallop-r));
  --bite-bottom: radial-gradient(circle at 50% 100%, #000 calc(var(--scallop-r) - 0.5px), #0000 var(--scallop-r));
  --bite-left: radial-gradient(circle at 0 50%, #000 calc(var(--scallop-r) - 0.5px), #0000 var(--scallop-r));
  --bite-right: radial-gradient(circle at 100% 50%, #000 calc(var(--scallop-r) - 0.5px), #0000 var(--scallop-r));
  padding: var(--scallop-corner);
  -webkit-mask:
    var(--bite-top) 0 calc(var(--scallop-corner) * -1) / var(--scallop-gap) var(--scallop-r) space no-repeat content-box border-box,
    var(--bite-bottom) 0 calc(100% + var(--scallop-corner)) / var(--scallop-gap) var(--scallop-r) space no-repeat content-box border-box,
    var(--bite-left) calc(var(--scallop-corner) * -1) 0 / var(--scallop-r) var(--scallop-gap) no-repeat space content-box border-box,
    var(--bite-right) calc(100% + var(--scallop-corner)) 0 / var(--scallop-r) var(--scallop-gap) no-repeat space content-box border-box,
    linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
  mask:
    var(--bite-top) 0 calc(var(--scallop-corner) * -1) / var(--scallop-gap) var(--scallop-r) space no-repeat content-box border-box,
    var(--bite-bottom) 0 calc(100% + var(--scallop-corner)) / var(--scallop-gap) var(--scallop-r) space no-repeat content-box border-box,
    var(--bite-left) calc(var(--scallop-corner) * -1) 0 / var(--scallop-r) var(--scallop-gap) no-repeat space content-box border-box,
    var(--bite-right) calc(100% + var(--scallop-corner)) 0 / var(--scallop-r) var(--scallop-gap) no-repeat space content-box border-box,
    linear-gradient(#000 0 0) border-box;
  mask-composite: exclude;
}

.stamp__inner {
  position: relative;
  z-index: 1;
  /* undo the stamp's padding so the layout fills the whole card */
  margin: calc(var(--scallop-corner) * -1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: clamp(560px, 47.5vw, 702px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 6vw, 88px) 0 clamp(56px, 6vw, 88px) 10.5%;
  margin-right: -2%;
}

.hero__title {
  width: 86%;
  height: auto;
  margin: 0;
}

.hero__title img {
  width: 100%;
  height: auto;
}

.hero__tagline {
  margin: clamp(14px, 1.6vw, 24px) 0 clamp(24px, 3vw, 44px);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(17px, 1.75vw, 26px);
  letter-spacing: 0.01em;
  color: var(--green-dark);
}

.hero__details {
  width: 100%;
  margin: 0;
}

.hero__details img {
  width: 100%;
  height: auto;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: clamp(24px, 2.8vw, 40px);
  padding: 0.55em 0.85em;
  font-weight: 700;
  font-size: clamp(18px, 1.85vw, 27px);
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
  background: var(--maroon);
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--maroon-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-register img {
  width: 0.85em;
  height: 0.85em;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--maroon-dark);
}

/* flowers either side of the label spin while the button is hovered/focused */
.btn-register:hover img,
.btn-register:focus-visible img {
  animation: flower-spin 3s linear infinite;
}

@keyframes flower-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-register:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--maroon-dark);
}

.btn-register:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* Illustration sits in the right column and runs off the bottom edge,
   where the stamp clips it. */
.hero__art {
  align-self: start;
  position: relative;
  width: 120%;
  margin: 5% 0 -27% 4%;
  pointer-events: none;
}

.hero__art img {
  width: 100%;
  height: auto;
}

/* ==========================================================
   02 · THE REWARDS
   ========================================================== */

.rewards {
  --stamp-green: #3f7c46;
  --stamp-red: #d3392b;
  --stamp-ink: #1c1c1c;
  /* yellow fold: ink heading, dark green subtitle and body text */
  --section-head: #1e1e1e;
  --section-sub: var(--green-dark);
  --section-text: var(--green-dark);
  --stamp-shadow: 120, 70, 0;
  position: relative;
  overflow: hidden;
  background: var(--yellow);   /* same yellow as the hero */
  isolation: isolate;          /* keeps the aura (z-index -1) inside the section */
  padding: clamp(48px, 5.5vw, 88px) 16px clamp(140px, 13vw, 190px);
  text-align: center;
}

/* Pin-wheel bursts (assets/wireframed26/rewards-bg.svg): one centred on each
   bottom corner, so half of each shows, slowly turning. */
.rewards::before,
.rewards::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 100%;
  width: min(90vw, 1300px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("rewards-bg.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);   /* kept when motion is reduced */
  animation: aura-spin 120s linear infinite;
}

.rewards::before {
  left: 0;
}

.rewards::after {
  left: 100%;
  animation-direction: reverse;
}

@keyframes aura-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.section-head__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--section-head, #222);
}

.section-head__ornament {
  width: auto;
  height: 0.5em;
}

.section-head__ornament--flip {
  transform: scaleX(-1);
}

.section-head__sub {
  margin: 0.55em 0 0;
  font-size: clamp(17px, 1.75vw, 25px);
  font-weight: 600;
  font-style: italic;
  color: var(--section-sub, var(--green-dark));
}

.rewards__note {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  color: var(--section-text, var(--green-dark));
}

.corner-flower {
  position: absolute;
  bottom: 0;
  width: clamp(88px, 10vw, 150px);
  height: auto;
  pointer-events: none;
}

.corner-flower--left {
  left: 0;
}

.corner-flower--right {
  right: 0;
  transform: scaleX(-1);
}

/* ---------- Prize stamps ---------- */

.prizes {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
  margin: clamp(48px, 6vw, 88px) auto clamp(48px, 5.5vw, 80px);
  padding: 0;
  max-width: 1200px;
}

/* each <li> is a size container so the stamp's contents scale with it */
.prize {
  position: relative;
  container-type: inline-size;
  width: clamp(230px, 22vw, 310px);
  transform: rotate(var(--rot, 0deg));
}

/* contact shadow: drop-shadow follows the stamp's real (masked) outline */
.prize {
  filter: drop-shadow(0 5px 8px rgba(var(--stamp-shadow), 0.35)) drop-shadow(0 1px 2px rgba(var(--stamp-shadow), 0.3));
}

.prize--1 {
  order: 2;
  width: clamp(250px, 24vw, 340px);
}

.prize--2 {
  order: 1;
}

.prize--3 {
  order: 3;
}

/* the 2nd and 3rd place artwork comes tilted (about -5deg and +7deg), so
   they get no extra --rot. Their images are wider than the stamp itself
   (the tilt adds to the bounding box), so they are scaled up to match the
   stamp size of an untilted one, overhanging the box evenly. */
.prize--2 .prize-stamp__img {
  width: 110%;
  max-width: none;
  margin-left: -5%;
}

.prize--3 .prize-stamp__img {
  width: 115%;
  max-width: none;
  margin-left: -7.5%;
}

/* the artwork is the whole stamp, perforated paper edge included */
.prize-stamp {
  position: relative;
}

.prize-stamp__frame {
  position: relative;
  margin: 0;
}

/* the designer's stamp artwork (rays, illustration, place, prize) */
.prize-stamp__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sticker reveal ----------
   JS adds .reveal-ready to .prizes (so stamps are only hidden when the
   animation will actually run), then .is-applied to each .prize as it
   scrolls into view. Stamp drops in large + tilted with a lifted shadow,
   presses down, settles. */

.prizes.reveal-ready .prize:not(.is-applied) {
  opacity: 0;
}

.prize.is-applied {
  animation:
    sticker-apply 0.75s cubic-bezier(0.3, 0.7, 0.3, 1) both,
    sticker-shadow 0.75s cubic-bezier(0.3, 0.7, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}


@keyframes sticker-apply {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(1.22) rotate(calc(var(--rot, 0deg) + 7deg));
  }
  45% {
    opacity: 1;
  }
  70% {
    transform: translateY(2px) scale(0.975) rotate(calc(var(--rot, 0deg) - 0.6deg));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rot, 0deg));
  }
}

@keyframes sticker-shadow {
  0% {
    filter: drop-shadow(0 34px 30px rgba(var(--stamp-shadow), 0.25)) drop-shadow(0 12px 12px rgba(var(--stamp-shadow), 0.16));
  }
  70%,
  100% {
    filter: drop-shadow(0 5px 8px rgba(var(--stamp-shadow), 0.35)) drop-shadow(0 1px 2px rgba(var(--stamp-shadow), 0.3));
  }
}

/* ==========================================================
   03 · PLAYGROUND (about): blue grid paper, Gateway of India
   standing on the fold's bottom edge, copy beside it, a taxi.
   ========================================================== */

.playground {
  --sky: #e6f6fc;
  --sky-grid: rgba(110, 170, 200, 0.24);
  position: relative;
  display: grid;
  gap: 28px;
  padding: 56px 20px 0;
  background-color: var(--sky);
  background-image:
    linear-gradient(var(--sky-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sky-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}

.playground__title {
  margin: 0 0 0.9em;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

/* phones: centred between pink dividers, like the other section titles;
   desktop: left-aligned, no dividers */
.playground__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-align: center;
}

.playground__divider {
  flex: none;
  width: 1.3em;
  height: auto;
}

.playground__divider--flip {
  transform: scaleX(-1);
}

.playground__copy {
  text-align: center;
}

.playground__title [lang="mr"] {
  font-family: "Mukta", var(--font-display);
  font-weight: 800;
  color: #fc3b77;
}

.playground__copy p {
  margin: 0 auto 1.2em;          /* centred on phones; flush left on desktop */
  max-width: 50ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.4;
  color: var(--green-dark);
}

.playground__copy p:last-child {
  margin-bottom: 0;
}

.playground__gateway {
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
}

/* parked on the right; with JS it drives in from off-screen right
   towards the Gateway as the fold scrolls by (never past its left edge) */
.playground__taxi {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: clamp(88px, 9vw, 130px);
  height: auto;
  will-change: transform;
}

/* ==========================================================
   04 - FORMAT: grid paper. Desktop: pinned stage, a train drives in
   on scroll and reveals the five steps. Phones: steps listed in full.
   ========================================================== */

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

.format {
  --rail: #3a3a3a;
  --badge-ring: #4a7a2c;
  position: relative;
  color: var(--green-dark);
  background-color: var(--paper);
  /* the swipe row and the parked train must never widen the page on
     phones; clip (not hidden) keeps the desktop sticky stage working */
  overflow-x: clip;
}

/* the grid lives on the stage, so while the stage is pinned the grid
   holds still with it instead of sliding past */
.format__stage {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 64px;
  overflow: hidden;           /* the train runs in from off-screen */
  text-align: center;
}

.format__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: #1e1e1e;
}

.format__divider {
  flex: none;
  width: 1.55em;
  height: auto;
}

/* phones: heading stays on one line between its dividers */
@media (max-width: 860px) {
  .format__title {
    gap: 0.4em;
    font-size: min(24px, 6.2vw);
    white-space: nowrap;
  }

  .format__divider {
    width: 1.3em;
  }
}

/* short phones (iPhone SE and the like): tighter spacing so the pinned
   stage still fits under the navbar */
@media (max-width: 860px) and (max-height: 700px) {
  .format .format__sub {
    font-size: 16px;
  }

  .format .fsteps {
    --step-w: min(280px, 78vw);
  }

  .format .format__track {
    margin-top: 18px;
  }

  .format .fsteps {
    margin-top: 16px;
  }

  .format .fstep__title {
    font-size: 17px;
  }

  .format .fstep__text {
    font-size: 14px;
  }

  .format .format__note {
    margin-top: 36px;
    font-size: 14px;
  }
}

.format__divider--flip {
  transform: scaleX(-1);
}

/* phones: "A board full of missions." on its own second line */
@media (min-width: 861px) {
  .format__br {
    display: none;
  }
}

.format__sub {
  margin: 0.55em 0 0;
  font-size: clamp(17px, 1.9vw, 28px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

/* rail: a thin line the full width of the screen, the train sits on it */
.format__track {
  position: relative;
  align-self: stretch;
  margin: 36px -20px 0;
  border-bottom: 2px solid var(--rail);
}

.format__train {
  width: min(220%, 900px);
  max-width: none;
  height: auto;
  /* phones: parked with its nose at the centre of the screen */
  margin-left: 50%;
  transform: translateX(-100%);
  will-change: transform;
}

/* phones with motion: JS rolls the train in from the left edge */
.format.is-dealing .format__train {
  margin-left: 0;
}

/* phones: the steps are a row, edge to edge, the current step centred
   with its neighbours peeking in; each snaps to the centre */
.fsteps {
  --step-w: min(280px, 72vw);
  display: flex;
  gap: 16px;
  align-self: stretch;
  margin: 32px -20px 0;
  /* the row spans the screen; side padding lets the first and last step
     sit in the centre */
  padding: 4px calc((100vw - var(--step-w)) / 2) 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.fsteps::-webkit-scrollbar {
  display: none;
}

.fstep {
  display: flex;
  flex: 0 0 var(--step-w);
  flex-direction: column;
  align-items: center;
  scroll-snap-align: center;
}

.fstep__num {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border: 3px solid var(--badge-ring);
  border-radius: 50%;
  background: var(--yellow);
  color: #1e1e1e;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.fstep__title {
  margin: 0.5em 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.15;
  color: #1e1e1e;
}

.fstep__accent {
  display: block;
  color: var(--maroon);
}

.fstep__text {
  max-width: 24ch;
  margin: 0.6em 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.format__note {
  max-width: 60ch;
  margin: 64px 0 0;   /* clear air below the tilted cards */
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Desktop: hero fits in one screen ----------
   Top bar + stamp together take exactly the viewport height (capped on very
   tall screens). Left-column sizes scale with --s, the smaller of 1vw and
   1.75vh, so the content fits whether the screen is short or narrow.
   The illustration is sized against the stamp itself (container units). */

/* =========================================================================
   05 · SCHEDULE: maroon grid paper, a black departures board (artwork,
   a stacked version on phones).
   ========================================================================= */

.schedule {
  --sched-bg: #3a1a1b;
  --sched-grid: rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 16px 72px;
  overflow: hidden;
  background-color: var(--sched-bg);
  background-image:
    linear-gradient(var(--sched-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sched-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  text-align: center;
}

.schedule__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0;
  font-size: min(26px, 6.2vw);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  color: #fff;
}

.schedule__divider {
  flex: none;
  width: 1.4em;
  height: auto;
}

.schedule__divider--flip {
  transform: scaleX(-1);
}

.schedule__sub {
  margin: 0.5em 0 0;
  font-size: clamp(16px, 1.6vw, 22px);
  font-style: italic;
  font-weight: 700;
  color: var(--yellow);
}

/* the flowers hang from the top corners (the PNG is a bottom-left corner) */
.schedule__flower {
  position: absolute;
  top: 0;
  width: clamp(72px, 8vw, 130px);
  height: auto;
  pointer-events: none;
}

.schedule__flower--left {
  left: 0;
  transform: scaleY(-1);
}

.schedule__flower--right {
  right: 0;
  transform: scale(-1, -1);
}

/* ---- the board ---- */
.board {
  width: min(100%, 980px);
  margin-top: 36px;
}

.board__art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

/* =========================================================================
   Sponsors & partners: yellow fold, a row of cream perforated stamps
   waiting for logos ("Revealing soon").
   ========================================================================= */
.sponsors {
  --sponsor-ink: #141414;
  --sponsor-pink: #e2457a;
  position: relative;
  padding: 72px 20px 88px;
  background: var(--yellow);
  color: var(--sponsor-ink);
  overflow-x: clip;             /* tilted stamps never widen the page */
}

/* header: same pattern as the folds above (centred title between pink
   dividers, green subheader) via .section-head */
.sponsors__head {
  max-width: 1480px;
  margin: 0 auto;
  text-align: center;
}

.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  max-width: 1480px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}

.sponsor {
  container-type: inline-size;
  transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 3px 5px rgba(90, 60, 0, 0.18));
}

/* hand-placed look: each stamp sits a touch off-square (the dashed frame
   inside follows the stamp's own angle) */
.sponsor:nth-child(1) { --rot: -1.2deg; }
.sponsor:nth-child(2) { --rot: 1deg; }
.sponsor:nth-child(3) { --rot: -0.6deg; }
.sponsor:nth-child(4) { --rot: 0.8deg; }
.sponsor:nth-child(5) { --rot: -1deg; }
.sponsor:nth-child(6) { --rot: 0.6deg; }

/* perforated edge: real cut-outs, same technique as the hero stamp */
.sponsor-stamp {
  --r: 4.4cqw;
  --corner: calc(var(--r) * 0.9);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.8;
  padding: var(--corner);
  /* perforated paper as an image, not a CSS mask: iOS Safari redraws
     masked elements unreliably while they turn in 3D (the flip), which
     made the edges jump on phones. Same geometry as before: 4.4% bites,
     7 across and 9 down, square corners. The cream, maroon and green
     papers are inlined (not files) because the backs start hidden: a file
     would only download on the first flip, leaving that stamp blank. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cmask id='m'%3E%3Crect width='100' height='125' fill='%23fff'/%3E%3Cg fill='%23000'%3E%3Ccircle cx='10.160' cy='0.000' r='4.4'/%3E%3Ccircle cx='23.440' cy='0.000' r='4.4'/%3E%3Ccircle cx='36.720' cy='0.000' r='4.4'/%3E%3Ccircle cx='50.000' cy='0.000' r='4.4'/%3E%3Ccircle cx='63.280' cy='0.000' r='4.4'/%3E%3Ccircle cx='76.560' cy='0.000' r='4.4'/%3E%3Ccircle cx='89.840' cy='0.000' r='4.4'/%3E%3Ccircle cx='10.160' cy='125.000' r='4.4'/%3E%3Ccircle cx='23.440' cy='125.000' r='4.4'/%3E%3Ccircle cx='36.720' cy='125.000' r='4.4'/%3E%3Ccircle cx='50.000' cy='125.000' r='4.4'/%3E%3Ccircle cx='63.280' cy='125.000' r='4.4'/%3E%3Ccircle cx='76.560' cy='125.000' r='4.4'/%3E%3Ccircle cx='89.840' cy='125.000' r='4.4'/%3E%3Ccircle cx='0.000' cy='10.160' r='4.4'/%3E%3Ccircle cx='0.000' cy='23.245' r='4.4'/%3E%3Ccircle cx='0.000' cy='36.330' r='4.4'/%3E%3Ccircle cx='0.000' cy='49.415' r='4.4'/%3E%3Ccircle cx='0.000' cy='62.500' r='4.4'/%3E%3Ccircle cx='0.000' cy='75.585' r='4.4'/%3E%3Ccircle cx='0.000' cy='88.670' r='4.4'/%3E%3Ccircle cx='0.000' cy='101.755' r='4.4'/%3E%3Ccircle cx='0.000' cy='114.840' r='4.4'/%3E%3Ccircle cx='100.000' cy='10.160' r='4.4'/%3E%3Ccircle cx='100.000' cy='23.245' r='4.4'/%3E%3Ccircle cx='100.000' cy='36.330' r='4.4'/%3E%3Ccircle cx='100.000' cy='49.415' r='4.4'/%3E%3Ccircle cx='100.000' cy='62.500' r='4.4'/%3E%3Ccircle cx='100.000' cy='75.585' r='4.4'/%3E%3Ccircle cx='100.000' cy='88.670' r='4.4'/%3E%3Ccircle cx='100.000' cy='101.755' r='4.4'/%3E%3Ccircle cx='100.000' cy='114.840' r='4.4'/%3E%3C/g%3E%3C/mask%3E%3Crect width='100' height='125' fill='%23faf0d2' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* dashed inner border, square to the stamp */
.sponsor-stamp__frame {
  position: absolute;
  inset: 7cqw;
  border: max(1px, 0.75cqw) dashed rgba(20, 20, 20, 0.62);
}

.sponsor-stamp__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
}

/* revealed partner: logo centred in the frame, its role in a small pink
   pill near the bottom (upright, unlike the tilted "Revealing soon") */
.sponsor-stamp--partner .sponsor-stamp__frame img {
  padding: 14% 13% 30%;
}

.sponsor-stamp__role {
  position: absolute;
  bottom: 15cqw;
  left: 50%;
  padding: 2cqw 4.4cqw;
  border: max(1.5px, 0.9cqw) solid var(--sponsor-pink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 5.4cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--sponsor-pink);
  transform: translateX(-50%);
}

/* pink "Revealing soon" rubber stamp */
.sponsor-stamp__tag {
  position: relative;
  padding: 2.6cqw 5.5cqw;
  border: max(1.5px, 1.1cqw) solid var(--sponsor-pink);
  border-radius: 999px;
  font-size: 7.4cqw;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--sponsor-pink);
  transform: rotate(-11deg);
}

/* ---------- Easter egg: flip a stamp for a Mumbai fact ----------
   The whole stamp is a button. Click: it turns edge-on, swaps face, and
   turns back (page script, after the sticker reveal). The back is a coloured
   stamp: a "Mumbai fact #X" label and the fact. */
.sponsor__flip {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* hover: a slight grow from the centre, so the stamp keeps its place and
   angle. It uses the separate `scale` property, which the flip (animating
   `transform`) never touches, so nothing snaps when a flip ends. Mouse and
   trackpad only: on touch screens a tap would leave it grown. */
@media (hover: hover) and (pointer: fine) {
  .sponsor__flip {
    transition: scale 0.2s var(--ease-out);
  }

  .sponsor__flip:hover {
    scale: 1.03;
  }
}

.sponsor__flip:focus-visible {
  outline: 2px dashed var(--sponsor-ink);
  outline-offset: 6px;
}

.sponsor-stamp[hidden] {
  display: none;
}

/* back: alternating maroon and green paper */
.sponsor-stamp--back {
  --fact-ink: #fff5dc;
  --fact-accent: var(--yellow, #ffc60b);
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cmask id='m'%3E%3Crect width='100' height='125' fill='%23fff'/%3E%3Cg fill='%23000'%3E%3Ccircle cx='10.160' cy='0.000' r='4.4'/%3E%3Ccircle cx='23.440' cy='0.000' r='4.4'/%3E%3Ccircle cx='36.720' cy='0.000' r='4.4'/%3E%3Ccircle cx='50.000' cy='0.000' r='4.4'/%3E%3Ccircle cx='63.280' cy='0.000' r='4.4'/%3E%3Ccircle cx='76.560' cy='0.000' r='4.4'/%3E%3Ccircle cx='89.840' cy='0.000' r='4.4'/%3E%3Ccircle cx='10.160' cy='125.000' r='4.4'/%3E%3Ccircle cx='23.440' cy='125.000' r='4.4'/%3E%3Ccircle cx='36.720' cy='125.000' r='4.4'/%3E%3Ccircle cx='50.000' cy='125.000' r='4.4'/%3E%3Ccircle cx='63.280' cy='125.000' r='4.4'/%3E%3Ccircle cx='76.560' cy='125.000' r='4.4'/%3E%3Ccircle cx='89.840' cy='125.000' r='4.4'/%3E%3Ccircle cx='0.000' cy='10.160' r='4.4'/%3E%3Ccircle cx='0.000' cy='23.245' r='4.4'/%3E%3Ccircle cx='0.000' cy='36.330' r='4.4'/%3E%3Ccircle cx='0.000' cy='49.415' r='4.4'/%3E%3Ccircle cx='0.000' cy='62.500' r='4.4'/%3E%3Ccircle cx='0.000' cy='75.585' r='4.4'/%3E%3Ccircle cx='0.000' cy='88.670' r='4.4'/%3E%3Ccircle cx='0.000' cy='101.755' r='4.4'/%3E%3Ccircle cx='0.000' cy='114.840' r='4.4'/%3E%3Ccircle cx='100.000' cy='10.160' r='4.4'/%3E%3Ccircle cx='100.000' cy='23.245' r='4.4'/%3E%3Ccircle cx='100.000' cy='36.330' r='4.4'/%3E%3Ccircle cx='100.000' cy='49.415' r='4.4'/%3E%3Ccircle cx='100.000' cy='62.500' r='4.4'/%3E%3Ccircle cx='100.000' cy='75.585' r='4.4'/%3E%3Ccircle cx='100.000' cy='88.670' r='4.4'/%3E%3Ccircle cx='100.000' cy='101.755' r='4.4'/%3E%3Ccircle cx='100.000' cy='114.840' r='4.4'/%3E%3C/g%3E%3C/mask%3E%3Crect width='100' height='125' fill='%23a3194b' mask='url(%23m)'/%3E%3C/svg%3E");
  color: var(--fact-ink);
}

.sponsor:nth-child(even) .sponsor-stamp--back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cmask id='m'%3E%3Crect width='100' height='125' fill='%23fff'/%3E%3Cg fill='%23000'%3E%3Ccircle cx='10.160' cy='0.000' r='4.4'/%3E%3Ccircle cx='23.440' cy='0.000' r='4.4'/%3E%3Ccircle cx='36.720' cy='0.000' r='4.4'/%3E%3Ccircle cx='50.000' cy='0.000' r='4.4'/%3E%3Ccircle cx='63.280' cy='0.000' r='4.4'/%3E%3Ccircle cx='76.560' cy='0.000' r='4.4'/%3E%3Ccircle cx='89.840' cy='0.000' r='4.4'/%3E%3Ccircle cx='10.160' cy='125.000' r='4.4'/%3E%3Ccircle cx='23.440' cy='125.000' r='4.4'/%3E%3Ccircle cx='36.720' cy='125.000' r='4.4'/%3E%3Ccircle cx='50.000' cy='125.000' r='4.4'/%3E%3Ccircle cx='63.280' cy='125.000' r='4.4'/%3E%3Ccircle cx='76.560' cy='125.000' r='4.4'/%3E%3Ccircle cx='89.840' cy='125.000' r='4.4'/%3E%3Ccircle cx='0.000' cy='10.160' r='4.4'/%3E%3Ccircle cx='0.000' cy='23.245' r='4.4'/%3E%3Ccircle cx='0.000' cy='36.330' r='4.4'/%3E%3Ccircle cx='0.000' cy='49.415' r='4.4'/%3E%3Ccircle cx='0.000' cy='62.500' r='4.4'/%3E%3Ccircle cx='0.000' cy='75.585' r='4.4'/%3E%3Ccircle cx='0.000' cy='88.670' r='4.4'/%3E%3Ccircle cx='0.000' cy='101.755' r='4.4'/%3E%3Ccircle cx='0.000' cy='114.840' r='4.4'/%3E%3Ccircle cx='100.000' cy='10.160' r='4.4'/%3E%3Ccircle cx='100.000' cy='23.245' r='4.4'/%3E%3Ccircle cx='100.000' cy='36.330' r='4.4'/%3E%3Ccircle cx='100.000' cy='49.415' r='4.4'/%3E%3Ccircle cx='100.000' cy='62.500' r='4.4'/%3E%3Ccircle cx='100.000' cy='75.585' r='4.4'/%3E%3Ccircle cx='100.000' cy='88.670' r='4.4'/%3E%3Ccircle cx='100.000' cy='101.755' r='4.4'/%3E%3Ccircle cx='100.000' cy='114.840' r='4.4'/%3E%3C/g%3E%3C/mask%3E%3Crect width='100' height='125' fill='%232f6b34' mask='url(%23m)'/%3E%3C/svg%3E");
}

/* content area inside the perforations (no frame line) */
.sponsor-fact {
  position: absolute;
  inset: 7cqw;
  display: flex;
  flex-direction: column;
  padding: 6cqw 6cqw 5cqw;
  overflow: hidden;
}

.sponsor-fact__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding-bottom: 3.4cqw;
  border-bottom: max(1px, 0.6cqw) dashed rgba(255, 245, 220, 0.45);
  font-family: "Montserrat", var(--font-display);
  font-size: max(9px, 4.6cqw);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fact-accent);
}

.sponsor-fact__text {
  position: relative;
  z-index: 1;
  margin-top: 4.5cqw;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: max(10.5px, 6.5cqw);
  font-weight: 600;
  line-height: 1.3;
}


/* sticker reveal (shared with the prize stamps, see .prize.is-applied) */
.sponsors__grid.reveal-ready .sponsor:not(.is-applied) {
  opacity: 0;
}

.sponsor.is-applied {
  animation: sticker-apply 0.75s cubic-bezier(0.3, 0.7, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* =========================================================================
   FAQs: grid-paper fold. Left column: label, title, team-search card, art;
   right column: accordion.
   ========================================================================= */
.faqs {
  --faq-ink: #141414;
  --faq-green: #3f9a57;
  --faq-red: #c8352a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  display: grid;
  gap: 40px;
  padding: 72px 20px 88px;
  color: var(--faq-ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* header: same pattern as the folds above, centred across both columns */
.faqs__head {
  grid-column: 1 / -1;
  text-align: center;
}

.team-card {
  max-width: 420px;
  margin-top: 0;
  padding: 22px 22px 24px;
  border: 3px solid var(--faq-ink);
  background: var(--faq-green);
  color: #fff8e6;
  box-shadow: 6px 6px 0 var(--faq-ink);
}

.team-card__tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  background: #fdf4d6;
  color: #2f7a43;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.team-card__text {
  margin: 16px 0 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.team-card__link:hover span,
.team-card__link:focus-visible span {
  transform: translateX(4px);
}

.team-card__link span {
  transition: transform 0.2s ease;
}


/* ----- accordion ----- */
.faqs__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid var(--faq-ink);
}

.faq {
  border-top: 2px solid var(--faq-ink);
}

.faq__q {
  margin: 0;
}

.faq__btn {
  display: grid;
  grid-template-columns: 24px 1fr 36px;   /* single-digit numbers */
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq__num {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgba(20, 20, 20, 0.6);
}

.faq__text {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

/* red marks the open (active) question only */
.faq__btn[aria-expanded="true"] .faq__text {
  color: var(--faq-red);
}

.faq__btn:hover .faq__icon {
  background: rgba(20, 20, 20, 0.06);
}

.faq__btn:focus-visible {
  outline: 2px solid var(--faq-ink);
  outline-offset: 4px;
}

/* circled plus, turns into a minus when open */
.faq__icon {
  position: relative;
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 2px solid var(--faq-ink);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--faq-ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__btn[aria-expanded="true"] .faq__icon {
  background: var(--yellow);
}

.faq__btn[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* answer: grid-rows 0fr -> 1fr animates to the content's natural height */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  margin: 0;
  /* spans the same width as the question text: in from the number column
     on the left, clear of the +/- icon column on the right */
  padding: 0 48px 22px 36px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--faq-ink);
}

.faq__a a {
  color: var(--faq-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.faq__a a:hover,
.faq__a a:focus-visible {
  color: #e2457a;   /* the site's pink (sponsor and partner sections) */
}

.faq.is-open .faq__a {
  grid-template-rows: 1fr;
}

/* =========================================================================
   Partner with us: yellow fold, cream card framed by a truck-art border
   (green rules around a band of pink beads and green ticks).
   ========================================================================= */
.partner {
  --partner-ink: #141414;
  --partner-pink: #e2457a;
  --partner-green: #3f8a45;
  --partner-cream: #f9efcf;
  padding: 56px 16px 72px;
  background: var(--yellow);
  color: var(--partner-ink);
}

.partner__card {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px;
  border: 2px solid var(--partner-green);
  background-color: var(--partner-cream);
  /* bead band: pink bead, green tick, small pink dot */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='5' cy='9' r='3.4' fill='%23e2457a'/%3E%3Ccircle cx='5' cy='9' r='1.3' fill='%23ffc60b'/%3E%3Cpath d='M10.5 11.5q1.5-5 3 0t3 0' fill='none' stroke='%233f8a45' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}

.partner__inner {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 40px 22px;
  border: 2px solid var(--partner-green);
  background-color: var(--partner-cream);
  /* faint tick marks just inside the frame */
  background-image:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(63, 138, 69, 0.45) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(63, 138, 69, 0.45) 46px 48px);
  background-size: 100% 8px, 100% 8px;
  background-position: 0 10px, 0 calc(100% - 10px);
  background-repeat: no-repeat;
}

.partner__corner {
  position: absolute;
  z-index: 1;
  width: 30px;
  height: auto;
  pointer-events: none;
}

.partner__corner--bl { left: 0; bottom: 0; }
.partner__corner--br { right: 0; bottom: 0; transform: scaleX(-1); }
.partner__corner--tl { left: 0; top: 0; transform: scaleY(-1); }
.partner__corner--tr { right: 0; top: 0; transform: scale(-1, -1); }

.partner__title {
  margin: 0;
  font-size: clamp(34px, 11vw, 60px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.partner__title em {
  font-style: normal;
  color: var(--partner-pink);
}

.partner__text {
  max-width: 52ch;
  margin: 22px 0 28px;
  font-size: 17px;
  line-height: 1.6;
}

/* same button as the hero's "Register Your Team" */
.btn-register.partner__btn {
  /* black variant: same button, black face, grey-black base */
  --maroon: #141414;
  --maroon-dark: #000;
  margin-top: 0;
}

/* ----- Shop shutter over the partner card -----
   Hidden unless JS has marked the card .shutter-ready (so no-JS and
   reduced-motion visitors simply see the card). On .shutter-open the door
   gives a little tug, then rolls up out of the card. */
.shutter {
  display: none;
  position: absolute;
  inset: -2px;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.shutter-ready .shutter {
  display: block;
}

.shutter__door {
  position: relative;
  height: 100%;
  container-type: inline-size;
}

.shutter__door img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* "PARTNER WITH US" painted across the middle of the shutter: red block
   letters with a dark drop, rough brush edges, slat grooves showing through */
.shutter__paint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 9.6cqw;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #b8473a;
  text-shadow: 0.05em 0.06em 0 #2b2a28;
  filter: url(#paint-rough);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

/* narrow cards (phones): two bigger lines instead of one small one */
@container (max-width: 600px) {
  .shutter__paint {
    font-size: 17cqw;
    line-height: 0.95;
    text-align: center;
  }

  .shutter__paint span {
    display: block;
  }
}

.shutter__filters {
  position: absolute;
}

.shutter-open .shutter__door {
  animation: shutter-roll 1s cubic-bezier(0.45, 0, 0.35, 1) forwards;
}

.shutter-open .shutter {
  visibility: hidden;
  transition: visibility 0s linear 1.1s;
}

@keyframes shutter-roll {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(-4%); }   /* tug */
  20%  { transform: translateY(-2.5%); } /* drops back a touch */
  100% { transform: translateY(-101%); } /* rolled up */
}

/* =========================================================================
   Footer: dark, logo + link columns, interactive Mumbai Maxxing wordmark
   ========================================================================= */
.footer {
  --footer-text: #fff5cf;
  --footer-muted: #a59a86;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0 28px;
  overflow: hidden;
  background: #1e1e1e;
  color: var(--footer-text);
}

.footer__wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.footer__top {
  display: grid;
  gap: 40px;
}

.footer__brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
}

.footer__fofm {
  width: auto;
  height: 34px;
  max-width: none;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.footer__cols > div:last-child {
  grid-column: 1 / -1;
}

.footer__cols h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer__cols ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__cols a {
  color: inherit;
  font-size: 1.05rem;
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s;
}

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

.footer .socials {
  grid-auto-flow: column;
  justify-content: start;
  gap: 10px;
}

.footer .socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #4a4339;
  background: none;
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}

.footer .socials a:hover,
.footer .socials a:focus-visible {
  border-color: var(--yellow);
  transform: translateY(-3px) rotate(-6deg);
}

.footer .socials svg {
  width: 22px;
  height: 22px;
}

.footer a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* giant interactive wordmark */
.footer__giant {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.mx {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: #f5f5f5;
}

.mx__g,
.mx__layer g {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.mx__g {
  transition: fill 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mx__layer {
  opacity: calc(var(--echo, 0) * 0.95);
}

/* Figma multiplayer cursors that wander the footer */
.fcur-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.mcur {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}

.mcur.is-on {
  visibility: visible;
}

/* your own pointer, drawn as a Figma cursor named "You" */
.mcur--you {
  z-index: 1;
}

.footer.has-you,
.footer.has-you * {
  cursor: none !important;
}

.mcur svg {
  display: block;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  transform-origin: 3px 2.5px;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mcur.is-click svg {
  transform: scale(0.78);
}

.mcur span {
  position: absolute;
  top: 18px;
  left: 16px;
  padding: 5px 8px;
  border-radius: 4px 12px 12px 12px;
  background: var(--c);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #3a342c;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

.footer__bottom p {
  margin: 0;
}

@media (min-width: 561px) {
  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__cols > div:last-child {
    grid-column: auto;
  }
}

@media (min-width: 861px) {
  .footer__top {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 861px) {
  :root {
    --topbar-h: clamp(64px, 12vh, 130px);
    --bar-h: 68px;
    /* capped at 15px: the stamp stops growing at 1480px wide */
    --s: min(1vw, 1.75vh, 15px);
  }

  .fof-logo img {
    height: clamp(28px, 4.6vh, 48px);
  }

  .topbar.is-scrolled .fof-logo img {
    height: 34px;
  }

  /* Hero is the exception to the one-screen rule: the stamp fills the
     screen below the logo bar (as before), and the equal yellow band under
     it (padding = --topbar-h) may fall just below the fold. */
  .stamp {
    height: clamp(480px, calc(100svh - var(--topbar-h) - 3.5vh), 860px);
    container-type: size;
  }

  .stamp__inner {
    display: block;
    height: calc(100% + var(--scallop-corner) * 2);
    min-height: 0;
  }

  .hero__content {
    position: relative;
    z-index: 1;
    width: 48%;
    height: 100%;
    justify-content: center;
    padding: 0 0 0 4%;
    margin: 0;
  }

  .hero__title {
    width: min(calc(var(--s) * 36), 100%);
  }

  .hero__tagline {
    margin: calc(var(--s) * 1.3) 0 calc(var(--s) * 2.6);
    font-size: max(15px, calc(var(--s) * 1.75));
  }

  .hero__details {
    width: min(calc(var(--s) * 42), 100%);
  }

  .btn-register {
    margin-top: calc(var(--s) * 2.6);
    font-size: max(16px, calc(var(--s) * 1.85));
  }

  .hero__art {
    --art: min(118cqh, 60cqw);
    position: absolute;
    right: calc(var(--art) * -0.2);
    bottom: calc(var(--art) * -0.22);
    width: var(--art);
    margin: 0;
  }

  /* ----- Rewards: whole fold fits in one screen -----
     Same --s scale as the hero; card contents already scale with the
     card width (container units), so sizing the cards by --s is enough. */
  .rewards {
    display: flex;
    flex-direction: column;
    /* content hugs the top (the hero's yellow band is already above it);
       spare height falls to the bottom, behind the corner flowers */
    justify-content: flex-start;
    /* hugs its content: no forced one-screen height, so no empty band
       below the stamps */
    padding: 2vh 16px 7vh;
  }

  .section-head__title {
    font-size: calc(var(--s) * 2.6);
  }

  .section-head__sub {
    font-size: calc(var(--s) * 1.7);
  }

  .prizes {
    gap: calc(var(--s) * 3.8);
    margin: 5vh auto 4vh;
  }

  .prize {
    width: calc(var(--s) * 19.5);
  }

  .prize--1 {
    width: calc(var(--s) * 22);
  }

  .rewards__note {
    font-size: max(14px, calc(var(--s) * 1.3));
  }

  .corner-flower {
    width: calc(var(--s) * 10);
  }

  /* ----- Playground: one full screen, art left on the road, copy right ----- */
  .playground {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    /* the Gateway sets the height (still standing on the bottom edge);
       the copy sits on its vertical centre */
    align-items: center;
    column-gap: calc(var(--s) * 4);
    padding: 6vh var(--page-gutter) 0;
  }

  .playground__copy {
    order: 2;
    text-align: left;
    max-width: calc(var(--s) * 42);
  }

  .playground__title {
    display: block;
    text-align: left;
    font-size: calc(var(--s) * 2.8);
    white-space: nowrap;
  }

  .playground__divider {
    display: none;
  }

  .playground__copy p {
    margin-left: 0;
    font-size: max(15px, calc(var(--s) * 1.4));
  }

  /* as big as the column allows, but never taller than ~80% of the fold */
  .playground__gateway {
    order: 1;
    justify-self: end;
    width: min(100%, calc(var(--s) * 56), calc((min(100svh - var(--bar-h), 900px)) * 0.8 * 1.418));
    margin: 0;
  }

  .playground__taxi {
    right: calc(var(--page-gutter) + 1vw);
    width: calc(var(--s) * 10);
  }

  /* ----- Schedule: one screen ----- */
  .schedule {
    justify-content: center;
    padding: 8vh var(--page-gutter);
  }

  .schedule__title {
    font-size: calc(var(--s) * 2.6);
  }

  .schedule__sub {
    font-size: calc(var(--s) * 1.7);
  }

  .schedule__flower {
    width: calc(var(--s) * 9);
  }

  /* as wide as the design allows, but short enough to fit the fold */
  .board {
    width: min(100%, calc(var(--s) * 66), calc((100svh - var(--bar-h) - 32vh) * 2.745));
    margin-top: 6vh;
  }

  /* ----- Sponsors: title left, note right, six stamps in a row ----- */
  .sponsors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vh var(--page-gutter);
  }

  .sponsors__head {
    width: 100%;
  }

  .sponsors__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: calc(var(--s) * 2.4);
    width: 100%;
    margin-top: 8vh;
  }

  /* small laptops: six in a row leaves the fact backs too small to read,
     so two rows of three */
  @media (max-width: 1199px) {
    .sponsors__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      max-width: 760px;
      margin-right: auto;
      margin-left: auto;
    }
  }

  /* ----- FAQs: the list alone, full width (the team card and the chai +
     vada pav art are for phones only) ----- */
  .faqs {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5vh;   /* header to content, as in the folds above */
    /* same edges as Sponsors (and the hero stamp / partner card): page
       gutter, content capped at 1480px and centred on wide screens */
    padding: 8vh max(var(--page-gutter), calc((100% - 1480px) / 2));
  }

  .faqs__side {
    display: none;
  }

  .faqs__list {
    max-width: none;
  }

  .faq__btn {
    grid-template-columns: calc(var(--s) * 2) 1fr 38px;
    padding: 2.1vh 0;
  }

  .faq__text {
    font-size: max(16px, calc(var(--s) * 1.75));
  }

  .faq__a p {
    padding-left: calc(var(--s) * 2 + 12px);
    padding-right: 50px;
    padding-bottom: 2.4vh;
    font-size: max(14px, calc(var(--s) * 1.15));
  }

  /* ----- Partner with us: copy left, Sea Link right ----- */
  .partner {
    display: flex;
    align-items: stretch;
    padding: 6vh var(--page-gutter);
  }

  .partner__card {
    display: grid;
    width: 100%;
    padding: 14px;
  }

  .partner__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: calc(var(--s) * 3);
    padding: 5vh calc(var(--s) * 6);
  }

  .partner__corner {
    width: 36px;
  }

  .partner__title {
    font-size: calc(var(--s) * 6.2);
  }

  /* three set lines, as in the design */
  .partner__title span {
    display: block;
    white-space: nowrap;
  }

  .partner__text {
    max-width: 48ch;
  }

  /* two set lines: the first ends at "event.", the second never wraps
     (from 1100px up; narrower than that the copy wraps normally) */
  @media (min-width: 1100px) {
    .partner__text {
      max-width: none;
    }

    .partner__text span {
      display: block;
      white-space: nowrap;
    }
  }

  .partner__text {
    margin: 3.5vh 0 4.5vh;
    font-size: max(15px, calc(var(--s) * 1.45));
  }


  /* ----- Format: pinned stage, the train drives in on scroll -----
     The section is a screen plus the scroll the drive takes; the stage is
     sticky under the navbar and is exactly one screen tall. */
  .format {
    height: calc(100svh - var(--bar-h) + 160vh);
  }

  .format__stage {
    position: sticky;
    top: var(--bar-h);
    justify-content: center;
    height: calc(100svh - var(--bar-h));
    min-height: 560px;
    padding: 4vh var(--page-gutter);
  }

  .format__title {
    font-size: calc(var(--s) * 2.6);
  }

  .format__sub {
    font-size: calc(var(--s) * 1.95);
  }

  .format__track {
    margin: 5vh calc(var(--page-gutter) * -1) 0;
  }

  .format__train {
    /* a screen wide: when the nose stops at the last step the tail is
       still off the left edge, as in the design */
    width: 100vw;
    margin-left: 0;
    transform: none;
  }

  .fsteps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: calc(var(--s) * 2);
    align-self: center;
    width: 100%;
    max-width: calc(var(--s) * 84);
    margin: 5vh 0 0;
    padding: 0;
    overflow: visible;
  }

  .fstep__num {
    font-size: max(15px, calc(var(--s) * 1.35));
  }

  .fstep__title {
    font-size: max(16px, calc(var(--s) * 1.45));
  }

  .fstep__text {
    font-size: max(15px, calc(var(--s) * 1.25));
  }

  .format__note {
    margin-top: 9vh;
    max-width: none;
    font-size: max(16px, calc(var(--s) * 1.45));
  }

  /* driving (JS on, motion allowed): steps wait for the train; each one
     appears, detail line included, as the train reaches it and stays */
  .format.is-driving .fstep {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
  }

  .format.is-driving .fstep.is-shown {
    opacity: 1;
    transform: none;
  }

  .format.is-driving .fstep__num {
    transform: scale(0.4);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .format.is-driving .fstep.is-shown .fstep__num {
    transform: none;
  }

}

/* ---------- Navbar on narrow screens: Menu button + dropdown ----------
   The full link row needs ~1000px, so below that the links fold into a menu. */

@media (max-width: 1024px) {
  .topbar.is-scrolled .topnav__toggle {
    display: inline-flex;
  }

  .topnav {
    position: absolute;
    top: 100%;
    right: calc(var(--page-gutter) * -1);
    left: calc(var(--page-gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--page-gutter) 20px;
    background: var(--yellow);
    box-shadow: 0 12px 24px rgba(20, 20, 20, 0.12);
  }

  /* scrolled alone isn't enough here - the menu must be opened */
  .topbar.is-scrolled .topnav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }

  .topbar.is-open .topnav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s;
  }

  .topnav__list {
    flex-direction: column;
    gap: 0;
  }

  .topnav__list a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  }

  .topnav__list a::after {
    display: none;
  }

  .topnav__cta {
    margin-top: 16px;
    padding: 12px 16px;
    text-align: center;
    font-size: 16px;
  }
}

/* very narrow phones: keep logo + Menu button on one line */
@media (max-width: 380px) {
  .fof-logo img,
  .topbar.is-scrolled .fof-logo img {
    height: 26px;
  }

  /* icon-only Menu button; label stays for screen readers */
  .topnav__toggle {
    padding: 10px;
  }

  .topnav__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .stamp__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__content {
    padding: 56px 9% 8px;
    margin-right: 0;
  }

  .hero__title {
    width: 92%;
  }

  .hero__art {
    width: 96%;
    max-width: 560px;
    margin: 32px auto -26%;
  }

  /* stamps stack, 1st place on top */
  .prizes {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .prize,
  .prize--1 {
    order: 0;
    width: min(260px, 66vw);
    margin-top: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-register,
  .topbar,
  .fof-logo,
  .fof-logo img,
  .topnav,
  .topbar.is-scrolled .topnav {
    transition: none;
  }
  .btn-register:hover img,
  .btn-register:focus-visible img {
    animation: none;
  }
  .rewards::before,
  .rewards::after {
    animation: none;
  }
  .sponsor.is-applied {
    animation: none;
  }
  .footer__cols a,
  .footer .socials a {
    transition: none;
  }
  .faq__a,
  .faq__icon,
  .faq__icon::before,
  .faq__icon::after {
    transition: none;
  }
  /* stamps simply appear in place */
  .prize.is-applied {
    animation: none;
  }
}

/* ---------- Trial: Montserrat, all caps ----------
   Each title keeps its original weight (700 or 800).
   Every section title (Rewards, Playground, How Does It Work?,
   The Day At A Glance, Sponsors, FAQs, Partner) and the FAQ
   questions. The Marathi word in the Playground title keeps
   Mukta (its own rule is more specific). Delete this block to
   drop the all-caps and per-title weight overrides. */
.section-head__title,
.playground__title,
.partner__title,
.format__title,
.schedule__title,
.faq__text {
  font-family: "Montserrat", var(--font-display);
  text-transform: uppercase;
}

/* the "Partner with us" paint on the shop shutter: Montserrat Bold */
.shutter__paint {
  font-family: "Montserrat", var(--font-display);
  font-weight: 700;
}

/* Hero tagline and section subheaders: Montserrat SemiBold, upright */
.hero__tagline,
.section-head__sub,
.format__sub,
.schedule__sub {
  font-family: "Montserrat", var(--font-display);
  font-weight: 600;
  font-style: normal;
}

/* ---------- Format steps as cards ----------
   Each step is a coloured card (green, yellow, maroon, yellow, green),
   tilted a little and overlapping its neighbours; later cards sit on top.
   Desktop: cards deal in one by one as the train reaches them.
   Phones: the same cards in the sliding row. */
.fstep {
  --card-bg: #3e7b43;
  --card-ink: #fffaf0;
  --card-lead: #ffd54a;
  --card-accent: #fff;
  --tilt: 0deg;
  position: relative;
  justify-content: flex-start;
  padding: 22px 18px 26px;
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transform: rotate(var(--tilt));
}

.fstep:nth-child(1) { --tilt: -4deg; }

.fstep:nth-child(2),
.fstep:nth-child(4) {
  --card-bg: #f6c445;
  --card-ink: #1e1e1e;
  --card-lead: #1e1e1e;
  --card-accent: var(--maroon);
}

.fstep:nth-child(2) { --tilt: -1deg; }

.fstep:nth-child(3) {
  --card-bg: var(--maroon);
  --card-ink: #fff;
  --card-lead: #fff;
  --card-accent: var(--yellow);
  --tilt: 4deg;
}

.fstep:nth-child(4) { --tilt: 1deg; }
.fstep:nth-child(5) { --tilt: 3deg; }

.fstep__num {
  border-color: #2f6b34;
  background: #fff;
  color: #141414;
}

.fstep__title {
  color: var(--card-lead);
}

.fstep__accent {
  color: var(--card-accent);
}

.fstep__text {
  max-width: none;
  color: var(--card-ink);
}

/* phones: the cards stack vertically, centred, each overlapping the one
   above; when motion is allowed each deals in as it scrolls into view */
@media (max-width: 860px) {
  .fsteps {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 28px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .fstep {
    flex: none;
    width: min(340px, 86vw);
  }

  .fstep + .fstep {
    margin-top: -14px;
  }

  .format.is-dealing .fstep {
    opacity: 0;
    transform: translateY(40px) rotate(calc(var(--tilt) - 10deg)) scale(0.9);
    transition:
      opacity 0.35s ease,
      transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .format.is-dealing .fstep.is-shown {
    opacity: 1;
    transform: rotate(var(--tilt));
  }
}

@media (min-width: 861px) {
  /* the cards overlap: no gap, and each card reaches into its neighbours */
  .fsteps {
    gap: 0;
  }

  .fstep,
  .fstep + .fstep {
    margin: 0 calc(var(--s) * -0.5);
    padding: calc(var(--s) * 1.5) calc(var(--s) * 1.4) calc(var(--s) * 1.8);
  }

  /* dealt in: each card drops in from below, turned a little further,
     and settles at its tilt when the train reaches it */
  .format.is-driving .fstep {
    opacity: 0;
    transform: translateY(40px) rotate(calc(var(--tilt) - 10deg)) scale(0.88);
    transition:
      opacity 0.35s ease,
      transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .format.is-driving .fstep.is-shown {
    opacity: 1;
    transform: rotate(var(--tilt));
  }
}

/* ---------- Easter egg: chai + vada pav in the partner card ----------
   Desktop only, in the card's empty right column, sitting on its bottom
   edge. The two pieces are positioned as in the original artwork
   (479 x 328). Click the chai: steam rises. Click the vada pav: a bite
   comes out (snack.js masks it), and after the last bite it crumbles and
   a fresh one pops back. */
.snack {
  display: none;
}

@media (min-width: 861px) {
  .snack {
    position: relative;
    display: block;
    justify-self: end;
    align-self: end;
    /* 10% wider than the column, spilling a little into the gap on its
       left and the card's padding on its right */
    width: min(110%, var(--s) * 31);
    aspect-ratio: 479 / 328;
    margin: 0 calc(var(--s) * -3.5) -2vh 0;
    container-type: inline-size;   /* bites and crumbs are sized in cqw */
  }
}

.snack__chai,
.snack__vada {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out, ease-out);
  -webkit-tap-highlight-color: transparent;
}

.snack__chai {
  left: 2.09%;
  top: 19.21%;
  width: 36.33%;
}

.snack__vada {
  left: 40.08%;
  top: 2.74%;
  width: 59.08%;
}

.snack__chai img,
.snack__vada img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.snack__chai:hover,
.snack__vada:hover {
  transform: rotate(-3deg) scale(1.03);
}

.snack__chai:focus-visible,
.snack__vada:focus-visible {
  outline: 2px dashed var(--partner-green, #3f7c46);
  outline-offset: 4px;
}

/* bites: snack.js sets the mask layers; each layer cuts one circle */
.snack__vada {
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.snack__vada.is-gone {
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.25s ease-in, opacity 0.25s ease-in;
}

.snack__vada.is-back {
  animation: snack-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes snack-pop {
  from { transform: scale(0.2); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.snack__crumb {
  position: absolute;
  border-radius: 40% 60% 50% 45%;
  pointer-events: none;
}

/* steam: three wisps above the glass */
.snack__steam {
  position: absolute;
  bottom: 88%;
  left: 18%;
  display: flex;
  justify-content: space-between;
  width: 62%;
  height: 70%;
  pointer-events: none;
}

.snack__steam svg {
  width: 26%;
  height: 100%;
  overflow: visible;
  opacity: 0;
}

.snack__steam path {
  fill: none;
  stroke: rgba(110, 88, 66, 0.5);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.snack__chai.is-steaming .snack__steam svg {
  animation: snack-steam 2.2s ease-out forwards;
}

.snack__chai.is-steaming .snack__steam svg:nth-child(2) {
  animation-delay: 0.25s;
}

.snack__chai.is-steaming .snack__steam svg:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes snack-steam {
  0% { opacity: 0; transform: translateY(30%) scaleY(0.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-35%) scaleY(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .snack__chai,
  .snack__vada {
    transition: none;
  }
  .snack__chai:hover,
  .snack__vada:hover {
    transform: none;
  }
  .snack__chai.is-steaming .snack__steam svg {
    animation: snack-steam-still 2.2s linear forwards;
    animation-delay: 0s;
  }
  .snack__vada.is-back {
    animation: none;
  }
}

@keyframes snack-steam-still {
  0%, 100% { opacity: 0; }
  20%, 70% { opacity: 1; }
}
