:root {
  --ink: #12123a; --text: #2a2d45; --muted: #636b84; --faint: #8f96ab; --line: #e3e6ef; --soft: #f2f4f9; --paper: #fff; --ground: #f7f8fc;
  --brand: #2e2c5f; --brand-2: #3d3a7a; --accent: #3d7cc9; --accent-soft: #e8f0fb; --red: #b91c1c;
  --video: #3d7cc9; --doc: #7a5bc4; --image: #0f8a7e;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--ground); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--accent); }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.room { font-weight: 600; color: var(--brand); letter-spacing: .3px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 15px; }
.who { font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.who button { background: var(--paper); color: var(--brand); border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; cursor: pointer; font: inherit; font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, #35609f 100%); color: #fff; }
.hero .wrap { padding-block: 34px 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: .75; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 10px; color: #fff; text-wrap: balance; font-weight: 700; }
.hero p { margin: 0; max-width: 64ch; opacity: .9; }
.contact { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; min-width: 240px; }
.contact .k { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; opacity: .75; font-weight: 700; }
.contact a { color: #fff; }

/* Collections */
.collections { padding-block: 26px 40px; display: grid; gap: 34px; }
.collection h2 { font-size: 19px; margin: 0; color: var(--ink); }
.collection .desc { color: var(--muted); margin: 4px 0 0; max-width: 72ch; }
.collection-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.count { color: var(--faint); font-size: 13px; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; }
.item:hover, .item:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,18,58,.10); outline: none; }
.thumb { aspect-ratio: 16 / 9; background: var(--soft); position: relative; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(18,18,58,.72); display: grid; place-items: center; }
.thumb .play::after { content: ''; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(18,18,58,.8); color: #fff; font-size: 12px; font-weight: 600; border-radius: 5px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.thumb.doc { background: linear-gradient(160deg, #f3effc, #e9e2fa); }
.doc-sheet { width: 34%; aspect-ratio: 3 / 4; background: #fff; border-radius: 4px; box-shadow: 0 6px 16px rgba(76,52,140,.18); position: relative; display: grid; place-items: end center; padding-bottom: 10%; }
.doc-sheet::before { content: ''; position: absolute; inset: 16% 16% auto; height: 34%; background: repeating-linear-gradient(#e4ddf5 0 3px, transparent 3px 9px); }
.doc-sheet span { font-size: 11px; font-weight: 800; color: var(--doc); letter-spacing: .6px; }
.item .body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.kind { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.kind.video { color: var(--video); } .kind.document { color: var(--doc); } .kind.image { color: var(--image); }
.item h3 { font-size: 15px; margin: 0; color: var(--ink); line-height: 1.35; }
.item p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seen { font-size: 12px; color: var(--faint); }

/* Viewer */
.viewer { padding-block: 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.back { display: inline-block; margin: 18px 0 0; font-weight: 600; text-decoration: none; }
.stage { background: #0b0b20; border-radius: 12px; overflow: hidden; }
.stage video, .stage img { display: block; width: 100%; max-height: 72vh; background: #0b0b20; object-fit: contain; }
.stage iframe { display: block; width: 100%; height: 78vh; border: 0; background: #fff; }
.stage.doc { background: var(--paper); border: 1px solid var(--line); }
.meta h1 { font-size: 22px; margin: 14px 0 6px; color: var(--ink); text-wrap: balance; }
.meta p { margin: 0 0 10px; color: var(--muted); max-width: 75ch; white-space: pre-wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.next { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.next h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 0 0 10px; }
.next a { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; text-decoration: none; color: inherit; padding: 7px; border-radius: 8px; }
.next a:hover, .next a.on { background: var(--soft); }
.next .mini { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.next .mini img { width: 100%; height: 100%; object-fit: cover; }
.next .mini.doc { background: #ece6fa; color: var(--doc); font-size: 10px; font-weight: 800; }
.next b { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.next small { display: block; color: var(--faint); font-size: 12px; }

/* Cards and controls */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--brand); cursor: pointer; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn:disabled { opacity: .6; cursor: default; }
.signin { max-width: 500px; margin: 64px auto; text-align: center; }
.signin h1 { font-size: 24px; color: var(--ink); margin: 0 0 8px; }
.signin p { color: var(--muted); }
.notice { max-width: 640px; margin: 48px auto; }
.notice h1 { font-size: 22px; color: var(--ink); margin: 0 0 12px; }
.notice ul { padding-left: 20px; color: var(--text); }
.notice li { margin-bottom: 6px; }
.muted { color: var(--muted); }
.err { color: var(--red); }
.empty { padding-block: 60px; text-align: center; }
.foot { font-size: 12px; color: var(--faint); padding-block: 18px 26px; border-top: 1px solid var(--line); background: var(--paper); }

@media (max-width: 860px) {
  .viewer { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
}
@media (max-width: 520px) {
  .room { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stage iframe { height: 70vh; }
}
