:root {
  /* Design typography tokens: IBM Plex Mono** Mon* for ticket numbers; Roboto Slab** Sla* slab-serif voice: domain title; Space Grotesk** Grotes* body copy. */
  --ink: #1B1715;
  --wheat: #E6D2A3;
  --clay: #B14A34;
  --olive: #6F7D45;
  --ochre: #C88F2D;
  --umber: #4F3428;
  --cream: #F4EEE0;
  --ink-thickness: 5px;
  --block-shadow: 12px;
  --grain-opacity: .17;
  --stamp-rotation: -9deg;
  --ticket-perf: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--wheat);
  font-family: "Space Grotesk", Roboto, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: var(--grain-opacity);
  background-image:
    radial-gradient(circle at 20% 30%, #1B1715 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 10%, #4F3428 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, #B14A34 0 1px, transparent 1.5px),
    linear-gradient(135deg, transparent 0 46%, rgba(27,23,21,.12) 47% 48%, transparent 49%);
  background-size: 33px 27px, 49px 41px, 57px 53px, 11px 11px;
  mix-blend-mode: multiply;
}

.club-tabs {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 760px;
}

.club-tabs a {
  display: block;
  color: var(--cream);
  background: var(--ink);
  border: 3px solid var(--ink);
  padding: 7px 10px;
  text-decoration: none;
  font: 700 11px/1 "IBM Plex Mono", Monaco, Consolas, monospace;
  letter-spacing: .04em;
  box-shadow: 4px 4px 0 var(--clay);
  transform: rotate(-1deg);
}

.club-tabs a:nth-child(even) { transform: rotate(2deg); background: var(--umber); box-shadow-color: var(--ochre); }

.room {
  min-height: 100vh;
  padding: clamp(72px, 8vw, 104px) clamp(18px, 5vw, 70px) 44px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--room-bg);
  border-bottom: 10px solid var(--ink);
}

.room::before,
.room::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: .12;
  transform: rotate(-5deg);
}

.room::before { width: 28vw; height: 22px; left: -6vw; top: 20%; }
.room::after { width: 18vw; height: 16px; right: -4vw; bottom: 18%; transform: rotate(8deg); }

.room-label {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 4;
  background: var(--cream);
  border: 4px solid var(--ink);
  padding: 8px 12px;
  font: 700 12px/1 "IBM Plex Mono", Monaco, monospace;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(2deg);
}
.room-label.dark { background: var(--ink); color: var(--cream); box-shadow: 6px 6px 0 var(--ochre); }

.block {
  border: var(--ink-thickness) solid var(--ink);
  box-shadow: var(--block-shadow) var(--block-shadow) 0 var(--ink);
  background: var(--cream);
  position: relative;
}

h1, h2, h3, strong {
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.desk-grid {
  display: grid;
  grid-template-columns: 1.2fr .56fr;
  grid-template-rows: auto auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.title-frame {
  grid-row: span 2;
  min-height: 72vh;
  padding: clamp(18px, 4vw, 46px);
  background: var(--wheat);
  transform: translateX(-2vw) rotate(-1deg);
}

.title-frame::after {
  content: "JOIN BEFORE THE STAMP DRIES";
  position: absolute;
  left: 8%;
  bottom: 7%;
  padding: 12px 16px;
  background: var(--clay);
  color: var(--cream);
  border: 5px solid var(--ink);
  font: 900 clamp(18px, 2.6vw, 42px)/.9 "Roboto Slab", serif;
  transform: rotate(var(--stamp-rotation));
}

.tiny-code, .ticket span, .stamp-pad span, .receipt span {
  font: 700 13px/1.2 "IBM Plex Mono", Monaco, monospace;
  letter-spacing: .08em;
}

h1 {
  display: grid;
  margin: 22px 0;
  font-size: clamp(74px, 15vw, 210px);
  line-height: .77;
  letter-spacing: -.08em;
  text-transform: lowercase;
}

h1 span:first-child { color: var(--clay); text-shadow: 7px 7px 0 var(--ink); }
h1 span:last-child { transform: translateX(7vw); color: var(--ink); text-shadow: 7px 7px 0 var(--ochre); }

.title-frame p, .counter p, .after-card p {
  max-width: 620px;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.08;
  font-weight: 700;
}

.stamp-pad {
  background: var(--clay);
  color: var(--cream);
  padding: 24px;
  min-height: 220px;
  transform: rotate(4deg);
}
.stamp-pad strong { display: block; margin-top: 20px; font-size: clamp(36px, 5vw, 76px); line-height: .82; }

.ticket {
  background: var(--ochre);
  padding: 24px 24px 24px 42px;
  min-height: 240px;
  overflow: hidden;
}
.ticket-edge {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22px;
  background: radial-gradient(circle at 50% 9px, var(--wheat) 0 6px, transparent 7px) 0 0/100% var(--ticket-perf);
  border-right: 4px dashed var(--ink);
}
.ticket strong { display: block; margin: 22px 0; font-size: clamp(36px, 4.8vw, 72px); }

.arrow-stack { display: flex; flex-direction: column; gap: 12px; grid-column: 2; }
.jag-arrow {
  width: fit-content;
  min-width: 250px;
  background: var(--clay);
  color: var(--cream);
  border: 5px solid var(--ink);
  padding: 14px 52px 14px 16px;
  font: 900 20px/1 "Roboto Slab", serif;
  clip-path: polygon(0 0, 78% 0, 78% 20%, 100% 50%, 78% 80%, 78% 100%, 0 100%, 9% 50%);
  box-shadow: 8px 8px 0 var(--ink);
}
.jag-arrow.green { background: var(--olive); transform: translateX(34px); }
.jag-arrow.ochre { background: var(--ochre); color: var(--ink); transform: translateX(7px); }

.notice-room { display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: 28px; align-items: center; }
.wall-board { padding: clamp(18px, 4vw, 44px); background: var(--wheat); min-height: 70vh; }
h2 { margin: 0 0 24px; font-size: clamp(46px, 8vw, 116px); line-height: .83; letter-spacing: -.05em; }
.slips { position: relative; min-height: 420px; }
.slip {
  position: absolute;
  width: clamp(180px, 25vw, 320px);
  padding: 18px;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--cream);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-28px) rotate(-4deg);
}
.slip b { display: block; margin-bottom: 12px; font-family: "IBM Plex Mono", Monaco, monospace; }
.slip.red { background: var(--clay); color: var(--cream); left: 2%; top: 6%; }
.slip.cream { left: 38%; top: 1%; transform: rotate(3deg); }
.slip.olive { background: var(--olive); color: var(--cream); left: 15%; top: 39%; transform: rotate(-7deg); }
.slip.ochre { background: var(--ochre); left: 58%; top: 35%; transform: rotate(5deg); }
.slip.wide { width: clamp(260px, 42vw, 520px); left: 32%; top: 66%; }
.is-visible .slip { animation: slap .45s cubic-bezier(.2,1.4,.3,1) forwards; }
.is-visible .slip:nth-child(2) { animation-delay: .11s; }
.is-visible .slip:nth-child(3) { animation-delay: .22s; }
.is-visible .slip:nth-child(4) { animation-delay: .33s; }
.is-visible .slip:nth-child(5) { animation-delay: .44s; }

.heart-sign {
  justify-self: center;
  width: min(82vw, 300px);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  background: var(--clay);
  box-shadow: 12px 12px 0 var(--ink);
  display: grid;
  place-items: center;
  transform: rotate(8deg);
}
.faceted-heart {
  width: 150px;
  height: 130px;
  background: var(--cream);
  clip-path: polygon(50% 100%, 4% 47%, 13% 15%, 40% 6%, 50% 22%, 61% 6%, 88% 15%, 97% 47%);
  border: 6px solid var(--ink);
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.heart-sign span { position: absolute; bottom: 18px; font: 900 30px/1 "Roboto Slab", serif; }

.practice-room { color: var(--cream); display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: end; }
.floor-plan { min-height: 75vh; position: relative; }
.step-block { position: absolute; padding: 24px; color: var(--ink); width: clamp(220px, 30vw, 390px); }
.step-block span { font: 700 20px/1 "IBM Plex Mono", monospace; }
.step-block strong { display: block; font-size: clamp(48px, 8vw, 110px); line-height: .8; }
.step-a { left: 0; top: 8%; background: var(--ochre); }
.step-b { left: 28%; top: 33%; background: var(--cream); }
.step-c { right: 4%; bottom: 2%; background: var(--clay); color: var(--cream); }
.chevrons { position: absolute; left: 16%; bottom: 10%; display: flex; gap: 10px; }
.chevrons i { width: 54px; height: 54px; background: var(--ink); clip-path: polygon(0 0, 55% 50%, 0 100%, 42% 100%, 100% 50%, 42% 0); animation: burst 1.1s infinite steps(2); }
.chevrons i:nth-child(2) { animation-delay: .12s; } .chevrons i:nth-child(3) { animation-delay: .24s; } .chevrons i:nth-child(4) { animation-delay: .36s; }

.locker-bank { background: var(--umber); color: var(--cream); padding: 22px; display: grid; gap: 12px; }
.locker-bank h3 { font-size: 42px; line-height: .9; margin: 0 0 10px; }
.locker {
  border: 4px solid var(--ink);
  background: var(--olive);
  color: var(--cream);
  min-height: 82px;
  font: 900 32px/1 "Roboto Slab", serif;
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.locker[data-open="true"] { background: var(--ochre); color: var(--ink); transform: translateX(-22px) rotateY(22deg); }

.counter-room { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: center; }
.counter { padding: clamp(20px, 4vw, 48px); background: var(--cream); }
.tokens { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.token, .ticket-button {
  cursor: pointer;
  border: 5px solid var(--ink);
  background: var(--wheat);
  color: var(--ink);
  padding: 15px 18px;
  box-shadow: 7px 7px 0 var(--ink);
  font: 900 18px/1 "Roboto Slab", serif;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.token.active, .token:hover, .ticket-button:hover { background: var(--clay); color: var(--cream); transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--ink); }
.folded-note {
  min-height: 160px;
  padding: 26px;
  border: 4px solid var(--ink);
  background: linear-gradient(135deg, var(--cream) 0 49%, #dfd2ba 50% 52%, var(--cream) 53%);
  font: 900 clamp(28px, 4vw, 58px)/.95 "Roboto Slab", serif;
  transform: rotate(-1.5deg);
}
.receipt { padding: 24px; background: var(--wheat); transform: rotate(2deg); }
.receipt p { border-bottom: 3px dashed var(--ink); font: 700 22px/1.4 "IBM Plex Mono", monospace; }
.receipt strong { font-size: 34px; color: var(--clay); }

.rooftop-room { color: var(--cream); display: grid; align-content: end; gap: 26px; }
.skyline { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1.5fr; gap: 14px; align-items: end; min-height: 38vh; }
.roof-block {
  border: 5px solid var(--ink);
  background: var(--ochre);
  color: var(--ink);
  min-height: 150px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 18px;
  font: 900 clamp(24px, 4vw, 58px)/.85 "Roboto Slab", serif;
  display: flex;
  align-items: end;
}
.roof-block.tall { min-height: 300px; background: var(--clay); color: var(--cream); }
.roof-block.short { min-height: 180px; background: var(--olive); color: var(--cream); }
.roof-block.antenna { min-height: 250px; position: relative; }
.roof-block.antenna::before { content: ""; position: absolute; width: 6px; height: 90px; background: var(--ink); top: -90px; left: 50%; }
.roof-block.wide { min-height: 220px; background: var(--cream); }
.after-card { max-width: 980px; padding: clamp(22px, 4vw, 46px); color: var(--ink); background: var(--wheat); margin-left: auto; transform: rotate(-1deg); }
.after-card h2 { color: var(--clay); }

.slam, .punch, .arrow-stack, .wall-board, .heart-sign, .step-block, .locker-bank, .counter, .receipt, .roof-block, .after-card {
  opacity: 0;
  transform: translateY(30px) rotate(-1deg) scale(.98);
}
.is-visible .slam, .is-visible .punch, .is-visible .arrow-stack, .is-visible .wall-board, .is-visible .heart-sign, .is-visible .step-block, .is-visible .locker-bank, .is-visible .counter, .is-visible .receipt, .is-visible .roof-block, .is-visible .after-card {
  animation: punchIn .58s cubic-bezier(.17,1.38,.33,1) forwards;
}
.is-visible .delay-1, .is-visible .step-b, .is-visible .receipt, .is-visible .roof-block:nth-child(2) { animation-delay: .12s; }
.is-visible .delay-2, .is-visible .step-c, .is-visible .roof-block:nth-child(3) { animation-delay: .24s; }
.is-visible .delay-3, .is-visible .locker-bank, .is-visible .roof-block:nth-child(4) { animation-delay: .36s; }

@keyframes punchIn { to { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); } }
@keyframes slap { to { opacity: 1; transform: translateY(0) rotate(var(--r, -2deg)); } }
@keyframes burst { 50% { transform: translateX(8px); background: var(--ochre); } }

@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .desk-grid, .notice-room, .practice-room, .counter-room { grid-template-columns: 1fr; }
  .title-frame { min-height: 58vh; transform: none; }
  .arrow-stack { grid-column: auto; }
  .practice-room { align-items: stretch; }
  .floor-plan { min-height: 780px; }
  .step-a, .step-b, .step-c { left: auto; right: auto; top: auto; bottom: auto; position: relative; margin: 0 0 18px; width: 90%; }
  .step-b { margin-left: 8%; }
  .step-c { margin-left: 2%; }
  .chevrons { bottom: 20px; }
  .skyline { grid-template-columns: 1fr 1fr; }
  .club-tabs { position: absolute; }
}

@media (max-width: 580px) {
  .room { padding-left: 14px; padding-right: 14px; }
  .room-label { right: 12px; max-width: 250px; }
  .slips { min-height: 700px; }
  .slip, .slip.red, .slip.cream, .slip.olive, .slip.ochre, .slip.wide { left: 0; top: auto; position: relative; margin: 12px 0; width: 100%; }
  .skyline { grid-template-columns: 1fr; }
}
