/* Underground Kitchen SF — The Pass */
:root {
  --ink: #1b1b1b; --ink-soft: #4a463f; --muted: #6b675e;
  --wall: #e9e6df; --paper: #fdfdfb; --docket: #fbfaf5; --grout: #dcd8cf; --tile: #f3f1ea;
  --red: #b5121b; --steel-a: #cfd3d6; --steel-b: #dfe2e5;
  --tape: rgba(120, 156, 202, 0.6);
  --bar: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background-color: var(--wall); font-size: 17px; line-height: 1.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='80'><rect width='160' height='80' fill='%23dcd8cf'/><rect x='2' y='2' width='76' height='36' rx='2' fill='%23f3f1ea'/><rect x='82' y='2' width='76' height='36' rx='2' fill='%23f3f1ea'/><rect x='-38' y='42' width='76' height='36' rx='2' fill='%23f3f1ea'/><rect x='42' y='42' width='76' height='36' rx='2' fill='%23f3f1ea'/><rect x='122' y='42' width='76' height='36' rx='2' fill='%23f3f1ea'/></svg>"); }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }

/* ---- Interaction vocabulary: exactly three kinds of things react ----
   1. text links: red sharpie underline
   2. controls (knobs, tickets in the rail): stainless, lift on hover, pointer
   3. films: red play sticker, running time, darken on hover
   Static polaroids and dockets never change on hover. */
.link { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(181,18,27,0.55); }
.link:hover, .link:focus-visible { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.knob { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; color: var(--ink); background: radial-gradient(circle at 35% 30%, #f1f2f3, #a7abaf); box-shadow: 0 2px 4px rgba(0,0,0,0.3); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, box-shadow .15s ease; }
.knob:hover, .knob:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.3); }
.knob:active { transform: translateY(0); }

/* label tape: masking tape with sharpie */
.label { display: inline-block; background: linear-gradient(180deg, #f1ecdf 0%, #e9e3d3 100%); color: var(--ink); font-family: var(--hand); font-weight: 600; font-size: 24px; line-height: 1; padding: 8px 18px 7px; opacity: .94; box-shadow: 0 1px 2px rgba(0,0,0,.22); white-space: nowrap;
  clip-path: polygon(0 6%, 2% 0, 4% 8%, 6% 0, 100% 0, 98% 10%, 100% 92%, 98% 100%, 96% 94%, 94% 100%, 0 100%, 2% 90%); }
.label.red { color: var(--red); }

/* polaroids */
.pola { position: relative; background: var(--paper); padding: 12px 12px 66px; box-shadow: 0 8px 16px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.2); }
.pola img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(1.05) contrast(1.03); background: #ddd; }
.pola.wide img { aspect-ratio: 4 / 3; }
.pola.film { padding-bottom: 66px; }
.pola.film .frame { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.pola.film .frame img { aspect-ratio: 16 / 9; }
.pola.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s ease; }
.pola.film.is-live iframe { opacity: 1; }
.pola.film.is-live .frame .poster { visibility: hidden; }
.sharpie { position: absolute; left: 16px; right: 16px; bottom: 10px; font-family: var(--hand); font-size: 24px; font-weight: 500; line-height: 1.05; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp { position: absolute; top: -10px; left: 50%; width: 84px; height: 20px; margin-left: -42px; background: var(--tape); transform: rotate(-2deg); box-shadow: 0 1px 1px rgba(0,0,0,.12);
  clip-path: polygon(0 8%, 3% 0, 5% 10%, 8% 0, 100% 0, 97% 12%, 100% 90%, 97% 100%, 94% 92%, 91% 100%, 0 100%, 3% 88%); }
.tp.l { left: 6px; margin-left: 0; transform: rotate(-38deg); width: 62px; top: 2px; }
.tp.r { left: auto; right: -16px; margin-left: 0; transform: rotate(38deg); width: 62px; top: 2px; }
.r-2 { transform: rotate(-2deg); } .r-1 { transform: rotate(-1deg); } .r0 { transform: rotate(.4deg); } .r1 { transform: rotate(1.2deg); } .r2 { transform: rotate(2deg); }

/* dockets */
.docket { background: var(--docket); font-family: var(--mono); font-size: 14px; line-height: 1.5; padding: 18px 20px 22px; box-shadow: 0 6px 12px rgba(0,0,0,.16); border-top: 3px dashed #d9d5c9; position: relative; text-transform: uppercase; }
.docket p { margin: 0 0 10px; } .docket p:last-child { margin: 0; }
.docket .row { display: flex; justify-content: space-between; gap: 12px; }
.docket .rule { border-top: 1px dashed #cfcabd; margin: 10px 0; }
.clip { position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f2f2f2, #9a9a9a); box-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* rail */
.rail { position: sticky; top: 0; z-index: 20; background: repeating-linear-gradient(90deg, var(--steel-a) 0px, var(--steel-b) 1px, #c9cdd0 2px, #d9dcdf 3px); border-bottom: 2px solid #9aa0a5; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.rail-in { max-width: 1440px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rail .label { font-size: 20px; padding: 7px 12px; }
.tickets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tickets::-webkit-scrollbar { display: none; }
.ticket { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; background: var(--docket); color: var(--ink); padding: 12px 14px; border-top: 3px dashed #d9d5c9; box-shadow: 0 3px 6px rgba(0,0,0,.18); min-height: 44px; display: inline-flex; align-items: center; transition: transform .15s ease, box-shadow .15s ease; }
.ticket:hover, .ticket:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 10px rgba(0,0,0,.22); }
.ticket.is-active { border-top-color: var(--red); }

/* hero */
.hero { position: relative; height: min(88vh, 900px); min-height: 520px; overflow: hidden; background: #111; }
.hero .poster, .hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hero iframe { opacity: 0; transition: opacity 1.2s ease; }
.hero.is-live iframe { opacity: 1; }
.hero iframe { width: 177.78vh; min-width: 100%; min-height: 100%; height: 56.25vw; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 45%, rgba(0,0,0,.75)); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; max-width: 1440px; margin: 0 auto; padding: 0 24px 56px; color: #fff; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 { font-family: var(--bar); font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: .95; margin: 0; max-width: min(16ch, 100%); text-wrap: balance; letter-spacing: -.01em; }
.hero p { margin: 0; font-size: 18px; max-width: min(56ch, 100%); color: #e6e1d6; }
.hero .hint { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #cfc8ba; }
.cta { display: inline-flex; align-items: center; gap: 12px; background: var(--red); color: #fff; font-family: var(--bar); font-weight: 600; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; min-height: 48px; box-shadow: 0 4px 10px rgba(0,0,0,.3); cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
.cta:hover, .cta:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,.35); }

/* layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
section.block { padding: 88px 0 0; }
.head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2 { font-family: var(--bar); font-weight: 600; font-size: 40px; line-height: 1; margin: 0; letter-spacing: -.01em; }
.two { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
.two.rev { grid-template-columns: 1fr 380px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.wall-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; }
.stagger > :nth-child(3n+2) { margin-top: 24px; }
.wall-grid > :nth-child(2n) { margin-top: 18px; }

/* making-of slideshow */
.show { position: relative; }
.show .slide { display: none; }
.show .slide.is-on { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.show-ctl { display: flex; justify-content: space-between; align-items: center; padding: 26px 12px 0; }
.dots { display: flex; gap: 10px; }
.dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 0; background: #c9bfae; box-shadow: inset 0 1px 1px rgba(0,0,0,.3); cursor: pointer; }
.dots button.is-on { background: var(--ink); }
.dots button:hover { background: #8f8676; }
.show-ctl .status { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* films */
.film-wrap { margin-top: 48px; }
.sticker { position: absolute; right: 22px; top: 22px; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 6px rgba(0,0,0,.3); border: 0; cursor: pointer; z-index: 2; transition: transform .15s ease; }
.sticker:hover, .sticker:focus-visible { transform: scale(1.06); }
.sticker.is-hidden { display: none; }
.pola.film .frame .poster { transition: filter .2s ease; }
.pola.film:hover .frame .poster { filter: brightness(.85); }
.sound { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(0,0,0,.72); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; border: 0; cursor: pointer; min-height: 44px; display: none; }
.sound.is-on { display: inline-flex; align-items: center; gap: 8px; }
.duration { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgba(0,0,0,.72); color: #fff; font-family: var(--mono); font-size: 12px; padding: 6px 8px; letter-spacing: .06em; }

/* footer */
footer { padding: 88px 0 72px; }
.foot { display: grid; grid-template-columns: 520px 1fr; gap: 48px; align-items: start; }
.foot .big { font-family: var(--bar); font-size: 36px; font-weight: 600; line-height: 1.1; }

@media (max-width: 1000px) {
  .two, .two.rev, .foot { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .rail-in { padding-left: 16px; padding-right: 16px; }
  .rail-in { flex-direction: column; align-items: flex-start; }
  .rail .tickets { width: 100%; }
  .hero { height: 78vh; max-height: 720px; }
  .hero .label { white-space: normal; line-height: 1.15; font-size: 20px; }
  .hero .hint { max-width: 100%; }
  .hero-in { padding-bottom: 36px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .stagger > :nth-child(3n+2) { margin-top: 0; } .stagger > :nth-child(2n) { margin-top: 20px; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .grid4 { gap: 30px 18px; }
  .pola { padding-bottom: 54px; } .sharpie { font-size: 19px; }
  .head h2 { font-size: 30px; }
  section.block { padding-top: 56px; }
  .sticker { width: 52px; height: 52px; right: 14px; top: 14px; }
}
