/* SIDEQUEST v2 — dark street-poster system. Fonts are self-hosted (OFL). */
@font-face { font-family: "Oswald"; src: url("assets/fonts/Oswald.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Rubik Spray Paint"; src: url("assets/fonts/RubikSprayPaint.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #171717;
  --ink-2: #202020;
  --ink-3: #2b2b2b;
  --line: #3a3a38;
  --paper: #F1EFE8;
  --muted: #B9B5AC;
  --yellow: #F5E500;
  --purple: #7546D8;
  --purple-lit: #A98BFF;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --tag: "Rubik Spray Paint", var(--display);
  --pad: clamp(20px, 4.5vw, max(72px, 5vw));
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scrollbar-color: var(--line) var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 500 max(17px, .8vw)/1.6 var(--body); caret-color: var(--yellow);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.lead { font-size: clamp(19px, 1.6vw, max(23px, 1.15vw)); line-height: 1.45; font-weight: 600; color: var(--paper); }
.note { color: var(--muted); font-size: max(15px, .7vw); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: max(14px, .7vw) var(--pad); background: rgb(23 23 23 / .94); border-bottom: 1px solid var(--line);
}
.logo { font: 700 max(26px, 1.25vw)/1 var(--display); letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.logo span { color: var(--yellow); }
.site-header nav { display: flex; gap: 26px; margin-left: auto; }
.site-header nav a { font-weight: 700; font-size: max(15px, .72vw); text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--yellow); }
.site-header .btn { margin-left: 8px; }

/* ── Slanted buttons ── */
.btn {
  --bg: var(--yellow); --fg: var(--ink); --edge: transparent;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: max(54px, 2.6vw); padding: 0 max(32px, 1.55vw); border: 0; background: none; cursor: pointer;
  font: 600 max(19px, .92vw)/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--fg);
  transition: color .25s var(--ease), transform .15s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 7px;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--edge);
  transform: skewX(-14deg); transition: background .25s var(--ease), transform .35s var(--ease);
}
.btn:hover::before { transform: skewX(-14deg) translate(3px, -3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-yellow:hover { --bg: var(--paper); }
.btn-ghost { --bg: transparent; --fg: var(--paper); --edge: var(--paper); }
.btn-ghost:hover { --bg: var(--paper); --fg: var(--ink); }
.btn-sm { min-height: max(42px, 2vw); padding: 0 max(22px, 1.1vw); font-size: max(16px, .78vw); }

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: clamp(36px, 6vw, 84px) var(--pad) clamp(56px, 7vw, 100px);
  min-height: calc(100svh - 72px);
}
.hero h1 { font-size: clamp(3.6rem, 8.4vw, max(6rem, 6.2vw)); }
.h1-line { display: block; }
.h1-plate { position: relative; display: inline-block; isolation: isolate; color: var(--ink); padding: 0 .16em; margin-top: .06em; }
.h1-plate::before { content: ""; position: absolute; inset: .04em -.02em -.02em; z-index: -1; background: var(--yellow); border-radius: 8px; transform: skewX(-12deg) rotate(-1.5deg); }
.hero-lead { max-width: 30ch; margin-top: 30px; font-size: clamp(18px, 1.5vw, max(21px, 1.12vw)); color: var(--muted); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 36px; }

.portrait {
  position: relative; margin: 0; justify-self: end; width: min(100%, 520px); aspect-ratio: 592 / 720;
  border-radius: 22px; overflow: hidden; background: radial-gradient(120% 80% at 50% 100%, #2a1b4d 0%, var(--ink-2) 60%);
  box-shadow: 0 30px 70px -34px rgb(0 0 0 / .85);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1) contrast(1.15) brightness(.9); opacity: .62; transition: opacity 1.6s var(--ease); }
.portrait.is-weaving img { opacity: 0; }
.portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.nameplate { position: absolute; left: 18px; bottom: 22px; display: grid; gap: 4px; padding: 14px 26px 14px 22px; isolation: isolate; color: #fff; }
.nameplate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--purple); border-radius: 8px; transform: skewX(-12deg) rotate(-3deg); }
.nameplate-role { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #E7DDFF; }
.nameplate-name { font: 700 clamp(24px, 2.4vw, 32px)/1 var(--display); text-transform: uppercase; }
.tag { position: absolute; top: 18px; right: 16px; font: 400 clamp(38px, 4vw, 56px)/1 var(--tag); color: var(--yellow); transform: rotate(-9deg); pointer-events: none; }
.logo3d {
  position: relative; margin: 0; justify-self: end; width: min(100%, max(540px, 34vw)); aspect-ratio: 1;
  border-radius: 22px; overflow: hidden; background: radial-gradient(90% 80% at 50% 55%, #241640 0%, var(--ink-2) 62%, var(--ink) 100%);
  box-shadow: 0 30px 70px -34px rgb(0 0 0 / .85); touch-action: pan-y;
}
.logo3d img { position: absolute; inset: 12%; width: 76%; height: 76%; transition: opacity .6s var(--ease); }
.logo3d.is-live img { opacity: 0; }
.logo3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 30px; height: 30px; margin-right: 10px; }
.replay {
  position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(23 23 23 / .7); border: 1px solid var(--line); color: var(--paper); cursor: pointer; transition: background .2s, color .2s;
}
.replay svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.replay:hover { background: var(--yellow); color: var(--ink); }

/* ── Band ── */
.band { overflow: hidden; background: var(--yellow); color: var(--ink); transform: rotate(-2.5deg); margin: 0 -40px; padding: 16px 0; }
.band-track { display: flex; align-items: center; gap: 34px; padding-right: 34px; width: max-content; animation: marquee 38s linear infinite; }
.band span { font: 700 clamp(26px, 3vw, max(40px, 2vw))/1 var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.band i { width: 10px; height: 34px; background: var(--ink); transform: skewX(-20deg); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* ── Sections ── */
main > section:not(.hero) { padding: clamp(80px, 10vw, max(150px, 7vw)) var(--pad) 0; }
main > section h2 { font-size: clamp(2.5rem, 5.4vw, max(5rem, 4.3vw)); }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.about h2 em { font-style: normal; color: var(--yellow); }
.about-copy { display: grid; gap: 18px; max-width: 58ch; color: var(--muted); }

.formats h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.format-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.format {
  --tone: var(--yellow); --tone-ink: var(--ink);
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 18px 40px; align-items: center;
  padding: clamp(24px, 3vw, 38px) 18px; border-top: 1px solid var(--line); transition: color .35s var(--ease);
}
.format[data-tone="purple"] { --tone: var(--purple); --tone-ink: #fff; }
.format[data-tone="paper"] { --tone: var(--paper); }
.format::before { content: ""; position: absolute; inset: 6px -10px; z-index: -1; background: var(--tone); border-radius: 12px; transform: skewX(-10deg) scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.format:hover, .format:focus-within { color: var(--tone-ink); }
.format:hover::before, .format:focus-within::before { transform: skewX(-10deg) scaleX(1); }
.format h3 { font-size: clamp(2.2rem, 4.6vw, max(4.2rem, 3.4vw)); }
.format p { color: inherit; opacity: .82; max-width: 52ch; }
.format-sub { display: block; margin-top: 8px; font: 700 max(14px, .66vw)/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pill { justify-self: end; padding: 8px 14px; border: 1.5px solid currentColor; border-radius: 999px; font: 700 max(12px, .58vw)/1 var(--body); letter-spacing: .12em; white-space: nowrap; }
.formats .note { margin-top: 22px; }

/* ── Residents (D-52…D-58) ── */
.residents-head { display: grid; gap: 14px; max-width: 60ch; }
.residents-head .lead { color: var(--muted); }
.resident-grid { list-style: none; margin: 0; padding: clamp(70px, 9vw, 110px) 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, max(300px, 15vw))); gap: 70px 40px; }
.resident { position: relative; perspective: 900px; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.resident-frame { position: relative; aspect-ratio: 592 / 720; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); background: var(--ink-2); transition: transform .5s var(--ease); }
.resident-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); transition: filter .5s var(--ease), transform .6s var(--ease); }
.resident-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(117 70 216 / .55)); mix-blend-mode: multiply; }
.resident-flash { position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 42%, rgb(245 229 0 / .9) 48%, #fff 50%, rgb(245 229 0 / .9) 52%, transparent 58%); transform: translateX(-80%); pointer-events: none; z-index: 2; }
.resident-figure {
  position: absolute; left: 50%; bottom: 0; height: 124%; width: auto; max-width: none; z-index: 3; pointer-events: none;
  transform-origin: 50% 100%;
  transform: translate(calc(-50% + var(--px, 0px)), calc(14% + var(--py, 0px))) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(.9);
  opacity: 0; transition: opacity .3s var(--ease), transform .5s var(--ease);
  filter: drop-shadow(3px 0 0 var(--yellow)) drop-shadow(-3px 0 0 var(--yellow)) drop-shadow(0 -3px 0 var(--yellow)) drop-shadow(0 18px 24px rgb(0 0 0 / .6));
}
.resident-plate { position: absolute; left: -10px; right: 24px; bottom: -26px; z-index: 4; display: grid; gap: 4px; padding: 14px 20px 14px 22px; isolation: isolate; color: #fff; }
.resident-plate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--purple); border-radius: 8px; transform: skewX(-12deg) rotate(-2deg); transition: background .3s; }
.resident-plate b { font: 700 clamp(22px, 2vw, max(28px, 1.4vw))/1 var(--display); text-transform: uppercase; }
.resident-plate span { font: 600 max(13px, .62vw)/1.35 var(--body); color: #E7DDFF; }
.resident-link { justify-self: start; margin-top: 4px; color: var(--yellow); font: 700 13px var(--body); }
.resident.is-open .resident-frame, .resident:focus-visible .resident-frame { transform: scale(1.04); }
.resident.is-open .resident-photo { filter: grayscale(1) contrast(1.1) brightness(.35) blur(2px); transform: scale(1.08); }
.resident.is-open .resident-flash { transform: translateX(80%); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.resident.is-open .resident-figure { opacity: 1; transform: translate(calc(-50% + var(--px, 0px)), var(--py, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1); }
.resident.is-open .resident-plate::before { background: #8A5CF0; }
.resident:focus-visible .resident-plate::before { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 760px) {
  .resident-grid { grid-template-columns: minmax(0, 270px); justify-content: center; padding-top: clamp(110px, 30vw, 140px); }
  .resident-figure { height: 116%; }
}
@media (prefers-reduced-motion: reduce) {
  .resident-figure, .resident-frame, .resident-photo { transition: opacity .2s; }
  .resident.is-open .resident-flash { transition: none; transform: translateX(-80%); }
}

.posters-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.posters-head h2 { max-width: 14ch; }
.poster-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 34px); }
.poster-card { display: block; border-radius: 14px; overflow: hidden; transform: rotate(var(--r, -1.6deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 24px 50px -28px rgb(0 0 0 / .8); }
.poster-card:nth-child(2) { --r: 1.4deg; margin-top: 36px; }
.poster-card:nth-child(3) { --r: -.8deg; }
.poster-card svg { width: 100%; height: auto; }
.poster-card:hover, .poster-card:focus-visible { transform: rotate(0) translateY(-8px); box-shadow: 0 36px 60px -26px rgb(0 0 0 / .9); }
.posters .note { margin-top: 26px; }

.venues-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.venues .mark { color: var(--yellow); }
.deal { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; }
.deal-side { padding: clamp(28px, 4vw, 54px); min-height: 260px; display: grid; align-content: start; gap: 16px; }
.deal-side h3 { font-size: clamp(2rem, 3.6vw, max(3.4rem, 2.8vw)); }
.deal-side p { font-size: max(18px, .86vw); font-weight: 600; max-width: 40ch; }
.deal-us { background: var(--yellow); color: var(--ink); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); padding-right: 12%; }
.deal-you { background: var(--purple); color: #fff; margin-left: -9%; padding-left: calc(9% + clamp(28px, 4vw, 54px)); }
.venues .note { margin-top: 22px; max-width: 70ch; }

.closing { text-align: center; display: grid; justify-items: center; gap: 34px; padding-bottom: clamp(80px, 10vw, 140px); }
.closing h2 { max-width: 16ch; font-size: clamp(2.6rem, 6vw, max(5.6rem, 4.6vw)); }
.closing .h1-plate { margin-top: .12em; }
.closing .note { max-width: 46ch; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--paper); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
[data-link].is-pending { opacity: .45; cursor: not-allowed; pointer-events: none; }

.site-footer { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer p { font: 600 16px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--paper); }

/* ── Studio ── */
.studio { padding: clamp(30px, 4vw, 56px) var(--pad) clamp(60px, 7vw, 100px); }
.studio-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.studio-head h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.studio-head p { color: var(--muted); max-width: 52ch; font-weight: 600; }
.studio-layout { display: grid; grid-template-columns: minmax(320px, 460px) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.editor { display: grid; gap: 16px; }
.step { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: .02em; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 700 16px/1 var(--display); }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-row-2 { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-face {
  display: flex; align-items: center; gap: 9px; min-height: 52px; height: 100%; padding: 10px 12px; border-radius: 12px;
  border: 2px solid var(--line); font-weight: 700; font-size: 14px; line-height: 1.2; transition: border-color .2s, background .2s;
}
.choice-face[data-sw]::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.choice-face[data-sw="yellow"] { --sw: var(--yellow); }
.choice-face[data-sw="purple"] { --sw: var(--purple); }
.choice-face[data-sw="paper"] { --sw: var(--paper); }
.choice:hover .choice-face { border-color: var(--muted); }
.choice input:checked + .choice-face { border-color: var(--yellow); background: rgb(245 229 0 / .09); }
.choice input:focus-visible + .choice-face { outline: 3px solid var(--yellow); outline-offset: 3px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: var(--muted); }
.field input:not([type=range]) {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--ink-3); color: var(--paper); font: 600 16px var(--body); transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(245 229 0 / .25); }
.field input[aria-invalid="true"] { border-color: #ff7a6b; }
.field small { font-weight: 500; font-size: 13px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range input { width: 100%; accent-color: var(--yellow); height: 28px; }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--yellow); outline-offset: 4px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--paper); font: 700 14px var(--body); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; justify-self: start; }
.link-btn:hover { color: var(--yellow); }
.hint { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--yellow); }
.export-row { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.preview { position: sticky; top: 92px; display: grid; justify-items: center; gap: 12px; }
.preview-frame { width: 100%; display: grid; justify-items: center; }
.preview-frame svg { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); border-radius: 14px; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9); }
.preview-caption { display: flex; gap: 20px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── Admin: home texts ── */
.howto { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); font-weight: 600; max-width: 70ch; }
.content-form { padding-bottom: 90px; }
.content-field { position: relative; }
.content-field textarea { width: 100%; resize: vertical; background: var(--ink); color: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 16px/1.5 var(--body); }
.content-field input, .content-field textarea { color: var(--paper); }
.content-field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(245 229 0 / .25); }
.content-field.is-changed label { color: var(--yellow); }
.content-field.is-changed label::after { content: " · изменено"; font-weight: 600; }
.link-btn { justify-self: start; background: none; border: 0; padding: 2px 0; color: var(--muted); font: 600 13px var(--body); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--yellow); }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px var(--pad); background: rgb(23 23 23 / .94); border-top: 1px solid var(--line); }
.save-bar .people-status { min-height: 0; }

/* ── Admin: people ── */
.site-header nav a[aria-current="page"] { color: var(--yellow); }
.people-layout { display: grid; gap: 16px; max-width: 760px; }
.people-form { display: grid; gap: 14px; }
.people-form .btn { justify-self: start; }
.hint { color: var(--muted); font-size: 14px; font-weight: 600; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.person b { display: block; font: 700 20px/1.2 var(--display); text-transform: uppercase; }
.person span { color: var(--muted); font-size: 14px; font-weight: 600; }
.person.is-off { opacity: .55; }
.person-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.person-info { display: grid; gap: 6px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chip, .person-btn { font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.perm-chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.perm-chip:disabled { cursor: default; }
.perm-chip:not(:disabled):hover, .person-btn:hover { border-color: var(--paper); color: var(--paper); }
.perm-chip.is-on:not(:disabled):hover { color: var(--ink); filter: brightness(1.08); }
.perm-chip:focus-visible, .person-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.person-btn:disabled, .perm-chip:not(.is-on):disabled { opacity: .5; }
.people-status { min-height: 1.5em; font-weight: 700; color: var(--yellow); overflow-wrap: anywhere; }
.people-status.is-bad { color: #FF8A7A; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .portrait, .logo3d { justify-self: center; width: min(100%, 460px); }
  .about, .venues-intro { grid-template-columns: 1fr; }
  .format { grid-template-columns: 1fr; }
  .pill { justify-self: start; }
  .studio-layout { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .preview-frame svg { max-height: 70vh; }
}
@media (max-width: 760px) {
  .site-header nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .poster-wall { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 26px; margin: 0 calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .poster-card { scroll-snap-align: center; }
  .poster-card:nth-child(2) { margin-top: 0; }
  .deal { grid-template-columns: 1fr; }
  .deal-us { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); padding-right: clamp(28px, 4vw, 54px); padding-bottom: 60px; }
  .deal-you { margin: -40px 0 0; padding-left: clamp(28px, 4vw, 54px); padding-top: 70px; }
  .choice-row { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
}

/* Admin: media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.media-card { display: grid; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.media-thumb { display: block; width: 100%; aspect-ratio: 9 / 12; object-fit: contain; background: #0e0e0e; border-bottom: 1px solid var(--line); }
.media-body { display: grid; gap: 10px; padding: 14px; }
.media-body input, .media-body textarea { width: 100%; background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 600 15px/1.4 var(--body); resize: vertical; }
.media-body input { font-family: var(--display); font-size: 18px; font-weight: 700; text-transform: uppercase; }
.media-body input:hover, .media-body textarea:hover { border-color: var(--muted); }
.media-body input:focus, .media-body textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(245 229 0 / .25); }
.media-meta { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-actions .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.media-delete { --fg: #FF8A7A; --edge: #FF8A7A; }
.media-delete:hover { --bg: #FF8A7A; --fg: var(--ink); }
.media-empty { color: var(--muted); font-weight: 600; padding: 28px 0; }
@media (max-width: 600px) { .media-grid { grid-template-columns: 1fr; } }
