@font-face { font-family: "Ginto Nord"; src: url(fonts/GintoNord-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Ginto"; src: url(fonts/GintoNormal-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* Three layouts, same breakpoints as the Framer site: phone, tablet (810+), desktop (1200+) */

:root {
  --orange: #ffb350;
  --pink: #f891cf;
  --yellow: #fdf45a;
  --dark: #383838;
  --line: 4px solid #000;

  --pad: 10px;
  --text: 19px;
  --h1: 40px;
  --h2: 26px;
  --h2-lh: 1.4;
  --h3: 23px;
  --hx: 35px;
  --name: 24px;
  --role: 18px;
  --body-x: 10px;
}
@media (min-width: 810px) {
  :root { --pad: 20px; --text: 24px; --h1: 60px; --h2: 32px; --h2-lh: 1; --h3: 29px; --hx: 46px; --name: 29px; --role: 20px; --body-x: 150px; }
}
@media (min-width: 1200px) {
  :root { --pad: max(40px, (100vw - 1220px) / 2); --text: 30px; --h2: 40px; --h2-lh: 1.4; --h3: 36px; --hx: 60px; --name: 32px; --role: 25px; }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--orange); color: #000; font: var(--text)/1.3 Ginto, system-ui, sans-serif; }
h1, h2, h3, b, .btn, .date, .cta-date { font-family: "Ginto Nord", system-ui, sans-serif; font-weight: 700; line-height: 1.4; }
h2, .date, .cta-date { line-height: var(--h2-lh); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
ul { padding: 0; list-style: none; }
.center { text-align: center; }

/* Fixed jar logo */

.logo { position: fixed; top: 30px; left: 10px; width: 62px; z-index: 10; }
@media (min-width: 810px) { .logo { top: 60px; left: 20px; } }

/* Desktop header: badge + menu. Sizes measured from the Framer site.
   With motion on, it stays fixed, hides on scroll down and fades back in on scroll up. */

.site-head { display: none; position: absolute; top: 16px; left: 40px; right: 40px; height: 214px; z-index: 5; }
.badge { text-decoration: none; font: 700 30px/1 "Ginto Nord", sans-serif; }
.badge > * { position: absolute; z-index: 1; border: var(--line); }
.name { left: 0; top: 44px; width: 200px; height: 98px; background: url(img/badge-name.svg) border-box 0 0 / 100% 100%; }
.jar { left: 153px; top: 0; width: 85px; height: 88px; border: 0; }
.when { left: -1.4px; top: 138px; width: 161px; height: 76px; padding: 5px 0 0 8px; border-right: 0; white-space: nowrap; background: var(--pink); }
.year { left: 160px; top: 138px; width: 76px; height: 76px; border: 0; }
.year i { position: absolute; width: 40px; height: 40px; display: grid; place-items: center; padding-top: 2px; border: var(--line); background: #fff; font-style: normal; }
.year i:nth-child(2) { left: 36px; }
.year i:nth-child(3) { top: 36px; }
.year i:nth-child(4) { left: 36px; top: 36px; }
.site-head nav {
  position: absolute; left: 0; right: 0; top: 44px; height: 64px;
  display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 0 20px;
  background: var(--orange); border: var(--line);
}
.site-head nav a { font: 700 26px/1.2 "Ginto Nord", sans-serif; text-decoration: none; padding: 2px; }
.site-head nav a:hover { text-decoration: underline; }
.js .site-head { position: fixed; z-index: 20; pointer-events: none; }
.js .site-head > * { pointer-events: auto; }

/* Menu fades first, then the badge springs in from 150px above (reverse order on hide) */

.js .badge { display: block; position: relative; z-index: 1; transition: opacity .17s .17s, translate .45s cubic-bezier(.3, 1.2, .55, 1) .17s, visibility 0s .17s; }
.js .site-head nav { transition: opacity .17s, visibility 0s; }
.js .hide .badge { opacity: 0; translate: 0 -150px; visibility: hidden; transition-delay: .17s, .17s, .34s; }
.js .hide nav { opacity: 0; visibility: hidden; transition-delay: 0s, .17s; }

/* Hero: heading above video on phone and tablet, side by side on desktop */

.hero { margin: 30px var(--pad) 0; border: var(--line); border-top: 0; }
.hero h1 { display: flex; flex-direction: column; gap: 5px; min-height: 553px; padding: 239px 15px 0; font-size: var(--h1); line-height: 1; }
.hero video { width: 100%; height: 500px; object-fit: cover; background: var(--yellow); }
.word { align-self: flex-start; padding: 2.5px 4px; margin-left: -4px; }
.word.hl { background: #000; color: #fff; }

@media (min-width: 810px) {
  .hero { margin-top: 94px; }
  .hero h1 { min-height: 601px; gap: 3px; padding-top: 170px; }
  .word { padding-block: 0; }
  .hero video { height: 682px; }
}
@media (min-width: 1200px) {
  .site-head { display: block; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; height: 682px; margin-top: 94px; }
  .hero h1 { min-height: 0; padding-top: 225px; }
  .hero video { height: 100%; }

  /* Small jar appears once the header has scrolled away */
  .logo { top: 60px; left: 40px; opacity: 0; pointer-events: none; }
  @supports (animation-timeline: scroll()) {
    .logo { animation: show linear both; animation-timeline: scroll(); animation-range: 180px 260px; }
  }
}
@keyframes show { to { opacity: 1; pointer-events: auto; } }

/* Section box: orange title bar, white body */

main { padding: 0 var(--pad); }
.box { margin-top: 84px; border: var(--line); background: #fff; }
.box > h2, .bar { padding: 8px 18px; font-size: var(--h2); background: var(--orange); border-bottom: var(--line); }
.box > h2.indent { padding-left: clamp(18px, 7vw, 100px); font-size: var(--hx); line-height: 1; }
.body { padding: clamp(24px, 4vw, 64px) var(--body-x); }
.body > * { max-width: 920px; }
.body.center > *, .body > .center { margin-inline: auto; }
.body.orange { background: var(--orange); }
.body p + p, .body h3 + .date { margin-top: 20px; }
.body p + .articles { margin-top: 30px; }
.body > p.center { margin-top: 0; }
.body h3 { font-size: var(--h2); }
.date { display: inline-block; padding: 0 4px; background: var(--orange); font-size: var(--h2); }
.body .date + p { text-align: left; margin-top: 0.75em; }

/* Pink button with hard shadow */

.btn {
  display: inline-block; margin-top: 26px; padding: 7px 14px;
  background: var(--pink); border: 4px solid #222; box-shadow: 12px 12px 0 #000;
  font-size: var(--h3); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover, .articles a:hover { transform: translate(4px, 4px); box-shadow: 8px 8px 0 #000; }

/* Testimonials */

.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.articles li { display: flex; }
.articles a {
  flex: 1; min-height: 137px; display: flex; flex-direction: column; justify-content: center;
  padding: 6px 14px 6px 86px; position: relative;
  background: var(--yellow); border: 4px solid #222; box-shadow: 12px 12px 0 #000; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.articles a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 72px; border-right: 4px solid #222;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='1'/%3E%3Cpath d='M7 9h10M7 12h10M7 15h10'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.articles b { font-size: 24px; line-height: 1; max-width: 8em; }
.articles small { font-size: 16px; }

/* What is the Jam about */

.pillars { margin-top: 40px; overflow-x: clip; overflow-clip-margin: 20px; }
.bar { border: var(--line); }
.card {
  margin: 40px auto 0; padding: 16px 20px;
  background: #fff; border: var(--line); box-shadow: 15px 15px 0 #000;
}
@media (min-width: 810px) { .card { width: 60%; } }
.card h3 { font-size: var(--h3); margin-bottom: 10px; }

/* Cards stay hidden until their top passes ~80% of the viewport, then slide in from the right (script below) */

.js .card { transition: opacity .6s ease-out, translate .6s ease-out; }
.js .card:not(.in) { opacity: 0; translate: 150px 0; }

/* Weekend */

.weekend { margin-top: 60px; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); }
.days > div + div { border-left: 1px solid #333; }
.days h3 { padding: 10px 36px; background: #000; color: #fff; font-size: var(--h3); }
.days ul { padding: 25px 16px 25px 44px; list-style: disc; }
.days li { padding-left: 4px; }

/* CTA: wider than the other boxes, 40px from the window edge on desktop */

.cta {
  position: relative; margin-top: 60px;
  padding: 110px 20px 360px; background: #fff; border: var(--line); text-align: center;
}
.cta h2 { max-width: 16em; margin: 0 auto; font-size: var(--h2); }
.cta-date { margin: 0.5em 0; font-size: var(--h2); }
.mascot { position: absolute; left: 50%; translate: -50%; bottom: 20px; width: 240px; height: auto; }

/* From 1200px the mascot fits left of the button */

@media (min-width: 1200px) {
  .cta { margin-inline: calc(40px - var(--pad)); padding-bottom: 230px; }
  .mascot { left: 150px; translate: none; }
}

/* Team */

.team { display: grid; grid-template-columns: 1fr; background: var(--orange); }
@media (min-width: 810px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team li, .team a { display: flex; flex-direction: column; text-decoration: none; }

/* 4px borders on every side; cells overlap by 4px so shared lines stay 4px, also next to empty cells */

.team li { background: var(--yellow); border: var(--line); margin: 0 -4px -4px 0; }
.who { height: 125px; display: flex; flex-direction: column; justify-content: center; }
.team img { width: 100%; aspect-ratio: 401 / 371; object-fit: cover; filter: grayscale(1); border-bottom: 4px solid #000; }
.team b { padding: 0 6px; text-align: center; font-size: var(--name); line-height: 1; }
.team small { padding: 6px 6px 0; text-align: center; font-size: var(--role); line-height: 1; }

/* Partners */

.body > .logos { max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px clamp(20px, 6vw, 90px); margin: clamp(40px, 8vw, 110px) -60px 60px; }
.logos img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Footer */

footer { max-width: 1300px; margin: 60px auto 0; padding: 40px; background: var(--dark); color: #fff; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
footer h2 { font-size: var(--h3); margin-bottom: 16px; }
footer .btn { margin-top: 0; color: #000; }
.social { display: flex; justify-content: center; gap: clamp(80px, 26vw, 380px); margin-top: 70px; }
.social a { color: var(--orange); width: 56px; }
.support { display: flex; justify-content: center; align-items: end; gap: 40px; margin-top: 40px; }
.support p { margin-bottom: 20px; }

/* Phone */

@media (max-width: 809px) {
  .box, .pillars, .weekend { margin-top: 60px; }
  .date { display: block; text-align: left; }
  .days, .cols { grid-template-columns: 1fr; }
  .days > div + div { border-left: 0; }
  .articles a { padding-left: 66px; margin-right: 12px; }
  .articles a::before { width: 52px; background-size: 24px; }
  .body > .logos { grid-template-columns: repeat(2, 1fr); margin-inline: 0; }
  .support { flex-direction: column; align-items: center; }
}

/* Desktop spacing, measured from the Framer site at 1440px */

@media (min-width: 1200px) {
  .box { margin-top: 60px; }
  #tickets { margin-top: 83px; }
  .testimonials { margin-top: 41px; }
  .pillars { margin-top: 190px; }
  .weekend { margin-top: 70px; }
  .box > h2, .bar { height: 76px; padding: 11px 20px 0; }
  .bar { height: 80px; padding-top: 15px; }
  #tickets > h2 { height: 60px; padding-top: 3px; }
  .box > h2.indent { height: 60px; padding-top: 1px; }
  .box > h2.indent { padding-left: 100px; }
  .body { padding-block: 60px; }
  #tickets .date { margin-top: 10px; }
  #tickets .date + p { margin-top: 28px; }
  #tickets .body { padding-bottom: 52px; }
  .testimonials .btn { margin-top: 68px; }
  .card:first-of-type { margin-top: 22px; }
  #team .body { padding-block: 80px; }
  #partners .body { padding-top: 130px; }
  .cta { min-height: 739px; padding-top: 120px; }
  .cols { min-height: 430px; }
  .social { height: 130px; margin-top: 0; align-items: center; }
  .support { height: 130px; margin-top: 10px; }
  .social { margin-top: 10px; }
  .articles li:last-child a { min-height: 96px; }
  #partners .body { padding-bottom: 96px; }
  #partners .body > p:first-child { max-width: 840px; margin-left: 40px; }
  .body > .logos { grid-template-columns: repeat(4, 200px); justify-content: space-between; gap: 40px 0; margin: 100px -86px 0; }
  .body > .logos + p.center { margin-top: 51px; }
  #partners .btn { margin-top: 30px; }
}
