:root {
  --cran: #d41268;
  --cran-deep: #a90d51;
  --ink: #3b1226;
  --cream: #fff6fa;
  --blush: #ffe3ee;
  --butter: #ffd978;
  --mint: #c9eedd;
  --shadow: 0 6px 0 rgba(59, 18, 38, .14);
  --radius: 28px;
  --page: 1100px;
  --gutter: max(clamp(16px, 5vw, 64px), (100% - var(--page)) / 2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

.scribble {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--cream { background: var(--cream); color: var(--cran); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 5px 0 rgba(255, 255, 255, .45); }
.btn--ghost:hover { box-shadow: 0 8px 0 rgba(255, 255, 255, .45); }
.btn--small { padding: .5em 1.1em; font-size: .95rem; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--cran);
  color: #fff;
  padding: 20px var(--gutter) 70px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
}

.nav {
  position: relative;
  z-index: 5;
  --menu-display: "Baloo 2", sans-serif;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 5vw, 56px);
}
.nav__logo img { width: clamp(150px, 20vw, 210px); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
}
.nav__links a:not(.btn), .nav__toggle { text-decoration: none; border-bottom: 2px dashed transparent; padding-bottom: 2px; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current], .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { border-bottom-color: #fff; }
.nav__toggle { padding: 0 0 2px; border-width: 0 0 2px; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav__toggle::after { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 0 .2em .45em; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate .2s; }
.nav__toggle[aria-expanded="true"]::after { rotate: 225deg; margin-bottom: 0; }
.nav :focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }

.hero__hello { transform: rotate(-3deg); display: inline-block; color: var(--butter); margin-bottom: 10px; }
.hero__title { font-size: clamp(2.9rem, 8vw, 6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; }
.hero__heart {
  display: inline-block;
  color: var(--butter);
  font-size: .55em;
  margin-left: .15em;
  animation: beat 1.4s ease-in-out infinite;
}
.squiggle {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23ffd978' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 calc(100% - .22em) / 40px 10px;
  padding-bottom: .12em;
}
.hero-progress {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 26px;
  padding: 18px 22px 16px;
  border-radius: 22px;
  background: var(--cran-deep);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: transform .15s;
}
.hero-progress[hidden] { display: none; }
.hero-progress:hover { transform: translateY(-3px) rotate(-.6deg); }
.hero-progress:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero-progress__label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--butter); }
.hero-progress__text { font-family: "Baloo 2", sans-serif; font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.hero-progress__text b { color: var(--butter); font-size: 1.25em; }
.hero-progress__bar { display: block; height: 12px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero-progress__bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--butter); transition: width 1s ease-out; }
.hero-progress__more { margin-top: 4px; font-size: .9rem; font-weight: 700; }

.hero__lead { max-width: 34em; font-size: 1.2rem; margin: 26px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.blob {
  position: absolute;
  inset: 6%;
  background: var(--cran-deep);
  border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  animation: morph 9s ease-in-out infinite;
}
.wheel { position: absolute; inset: 21%; width: 58%; animation: spin 26s linear infinite; }

.sticker { position: absolute; font-size: 2.6rem; line-height: 1; color: var(--butter); animation: bob 4s ease-in-out infinite; }
.sticker--1 { top: 2%; left: 12%; font-size: 3.4rem; }
.sticker--2 { top: 12%; right: 4%; color: #fff; animation-delay: -1s; }
.sticker--3 { bottom: 8%; left: 2%; color: #fff; animation-delay: -2s; }


.scallop {
  height: 26px;
  background: radial-gradient(circle at 22px 0, var(--cran) 21px, transparent 22px) repeat-x;
  background-size: 44px 26px;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 64px);
  text-align: center;
}
.section > * { max-width: var(--page); margin-inline: auto; }
.section--blush { background: var(--blush); border-radius: 60px; margin-inline: clamp(8px, 2vw, 24px); }
.section__kicker { color: var(--cran); transform: rotate(-2deg); }
.section__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: var(--cran); margin-top: 4px; }
.section__lead { max-width: 38em; margin: 18px auto 0; font-size: 1.15rem; }

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 52px;
}
/* a card left alone on the last row sits in the middle */
.cards .card { flex: 1 1 260px; max-width: 340px; }
/* the tilted look lives on ::before; the text itself stays straight so diacritics render crisply */
.card {
  position: relative;
  isolation: isolate;
  padding: 34px 26px 30px;
  transition: transform .2s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--card-bg);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
}
.card:nth-child(odd)::before { rotate: -1.5deg; }
.card:nth-child(even)::before { rotate: 1.5deg; }
.card:hover { transform: translateY(-8px); }
.card--pink { --card-bg: var(--blush); }
.card--butter { --card-bg: var(--butter); }
.card--mint { --card-bg: var(--mint); }
.card__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.card h3 { font-size: 1.7rem; margin-bottom: 8px; }
.card p { margin: 0; }

.polaroids {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 52px;
}
.polaroid {
  margin: 0;
  padding: 12px 12px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(169, 13, 81, .18);
  transition: transform .2s;
}
.polaroid:nth-child(1) { rotate: -4deg; }
.polaroid:nth-child(2) { rotate: 3deg; }
.polaroid:nth-child(3) { rotate: -2deg; }
.polaroid:nth-child(4) { rotate: 4deg; }
.polaroid:hover { transform: scale(1.06) rotate(-2deg); }
.polaroid__photo { aspect-ratio: 1; display: grid; place-items: center; font-size: 4.5rem; border-radius: 6px; }
.polaroid__photo--a { background: var(--butter); }
.polaroid__photo--b { background: #ffc2d9; }
.polaroid__photo--c { background: var(--mint); }
.polaroid__photo--d { background: #d9d2ff; }
.polaroid figcaption { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-top: 12px; }

/* ---------- Rotabebe banner (project colours, scoped to the banner) ---------- */

.rotabebe-banner {
  --rb-magenta: #C2185B;
  --rb-magenta-dot: #D2386F;
  --rb-gold: #F2C14E;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 760px;
  margin-top: 44px;
  padding: 34px 24px 32px;
  border-radius: var(--radius);
  background-color: var(--rb-magenta);
  background-image: radial-gradient(var(--rb-magenta-dot) 3px, transparent 3.5px);
  background-size: 26px 26px;
  color: #fff;
  text-decoration: none;
}
.rotabebe-banner::before, .rotabebe-banner::after { content: "★"; position: absolute; color: var(--rb-gold); line-height: 1; }
.rotabebe-banner::before { top: 18px; left: 22px; font-size: 1.2rem; rotate: -12deg; }
.rotabebe-banner::after { bottom: 20px; right: 26px; font-size: .95rem; rotate: 14deg; }
.rotabebe-banner:hover { transform: translateY(-4px); }
.rotabebe-banner:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.rotabebe-banner__label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rotabebe-banner__name { font-family: "Pacifico", cursive; font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1.2; }
.rotabebe-banner__text { max-width: 34em; }
.rotabebe-banner__when { margin-top: 6px; font-weight: 800; }
.rotabebe-banner__cta { margin-top: 14px; padding: .6em 1.5em; border-radius: 999px; background: #fff; color: var(--rb-magenta); font-weight: 800; }

/* ---------- projects running now ---------- */

.now { max-width: 760px; margin: 22px auto 0; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 var(--cran-deep); border-color: var(--ink); }
.btn--ink:hover { box-shadow: 0 8px 0 var(--cran-deep); }
.now__panel { margin-top: 26px; text-align: left; animation: now-in .3s ease-out; }
.now__panel[hidden] { display: none; }
.now__kicker { color: var(--cran); text-align: center; }
.now__list { --m-ink: #3b1226; --m-soft: #6b4a58; --m-accent: #d41268; --menu-display: "Baloo 2", sans-serif; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 14px 0 0; padding: 0; }
.now__list li { display: grid; }
@keyframes now-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- join ---------- */

.join {
  position: relative;
  background: var(--cran);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 48px;
  box-shadow: 0 10px 0 var(--ink);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px);
}
.join__sticker { position: absolute; top: -34px; right: 8%; font-size: 4.5rem; line-height: 1; color: var(--butter); animation: spin 14s linear infinite; }
.join__kicker { color: var(--butter); transform: rotate(-2deg); }
.join__title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; }

.steps {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 900px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cran-deep);
  border-radius: 999px;
  padding: 10px 20px 10px 10px;
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
}
.steps b {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--butter);
  color: var(--ink);
  border-radius: 50%;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.2rem;
}
.join__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- footer ---------- */

.footer { background: var(--cran); color: #fff; text-align: center; padding: 46px 16px 34px; border-radius: 60px 60px 0 0; }
.footer img { width: 200px; margin: 0 auto 14px; }
.footer p { margin: 0; font-size: .95rem; }
.footer__heart { color: var(--butter); }

/* ---------- motion ---------- */

.reveal { opacity: 0; translate: 0 30px; transition: opacity .6s, translate .6s cubic-bezier(.2, 1.4, .4, 1); }
.reveal.is-in { opacity: 1; translate: 0 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
  50% { border-radius: 42% 58% 44% 56% / 58% 44% 56% 42%; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 50px; }
  .nav { justify-self: stretch; }
  .hero__lead, .hero-progress { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { max-width: 300px; order: 3; margin-top: 20px; }
  .nav { gap: 10px; }
  .nav__logo img { width: 124px; }
  .nav__links { gap: 12px; white-space: nowrap; font-size: .95rem; }
  .polaroids { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .polaroid figcaption { font-size: 1.25rem; }
  .section--blush { border-radius: 40px; }
}

@media (max-width: 380px) {
  .nav__home { display: none; }
  .nav__logo img { width: 104px; }
  .nav__links { gap: 10px; font-size: .88rem; }
  .nav__links .btn--small { padding: .45em .8em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
  html { scroll-behavior: auto; }
}
