/*
  Monkey Business Productions
  Direction: a street at night. The studio's posters lie on paving slabs under one warm
  street lamp, and scrolling walks you past them. The palette is the night (near-black),
  paper and lamplight for text, and the logo's red #912226 as the single accent.
  Display: Bowlby One (heavy, a little cartoonish, like the logo's lettering).
  Text and UI: Archivo, with its condensed width for labels and index numbers.
*/

:root {
  --night: #0f0d0c;
  --night-2: #1a1715;
  --pave: #2b2622;
  --pave-joint: #1b1816;
  --paper: #efe7da;
  --text: #efe7da;
  --muted: #b3a798;
  --dim: #8e8376;
  --line: #3a332e;
  --red: #912226;
  --red-hi: #b02a30;
  --field-bg: #fbf8f3;
  --field-text: #1d1716;
  --field-border: #8e8376;
  --error: #ff9a8f;
  --marigold: #e6ad1f;

  --display: "Bowlby One", "Arial Black", sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --r-sm: 6px;
  --r-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a[href], button, summary, select, label[for], input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--paper); color: var(--night); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }

/* ---------- Header (all pages) ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.wordmark .logo { width: 44px; height: 44px; flex: none; }
.wordmark b { display: block; font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; line-height: 1.1; }
.wordmark small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.2; }
.nav { display: flex; gap: 6px; align-items: center; margin-right: -8px; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; text-decoration: none;
  font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .98rem;
}
.nav a:hover, .nav button:hover { border-color: var(--line); background: var(--night-2); }
.nav a:active, .nav button:active { background: var(--line); }
.nav a[aria-current="page"] { border-color: var(--paper); }
/* On the home page the header floats over the street, like the reference's overlaid studio credit. */
.site-header.over { position: absolute; inset: 0 0 auto; background: linear-gradient(var(--night), rgba(15,13,12,0)); border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--red); background: var(--red); color: #fff; text-decoration: none;
  font-stretch: 75%; font-weight: 800; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; transform: none; }
.btn-ghost { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--night); }

/* ---------- The street (home) ---------- */
.street { position: relative; }
.stage { position: relative; overflow: hidden; background: var(--pave); }

/* Paving slabs: two joint lines per slab, so the ground reads as a pavement rather than a grid pattern. */
.ground {
  background-color: var(--pave);
  background-image:
    linear-gradient(90deg, transparent calc(100% - 3px), var(--pave-joint) calc(100% - 3px)),
    linear-gradient(0deg, transparent calc(100% - 3px), var(--pave-joint) calc(100% - 3px)),
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.035), transparent 60%);
  background-size: 320px 320px, 320px 320px, 640px 640px;
}

.poster-list { list-style: none; margin: 0; padding: 0; }
.poster-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; position: relative;
  border-radius: 3px;
}
.poster-btn img, .flyer { border-radius: 3px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
/* Printed-paper light: a faint sheen across the sheet, darker at the far edge. */
.poster-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%, rgba(0,0,0,.18));
}
.poster-btn:hover::after { background: linear-gradient(115deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%, rgba(0,0,0,.12)); }

/* The typeset flyer for the series, which has no official poster image on file. */
.flyer {
  display: flex; flex-direction: column; justify-content: space-between; padding: 9% 9% 8%;
  background: #ece4d4; color: #191412; font-family: var(--sans);
}
.flyer .f-top { display: flex; justify-content: space-between; font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(.5rem, 1.1vw, .72rem); }
.flyer .f-title { font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 3.1rem); line-height: .9; color: var(--red); }
.flyer .f-title span { display: block; color: #191412; font-size: .5em; margin-top: .3em; }
.flyer .f-credits { font-size: clamp(.5rem, 1.1vw, .74rem); line-height: 1.45; border-top: 2px solid #191412; padding-top: .8em; }

/* Caption: the reference's large faded title, bottom left. */
.caption { pointer-events: none; }
.caption .num { font-stretch: 75%; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.caption .big { font-family: var(--display); line-height: .9; color: var(--paper); }
.caption .sub { color: var(--muted); }

/* Default (no JS or reduced motion): a calm poster wall. */
.street .stage { padding: 120px 0 64px; }
.street .poster-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.street .poster-item { display: grid; gap: 10px; }
.street .poster-btn { box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.street .intro, .street .caption, .street .hint { display: none; }
.street .wall-title { max-width: var(--max); margin: 0 auto 28px; padding: 0 var(--gutter); }
.street .wall-title h1 { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 5rem); }
.street .wall-title p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.poster-item .meta { font-size: .95rem; color: var(--muted); }
.poster-item .meta strong { display: block; color: var(--paper); font-size: 1.05rem; }

/* Immersive mode: only with JS and when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .street { height: calc(100vh + var(--steps, 4) * 85vh); }
  .js .street .stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; perspective: 1400px; perspective-origin: 50% 20%; }
  .js .poster-item .meta { display: none; }
  /* The h1 stays in the accessibility tree; the street shows the name visually in the intro. */
  .js .street .wall-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
  .js .street .ground {
    position: absolute; left: 50%; top: 0; width: 220vw; height: calc(100vh + var(--steps, 4) * 120vh);
    margin-left: -110vw; transform-origin: 50% 0;
    transform: rotateX(var(--tilt, 32deg)) translateY(var(--walk, 0px));
    will-change: transform;
  }
  .js .street .poster-list { display: block; max-width: none; padding: 0; position: absolute; inset: 0; }
  .js .street .poster-item { position: absolute; left: 50%; width: var(--pw, 300px); margin-left: calc(var(--pw, 300px) / -2); }
  .js .street .poster-btn {
    transform: rotate(var(--rot, 0deg)) translateX(var(--dx, 0px));
    /* Contact shadow plus a long soft lamp shadow, so the sheet sits on the stone instead of floating. */
    box-shadow: 0 1px 1px rgba(0,0,0,.55), 0 6px 10px rgba(0,0,0,.35), 18px 34px 46px rgba(0,0,0,.55);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  }
  .js .street .poster-btn:hover { transform: rotate(var(--rot, 0deg)) translateX(var(--dx, 0px)) translateY(-6px) scale(1.02); box-shadow: 0 1px 1px rgba(0,0,0,.55), 0 14px 20px rgba(0,0,0,.35), 24px 52px 60px rgba(0,0,0,.5); }

  /* One warm street lamp, falling off into darkness at the edges. */
  .js .street .stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background:
      radial-gradient(ellipse 48% 42% at 50% 46%, rgba(255,205,140,.20), rgba(255,190,120,.06) 45%, transparent 70%),
      radial-gradient(ellipse 85% 75% at 50% 50%, transparent 35%, rgba(8,6,5,.78) 100%);
  }
  .js .street .intro, .js .street .caption, .js .street .hint { display: block; position: absolute; z-index: 3; }
  .js .street .intro { left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 7vh, 72px); transition: opacity .4s; }
  /* Faded like the reference's bottom-left title, so the poster stays the focal point. */
  .js .street .intro .intro-title { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: .86; margin: 0; color: rgba(239,231,218,.78); }
  .js .street .intro p { color: var(--muted); max-width: 46ch; margin: 16px 0 0; font-size: clamp(1rem, 1.6vw, 1.15rem); }
  .js .street .caption { left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px); opacity: 0; transition: opacity .4s; }
  .js .street .caption .big { font-size: clamp(2rem, 6.5vw, 5.4rem); color: rgba(239,231,218,.78); }
  .js .street .caption .sub { margin: 10px 0 0; }
  .js .street .hint { right: var(--gutter); bottom: clamp(24px, 6vh, 64px); color: var(--muted); font-size: .92rem; text-align: right; max-width: 22ch; }
  .js .street.walking .intro { opacity: 0; }
  .js .street.walking .caption { opacity: 1; }
  .js .street .caption .big, .js .street .caption .sub, .js .street .caption .num { transition: opacity .25s; }
  .js .street .caption.swap .big, .js .street .caption.swap .sub, .js .street .caption.swap .num { opacity: 0; }
}

/* ---------- Dialogs: picked-up poster and index ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8,6,5,.93); }
.pickup[open] { display: grid; place-items: center; width: 100vw; height: 100vh; height: 100dvh; }
.pickup .sheet { display: grid; grid-template-columns: auto minmax(0, 380px); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 1000px; padding: 24px var(--gutter); }
.pickup .art { width: min(46vh, 420px); }
.pickup .art img, .pickup .art .flyer { box-shadow: 0 40px 80px rgba(0,0,0,.6); border-radius: 4px; }
.pickup .kind { color: var(--muted); margin-bottom: 10px; }
.pickup h2 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: .92; margin-bottom: 16px; }
.pickup dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pickup dt { color: var(--muted); }
.pickup dd { margin: 0; font-weight: 600; }
.pickup .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.close {
  position: fixed; top: 16px; right: 16px; min-width: 48px; min-height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--night-2); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 0 16px;
}
.close:hover { border-color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .pickup[open] .art { animation: lift .55s cubic-bezier(.2,.8,.2,1); }
  .pickup[open] .info { animation: fadein .5s .1s both; }
  @keyframes lift { from { transform: translateY(40px) rotate(-6deg) scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}


/* ---------- Studio note and updates ---------- */
.studio-note { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.studio-note .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.studio-note img { width: 150px; }
.studio-note h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: .95; margin-bottom: 16px; }
.studio-note p { max-width: 58ch; color: var(--muted); margin: 0; font-size: 1.1rem; }
.studio-note p strong { color: var(--paper); font-weight: 600; }

.updates { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 10vw, 120px); }
.updates .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.updates h2 { font-family: var(--display); font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: .95; margin-bottom: 20px; }
.updates ul { padding-left: 1.1em; margin: 0 0 22px; }
.updates li { margin-bottom: 6px; }
.fine { color: var(--muted); font-size: .98rem; }
.sample { margin: 0; }
.message { background: var(--field-bg); color: var(--field-text); border-radius: 22px 22px 22px 6px; padding: 18px; max-width: 360px; }
.message .from { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.message .from img { width: 40px; height: 40px; }
.message .from strong { display: block; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.message .from span { font-size: .85rem; color: #5b504b; }
.message .shot { border-radius: 12px; width: 100%; height: 170px; object-fit: cover; object-position: center 40%; margin-bottom: 12px; }
.message p { margin: 0; }
.message .replies { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.message .replies span { border: 1.5px solid var(--red); color: var(--red); border-radius: 999px; padding: 4px 12px; font-size: .92rem; font-weight: 600; }
.sample figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* ---------- Inner pages ---------- */
.title-card { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 120% at 20% 0%, rgba(255,205,140,.10), transparent 70%); }
.title-card .studio { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .92rem; margin: 0 0 12px; color: var(--muted); }
.title-card h1 { font-family: var(--display); font-size: clamp(2.6rem, 9vw, 6rem); line-height: .9; }
.title-card .lead { margin: 18px 0 0; max-width: 52ch; font-size: 1.15rem; color: var(--muted); }
.title-card .updated { margin: 14px 0 0; color: var(--muted); }

.legal { max-width: 740px; padding-top: 44px; padding-bottom: 96px; }
.legal h2 { font-family: var(--display); font-size: 1.5rem; margin: 44px 0 12px; line-height: 1.05; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.callout { border: 1px solid var(--paper); border-radius: var(--r-md); padding: 16px 20px; margin: 20px 0; background: var(--night-2); }

.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); padding-top: 48px; padding-bottom: 96px; align-items: start; }
.form-panel { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 4vw, 36px); }
.form-panel h2 { font-family: var(--display); font-size: 2rem; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--field-text); background: var(--field-bg); min-height: 50px;
  border: 1.5px solid var(--field-border); border-radius: var(--r-sm); padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { display: block; font-size: .93rem; color: var(--muted); margin-top: 6px; }
.field-error { display: block; font-size: .93rem; color: var(--error); margin-top: 6px; font-weight: 700; }
.field-error:empty { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--night); border: 2px solid var(--red-hi); border-radius: var(--r-md); padding: 16px; margin: 8px 0 22px; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--red); }
.consent label { font-size: .98rem; line-height: 1.5; }
.consent label strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.status { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 1rem; }
.status:empty { display: none; }
.status.is-error { border: 2px solid var(--error); color: var(--error); background: var(--night); }
.done h2 { margin-bottom: 12px; }
.done p { margin: 0 0 18px; }
.contact-aside section { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-aside section:first-child { border-top: 0; padding-top: 0; }
.contact-aside h2 { font-family: var(--sans); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; margin-bottom: 4px; color: var(--muted); }
.contact-aside p { margin: 0; }
.contact-aside a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.site-footer .logo { width: 64px; height: 64px; }
.site-footer p { margin: 8px 0 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; justify-content: flex-end; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; font-size: .95rem; }

.lost { padding: clamp(64px, 12vw, 140px) 0; }
.lost h1 { font-family: var(--display); font-size: clamp(2.8rem, 10vw, 6.4rem); line-height: .9; margin-bottom: 24px; }
.lost p { color: var(--muted); }

@media (max-width: 880px) {
  .updates .wrap, .contact { grid-template-columns: 1fr; }
  .pickup .sheet { grid-template-columns: 1fr; justify-items: start; align-content: center; padding-top: 72px; }
  .pickup .art { width: min(40vh, 70vw); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .studio-note .wrap { grid-template-columns: 1fr; }
  .studio-note img { width: 110px; }
}
@media (max-width: 560px) {
  .pair { grid-template-columns: 1fr; }
  .wordmark small { display: none; }
  .nav { margin-right: -8px; gap: 2px; }
  .nav a, .nav button { padding: 0 9px; font-size: .92rem; }
  .js .street .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
