/* ==========================================================================
   Life Offline Design Challenge
   --------------------------------------------------------------------------
   How sizing works
   The Figma file is an art-directed collage, so the page scales as one piece:
     desktop (>= 900px):  1rem = 10px of the 1440px-wide Figma "Home" frame
     mobile  (<  900px):  1rem = 10px of the 390px-wide Figma "Mobile" frame
   So a value of 12.8rem here is 128px in Figma. Copy numbers straight across.
   ========================================================================== */

:root {
  --brown: #5f4022;
  --brown-soft: #7c5936;
  --paper: #f9eedb;
  --rule: #c0b0a1;
  --font-hand: "East Sea Dokdo", "Comic Sans MS", cursive;
  --font-type: "Special Elite", "Courier New", monospace;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-nav: "Azeret Mono", ui-monospace, monospace;
}

html { font-size: calc(100vw / 144); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 2rem;
  background: var(--paper) url("../assets/paper.webp") top center / 100% auto repeat-y fixed;
  overflow-x: clip;
}

img { display: block; max-width: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 0.3rem solid var(--brown); outline-offset: 0.4rem; border-radius: 0.4rem; }

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

.m-only { display: none !important; }

.page { position: relative; width: 144rem; margin: 0 auto; overflow-x: clip; }
.page section, .site-footer { position: relative; }
.deco { position: absolute; pointer-events: none; user-select: none; height: auto; }

/* Big hand-lettered headings */
.section-title {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 8rem;
  line-height: 5.95rem;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Header ---------- */
/* Fixed to the top; once the page scrolls it slides up 1.5rem (tighter).
   No visible edge: the paper behind the page is fixed to the window, and the header's own
   paper is the same image fixed the same way, so the two always line up. Its bottom fades
   out, so content scrolling under it dissolves instead of being cut by a line. */
.site-header {
  position: fixed; top: 0; left: 50%; width: 144rem; margin-left: -72rem; height: 11.5rem; z-index: 20;
  transition: transform 0.25s ease;
}
.site-header::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -2rem; bottom: -0.8rem; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: var(--paper) url("../assets/paper.webp") top center / 100% auto repeat-y fixed;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 1.2rem), transparent);
          mask-image: linear-gradient(#000 calc(100% - 1.2rem), transparent);
}
.site-header.is-scrolled { transform: translateY(-1.5rem); }
html { scroll-padding-top: 10rem; } /* #designers etc. land below the header */
.logo { position: absolute; left: 5.4rem; top: 2.6rem; display: flex; gap: 0.7rem; }
.logo img { height: 6.4rem; width: auto; }
.site-nav ul { position: absolute; left: 39.9rem; top: 5.1rem; display: flex; gap: 6rem; }
.site-nav ul a {
  display: block;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1.68rem;
  line-height: 2rem;
  text-transform: uppercase;
  border-bottom: 0.3rem solid transparent;
  padding-bottom: 0.1rem;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: currentColor; }
.btn-vote {
  position: absolute; left: 125.4rem; top: 3.7rem;
  width: 15.3rem; height: 4.2rem; border-radius: 2.1rem;
  display: grid; place-items: center;
  background: var(--brown); color: #fff;
  font-family: var(--font-nav); font-weight: 700; font-size: 1.94rem; text-transform: uppercase;
  transition: transform 0.15s ease;
}
.btn-vote:hover { transform: rotate(-2deg) scale(1.04); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { height: 102.4rem; }
.hero__art, .hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The artwork has its own paper; fade its bottom edge into the page's paper so there's no seam. */
.hero__art { -webkit-mask-image: linear-gradient(#000 calc(100% - 9rem), transparent); mask-image: linear-gradient(#000 calc(100% - 9rem), transparent); }
.hero__partners {
  position: absolute; left: 25.8rem; top: 84.4rem; width: 94.8rem; height: 3.5rem; overflow: hidden;
  clip-path: inset(0 0 100% 0);
}
.hero__partners img { position: absolute; left: 4.1rem; top: 0; width: 86.6rem; height: auto; }
.hero.is-playing .hero__partners { animation: hero-partners 0.25s ease-out 5.2s forwards; }
@keyframes hero-partners { to { clip-path: inset(0); } }

/* Animated doodles: each <picture> is the Figma layer's box; the GIF/WebP fills it */
picture.deco { display: block; }
picture.deco img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Intro ---------- */
.intro { height: 85.1rem; }
.intro__heart { left: 89.08rem; top: -1.61rem; width: 23.43rem; height: 22.51rem; transform: rotate(7.58deg); }
.intro__star { left: 111.62rem; top: 34.78rem; width: 12.09rem; height: 11.42rem; transform: rotate(16.36deg); }
.intro__lightning { left: 57.68rem; top: 51.88rem; width: 13.16rem; height: 21.29rem; transform: rotate(21.77deg); }
.intro__title {
  position: absolute; left: 12.8rem; top: 18.2rem; width: 125.5rem;
  font-family: var(--font-hand); font-weight: 400;
  font-size: 6.5rem; line-height: 0.801; letter-spacing: -0.309rem;
}
.intro__text {
  position: absolute; left: 12.8rem; top: 32.9rem; width: 78rem;
  font-family: var(--font-type); font-size: 2.47rem; line-height: 3.4rem; letter-spacing: 0.155rem;
}
.intro__text p + p { margin-top: 3.4rem; }
.intro__polaroid { left: 113.3rem; top: 40.6rem; width: 30.7rem; }

/* ---------- Scribble links (hand-lettered label on a brush underline) ---------- */
.scribble { position: absolute; display: block; white-space: nowrap; }
.scribble__label {
  position: relative; display: block;
  font-family: var(--font-hand); font-size: 3.7rem; line-height: 4.6rem;
  text-transform: uppercase; text-align: center;
}
.scribble__line, .scribble__arrow { position: absolute; height: auto; }

/* ---------- Hover: the doodles get drawn ----------
   Underlines are zigzags drawn in three strokes: left to right, back right to left, then left
   to right again. They stay hidden until the link is hovered (or focused with the keyboard),
   get drawn by a "pen" that follows that zigzag, and undraw in reverse when the pointer leaves.
   js/main.js turns each underline into an SVG whose mask holds the three pen strokes
   (.zz-1/.zz-2/.zz-3); the strokes are revealed with stroke-dashoffset, timed by their length
   so the pen moves at one steady speed. The Learn More pen line draws in and out left to right.
   Arrows run on their own, not on hover: once an arrow scrolls into view a pen draws it (tail,
   loop, tip, head), it wiggles a couple of times, quickly undraws and draws again, on a loop.
   It pauses while off screen. Brushes stay visible and redraw once on hover. Touch screens can't hover, so there
   everything simply stays visible. */
.pen path { fill: none; stroke: #fff; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
@keyframes redraw {
  0%   { clip-path: inset(-20% 100% -20% 0); }
  100% { clip-path: inset(-20% 0 -20% 0); }
}
@media (hover: hover) {
  .pen path { stroke-dashoffset: 1.01; transition: stroke-dashoffset var(--d) var(--ease) var(--off); }
  a:is(:hover, :focus-visible) .pen path { stroke-dashoffset: 0; transition-delay: var(--on); }
  .pen--loop path { transition: none; }

  .learn-more img { clip-path: inset(-20% 100% -20% 0); transition: clip-path 0.4s cubic-bezier(0.45, 0, 0.4, 1); }
  .learn-more:is(:hover, :focus-visible) img { clip-path: inset(-20% 0 -20% 0); }

  .pick__btn:hover::before,
  .brush-btn:hover::before { animation: redraw 0.55s cubic-bezier(0.45, 0, 0.2, 1) both; }
}

/* Arrows: draw, wiggle, wiggle, undraw, draw again (4.2s per round). Paused until on screen. */
.pen--loop { transform-origin: 15% 70%; animation: arrow-wiggle 4.2s ease-in-out infinite paused; }
.pen--loop path { animation: arrow-draw 4.2s infinite paused; }
.pen--loop.is-live, .pen--loop.is-live path { animation-play-state: running; }
@keyframes arrow-draw {
  0%   { stroke-dashoffset: 1.01; animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1); }
  12%  { stroke-dashoffset: 0; }
  84%  { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.6, 0, 1, 1); }
  91%  { stroke-dashoffset: 1.01; }
  100% { stroke-dashoffset: 1.01; }
}
@keyframes arrow-wiggle {
  0%, 30%, 46%, 55%, 71%, 100% { transform: none; }
  34%, 59% { transform: rotate(-7deg) translateX(0.2rem); }
  38%, 63% { transform: rotate(6deg); }
  42%, 67% { transform: rotate(-3deg); }
}

.scribble--discover { left: 13.9rem; top: 59.4rem; width: 41.9rem; }
.scribble--discover .scribble__label { font-size: 4.64rem; line-height: 7.8rem; text-align: left; }
.scribble--discover .scribble__line { left: -1.1rem; top: 5.9rem; width: 42.8rem; }

/* ---------- What does life offline look like ---------- */
.what { height: 87.2rem; }
.what__polaroid-d { left: 0; top: 7.4rem; width: 37.3rem; }
.what__polaroid-c { left: 0; top: 32.5rem; width: 21.4rem; }
.what__polaroid-b { left: 100.6rem; top: 37.8rem; width: 43.4rem; }
.what__heart { left: 16.15rem; top: 65.66rem; width: 9.12rem; height: 8.93rem; transform: rotate(-16.47deg); }
.what__star { left: 100.3rem; top: 46.5rem; width: 7.64rem; height: 8.31rem; }
.what__sun { left: 65.1rem; top: -2.7rem; width: 10.8rem; height: 10.8rem; }
.what__title { left: 38.6rem; top: 13rem; width: 66.7rem; }
.what__text {
  position: absolute; left: 33.8rem; top: 32.5rem; width: 76.3rem;
  font-weight: 500; font-size: 2rem; line-height: 1.26; text-align: center;
}
.what__verbs { display: block; margin-top: 1.26em; }
.scribble--explore { left: 56.6rem; top: 53.5rem; width: 28.1rem; }
.scribble--explore .scribble__line { left: -0.3rem; top: 4.3rem; width: 28.3rem; }
.scribble--explore .scribble__arrow { left: 29.6rem; top: 0.6rem; width: 6.8rem; }

/* ---------- Winners ---------- */
.winners { height: 84.6rem; }
.winners__title { left: 6.6rem; top: 4.6rem; text-align: left; }
.winners__crown { left: 34.5rem; top: 0.7rem; width: 7.8rem; }
.winners__track {
  position: absolute; left: 12.5rem; top: 17.2rem; width: 118.9rem; height: 60.4rem;
  display: flex; gap: 6.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.winners__track::-webkit-scrollbar { display: none; }
.winner { flex: 0 0 35.3rem; scroll-snap-align: start; padding-top: 2rem; }
.winner__stamp { width: 33.3rem; height: 42.3rem; object-fit: contain; object-position: left top; transition: transform 0.25s ease; }
.winner:hover .winner__stamp { transform: rotate(-2deg) scale(1.02); }
.winner__name { margin-top: 1.2rem; width: 34.9rem; font-weight: 400; font-size: 3.2rem; line-height: 1.26; min-height: 7.9rem; }

.learn-more { position: relative; display: block; width: 28.6rem; height: 5rem; font-family: var(--font-hand); font-size: 4rem; line-height: 5rem; }
.learn-more span { display: block; }
.learn-more img { position: absolute; left: 0.1rem; top: 2.2rem; width: 16.8rem; height: auto; }

.carousel-btn { position: absolute; top: 38.4rem; width: 6.2rem; height: 6.2rem; }
.carousel-btn img { width: 100%; height: 100%; }
.carousel-btn--prev { left: 6.3rem; }
.carousel-btn--next { left: 131.4rem; }

.scribble--more { left: 112.8rem; top: 5.1rem; width: 24rem; }
.scribble--more .scribble__line { left: 0; top: 3.6rem; width: 23.9rem; }

/* ---------- Life offline is ---------- */
.lifeis { height: 107rem; }
.lifeis__title { left: 0; top: 6.1rem; width: 100%; line-height: 6rem; }
.lifeis__dots {
  position: absolute; left: 0; width: 100%; top: 12.55rem; text-align: center;
  font-family: var(--font-hand); font-size: 8rem; line-height: 2.7rem;
}
.lifeis__dots span { display: block; }
.lifeis__flower { left: 118.88rem; top: 17.24rem; width: 11.39rem; height: 11.39rem; transform: rotate(33.56deg) scale(1.3); }
.lifeis__hand { left: 85.15rem; top: 88.3rem; width: 10.25rem; height: 11.23rem; transform: rotate(13.22deg); }

/* Postcard: every child is sized in em so the whole card scales with font-size */
.lifeis { overflow-x: clip; } /* a thrown card can leave the screen without a sideways scrollbar */
.postcard-deck {
  position: absolute; left: 36.4rem; top: 29rem; width: 77.7em; height: 56.4em; font-size: 1rem;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.postcard-deck:focus-visible { outline: 0.3rem dashed var(--brown); outline-offset: 1rem; }
.postcard-deck > .postcard__back { position: absolute; }
.postcard { position: absolute; inset: 0; margin: 0; transform-origin: 50% 85%; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, filter 0.45s ease; }
.postcard > * { position: absolute; }
.postcard img { height: auto; pointer-events: none; }
.postcard-deck.is-ready .postcard { cursor: grab; }
.postcard-deck.is-ready .postcard.is-dragging { cursor: grabbing; }
/* The real cards sit in a loose pile under the top one (replacing the flat back-card
   images once the script runs). Throw the top card and each one shuffles up a place. */
.postcard-deck.is-ready > .postcard__back { display: none; }
.postcard[data-depth="1"] { transform: translate(3.5em, 2.5em) rotate(4deg) scale(0.97); filter: brightness(0.985); }
.postcard[data-depth="2"] { transform: translate(-3.5em, -2em) rotate(-4.5deg) scale(0.95); filter: brightness(0.97); }
.postcard[data-depth="3"] { transform: translate(5em, -3.5em) rotate(7deg) scale(0.93); filter: brightness(0.955); }
.postcard[data-depth="4"] { transform: translate(5em, -3.5em) rotate(7deg) scale(0.93); opacity: 0; pointer-events: none; }
.postcard.is-nudge { animation: postcard-nudge 1.1s ease-in-out; }
@keyframes postcard-nudge {
  0%, 100% { transform: none; }
  30% { transform: translateX(-4em) rotate(-3deg); }
  55% { transform: translateX(1.2em) rotate(0.8deg); }
  75% { transform: translateX(-0.4em); }
}
.postcard.has-text-name .postcard__doodle--1 { display: none; } /* the cup doodle sits right after Dash's hand-written name */
.postcard__name-text { display: block; width: 19.9em; font-family: "Caveat", cursive; font-size: 4.4em; line-height: 1; color: #1d1d1b; white-space: nowrap; }
.postcards-btn { top: 54rem; }
.postcards-btn--prev { left: 26.5rem; }
.postcards-btn--next { left: 118.5rem; }
.postcards-count { position: absolute; left: 121.6rem; top: 61.6rem; transform: translateX(-50%); white-space: nowrap; text-align: center; font-family: "Azeret Mono", monospace; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.1em; }
.postcard__back--3 { left: 5.1em; top: -1.8em; width: 76.1em; }
.postcard__back--2 { left: 5.9em; top: 1.3em; width: 74.4em; }
.postcard__back--1 { left: 6.8em; top: 3.4em; width: 72.6em; }
.postcard__paper { left: 0.8em; top: 1.8em; width: 76.1em; }
.postcard__lines { left: 34.8em; top: 9em; width: 36.3em; }
.postcard__stamp { left: 56.9em; top: 8.1em; width: 19.2em; }
.postcard__photo { left: 8.3em; top: 9.4em; width: 25.9em; }
.postcard__tape--1 { left: 26.8em; top: 5.7em; width: 9.3em; }
.postcard__tape--2 { left: 5em; top: 7.2em; width: 11.2em; }
.postcard__quote {
  /* 240x172 Figma box, 14px type: values are in the quote's own em (1.4 x card em) */
  font-size: 1.4em; left: 31.36em; top: 19.79em; width: 17.14em; height: 12.29em; line-height: 2.643;
  transform: rotate(6.4deg);
  font-family: "Edu AU VIC WA NT Dots", "Caveat", cursive;
  color: #000; text-transform: lowercase;
}
.postcard__name { left: 9.2em; top: 33.5em; }
.postcard__name img { width: 19.9em; }
.postcard__doodle--1 { left: 28.4em; top: 34.3em; width: 2.6em; }
.postcard__doodle--2 { left: 52.9em; top: 39.7em; width: 1.5em; }

.scribble--meet { left: 57.2rem; top: 91.3rem; width: 26.8rem; }
.scribble--meet .scribble__line { left: -0.8rem; top: 3.5rem; width: 28.3rem; }

/* ---------- Vote CTA ---------- */
.votecta { height: 55.8rem; }
.votecta__polaroid-e { left: 106.4rem; top: -2.1rem; width: 37.6rem; }
.votecta__polaroid-f { left: 0; top: 16rem; width: 39rem; }
.votecta__crown { left: 67.81rem; top: 4.71rem; width: 8.29rem; height: 7.61rem; }
.votecta__title { left: 38.6rem; top: 13.1rem; width: 66.7rem; }
.votecta__text {
  position: absolute; left: 33.8rem; top: 23.1rem; width: 76.3rem;
  font-weight: 500; font-size: 2rem; line-height: 1.26; text-align: center;
}
.votecta__text span { display: block; margin-top: 1.26em; }
.scribble--vote { left: 64.2rem; top: 38.1rem; width: 14.5rem; }
.scribble--vote .scribble__label { font-size: 4.65rem; line-height: 5.8rem; }
.scribble--vote .scribble__line { left: -0.2rem; top: 3.8rem; width: 15rem; }
.scribble--vote .scribble__arrow { left: 14.7rem; top: -2.2rem; width: 9.8rem; }

/* ---------- Our stories ---------- */
.stories { height: 103.1rem; }
.stories__title { left: 38.6rem; top: 12.1rem; width: 66.7rem; }
.story { position: absolute; }
.story__photo { position: absolute; height: auto; transition: transform 0.25s ease; }
.story:hover .story__photo { transform: translateY(-0.6rem) rotate(-1deg); }
.story__title { position: absolute; width: 33rem; font-weight: 500; font-size: 2.88rem; line-height: 3.78rem; }
.story .learn-more { position: absolute; top: 87.7rem; }
.story--1 { left: 0; top: 0; }
.story--1 .story__photo { left: 7.7rem; top: 26.1rem; width: 39.1rem; }
.story--1 .story__title { left: 11.7rem; top: 70.2rem; }
.story--1 .learn-more { left: 11.7rem; }
.story--2 .story__photo { left: 51.6rem; top: 18.1rem; width: 44.4rem; }
.story--2 .story__title { left: 57.7rem; top: 68.9rem; }
.story--2 .learn-more { left: 57.7rem; }
.story--3 .story__photo { left: 98.3rem; top: 19.5rem; width: 40.2rem; }
.story--3 .story__title { left: 102.2rem; top: 68.9rem; }
.story--3 .learn-more { left: 102.9rem; }

/* ---------- Footer ---------- */
.site-footer { height: 67.9rem; font-weight: 300; }
.site-footer__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.site-footer__partners img { position: absolute; left: 24.3rem; top: 19.6rem; width: 94.5rem; height: auto; }
.site-footer__tagline { position: absolute; left: 0; width: 100%; top: 27.7rem; font-size: 1.8rem; line-height: 2.3rem; text-align: center; }
.site-footer__main {
  position: absolute; left: 7.2rem; top: 33.4rem; width: 129.6rem; height: 25.5rem;
  border-top: 0.1rem solid var(--rule); border-bottom: 0.1rem solid var(--rule);
}
.site-footer__logo { position: absolute; left: 0; top: 2.5rem; width: 43.2rem; height: auto; }
.site-footer__desc { position: absolute; left: 0; top: 18.8rem; width: 52.6rem; font-size: 1.8rem; line-height: 2.3rem; }
.site-footer__col { position: absolute; top: 7rem; }
.site-footer__col--explore { left: 95.5rem; }
.site-footer__col--legal { left: 117.4rem; }
.site-footer__col h2 { font-weight: 300; font-size: 1.8rem; line-height: 2.3rem; text-transform: uppercase; margin-bottom: 1.8rem; }
.site-footer__col li { font-size: 1.6rem; line-height: 2rem; white-space: nowrap; }
.site-footer__col li + li { margin-top: 0.9rem; }
.site-footer__col a:hover { text-decoration: underline; }
.site-footer__copy { position: absolute; left: 7.2rem; top: 61.5rem; font-size: 1.4rem; line-height: 1.8rem; }
.site-footer__social { position: absolute; left: 125.2rem; top: 61.3rem; width: 11.6rem; height: auto; }


/* ==========================================================================
   MOBILE  (Figma "Mobile" frame, 390 wide: 1rem = 10 Figma px)
   ========================================================================== */
@media (max-width: 899px) {
  html { font-size: calc(min(100vw, 640px) / 39); } /* phones fill the width; past 640px the column stays centered */
  .d-only { display: none !important; }
  .m-only { display: block !important; }
  body { background-size: 200% auto; }
  .page { width: 39rem; }

  .section-title { font-size: 3.2rem; line-height: 1.1; text-align: left; }

  /* Header + menu */
  .site-header { height: 6rem; width: 39rem; margin-left: -19.5rem; }
  .site-header::before { background-size: 200% auto; bottom: -0.6rem; -webkit-mask-image: linear-gradient(#000 calc(100% - 1rem), transparent); mask-image: linear-gradient(#000 calc(100% - 1rem), transparent); }
  .site-header.is-scrolled { transform: none; }
  html { scroll-padding-top: 6.5rem; }
  .logo { left: 2rem; top: 1rem; gap: 0.4rem; z-index: 2; }
  .logo img { height: 4.1rem; }
  .menu-toggle {
    display: block; position: absolute; right: 2.6rem; top: 1.4rem; width: 3.2rem; height: 3.2rem; z-index: 2;
  }
  .menu-toggle span { position: absolute; left: 0.4rem; width: 2.4rem; height: 0.15rem; background: var(--brown); transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-toggle span:nth-child(1) { top: 0.8rem; }
  .menu-toggle span:nth-child(2) { top: 1.55rem; }
  .menu-toggle span:nth-child(3) { top: 2.3rem; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(0.75rem) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-0.75rem) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--paper) url("../assets/paper.webp") top center / 200% auto;
    padding: 11.8rem calc(50% - 17.5rem) 2.4rem;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .site-nav ul { position: static; display: block; }
  .site-nav ul a { display: inline-block; font-size: 1.8rem; line-height: 2.7rem; margin: 1.45rem 0; border: 0; padding: 0; }
  .btn-vote { position: static; width: 11rem; height: 4.4rem; font-size: 1.3rem; margin-top: 0.6rem; }

  /* Hero */
  .hero { height: 62.2rem; }
  .hero__art { position: absolute; left: 0; top: 13.6rem; height: 40.1rem; }
  .hero__art img { transform: scale(1.3); transform-origin: 49% 45%; } /* the drawing has wide margins baked in; bring it out to the page gutters */
  .hero__art { -webkit-mask-image: linear-gradient(transparent, #000 3rem, #000 calc(100% - 5rem), transparent); mask-image: linear-gradient(transparent, #000 3rem, #000 calc(100% - 5rem), transparent); }
  .hero__partners { left: 2rem; top: 56.9rem; width: 35rem; height: 1.3rem; }
  .hero__partners img { left: 1.5rem; top: 0; width: 32rem; }

  /* Intro */
  .intro { height: 48.3rem; }
  .intro .deco { display: none; }
  .intro__title { left: 4.2rem; top: 3.2rem; width: 30.4rem; font-size: 3.2rem; line-height: 0.93; letter-spacing: 0; text-transform: capitalize; }
  .intro__text { left: 4.2rem; top: 18.3rem; width: 32rem; font-size: 1.6rem; line-height: 1.38; letter-spacing: 0; }
  .intro__text p + p { margin-top: 1.38em; }

  /* Scribble links become brush buttons */
  .scribble { height: 4.5rem; display: grid; place-items: center; isolation: isolate; }
  .scribble::before { content: ""; position: absolute; inset: 0; z-index: -1; background: left center / 100% 100% no-repeat; }
  .scribble.is-yellow::before { background-image: url("../assets/btn-yellow.webp"); }
  .scribble.is-pink::before { background-image: url("../assets/btn-pink.webp"); }
  .scribble.is-blue::before { background-image: url("../assets/btn-blue.webp"); }
  @media (hover: hover) { .scribble:hover::before { animation: redraw 0.55s cubic-bezier(0.45, 0, 0.2, 1) both; } }
  .scribble .scribble__line { display: none; }
  .scribble .scribble__label { font-size: 2.38rem; line-height: 1; padding-top: 0.2rem; }
  .scribble .scribble__arrow { left: auto; right: -4.3rem; top: 50%; margin-top: -1.1rem; width: 4.4rem; }

  .scribble--discover { left: 4.1rem; top: 39.8rem; width: 24.1rem; }
  .scribble--discover .scribble__label { font-size: 2.38rem; line-height: 1; text-align: center; }

  /* What */
  .what { height: 80.5rem; }
  .what__polaroids { left: 2.5rem; top: 3.8rem; width: 34rem; } /* centered on the 39rem page */
  .what__title { left: 4.2rem; top: 30.8rem; width: 24.8rem; }
  .what__text { left: 4.2rem; top: 40.2rem; width: 29.7rem; font-weight: 400; font-size: 1.6rem; line-height: 1.5; text-align: left; }
  .what__verbs { margin-top: 1.5em; }
  .scribble--explore { left: 4rem; top: 71.4rem; width: 24.5rem; height: 5.2rem; }
  .scribble--explore .scribble__label { font-size: 2.75rem; }
  .scribble--explore .scribble__arrow { right: -4.9rem; width: 5.1rem; margin-top: -1.2rem; }

  /* Winners: swipe horizontally */
  .winners { height: 74.7rem; }
  .winners__title { left: 4.2rem; top: 2.4rem; font-size: 5.2rem; }
  .winners__track { left: 0; top: 8.6rem; width: 39rem; height: 53.2rem; gap: 5.4rem; padding: 0 3.7rem; scroll-padding-left: 3.7rem; }
  .winner { flex: 0 0 31.5rem; padding-top: 1.4rem; }
  /* the stamp PNGs carry shadow padding, so they are nudged out to match the Figma frame */
  .winner__stamp { width: 32.4rem; height: 41.2rem; margin: -2.7rem 0 0 -0.9rem; }
  .winner__name { margin: 0.5rem 0 0 2.5rem; width: 25.4rem; font-size: 2.2rem; line-height: 1.5; min-height: 6.6rem; }
  .winner .learn-more { margin-left: 2.5rem; }
  .learn-more { width: 25rem; height: 4.4rem; font-size: 3.5rem; line-height: 4.4rem; }
  .learn-more img { top: 1.9rem; width: 14.7rem; }
  .scribble--more { left: 2.9rem; top: 64.2rem; width: 27.3rem; height: 6.5rem; }
  .scribble--more .scribble__label { font-size: 3.44rem; }
  .scribble--more .scribble__arrow { right: -6.2rem; width: 6.4rem; margin-top: -1.5rem; }

  /* Life offline is */
  .lifeis { height: 50.8rem; }
  .lifeis__title { top: 2.5rem; font-size: 4.16rem; line-height: 3.1rem; text-align: center; }
  .lifeis__dots { top: 5.9rem; font-size: 4.16rem; line-height: 1.35rem; }
  .postcard-deck { left: 2rem; top: 12.9rem; font-size: 0.4505rem; }
  .postcard__back { display: none; }
  .postcards-count { left: auto; right: 2.4rem; top: 9.4rem; transform: none; font-size: 1.2rem; }
  .scribble--meet { left: 4.6rem; top: 40.7rem; width: 27.3rem; height: 6rem; }
  .scribble--meet .scribble__label { font-size: 3.19rem; }

  /* Vote CTA */
  .votecta { height: 59.5rem; }
  .votecta__polaroids { left: 2rem; top: 0.6rem; width: 35rem; } /* centered on the 39rem page */
  .votecta__title { left: 4.2rem; top: 26.8rem; width: 29.7rem; }
  .votecta__text { left: 4.2rem; top: 32.7rem; width: 29.7rem; font-size: 1.7rem; line-height: 1.5; text-align: left; }
  .votecta__text span { margin-top: 1.5em; }
  .scribble--vote { left: 4.2rem; top: 50.7rem; width: 12.4rem; height: 4.8rem; display: block; }
  .scribble--vote .scribble__label { font-size: 3.4rem; line-height: 1.1; text-align: left; padding: 0; }
  .scribble--vote .scribble__line { display: block; left: 0; top: 2.8rem; width: 12.4rem; }

  /* Stories: swipe horizontally */
  .stories { height: 62.1rem; }
  .stories__title { left: 4.2rem; top: 4rem; width: 30.6rem; }
  .stories__track {
    position: absolute; left: 0; top: 11.5rem; width: 39rem; height: 50.6rem;
    display: flex; gap: 6.3rem; padding: 0 4.2rem; scroll-padding-left: 4.2rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .stories__track::-webkit-scrollbar { display: none; }
  .story { position: relative; left: auto; top: auto; flex: 0 0 27.5rem; scroll-snap-align: start; }
  .story .story__photo { position: static; width: 27.5rem; height: auto; }
  .story .story__title { position: static; margin: 2rem 0 0 2.5rem; width: 25rem; font-size: 1.8rem; line-height: 1.5; min-height: 8.1rem; }
  .story .learn-more { position: relative; left: auto; top: auto; margin: 2rem 0 0 2.5rem; width: 14.2rem; height: 2.9rem; font-size: 3.46rem; line-height: 2.87rem; }
  .story .learn-more img { top: 1rem; width: 15.6rem; }

  /* Footer */
  .site-footer { height: 87.1rem; }
  .site-footer__partners img { left: 4.2rem; top: 14.1rem; width: 30.6rem; }
  .site-footer__tagline { left: 4.2rem; width: 30.6rem; top: 35.3rem; font-size: 1.4rem; line-height: 1.26; }
  .site-footer__main { left: 4.2rem; top: 42.7rem; width: 30.6rem; height: 36.8rem; }
  .site-footer__logo { top: 2.5rem; width: auto; height: 13rem; }
  .site-footer__desc { top: 17.3rem; width: 30.6rem; font-size: 1.4rem; line-height: 1.26; }
  .site-footer__col { top: 24.3rem; }
  .site-footer__col--explore { left: 0; }
  .site-footer__col--legal { left: 18.3rem; }
  .site-footer__col h2 { font-weight: 400; font-size: 1.4rem; line-height: 1.8rem; }
  .site-footer__col li { font-size: 1.4rem; line-height: 1.8rem; }
  .site-footer__col li + li { margin-top: 0.7rem; }
  .site-footer__copy { left: 4.2rem; top: 82rem; font-size: 1.2rem; line-height: 1.5rem; }
  .site-footer__social { left: 26.1rem; top: 81.9rem; width: 8.7rem; }
}

/* ==========================================================================
   VOTE / PROJECTS PAGE  (Figma page "Vote", frame "Vote page", 1440 wide)
   ========================================================================== */
.site-header--inner .logo { left: 7.6rem; top: 2.1rem; }
.site-header--inner .logo img { height: 6rem; }
.site-header--inner .site-nav ul { left: auto; right: 9.3rem; gap: 2.9rem; }
.site-header--inner .btn-vote { display: none; }

.vhero { height: 69.6rem; }
.vhero__title {
  position: absolute; left: 6.8rem; top: 15.3rem; width: 57rem;
  font-family: var(--font-hand); font-weight: 400; font-size: 9.98rem; line-height: 7.42rem;
}
.vhero__text {
  position: absolute; left: 7.2rem; top: 39.4rem; width: 73.3rem;
  font-family: var(--font-type); font-size: 2.3rem; line-height: 3rem; letter-spacing: 0.155rem;
}
.vhero__art { position: absolute; left: 85rem; top: 12.8rem; width: 52.3rem; height: 52.3rem; transform-origin: 40% 80%; animation: art-wobble 5s ease-in-out infinite; }
.vhero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vhero__art-button { transform-origin: 64% 78%; animation: art-press 2.4s ease-in-out infinite; }
.vhero__art-sparks { transform-origin: 78% 66%; animation: art-sparks 2.4s ease-in-out infinite; }
@keyframes art-wobble { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes art-press { 0%, 55%, 100% { transform: none; } 68% { transform: translateY(1.2%) scale(0.955); } 80% { transform: translateY(-0.4%) scale(1.02); } }
@keyframes art-sparks { 0%, 60%, 100% { opacity: 0.25; transform: scale(0.8); } 74%, 88% { opacity: 1; transform: scale(1.12); } }
.vhero__jump {
  position: absolute; left: 6.8rem; top: 55.9rem; display: flex; align-items: center; gap: 1.6rem;
  font-family: var(--font-hand); font-size: 4rem; line-height: 5rem; text-transform: uppercase;
}
.vhero__jump img { width: 2.1rem; height: auto; transition: transform 0.2s ease; }
.vhero__jump:hover img { transform: translateY(0.5rem); }

.gallery { padding: 0 7.2rem 0 8.9rem; }
.gallery__grid { display: grid; grid-template-columns: repeat(5, 24.4rem); column-gap: 1.48rem; row-gap: 3.15rem; }

/* Project card. Everything inside is in em, so one font-size scales the whole card:
   1rem on the 5-column Vote page, 1.546rem on the 3-column Gallery page. */
.project { font-size: 1rem; }
.project__link { display: block; width: 100%; height: 30.6em; padding-top: 1em; text-align: left; }
.project__media { position: relative; display: block; width: 24em; transition: transform 0.25s ease; filter: drop-shadow(0 0.4em 0.6em rgba(95, 64, 34, 0.18)); }
.project__stamp { width: 100%; height: auto; }
.project:nth-child(even) .project__media { margin-top: -0.3em; }
.project__link:hover .project__media, .project__link:focus-visible .project__media { transform: rotate(-2deg) scale(1.03); }
.project__no { display: block; margin: 1.4em 0 0 1.1em; font-weight: 500; font-size: 0.97em; line-height: 1.24; }
.project:nth-child(even) .project__no { margin-top: 1.1em; }
.project__name { display: block; margin: 0.5em 0 0 0.69em; width: 13.1em; font-weight: 600; font-size: 1.6em; line-height: 1.26; }
.project__meta { margin: 0.2em 0 0 1.1em; white-space: nowrap; width: 22em; display: flex; justify-content: space-between; align-items: flex-end; line-height: 1.9em; }
.project__by { font-size: 0.97em; }
.project__more {
  font-family: var(--font-hand); font-size: 1.7em; line-height: 0.82;
  padding-right: 0.76em; border-bottom: 0.1em solid currentColor; border-image: linear-gradient(to right, currentColor 0 3.3em, transparent 3.3em) 1;
  background: url("../assets/arrow-right.svg") right 0.2em / 0.59em auto no-repeat;
}

/* Vote page hover state (Figma: the "Stamp-1" frame left of "Vote page"):
   the picture inside the stamp goes dark and the hand-painted VOTE label appears. */
.project__shade, .project__vote { position: absolute; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.project__shade { left: 7.5%; top: 8.75%; width: 85%; height: 82.5%; background: rgba(0, 0, 0, 0.53); transform: rotate(-2.1deg); }
.project__media--2 .project__shade { transform: rotate(3.6deg); }
.project__vote { left: 23.3%; top: 38.5%; width: 53.7%; height: auto; transform: scale(0.9) rotate(-3deg); transition: opacity 0.2s ease, transform 0.25s ease; }
.is-votable .project__link:hover .project__shade, .is-votable .project__link:focus-visible .project__shade,
.is-votable .project__link:hover .project__vote, .is-votable .project__link:focus-visible .project__vote { opacity: 1; }
.is-votable .project__link:hover .project__vote, .is-votable .project__link:focus-visible .project__vote { transform: none; }
.is-votable .project__link:hover .project__media, .is-votable .project__link:focus-visible .project__media { transform: none; }

/* Gallery page: Figma frame "Project Gallery", 3 columns */
.gallery--wide { padding: 0 8.8rem 1.8rem 11.9rem; }
.gallery--wide .gallery__grid { grid-template-columns: repeat(3, 37.7rem); column-gap: 5.1rem; row-gap: 4.8rem; }
.gallery--wide .project { font-size: 1.546rem; }
.gallery-page .pick { height: 66.7rem; }

.pick { height: 73.5rem; margin-top: 0; }
.pick > * { position: absolute; }
.pick__hearts { left: 63.9rem; top: 3.3rem; width: 11rem; height: 11rem; }
.pick__hearts img { width: 100%; height: 100%; }
.pick__title {
  left: 0; width: 100%; top: 13.9rem; text-align: center;
  font-family: var(--font-hand); font-weight: 400; font-size: 6.2rem; line-height: 4.61rem; text-transform: uppercase;
}
.pick__text { left: 10.6rem; top: 20.8rem; width: 119.7rem; text-align: center; font-weight: 500; font-size: 3rem; line-height: 1.26; }
.pick__btn {
  left: 56.3rem; top: 35.3rem; width: 29.7rem; height: 6.5rem;
  display: grid; place-items: center;
  font-family: var(--font-hand); font-size: 4.35rem; line-height: 1; text-transform: uppercase;
  isolation: isolate;
}
.pick__btn::before, .brush-btn::before { /* the brush stroke, on its own layer so it can be redrawn */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/brush-yellow.webp") center / 100% 100% no-repeat;
}
.pick__btn span { padding: 0.3rem 0 0 1rem; }
.pick__btn .pick__arrow { position: absolute; left: 29rem; top: 1rem; width: 8rem; height: auto; }
.pick__again { left: 0; width: 100%; top: 43.3rem; text-align: center; color: var(--brown-soft); font-size: 1.6rem; line-height: 2rem; }
.pick__again:hover { text-decoration: underline; }
.pick__partners img { position: absolute; left: 15rem; top: 56.2rem; width: 110.9rem; height: auto; }

/* Mobile: the Figma file only has a 2-column card grid for this page ("Mobile gallery"),
   so the intro and call-to-action below reuse the mobile Home styles. */
@media (max-width: 899px) {
  .site-header--inner .logo { left: 2rem; top: 1rem; }
  .site-header--inner .logo img { height: 4.1rem; }
  .site-header--inner .site-nav ul { right: auto; }
  .site-header--inner .btn-vote { display: grid; }

  .vhero { height: auto; padding: 10rem 4.2rem 0; }
  .vhero > * { position: static; }
  .vhero__title { width: auto; font-size: 5.6rem; line-height: 4.2rem; }
  .vhero__text { width: auto; margin-top: 2.6rem; font-size: 1.6rem; line-height: 1.38; letter-spacing: 0; }
  .vhero__art { position: relative; left: auto; top: auto; width: 26rem; height: 26rem; margin: 2rem auto 0; }
  .vhero__art img { position: absolute; }
  .vhero__jump { margin-top: 1.6rem; font-size: 3.2rem; line-height: 4rem; gap: 1.2rem; }
  .vhero__jump img { width: 1.6rem; }

  .gallery, .gallery--wide { padding: 2.4rem 2rem 0; }
  .gallery__grid, .gallery--wide .gallery__grid { grid-template-columns: repeat(2, 1fr); column-gap: 1.4rem; row-gap: 2.6rem; }
  .project, .gallery--wide .project { font-size: 1rem; }
  .project__link { height: auto; padding-top: 0; }
  .project__media { width: 100%; }
  .project:nth-child(even) .project__media, .project:nth-child(even) .project__no { margin-top: 0; }
  .project__no { margin: 1rem 0 0 0.6rem; font-size: 1rem; }
  .project:nth-child(even) .project__no { margin-top: 1rem; }
  .project__name { margin: 0.6rem 0 0 0.6rem; width: auto; font-size: 1.5rem; line-height: 1.8rem; }
  .project__meta { margin: 0.4rem 0 0 0.6rem; width: auto; padding-right: 0.6rem; line-height: 2rem; }
  .project__by { font-size: 1rem; }
  .project__more { font-size: 1.8rem; }
  .gallery-page .pick { height: auto; }

  .pick { height: auto; padding: 6rem 4.2rem 6rem; text-align: center; }
  .pick > * { position: static; }
  .pick__hearts { display: block; width: 8.4rem; height: 8.4rem; margin: 0 auto -1rem; }
  .pick__title { margin-top: 1.6rem; font-size: 3.6rem; line-height: 1.1; }
  .pick__text { width: auto; margin-top: 1.6rem; font-size: 1.7rem; line-height: 1.5; }
  .pick__btn { position: relative; top: 0; left: -2.4rem; width: 24.5rem; height: 5.4rem; margin: 2.8rem auto 0; font-size: 3.2rem; }
  .pick__btn .pick__arrow { left: 24.2rem; top: 1.2rem; width: 5.4rem; }
  .pick__again { display: block; margin-top: 1.8rem; font-size: 1.4rem; }
  .pick__partners img { position: static; width: 30.6rem; margin: 6rem auto 0; }
}

/* ==========================================================================
   PROJECT MODAL + VOTE FORM
   Not in the Figma file: built from the "Project Detail" frame's type and the
   site's paper / stamp / brush pieces.
   ========================================================================== */
.modal {
  width: 104rem; max-width: calc(100vw - 4rem); max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem);
  padding: 0; border: 0; overflow: auto; color: var(--brown);
  background: var(--paper) url("../assets/paper.webp") center / cover;
  box-shadow: 0 2rem 6rem rgba(40, 25, 10, 0.45); transform: rotate(-0.4deg);
}
html.modal-open { overflow: hidden; }
.modal::backdrop { background: rgba(40, 25, 10, 0.55); }
.modal[open] { animation: modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.modal[open]::backdrop { animation: backdrop-in 0.28s ease-out; }
.modal.is-closing { animation: modal-out 0.2s ease-in forwards; }
.modal.is-closing::backdrop { animation: backdrop-out 0.2s ease-in forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(1rem) rotate(-1deg) scale(0.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(0.8rem) rotate(-0.8deg) scale(0.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
/* The contents clear out before the panel (and come in after it), so the popup's
   half-faded text never sits on top of the page's text as a double image. */
.modal[open] .modal__body, .modal[open] .modal__close { animation: content-in 0.28s ease-out; }
.modal.is-closing .modal__body, .modal.is-closing .modal__close { animation: content-out 0.1s ease-in forwards; }
@keyframes content-in { 0%, 40% { opacity: 0; } 100% { opacity: 1; } }
@keyframes content-out { to { opacity: 0; } }
.modal__close { position: absolute; right: 2rem; top: 1.6rem; width: 4.4rem; height: 4.4rem; font-family: var(--font-hand); font-size: 5.6rem; line-height: 4rem; z-index: 1; }
.modal__body { display: grid; grid-template-columns: 40rem 1fr; gap: 5rem; padding: 6rem 7rem 6rem 5rem; }
.modal__stamp { width: 40rem; height: auto; transform: rotate(-3deg); filter: drop-shadow(0 0.6rem 1rem rgba(95, 64, 34, 0.22)); }
.modal__no { font-weight: 500; font-size: 1.5rem; }
.modal__name:focus { outline: 0; }
.modal__name { margin-top: 0.8rem; font-family: var(--font-hand); font-weight: 400; font-size: 7.2rem; line-height: 0.76; }
.modal__by { margin-top: 1.8rem; font-size: 2.4rem; }
.modal__desc { margin-top: 2rem; font-size: 1.8rem; line-height: 1.4; }

.vote-box { margin-top: 3rem; padding-top: 2.6rem; border-top: 0.1rem solid var(--rule); }
.vote-box [hidden] { display: none !important; }
.vote-box__title { font-family: var(--font-hand); font-weight: 400; font-size: 4.4rem; line-height: 0.9; text-transform: uppercase; }
.vote-box__hint { margin-top: 0.8rem; font-size: 1.6rem; line-height: 1.4; }
.vote-box label.field { display: block; margin-top: 1.8rem; font-family: var(--font-nav); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.vote-box input[type="email"], .vote-box input[type="text"] {
  display: block; width: 100%; margin-top: 0.6rem; padding: 1rem 0.4rem 0.8rem;
  font-family: var(--font-type); font-size: 2.2rem; color: var(--brown);
  background: transparent; border: 0; border-bottom: 0.2rem solid var(--brown); border-radius: 0;
}
.vote-box input::placeholder { color: var(--brown); opacity: 0.4; }
.vote-box input:focus-visible { outline: 0; border-bottom-color: #ff9f43; box-shadow: 0 0.3rem 0 #ffc934; }
.vote-box input.code { letter-spacing: 0.6em; width: 24rem; }
.check { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 1.8rem; font-size: 1.5rem; line-height: 1.4; cursor: pointer; }
.check input { flex: none; appearance: none; width: 2.2rem; height: 2.2rem; margin: 0; border: 0.2rem solid var(--brown); border-radius: 0.3rem; background: transparent; cursor: pointer; }
.check input:checked { background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.5 5 9.5 10.5 2.5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.vote-box__error { margin-top: 1.2rem; font-size: 1.5rem; font-weight: 500; color: #b3261e; }
.vote-box__actions { display: flex; align-items: center; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.brush-btn {
  min-width: 24rem; height: 6.2rem; padding: 0.4rem 3rem 0;
  display: inline-grid; place-items: center;
  font-family: var(--font-hand); font-size: 3.8rem; line-height: 1; text-transform: uppercase; white-space: nowrap;
  position: relative; isolation: isolate;
}
.brush-btn[disabled] { opacity: 0.55; cursor: progress; }
.brush-btn[disabled]::before { animation: none !important; }
.text-btn { font-size: 1.5rem; color: var(--brown-soft); text-decoration: underline; }
.vote-box__demo { margin-top: 1.6rem; font-family: var(--font-nav); font-size: 1.2rem; color: var(--brown-soft); }
/* "Your vote is in!": the crown draws itself, then doodles pop in around it */
.celebrate { position: relative; width: 30rem; height: 13rem; margin-bottom: 1rem; }
.celebrate img { position: absolute; height: auto; }
.celebrate__crown { left: 8.5rem; top: 0.5rem; width: 13rem; }
.celebrate__bit { opacity: 0; transform: scale(0) rotate(-40deg); }
.vote-box__done:not([hidden]) .celebrate__bit { animation: pop-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.celebrate__bit--1 { left: 0.5rem; top: 5.5rem; width: 5.4rem; animation-delay: 2.2s !important; }
.celebrate__bit--2 { left: 23.5rem; top: 0; width: 5rem; animation-delay: 2.45s !important; }
.celebrate__bit--3 { left: 22.5rem; top: 6.8rem; width: 5.6rem; animation-delay: 2.7s !important; }
.celebrate__bit--4 { left: 2.4rem; top: -0.8rem; width: 5.8rem; animation-delay: 2.95s !important; }
@keyframes pop-in { to { opacity: 1; transform: none; } }

/* Stamps arriving: js/projects.js adds .reveal-on to the grid, then .is-in to each card as it scrolls into view */
.reveal-on .project { opacity: 0; transform: translateY(3rem) rotate(-7deg) scale(0.9); transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); }
.reveal-on .project:nth-child(even) { transform: translateY(3rem) rotate(6deg) scale(0.9); }
.reveal-on .project.is-in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .modal { width: 37rem; max-width: calc(100vw - 1.6rem); max-height: calc(100dvh - 1.6rem); }
  .modal__close { right: 0.8rem; top: 0.6rem; }
  .modal__body { display: block; padding: 4.6rem 2.4rem 3.2rem; }
  .modal__stamp { width: 22rem; margin: 0 auto 2rem; }
  .modal__no { font-size: 1.2rem; }
  .modal__name { font-size: 4.8rem; }
  .modal__by { margin-top: 1.2rem; font-size: 1.8rem; }
  .modal__desc { margin-top: 1.4rem; font-size: 1.5rem; }
  .vote-box { margin-top: 2.4rem; padding-top: 2rem; }
  .vote-box__title { font-size: 3.6rem; }
  .vote-box__hint, .check, .vote-box__error, .text-btn { font-size: 1.4rem; }
  .vote-box input[type="email"], .vote-box input[type="text"] { font-size: 1.8rem; }
  .vote-box input.code { width: 20rem; }
  .brush-btn { min-width: 20rem; height: 5.4rem; font-size: 3.2rem; }
  .vote-box__actions { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vhero__art, .vhero__art img { animation: none; }
  .celebrate__bit { opacity: 1; transform: none; animation: none !important; }
  .reveal-on .project { opacity: 1; transform: none; }
  .hero__partners { clip-path: none; animation: none !important; }
  .modal, .modal::backdrop, .modal__body, .modal__close { animation-duration: 0.01s !important; }
  .postcard { transition: opacity 0.25s ease !important; }
  .postcard.is-nudge { animation: none; }
  * { transition: none !important; }
  .learn-more img { clip-path: none !important; }
  .pen path { stroke-dashoffset: 0 !important; }
  .pen--loop, .pen--loop path { animation: none !important; }
  .scribble *, .scribble::before, .learn-more img, .pick__btn::before, .brush-btn::before { animation: none !important; }
}
