:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: #0c0b0e;
  --panel-raised: #121015;
  --ink: #f2eef3;
  --muted: #aaa3ad;
  --soft: #77717c;
  --line: rgba(235, 226, 241, .13);
  --line-strong: rgba(235, 226, 241, .25);
  --plum: #ba91bd;
  --rose: #cf9bad;
  --lilac: #b8a9d9;
  --serif: "Iowan Old Style", "Baskerville", "Noto Serif SC", serif;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #514856 #080709; overflow-anchor: none; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 52% 24% at 76% 0%, rgba(91, 56, 101, .095), transparent 75%),
    radial-gradient(ellipse 38% 32% at 0% 42%, rgba(57, 41, 69, .07), transparent 78%),
    var(--bg);
  color: var(--ink);
}
body::before {
  position: fixed; inset: 0; z-index: -1; content: "";
  pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.site-shell { width: min(100% - 88px, 1680px); margin: 0 auto; }
.site-header {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; font-size: 16px; font-weight: 650; letter-spacing: .04em; white-space:nowrap; }
.mark-orbit {
  width: 20px; aspect-ratio: 1; border: 1px solid rgba(210, 180, 216, .65);
  border-radius: 50%; position: relative;
}
.mark-orbit::after {
  content: ""; position: absolute; width: 5px; height: 5px; right: -1px; top: 1px;
  border-radius: 50%; background: #d3a7cc; box-shadow: 0 0 12px rgba(211, 167, 204, .6);
}
#category-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.3vw, 34px);
  min-width: 0; max-width: 84%; overflow-x: auto; scrollbar-width: none;
}
#category-nav::-webkit-scrollbar { display: none; }
.category-link, .contact-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto;
  padding: 0; border: 0; background: transparent; color: #a9a3ac; cursor: pointer;
  font-size: 24px !important; font-weight: 700; letter-spacing: .015em; white-space: nowrap; transition: color .25s;
}
.category-link:hover, .category-link.active, .contact-link:hover { color: var(--ink); }
.category-link.active::after {
  position: absolute; content: ""; left: 0; right: 0; bottom: 7px; height: 1px;
  background: linear-gradient(90deg, var(--plum), var(--rose));
}
.intro {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  align-items: end; gap: 20px 40px; padding: clamp(62px, 8vw, 112px) 0 42px;
}
.intro::after {
  content: ""; position: absolute; z-index: -1; width: 44vw; height: 18vw; right: 3%; bottom: 4%;
  background: radial-gradient(ellipse, rgba(111, 75, 121, .11), transparent 70%); filter: blur(22px);
}
.eyebrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 9px;
  margin: 0; color: #b4a5b6; font-size: 9px; letter-spacing: .21em; text-transform: uppercase;
}
.intro > .eyebrow { display: none !important; }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: #d4a8cf; box-shadow: 0 0 10px #956d9c; }
.intro h1 {
  grid-column: 1; margin: 0; max-width: 900px; font-size: clamp(48px, 7.7vw, 108px);
  font-weight: 400; line-height: .99; letter-spacing: -.067em; white-space: pre-line;
}
.intro h1 span {
  color: transparent; background: linear-gradient(105deg, #e7dce9 4%, #c5a8cb 55%, #ba8f9f 96%);
  -webkit-background-clip: text; background-clip: text;
}
.intro-note {
  grid-column: 2; grid-row: 3; justify-self: end; max-width: 300px;
  margin: 0 0 8px; color: #aaa2ad; font-size: 12px; line-height: 1.85; text-align: right;
}
body.site-changing .intro h1, body.site-changing .intro-note, body.site-changing .collection-profile, body.site-changing .event-detail { animation: heading-arrive .58s cubic-bezier(.2,.7,.2,1) both; }
.backend-alert { padding: 10px 14px; color: #e9bdc8; background: #24151c; border: 1px solid #5b3947; font-size: 12px; }
.events-rail-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  position: relative; padding: 2px 0 22px; color: #99919e; font-size: 9px; letter-spacing: .13em;
}
.rail-kicker { display: flex; align-items: center; gap: 9px; color: #c2b8c5; }
.rail-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.rail-counter { display: flex; align-items: center; gap: 9px; color: #69636e; }
.rail-counter b { color: #f3e8f1; font-weight: 500; font-size: 11px; }
.rail-hint { text-align: right; letter-spacing: .06em; }
.rail-hint b { margin-left: 8px; color: #ddc5db; font-size: 13px; font-weight: 400; }
.rail-progress { position: absolute; height: 1px; bottom: 8px; left: 0; right: 0; background: rgba(255,255,255,.12); overflow: hidden; }
.rail-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #947a9d, #d6a1ba); transition: transform .25s; }
.film-wall { min-height: 1px; padding: 10px 0 100px; }
.overview-wall { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; }
.overview-tile {
  position: relative; isolation: isolate; grid-column: span 6; min-width: 0; min-height: clamp(360px, 37vw, 570px);
  overflow: hidden; padding: 0; border: 0; background: #111014; text-align: left; cursor: pointer;
}
.overview-tile--1, .overview-tile--4 { grid-column: span 7; }
.overview-tile--2, .overview-tile--3 { grid-column: span 5; }
.overview-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .7s; filter: saturate(.7) brightness(.72); }
.overview-tile:hover .overview-photo { transform: scale(1.04); filter: saturate(.95) brightness(.85); }
.overview-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.85)); }
.overview-tile::after, .event-category-panel::after {
  content: ""; position: absolute; inset: 15px; z-index: 3; pointer-events: none; opacity: .42;
  border: 1px solid rgba(248,235,249,.28); transition: inset .4s, opacity .4s;
}
.overview-tile:hover::after, .event-category-panel:hover::after { inset: 10px; opacity: .75; }
.overview-index { position: absolute; top: 28px; left: 30px; color: #eee5ed; font-size: 9px; letter-spacing: .17em; }
.overview-index i { padding: 0 6px; color: #a99faa; font-style: normal; }
.overview-copy { position: absolute; left: clamp(23px, 3.5vw, 50px); right: 24px; bottom: clamp(26px, 3.6vw, 48px); display: grid; gap: 9px; text-shadow: 0 2px 18px #000; }
.overview-copy small { color: #d1c1d1; font-size: 8px; letter-spacing: .2em; }
.overview-copy strong { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.06em; font-weight: 450; }
.overview-copy > span { max-width: 460px; color: rgba(246,239,247,.75); font-size: 12px; line-height: 1.8; }
.overview-copy em { display: flex; gap: 9px; align-items: center; margin-top: 8px; color: #e4d1e3; font-size: 10px; letter-spacing: .08em; font-style: normal; }
.overview-copy em b { font-size: 16px; font-weight: 400; transition: transform .25s; }
.overview-tile:hover .overview-copy em b { transform: translate(4px,-3px); }
.events-overview {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch;
  gap: var(--event-gap,22px); overflow: visible; padding: 4px 1px 42px;
  cursor: default; touch-action: auto; user-select: auto; scroll-snap-type: none;
}
.events-overview > .event-category-panel { width: auto; min-width: 0; flex: none; scroll-snap-align: none; }
.events-overview.events-hide-project-list .event-project-list { display: none; }
.event-category-panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; flex: 0 0 var(--event-card-width,clamp(260px, 23vw, 390px));
  height: min(80vh, 900px); min-height: 620px; overflow: hidden; padding: 26px 26px 22px;
  background: #0d0b0f; scroll-snap-align: start;
}
.event-category-panel.is-placeholder { background: radial-gradient(ellipse at 50% 40%, rgba(91,71,94,.24), transparent 35%), linear-gradient(145deg,#211c23,#111014 75%); }
.event-category-panel.is-placeholder::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .8;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(238,228,240,.075) 48.1%, transparent 48.4%),
    radial-gradient(ellipse at 58% 56%, rgba(123,98,127,.15), transparent 35%);
}
.event-category-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .76; transition: transform 1s, opacity .5s; }
.event-category-panel:hover .event-category-image { transform: scale(1.035); opacity: .87; }
.event-category-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.04) 24%,rgba(0,0,0,.25) 48%,rgba(0,0,0,.9)); }
.event-art-word { position: absolute; z-index: 1; right: 7%; top: 20%; color: rgba(255,255,255,.07); font-size: clamp(62px,8vw,118px); letter-spacing: -.08em; font-weight: 600; writing-mode: vertical-rl; pointer-events: none; }
.event-category-panel > *:not(.event-category-image):not(.event-category-shade):not(.event-art-word) { position: relative; z-index: 2; }
.event-panel-meta { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.72); font-size: 8px; letter-spacing: .15em; }
.event-category-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); background: transparent; text-align: left; cursor: pointer; }
.event-category-index { color: #dbb7d0; font-size: 10px; letter-spacing: .1em; }
.event-category-name { flex: 0 0 auto; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.04em; font-weight: 450; text-transform: uppercase; }
.event-category-title { display: flex; align-items: baseline; justify-content: flex-start; gap: 14px; flex: 1; min-width: 0; }
.event-category-subtitle { color: rgba(255,255,255,.88); font-size: clamp(18px, 1.55vw, 22px); letter-spacing: 0; font-weight: 650; white-space: nowrap; }
.event-category-summary { padding: 12px 0 14px; border-bottom: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.event-category-arrow { color: #f1d9e8; font-size: 18px; transition: transform .25s; }
.event-category-open:hover .event-category-arrow { transform: translate(4px,-3px); }
.event-project-list { display: grid; align-content: start; flex: 1; overflow: auto; padding: 5px 0 12px; scrollbar-width: thin; scrollbar-color: rgba(228,205,228,.26) transparent; }
.event-project-line { width:100%; text-align:left; background:transparent; border:0; font:inherit; cursor:pointer; display: grid; grid-template-columns: 26px 1fr 16px; align-items: center; gap: 8px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.15); color: rgba(247,241,247,.88); font-size: 13px; animation: line-in .5s both; animation-delay: calc(var(--line-index, 0) * 34ms + 120ms); }
.event-project-line > span { color: rgba(255,255,255,.55); font-size: 9px; font-variant-numeric: tabular-nums; }
.event-project-line > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.event-project-line > i { color: #d6b5d2; opacity: 0; font-style: normal; transition: opacity .2s; }
.event-project-line:hover > i { opacity: 1; }
.event-project-line.muted { color: #938b97; }
.event-category-more { align-self: flex-start; min-height: 42px; padding: 10px 0; border: 0; background: transparent; color: #e1c8dc; cursor: pointer; font-size: 10px; letter-spacing: .1em; }
.event-category-more span { display: inline-block; padding-left: 5px; transition: transform .2s; }
.event-category-more:hover span { transform: translate(3px,-3px); }
.event-panel-index { position: absolute !important; right: 27px; bottom: 28px; color: rgba(255,255,255,.58); font-size: 8px; letter-spacing: .12em; }
.event-panel-index i { padding: 0 4px; color: rgba(255,255,255,.36); font-style: normal; }
.collection-profile { padding: 16px 0 36px; }
.back-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: #b9aebd; cursor: pointer; font-size: 11px; }
.back-link:hover { color: white; }
.profile-content { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); align-items: center; padding: 22px 0 34px; }
.profile-image { position: relative; min-height: 280px; aspect-ratio: 1.45; overflow: hidden; background: linear-gradient(145deg,#1b171d,#0d0b0e); }
.profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-monogram { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(231,218,231,.25); font: 100px var(--serif); }
.profile-image.has-image .profile-monogram { display: none; }
.profile-copy { max-width: 640px; }
.profile-role { color: #c3a7c2; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.profile-copy h2, .event-category-heading h2 { margin: 13px 0; font-size: clamp(34px,5.4vw,72px); line-height: 1; letter-spacing: -.06em; font-weight: 400; }
.profile-copy p, .event-category-heading p { max-width: 620px; margin: 0; color: #aaa1ad; font-size: 13px; line-height: 1.9; white-space: pre-line; }
.event-category-heading { padding: 16px 0 26px; }
.event-category-heading > span { color: #c5a8c4; font-size: 9px; letter-spacing: .19em; }
.collection-card { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.collection-image { position: relative; display: block; aspect-ratio: 1.38; overflow: hidden; background: #151217; }
.collection-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.collection-card:hover .collection-photo { transform: scale(1.04); }
.collection-placeholder { position: absolute; inset: 0; display: block; }
.collection-mark { position: absolute; bottom: 12px; left: 14px; color: #f2eaf2; font-size: 9px; letter-spacing: .12em; text-shadow: 0 2px 10px #000; }
.collection-caption { display: flex; flex-direction: column; gap: 6px; padding: 13px 0 20px; }
.collection-caption strong { font-size: 14px; font-weight: 450; }
.collection-caption small { color: #928995; font-size: 10px; }
.layout-solo .collection-card { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.layout-solo .collection-card:hover { transform: translateY(-6px); }
.layout-solo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 26px; }
.layout-solo .collection-card { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(0,1fr); gap: 16px; align-items: center; }
.layout-solo .collection-image { grid-column: 2; grid-row: 1; aspect-ratio: .92; }
.layout-solo .collection-caption { grid-column: 1; grid-row: 1; align-self: center; padding: 12px; }
.layout-solo .collection-caption strong { font: 400 clamp(21px,2.2vw,34px)/1.12 var(--serif); }
.layout-solo .collection-caption small { line-height: 1.8; }
.layout-solo .collection-mark { display: none; }
.layout-events { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; align-items: start; }
.layout-events .film-card { grid-column: span 4; aspect-ratio: .88; }
.layout-events .film-card:nth-child(5n+2) { grid-column: span 5; aspect-ratio: 1.16; margin-top: 54px; }
.layout-events .film-card:nth-child(5n+3) { grid-column: span 3; aspect-ratio: .82; }
.layout-events .film-card:nth-child(5n+4) { grid-column: span 4; aspect-ratio: 1.24; margin-top: -28px; }
.layout-events .film-card:nth-child(5n) { grid-column: span 4; aspect-ratio: .9; }
.layout-business { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 26px 18px; }
.layout-business .film-card { grid-column: span 6; aspect-ratio: 1.45; }
.layout-business .film-card:nth-child(3n+2) { grid-column: span 6; aspect-ratio: 1.05; }
.layout-film { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 22px 18px; align-items: start; }
.layout-film .film-card { grid-column: span 4; aspect-ratio: .78; }
.layout-film .film-card:nth-child(5n+2) { grid-column: span 5; aspect-ratio: 1.12; margin-top: 74px; }
.layout-film .film-card:nth-child(5n+3) { grid-column: span 3; aspect-ratio: .76; }
.layout-film .film-card:nth-child(5n+4) { grid-column: span 4; aspect-ratio: 1.25; margin-top: -38px; }
.layout-film .film-card:nth-child(5n) { grid-column: span 4; aspect-ratio: .82; margin-left: 18%; }
.film-card { position: relative; display: block; min-width: 0; overflow: hidden; padding: 0; border: 0; aspect-ratio: 1.28; background: #141116; isolation: isolate; cursor: pointer; }
.film-card:hover .art, .film-card:hover .film-video { transform: scale(1.035); }
.art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 66% 22%,rgba(147,106,151,.34),transparent 24%), linear-gradient(145deg,#28212b,#100e12 66%); transition: transform .85s cubic-bezier(.2,.7,.2,1), filter .7s; }
.art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.26)),radial-gradient(ellipse at 54% 58%,transparent 20%,rgba(0,0,0,.34)); }
.art--2 { background: radial-gradient(ellipse at 42% 36%,rgba(174,127,118,.34),transparent 24%),linear-gradient(145deg,#272326,#111014 72%); }
.art--3 { background: radial-gradient(ellipse at 65% 34%,rgba(131,119,155,.4),transparent 27%),linear-gradient(155deg,#25212a,#100e12 72%); }
.art--4 { background: radial-gradient(ellipse at 30% 52%,rgba(145,106,122,.35),transparent 22%),linear-gradient(120deg,#2b2026,#0e0d10 75%); }
.art--5 { background: radial-gradient(ellipse at 74% 42%,rgba(148,129,99,.27),transparent 22%),linear-gradient(140deg,#28251f,#0f0e0c 75%); }
.art--6 { background: radial-gradient(ellipse at 39% 48%,rgba(102,130,124,.28),transparent 26%),linear-gradient(155deg,#202726,#101113 74%); }
.art--7 { background: radial-gradient(ellipse at 65% 50%,rgba(134,101,138,.32),transparent 27%),linear-gradient(130deg,#252028,#100f12 70%); }
.art--8 { background: radial-gradient(ellipse at 38% 28%,rgba(150,116,97,.32),transparent 25%),linear-gradient(145deg,#28221f,#100e11 75%); }
.art--9 { background: radial-gradient(ellipse at 60% 28%,rgba(102,119,138,.32),transparent 25%),linear-gradient(145deg,#20252a,#0d0f12 75%); }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .85s; }
.film-card.has-preview .film-video { opacity: 1; }
.film-card.has-preview .art { opacity: 0; }
.business-copy, .event-card-copy { position: absolute; inset: auto 20px 18px; z-index: 1; display: grid; gap: 5px; text-align: left; text-shadow: 0 2px 12px #000; }
.business-copy strong, .event-card-copy strong { font-size: clamp(15px,2vw,23px); font-weight: 450; letter-spacing: -.03em; }
.business-copy span, .event-card-copy span { max-width: 400px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.65; }
.business-copy { inset: 20px; align-content: end; transition: transform .4s; }
.business-copy span { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(7px); transition: max-height .45s, opacity .35s, transform .45s; }
.layout-business .film-card:hover .business-copy span, .layout-business .film-card:focus-visible .business-copy span { max-height: 110px; opacity: 1; transform: translateY(0); }
.layout-business .film-card:hover .business-copy { transform: translateY(-3px); }
.event-card-copy { inset: auto 13px 12px; }
.timeline { padding: 34px 0 94px; }
.timeline-heading { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.timeline-heading > span { color: #b89ab8; font-size: 9px; letter-spacing: .2em; }
.timeline-heading h2 { margin: 0; font-size: clamp(27px,3.5vw,42px); font-weight: 400; letter-spacing: -.05em; }
.timeline-list { position: relative; max-width: 980px; margin-left: 12px; padding-left: 27px; border-left: 1px solid rgba(219,196,220,.23); }
.timeline-item { position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: -32px; width: 8px; height: 8px; border-radius: 50%; background: #c09abe; box-shadow: 0 0 12px rgba(192,154,190,.4); }
.timeline-item time { color: #a997a9; font-size: 10px; font-variant-numeric: tabular-nums; }
.timeline-item h3 { margin: 0; font-size: 14px; font-weight: 450; }
.timeline-item p { margin: 6px 0 0; color: #9f97a3; font-size: 11px; line-height: 1.7; }
.timeline-item button { min-height: 44px; border: 0; background: transparent; color: #d4bdd3; cursor: pointer; font-size: 10px; }
.motion-reveal { opacity: 0; transform: translate3d(0,22px,0); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay,0ms); }
.motion-reveal.motion-visible { opacity: 1; transform: translate3d(0,0,0); }
.overview-photo, .event-category-image, .film-card .art, .film-card .film-video { transform: translate3d(var(--drift-x,0px),var(--drift-y,0px),0); will-change: transform; }
.overview-tile:hover .overview-photo { transform: translate3d(var(--drift-x,0px),var(--drift-y,0px),0) scale(1.04); }
.event-category-panel:hover .event-category-image { transform: translate3d(var(--drift-x,0px),var(--drift-y,0px),0) scale(1.035); }
.film-card:hover .art, .film-card:hover .film-video { transform: translate3d(var(--drift-x,0px),var(--drift-y,0px),0) scale(1.035); }
.overview-tile, .event-category-panel, .film-card { transition: box-shadow .55s, filter .55s; }
.overview-tile:hover, .event-category-panel:hover, .film-card:hover { filter: brightness(1.06); }
.timeline-sentinel { display:grid; place-items:center; min-height:42px; color:rgba(224,210,232,.62); font-size:11px; letter-spacing:.04em; }
.timeline-sentinel::after { content:'继续向下滚动加载'; }
.timeline-sentinel.is-armed::after { content:'再向下滚动 加载下一段'; color:#ead8f2; }
.timeline-sentinel.is-loading::after { content:'正在加载下一段'; animation:timeline-load-pulse .75s ease-in-out infinite alternate; }
@keyframes timeline-load-pulse { to { opacity:.55; transform:translateY(-2px); } }
.empty-public { padding: 54px 0; color: #97909b; text-align: center; font-size: 12px; }
.event-detail { width: min(100%,1100px); max-width: 1100px; margin: 0 auto; padding: 20px 0 70px; }
.event-detail--embedded { width: 100%; max-width: none; padding-top: 0; }
.event-detail--embedded .event-detail-embed { display:block; width:100%; max-width:none; height:100vh; min-height:100vh; margin:0 auto 28px; border:0; background:transparent; overflow:hidden; }
.back-link--embedded { position:sticky; top:78px; z-index:20; display:block; width:max-content; min-height:38px; margin:0 0 8px; padding:8px 12px; border:1px solid rgba(218,198,224,.2); border-radius:6px; background:rgba(7,6,8,.92); backdrop-filter:blur(12px); }
.event-detail--embedded > header { display: none; }
.event-detail header { padding: 18px 0 25px; border-bottom: 1px solid var(--line); }
.event-detail h2 { margin: 12px 0; font-size: clamp(34px,6vw,74px); font-weight: 400; line-height: 1.03; letter-spacing: -.06em; }
.event-detail header > p:not(.eyebrow) { color: #a69ca9; font-size: 11px; }
.event-detail-copy { max-width: 760px; margin: 24px auto; color: #d3cbd6; font-size: 14px; line-height: 2; white-space: pre-line; }
.event-detail-figure { margin: 22px 0; }
.event-detail-media { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: #0b0a0c; }
.event-detail-figure figcaption { margin-top: 8px; color: #948c98; text-align: center; font-size: 11px; }
.event-detail-embed { display: block; width: 100%; min-height: 680px; margin: 28px auto; border: 0; background: #fff; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: #928b96; font-size: 10px; letter-spacing: .03em; }
footer a { color: #d8c5d8; }
.admin-entry {
  position: fixed; z-index: 5; right: 22px; bottom: 20px; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(224,206,228,.24); border-radius: 50%; color: #e8ddea; background: rgba(18,15,19,.88);
  cursor: pointer; opacity: .32; transition: opacity .2s, transform .2s; backdrop-filter: blur(14px);
}
.admin-entry:hover { opacity: 1; transform: rotate(45deg); }
.back-to-top {
  position: fixed; z-index: 20; right: 21px; bottom: 74px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(224,206,228,.34); border-radius: 50%; color: #f4eaf5; background: rgba(25,19,29,.9);
  box-shadow: 0 6px 24px rgba(0,0,0,.28); backdrop-filter: blur(14px); cursor: pointer;
  opacity: .78; transition: opacity .2s, transform .2s, background .2s;
}
.back-to-top:hover { opacity: 1; transform: translateY(-2px); background: #7040c7; }
.back-to-top span { font: 500 22px/1 system-ui,sans-serif; }
.back-to-top[hidden] { display: none !important; }
.admin-layer, .player-layer {
  position: fixed; inset: 0; z-index: 300; display: none; overflow: auto; padding: 24px;
  background: rgba(4,3,5,.8); backdrop-filter: blur(16px);
}
.admin-layer.open, .player-layer.open { display: flex; align-items: center; justify-content: center; }
.admin-panel {
  width: min(1000px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 28px;
  border: 1px solid var(--line-strong); background: #0e0c10; box-shadow: 0 32px 120px rgba(0,0,0,.8);
}
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.admin-top h2 { margin: 0; font-size: 20px; font-weight: 450; }
.admin-top p { margin: 6px 0 0; color: #9e95a2; font-size: 11px; line-height: 1.6; }
.admin-actions { display: flex; align-items: center; gap: 9px; }
.admin-tabs { display: flex; gap: 6px; padding: 17px 0 5px; overflow-x: auto; }
.admin-tab { min-height: 42px; padding: 0 15px; border: 1px solid transparent; background: transparent; color: #a69daa; cursor: pointer; font-size: 11px; }
.admin-tab.active { border-color: var(--line); background: #19151b; color: #f3eaf3; }
.pill { padding: 6px 10px; border: 1px solid rgba(202,173,207,.28); border-radius: 99px; color: #d1b7d0; font-size: 9px; letter-spacing: .08em; }
.backend-status { margin: 12px 0; padding: 10px 12px; border: 1px solid #54485a; color: #d5c8dc; font-size: 11px; }
.backend-status.is-error { border-color: #7f394b; color: #f1beca; }
.admin-section { margin: 22px 0; }
.admin-section h3 { margin: 0 0 14px; color: #eee5ef; font-size: 13px; font-weight: 500; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #c1b7c3; font-size: 11px; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .field select[multiple] {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid rgba(235,226,241,.16);
  border-radius: 0; outline: none; background: #09080a; color: #f3edf4; font-size: 12px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #af8eaf; }
.field textarea { min-height: 72px; resize: vertical; line-height: 1.65; }
.field small { color: #8f8792; font-size: 10px; line-height: 1.6; }
.field--check { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.field--check input { width: 17px; height: 17px; accent-color: #b895b4; }
.btn { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line-strong); background: #18141a; color: #f0e8f1; cursor: pointer; font-size: 11px; }
.btn:hover { background: #242027; }
.btn.primary { border-color: transparent; background: linear-gradient(110deg,#8f718e,#aa7e91); color: #fff; }
.btn.danger { color: #d99bab; }
.section-head { justify-content: space-between; }
.section-head h3 { margin: 0; }
.admin-list { display: grid; gap: 7px; }
.video-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px; border: 1px solid rgba(235,226,241,.1); background: #09080a; }
.mini-art { display: block; height: 44px; background: radial-gradient(ellipse at 60% 34%,rgba(175,143,174,.32),transparent 30%),#171419; }
.row-name { overflow: hidden; color: #eee6ef; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { margin-top: 4px; color: #928997; font-size: 10px; }
.row-buttons { display: flex; gap: 4px; }
.row-buttons button { min-width: 36px; min-height: 36px; border: 1px solid rgba(235,226,241,.12); background: #121014; color: #d4c8d6; cursor: pointer; }
.row-buttons button:disabled { opacity: .35; cursor: default; }
.empty-list { padding: 20px; border: 1px dashed var(--line); color: #a69daa; font-size: 12px; text-align: center; }
.login-card { position: relative; width: min(390px,100%); padding: 30px; border: 1px solid var(--line-strong); background: #0e0c10; box-shadow: 0 28px 100px #000; }
.login-card h2 { margin: 0 0 8px; font-size: 21px; font-weight: 450; }
.login-card p, .hint { color: #aaa1ad; font-size: 11px; line-height: 1.7; }
.login-card .field { margin: 14px 0; }
.login-card .close { position: absolute; right: 8px; top: 7px; }
.login-back { display:block; width:calc(100% - 46px); min-height:48px; margin:-6px 42px 18px 0; padding:0 12px; border:1px solid rgba(221,204,231,.24); border-radius:6px; background:rgba(255,255,255,.035); color:#e1d5e7; cursor:pointer; font-size:12px; touch-action:manipulation; }
.login-back:hover { border-color:#b99bc6; background:rgba(173,137,188,.14); color:#fff; }
.error { min-height: 20px; color: #e5a5b4; font-size: 11px; }
.close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #d2c8d4; font-size: 26px; cursor: pointer; }
.player-dialog { position: relative; width: min(var(--work-detail-width,1100px),100%); max-height: calc(100vh - 72px); overflow: auto; padding-bottom: 2px; }
.work-detail-header { padding: 12px 54px 16px 2px; }
.work-detail-header > span { color:#bda7c1; font-size:10px; letter-spacing:.12em; }
.work-detail-header h2 { margin:7px 0 0; color:#f6f0f7; font-size:clamp(23px,3vw,36px); font-weight:500; line-height:1.15; letter-spacing:-.035em; }
.player-frame { position: relative; display: grid; place-items: center; width: min(100%,900px); max-width: 900px; max-height: 82vh; margin: 18px auto 0; overflow: hidden; background: transparent; }
.player-frame:has(.player-empty) { width: 100%; aspect-ratio: 16 / 9; }
.player-frame video, .photo-frame img { display: block; width: 100%; height: auto; max-width: 100%; max-height: 82vh; object-fit: contain; }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 24px; background: radial-gradient(ellipse at center,rgba(91,63,96,.15),transparent 52%),#09080a; text-align: center; }
.player-empty strong { font-size: 14px; font-weight: 450; }
.player-empty span { color: #a69daa; font-size: 11px; }
.player-dialog > .close { position: absolute; z-index: 2; top: -47px; right: 0; }
.player-description { margin-top: 9px; padding: 15px 18px; border: 1px solid rgba(235,226,241,.11); background: rgba(18,16,20,.65); color: rgba(247,241,247,.87); backdrop-filter: blur(14px); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-loading,.event-detail-loading { display:grid; place-items:center; min-height:220px; padding:24px; color:#bda7c1; font-size:14px; text-align:center; }
.detail-loading.is-error { gap:14px; color:#e5a5b4; }
.detail-loading button { min-height:40px; padding:0 18px; border:1px solid rgba(221,204,231,.35); border-radius:22px; background:transparent; color:#f6f0f7; cursor:pointer; }
@keyframes rise-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes line-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heading-arrive { from { opacity: .35; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (max-width: 900px) {
  .site-shell { width: calc(100% - 48px); }
  .site-header { height: 68px; }
  .site-header nav { max-width: 72%; }
  .layout-solo { gap: 28px 16px; }
  .layout-business .film-card { grid-column: span 6; }
  .layout-film .film-card { grid-column: span 6; }
  .layout-film .film-card:nth-child(5n+2) { grid-column: span 6; margin-top: 30px; }
  .layout-film .film-card:nth-child(5n+3) { grid-column: span 6; }
  .layout-film .film-card:nth-child(5n+4) { grid-column: span 6; margin-top: 0; }
  .layout-film .film-card:nth-child(5n) { grid-column: span 6; margin-left: 0; }
}
@media (max-width: 620px) {
  .site-shell { width: calc(100% - 32px); }
  .site-header { height: 62px; gap: 18px; }
  .wordmark { font-size: 11px; gap: 8px; }
  #category-nav { max-width: calc(100% - 110px); gap: 18px; }
  .category-link { font-size:20px !important; }
  .wordmark { font-size:13px; }
  .category-link, .contact-link { font-size: 10px; }
  .intro { grid-template-columns: 1fr; gap: 13px; padding: 54px 0 28px; }
  .intro h1 { grid-column: 1; grid-row: auto; font-size: clamp(43px,12vw,70px); }
  .intro-note { grid-column: 1; grid-row: auto; justify-self: start; max-width: 95%; text-align: left; font-size: 11px; }
  .eyebrow { grid-column: 1; }
  .film-wall { padding: 5px 0 60px; }
  .overview-wall { grid-template-columns: 1fr; gap: 10px; }
  .overview-tile, .overview-tile--1, .overview-tile--2, .overview-tile--3, .overview-tile--4 { grid-column: 1; min-height: min(125vw, 540px); }
  .overview-index { top: 21px; left: 20px; }
  .overview-copy { left: 22px; bottom: 23px; }
  .events-rail-bar { grid-template-columns: 1fr auto; gap: 8px; padding: 0 0 20px; }
  .rail-counter { display: none; }
  .rail-hint { font-size: 8px; }
  .events-overview { gap: 12px; margin-right: -16px; padding: 2px 16px 28px 0; }
  .event-category-panel { flex-basis: 57.6vw; height: 72vh; min-height: 520px; padding: 20px 17px 16px; }
  .event-category-panel::after { inset: 10px; }
  .event-category-name { font-size: 20px; }
  .event-category-subtitle { font-size: 18px; }
  .event-project-line { padding: 11px 0; font-size: 12px; }
  .event-art-word { right: 5%; font-size: 20vw; }
  .profile-content { grid-template-columns: 1fr; gap: 20px; }
  .profile-image { min-height: 0; aspect-ratio: 1.28; }
  .layout-solo { grid-template-columns: 1fr; gap: 18px; }
  .layout-solo .collection-card { grid-template-columns: .75fr 1.25fr; gap: 12px; }
  .layout-solo .collection-image { aspect-ratio: .85; }
  .layout-solo .collection-caption strong { font-size: 23px; }
  .layout-events { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .layout-events .film-card, .layout-events .film-card:nth-child(n) { grid-column: span 1; aspect-ratio: .78; margin: 0; }
  .layout-events .film-card:nth-child(4n+2) { aspect-ratio: 1; }
  .layout-business { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .layout-business .film-card, .layout-business .film-card:nth-child(3n+2) { grid-column: span 2; aspect-ratio: 1.15; }
  .layout-film { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .layout-film .film-card, .layout-film .film-card:nth-child(n) { grid-column: span 1; aspect-ratio: .78; margin: 0; }
  .layout-film .film-card:nth-child(3n+2) { grid-column: span 2; aspect-ratio: 1.1; }
  .timeline { padding: 22px 0 54px; }
  .timeline-item { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 17px 0; }
  .timeline-item time { grid-column: 1 / -1; }
  .timeline-item button { grid-column: 2; grid-row: 2; }
  .timeline-item > div { grid-column: 1; }
  footer { align-items: flex-start; font-size: 9px; }
  .admin-entry { right: 12px; bottom: 12px; }
  .back-to-top { right: 11px; bottom: 64px; }
  .admin-layer, .player-layer { padding: 10px; }
  .admin-panel { max-height: calc(100vh - 20px); padding: 17px; }
  .admin-top { align-items: flex-start; }
  .admin-top p { max-width: 230px; }
  .admin-actions { flex-wrap: wrap; }
  .admin-tabs { margin-right: -5px; }
  .settings-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: 1; }
  .video-row { grid-template-columns: 38px minmax(0,1fr); }
  .mini-art { height: 38px; }
  .row-buttons { grid-column: 1 / -1; justify-content: flex-end; }
  .row-buttons button { min-width: 39px; min-height: 39px; }
  .player-dialog { max-height: calc(100vh - 66px); }
  .player-dialog > .close { top: -45px; }
  .player-description { padding: 11px 13px; font-size: 12px; }
  .event-detail { padding-bottom: 40px; }
  .event-detail-embed { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-reveal { opacity: 1 !important; transform: none !important; }
}

/* Unified Onda + Sillage motion language: bold display type, orbiting hero,
   scroll-led entrances, offset shadows, and tactile project browsing. */
:root { --display: "Gabarito", "Instrument Sans", "Arial Black", "Microsoft YaHei", sans-serif; --interface: "Onest", "Instrument Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
body { font-family: var(--interface); overflow-x: clip; }
.site-header { position: sticky; top: 0; z-index: 12; background: rgba(5,5,6,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .35s, border-color .35s; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.055em; font-size: 16px; }
.mark-orbit { transition: transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.wordmark:hover .mark-orbit { transform: rotate(160deg) scale(1.18); box-shadow: 0 0 22px rgba(154,101,255,.22); }
.category-link { font-family: var(--interface); font-size: 12px; font-weight: 650; }
.category-link::after { transform: scaleX(0); transform-origin: right; transition: transform .42s cubic-bezier(.2,.7,.2,1); }
.category-link.active::after, .category-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Full-page event HTML: keep the document on the site's viewport width and
   let the outer page, rather than a nested iframe, own scrolling. */
.site-shell:has(.event-detail--embedded) { width:100%; max-width:none; margin:0; }
.event-detail--embedded { width:100%; max-width:none; margin:0; padding:0; }
.event-detail--embedded .event-detail-embed { width:100%; height:100vh; min-height:100vh; margin:0; overflow:hidden; }
.intro { min-height: min(830px, calc(100svh - 78px)); grid-template-columns: minmax(0,1.08fr) minmax(300px,.84fr); grid-template-rows: auto 1fr auto auto; align-items: center; gap: 20px clamp(16px,3vw,52px); padding: clamp(42px,6vh,82px) 0 clamp(35px,6vh,76px); isolation: isolate; view-timeline-name: --intro-scroll; view-timeline-axis: block; }
.intro::after { width: 55vw; height: 33vw; right: -4%; bottom: 5%; background: radial-gradient(ellipse,rgba(99,61,164,.16),transparent 72%); filter: blur(34px); }
.eyebrow { grid-row: 1; font-size: 10px; letter-spacing: .23em; }
.intro h1 { position: relative; z-index: 2; grid-column: 1; grid-row: 2; align-self: end; max-width: 11ch; color: #faf8fb; font-family: var(--display); font-size: clamp(70px,10.6vw,174px); font-weight: 850; line-height: .83; letter-spacing: -.092em; white-space: normal; overflow: visible; text-wrap: balance; }
.intro h1::before { content: none; }
.intro h1 span { color: transparent; background: linear-gradient(102deg,#fff 30%,#eee9f2 76%,#d4bbed 100%); -webkit-background-clip: text; background-clip: text; }
.intro h1::after { content: none; }
.hero-line { display: block; overflow: visible; }
.hero-char { display: inline-block; text-shadow: .025em .03em 0 rgba(128,81,174,.3); animation: glyph-rise .9s cubic-bezier(.16,.84,.24,1) both; animation-delay: calc(var(--char,0) * 32ms + .08s); }
.intro-note { position: relative; z-index: 2; grid-column: 1; grid-row: 3; justify-self: start; max-width: min(31rem,86%); margin: 0; color: #c1bac7; font-family: var(--interface); font-size: clamp(15px,1.55vw,21px); font-weight: 450; line-height: 1.48; text-align: left; animation: copy-drift .8s .32s both cubic-bezier(.2,.7,.1,1); }
.hero-index { position: relative; z-index: 2; grid-column: 1; grid-row: 4; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 650px; margin-top: 12px; border-top: 1px solid var(--line); }
.hero-index-link { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 11px 0 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #e7e1e9; text-align: left; cursor: pointer; font-size: 11px; transition: padding .3s,color .3s,border-color .3s; }
.hero-index-link:nth-child(odd) { margin-right: 16px; }
.hero-index-link span { color: #8f8495; font-size: 9px; font-variant-numeric: tabular-nums; }
.hero-index-link b { color: #b999e7; font-weight: 400; transform: translate(-4px,4px); opacity: .3; transition: transform .35s,opacity .35s; }
.hero-index-link:hover { padding-left: 8px; color: #fff; border-color: rgba(190,144,255,.45); }
.hero-index-link:hover b { transform: translate(0,0); opacity: 1; }
.hero-art { position: relative; z-index: 1; grid-column: 2; grid-row: 2 / 5; justify-self: center; align-self: center; width: min(43vw,590px); aspect-ratio: 1; display: grid; place-items: center; transform: translate3d(var(--hero-x,0px),var(--hero-y,0px),0); transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s; animation: hero-settle 1.15s .08s cubic-bezier(.2,.7,.1,1) both; }
.hero-orbit { position: absolute; border: 1px solid rgba(225,209,244,.12); border-radius: 50%; pointer-events: none; }
.hero-orbit--outer { inset: 3%; animation: orbit-turn 16s linear infinite; }
.hero-orbit--outer i { position: absolute; top: 4%; left: 68%; width: 22px; height: 22px; border-radius: 50%; background: #7541e7; box-shadow: 0 0 35px rgba(122,75,232,.5); }
.hero-orbit--inner { inset: 11%; border-style: dashed; border-color: rgba(199,168,238,.13); animation: orbit-turn 38s linear infinite reverse; }
.hero-orb { position: relative; display: grid; place-items: center; width: 75%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: radial-gradient(ellipse at 28% 22%,rgba(229,179,255,.7),transparent 6%),radial-gradient(ellipse at 72% 68%,rgba(72,29,167,.8),transparent 42%),radial-gradient(ellipse at 42% 42%,#7936e5 0%,#31116f 42%,#0f0c15 76%); box-shadow: inset -25px -28px 55px rgba(0,0,0,.55),inset 10px 7px 42px rgba(210,155,255,.25),0 35px 95px rgba(51,24,90,.4); animation: orb-breathe 6s ease-in-out infinite alternate; }
.hero-orb::before { content: ""; position: absolute; inset: -25%; background: repeating-radial-gradient(ellipse at 34% 42%,transparent 0 13px,rgba(225,184,255,.17) 14px 17px,transparent 21px 31px); filter: blur(2px); mix-blend-mode: screen; transform: rotate(-24deg); animation: orb-liquid 18s linear infinite; }
.hero-orb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 29% 22%,rgba(255,255,255,.42),transparent 12%),linear-gradient(145deg,transparent 46%,rgba(3,2,9,.58)); }
.hero-orb span { position: relative; z-index: 1; color: rgba(248,240,255,.22); font-family: var(--display); font-size: clamp(24px,5vw,62px); font-weight: 800; line-height: .85; letter-spacing: -.08em; text-align: center; text-shadow: 0 1px rgba(255,255,255,.18); }
.hero-art-caption { position: absolute; right: 1%; bottom: 9%; color: rgba(230,216,242,.55); font-size: 8px; letter-spacing: .24em; writing-mode: vertical-rl; }
.motion-marquee { position: relative; z-index: 2; overflow: hidden; margin: -7px 0 38px; padding: 13px 0 15px; border-top: 1px solid rgba(235,226,241,.1); border-bottom: 1px solid rgba(235,226,241,.1); color: rgba(230,218,239,.68); }
.motion-marquee-track { display: flex; align-items: center; justify-content: space-around; gap: clamp(24px,5vw,78px); width: max-content; min-width: 200%; animation: marquee-run 35s linear infinite; }
.motion-marquee span { font-family: var(--display); font-size: clamp(16px,2.5vw,32px); font-weight: 650; letter-spacing: -.045em; white-space: nowrap; }
.motion-marquee i { color: #8a4cff; font-size: 17px; font-style: normal; }
.motion-marquee:hover .motion-marquee-track { animation-play-state: paused; }
.events-rail-bar { position: sticky; top: 78px; z-index: 7; padding-top: 8px; background: linear-gradient(180deg,rgba(5,5,6,.92),rgba(5,5,6,.74)); backdrop-filter: blur(12px); }
.rail-hint { display: inline-flex; align-items: center; gap: 9px; }
.rail-hint button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(15,13,18,.72); color: #f4eefe; cursor: pointer; transition: transform .25s,background .25s,border-color .25s; }
.rail-hint button:hover { transform: translateY(-2px); background: #7040c7; border-color: #b99be5; }
.events-overview { scroll-padding-inline: 24px; }
.event-category-panel { border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.38); transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.7,.2,1),box-shadow .6s,filter .55s; }
.event-category-panel:hover { transform: perspective(1300px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-7px); box-shadow: 0 36px 100px rgba(37,16,58,.55); }
.event-category-open { transition: padding .35s,color .35s; }
.event-category-open:hover { padding-left: 10px; }
.event-category-name { font-family: var(--display); font-weight: 750; letter-spacing: -.055em; }
.event-art-word { color: transparent; -webkit-text-stroke: 1px rgba(228,206,255,.22); text-shadow: .035em .035em 0 rgba(109,68,178,.28),.07em .07em 0 rgba(100,65,153,.16); opacity: .72; transition: transform .7s cubic-bezier(.2,.7,.2,1),opacity .5s; }
.event-category-panel:hover .event-art-word { transform: translateY(-10px) scale(1.035); opacity: 1; }
.event-category-panel.is-active::after { inset: 9px; opacity: .86; border-color: rgba(234,213,255,.48); }
.event-category-panel:not(.is-active) { filter: brightness(.86); }
.event-project-line { transition: padding .28s,color .28s,background .28s; }
.event-project-line:hover { padding-left: 9px; color: #fff; background: linear-gradient(90deg,rgba(150,103,207,.12),transparent); }
.event-project-line > i { transform: translate(-4px,4px); }
.event-project-line:hover > i { transform: translate(0,0); }
.overview-tile, .film-card, .collection-card { border-radius: 5px; transition: box-shadow .55s,filter .55s,transform .55s cubic-bezier(.2,.7,.2,1); }
.overview-tile, .film-card { transform-style: preserve-3d; }
.overview-tile:hover, .film-card:hover { transform: perspective(1300px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-5px); }
.overview-tile.motion-reveal.motion-visible:hover, .film-card.motion-reveal.motion-visible:hover, .event-category-panel.motion-reveal.motion-visible:hover { transform: perspective(1300px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-5px); }
.overview-tile:hover, .film-card:hover, .collection-card:hover { box-shadow: 0 30px 85px rgba(0,0,0,.45); }
.overview-copy strong, .business-copy strong, .event-card-copy strong, .collection-caption strong { font-family: var(--display); font-weight: 780; letter-spacing: -.055em; }
.overview-index, .overview-copy small { font-family: var(--interface); }
.business-copy span, .event-card-copy span { transition: max-height .55s cubic-bezier(.2,.7,.2,1),opacity .35s,transform .45s; }
.profile-copy h2, .event-category-heading h2, .event-detail h2, .timeline-heading h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.065em; }
.event-detail-media { border-radius: 8px; }
.event-detail-figure { overflow: hidden; }
.event-detail-figure img { transition: transform .8s cubic-bezier(.2,.7,.2,1),filter .6s; }
.event-detail-figure:hover img { transform: scale(1.025); filter: saturate(1.08); }
.back-link, .admin-entry, .timeline-item button { transition: color .25s,transform .3s,border-color .3s,background .3s; }
.timeline-item::before { transition: transform .35s,box-shadow .35s; }
.timeline-list::before { content: ""; position: absolute; top: 0; left: -1px; z-index: 1; width: 1px; height: var(--timeline-progress,0%); background: linear-gradient(#9a64ff,#dda5e9); box-shadow: 0 0 12px rgba(154,100,255,.4); transition: height .15s linear; }
.timeline-item:hover::before { transform: scale(1.6); box-shadow: 0 0 20px rgba(192,154,190,.72); }
.timeline-item:hover h3 { color: #e8c9ff; }
.admin-entry { border: 1px solid rgba(228,205,239,.32); background: rgba(20,14,27,.9); backdrop-filter: blur(12px); }
.admin-entry:hover { transform: rotate(90deg); background: #7040c7; }
.site-shell footer { position: relative; min-height: 190px; overflow: hidden; isolation: isolate; }
.site-shell footer::before { content: "影像"; position: absolute; z-index: -1; left: 0; bottom: -36%; color: transparent; -webkit-text-stroke: 1px rgba(201,174,224,.12); font: 850 clamp(120px,23vw,310px)/.8 var(--display); letter-spacing: -.12em; pointer-events: none; }
body:not([data-layout="overview"]) .intro { min-height: clamp(320px,45vh,420px); padding-top: clamp(26px,4vh,44px); padding-bottom: 20px; }
body:not([data-layout="overview"]) .intro h1 { font-size: clamp(52px,7vw,112px); }
body:not([data-layout="overview"]) .hero-art { width: min(27vw,320px); opacity: .78; grid-row: 2 / 4; }
body:not([data-layout="overview"]) .motion-marquee { margin: 0 0 20px; padding: 8px 0; }
.btn, .contact-link { transition: color .25s,transform .25s,box-shadow .25s; }
.btn:hover, .contact-link:hover { transform: translateY(-2px); }
.motion-reveal { clip-path: inset(7% 0 0 round 7px); transition: opacity .8s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1),clip-path .9s cubic-bezier(.2,.7,.2,1); }
.motion-reveal.motion-visible { clip-path: inset(0 round 7px); }
@keyframes glyph-rise { from { opacity: 0; transform: translateY(112%) rotate(5deg); filter: blur(9px); } to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); } }
@keyframes hero-settle { from { opacity: 0; transform: translate3d(22px,16px,0) scale(.79) rotate(8deg); filter: blur(8px); } to { opacity: 1; transform: translate3d(var(--hero-x,0px),var(--hero-y,0px),0) scale(1) rotate(0); filter: blur(0); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes orb-breathe { from { transform: scale(.98) rotate(-3deg); } to { transform: scale(1.025) rotate(3deg); } }
@keyframes orb-liquid { to { transform: rotate(336deg) scale(1.08); } }
@keyframes copy-drift { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee-run { to { transform: translateX(-50%); } }
@media (supports (animation-timeline: view())) {
  .hero-art { animation: hero-settle 1.15s .08s cubic-bezier(.2,.7,.1,1) both, hero-art-scroll linear both; animation-timeline: auto, --intro-scroll; animation-range: normal, exit 0% exit 92%; }
  @keyframes hero-art-scroll { to { transform: translate3d(8%,28%,0) scale(.48); opacity: .12; filter: blur(3px); } }
}
@media (max-width: 900px) {
  .intro { min-height: min(780px,calc(100svh - 68px)); grid-template-columns: minmax(0,1fr) minmax(240px,.72fr); }
  .intro h1 { font-size: clamp(66px,10.4vw,126px); }
  .hero-art { width: min(44vw,440px); }
}
@media (max-width: 620px) {
  .site-header { position: sticky; top: 0; }
  .intro { min-height: 0; grid-template-columns: minmax(0,1fr) 110px; grid-template-rows: auto minmax(205px,31vh) auto auto; gap: 15px 4px; padding: 52px 0 36px; }
  body:not([data-layout="overview"]) .intro { min-height: 0; grid-template-rows: auto minmax(160px,24vh) auto; padding-top: 38px; padding-bottom: 24px; }
  body:not([data-layout="overview"]) .intro h1 { font-size: clamp(52px,12vw,76px); }
  body:not([data-layout="overview"]) .hero-art { width: min(34vw,160px); grid-row: 2 / 4; }
  .eyebrow { grid-column: 1 / -1; }
  .intro h1 { grid-column: 1 / -1; grid-row: 2; align-self: center; max-width: 100%; font-size: clamp(62px,14.5vw,100px); line-height: .88; }
  .intro h1::before { -webkit-text-stroke-width: .7px; }
  .intro-note { grid-column: 1 / -1; grid-row: 3; max-width: 83%; font-size: 15px; }
  .hero-art { grid-column: 2; grid-row: 2 / 4; justify-self: end; align-self: center; width: min(39vw,190px); opacity: .85; }
  .hero-orbit--outer i { width: 11px; height: 11px; }
  .hero-art-caption { font-size: 6px; }
  .hero-index { grid-column: 1 / -1; grid-row: 4; width: 100%; }
  .hero-index-link { min-height: 42px; font-size: 10px; }
  .motion-marquee { margin: 0 -16px 24px; }
  .intro::after { width: 80vw; height: 60vw; right: -18%; }
  .events-rail-bar { top: 62px; }
  .rail-hint { font-size: 0; }
  .rail-hint button { font-size: 14px; }
  .event-category-panel { border-radius: 5px; }
  .event-art-word { -webkit-text-stroke-width: .7px; }
  .site-shell footer { min-height: 130px; }
}

/* Each embedded template owns its own visual language and motion. */
.site-shell:has(#work.template-host) { width:100%; max-width:none; }
.site-shell:has(#work.template-host) .site-header { padding-inline:clamp(16px,3vw,48px); }
#work.template-host { display:block; width:100%; max-width:none; margin:0; padding:0; overflow:hidden; background:#0b0b0d; }
#work.template-host { position:relative; min-height:calc(100svh - 78px); }
#template-loading-status { position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center; gap:12px; min-height:calc(100svh - 78px); color:rgba(255,255,255,.72); font:500 14px/1.5 system-ui,sans-serif; letter-spacing:.02em; pointer-events:none; }
.template-loading-spinner { width:18px; height:18px; border:2px solid rgba(255,255,255,.2); border-top-color:#b68ae7; border-radius:50%; animation:template-loading-spin .8s linear infinite; }
@keyframes template-loading-spin { to { transform:rotate(360deg); } }
#content-template { display:block; width:100%; height:calc(100svh - 78px); min-height:620px; border:0; background:#0b0b0d; }
#content-template[data-mobile-loading] { opacity:0; pointer-events:none; }
#content-template { transition:opacity .18s ease; }
.site-header { position:sticky; top:0; z-index:100; }
@media(max-width:620px){
  html,body { overflow-x:clip; }
  body:has(#work.template-host) { height:100svh; height:100dvh; min-height:0; overflow:hidden; }
  .site-shell:has(#work.template-host) { display:grid; grid-template-rows:auto minmax(0,1fr); height:100svh; height:100dvh; min-height:0; overflow:hidden; }
  .site-shell:has(#work.template-host) .site-header { position:relative; min-height:0; }
  #content-template { height:100%; min-height:0; }
  #work.template-host { width:100%; height:auto; min-height:0; margin:0; }
  #template-loading-status { min-height:100%; }
}

.event-project-line { grid-template-columns:24px minmax(0,1fr) auto auto; }
.project-ai-tag,.project-label { padding:4px 7px; border:1px solid rgba(255,255,255,.24); border-radius:99px; color:rgba(255,255,255,.78); font-size:9px; font-style:normal; white-space:nowrap; }
.project-ai-tag { border-color:rgba(158,111,255,.55); background:rgba(111,63,206,.45); color:#efe6ff; }

/* Make the four business sections unmistakable and responsive to the pointer. */
#category-nav { position:absolute; left:50%; transform:translateX(-50%); flex:0 1 auto; gap:clamp(36px,4.32vw,70px); max-width:calc(100% - 240px); margin:0; justify-content:center; }
.category-link { padding:8px 10px; border-radius:999px; font-size:26px !important; font-weight:720; transition:transform .22s cubic-bezier(.2,.7,.2,1),background .22s ease,box-shadow .22s ease,text-shadow .22s ease; }
.category-link::after { bottom:2px; height:2px; transition:height .2s ease,opacity .2s ease; }
.category-link:hover { color:#fff; transform:translateY(-3px) scale(1.04); background:rgba(112,64,199,.23); box-shadow:0 0 26px rgba(112,64,199,.34),inset 0 0 0 1px rgba(196,164,255,.23); text-shadow:0 0 16px rgba(195,155,255,.76); }
.category-link:hover::after { height:3px; }
.category-link:focus-visible { outline:2px solid #b996ff; outline-offset:4px; color:#fff; }
@media(max-width:900px){#category-nav{gap:32px;max-width:calc(100% - 150px)}.category-link{font-size:21px !important;padding:6px 7px}}
@media(max-width:620px){#category-nav{position:static;left:auto;transform:none;flex:0 1 auto;gap:22px;margin-left:8px;max-width:calc(100% - 92px);justify-content:flex-start}.category-link{font-size:18px !important;padding:6px 7px}.category-link:hover{transform:translateY(-2px) scale(1.035)}}
.site-header { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:clamp(12px,2vw,32px); width:100vw; margin-inline:calc((100% - 100vw)/2); padding-inline:clamp(16px,3vw,48px); height:auto; min-height:78px; }
.site-header .wordmark { min-width:max-content; }
#category-nav { position:static!important; left:auto!important; transform:none!important; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; justify-content:stretch; width:100%; max-width:none!important; min-width:0; gap:clamp(5px,1.2vw,20px); margin:0; overflow:visible; }
.category-link { display:flex!important; flex-direction:column; justify-content:center; align-items:center; width:100%; min-width:0; min-height:58px; padding:5px clamp(2px,.5vw,9px)!important; border-radius:999px; font-size:clamp(14px,1.8vw,26px)!important; line-height:1.08; text-align:center; white-space:normal!important; overflow-wrap:anywhere; }
.category-name { display:flex; align-items:center; justify-content:center; width:100%; min-height:1.12em; max-width:100%; font-size:inherit; line-height:1.12; text-align:center; white-space:nowrap; }
.category-english { display:flex; align-items:center; justify-content:center; width:100%; min-height:1.15em; max-width:100%; margin-top:4px; color:#968d9b; font-size:clamp(7px,.62vw,10px); font-weight:500; line-height:1.15; letter-spacing:.07em; text-align:center; white-space:nowrap; }
.category-link.active .category-english,.category-link:hover .category-english { color:#d3b5dc; }
@media(max-width:760px){.site-header{grid-template-columns:minmax(0,1fr);gap:7px;padding-block:10px}.site-header .wordmark{justify-self:start}.site-header #category-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 9px}.site-header .category-link{min-height:48px;padding:4px 5px!important;font-size:clamp(13px,3.4vw,18px)!important}.site-header .category-english{margin-top:2px;font-size:clamp(8px,1.8vw,10px)}}
@media(max-width:760px){.site-header #category-nav{row-gap:12px}.site-header .category-link{min-height:58px}.site-header .category-link::after{bottom:-5px}}
.copy-group { padding:18px 20px; }
.copy-group > summary { display:flex; flex-direction:column; gap:6px; cursor:pointer; list-style:none; min-height:44px; }
.copy-group > summary::-webkit-details-marker { display:none; }
.copy-group > summary::after { content:'＋'; position:absolute; right:22px; color:#b995ff; font-size:20px; }
.copy-group[open] > summary::after { content:'−'; }
.copy-group > summary strong { font-size:17px; color:var(--ink); }
.copy-group > summary .row-meta { font-size:12px; }
.copy-group .settings-grid { margin-top:18px; }
.work-detail-media { box-sizing:border-box; width:min(100%, var(--work-detail-width,900px)); max-width:var(--work-detail-width,900px); margin:18px auto 0; }
.work-detail-media img,.work-detail-media video { display:block; width:100%; max-width:100%; height:auto; margin:auto; }\n.work-detail-media video,.rich-article video,.player-frame video,.event-detail-video { aspect-ratio:auto 16 / 9; }
.work-detail-media figcaption { padding:12px 16px; color:#cfc5d5; font-size:14px; line-height:1.7; }
.document-download { display:grid; gap:7px; width:min(100%,720px); margin:16px auto; padding:18px 20px; border:1px solid var(--line-strong); background:#100d13; color:#f3eaf3; text-decoration:none; }
.document-download span,.document-download small { color:var(--muted); font-size:11px; }
.document-download strong { font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.player-dialog > .close { position:sticky; top:8px; float:right; z-index:10; margin:8px 8px -52px 0; border-radius:50%; background:rgba(8,7,10,.86); backdrop-filter:blur(10px); }
.admin-layer.open { align-items:stretch; justify-content:stretch; padding:20px; }
.admin-shell { display:grid; grid-template-columns:248px minmax(0,1fr); width:min(1500px,100%); height:min(960px,100%); margin:auto; overflow:hidden; border:1px solid rgba(235,226,241,.16); border-radius:16px; background:#f4f5f7; color:#201d25; box-shadow:0 34px 120px #000a; }
.admin-sidebar { display:flex; flex-direction:column; min-width:0; padding:22px 14px 14px; background:#19171e; color:#f6f2f8; }
.admin-brand { display:flex; align-items:center; gap:11px; padding:3px 10px 28px; }
.admin-brand-mark { display:grid; width:38px; height:38px; place-items:center; border-radius:12px; background:linear-gradient(145deg,#b79ad9,#754c9e); color:#fff; font-size:23px; }
.admin-brand strong,.admin-brand small,.admin-account b,.admin-account small { display:block; }
.admin-brand strong { font-size:14px; font-weight:650; letter-spacing:.03em; }
.admin-brand small { margin-top:4px; color:#a9a1b2; font-size:9px; letter-spacing:.14em; }
.admin-side-label { padding:0 11px 9px; color:#8e8795; font-size:10px; letter-spacing:.08em; }
.admin-nav { display:grid; gap:5px; }
.admin-nav-item { display:flex; align-items:center; gap:11px; width:100%; min-height:54px; padding:8px 10px; border:0; border-radius:10px; background:transparent; color:#c3bdca; text-align:left; cursor:pointer; transition:background .2s,color .2s; }
.admin-nav-item:hover { background:#292630; color:#fff; }
.admin-nav-item.active { background:linear-gradient(105deg,#42354e,#332c3c); color:#fff; box-shadow:inset 3px 0 #bf9dd5; }
.admin-nav-icon { display:grid; flex:0 0 31px; width:31px; height:31px; place-items:center; border:1px solid #46414d; border-radius:9px; font-size:15px; }
.admin-nav-item b,.admin-nav-item small { display:block; }
.admin-nav-item b { font-size:12px; font-weight:550; }
.admin-nav-item small { margin-top:3px; color:#9992a0; font-size:9px; }
.admin-nav-item em { margin-left:auto; padding:3px 7px; border-radius:20px; background:#ffffff12; color:#dbd1e1; font-size:10px; font-style:normal; }
.admin-side-spacer { flex:1; }
.admin-account { display:flex; align-items:center; gap:10px; padding:14px 8px 4px; border-top:1px solid #ffffff17; }
.admin-avatar { display:grid; width:34px; height:34px; place-items:center; border-radius:50%; background:#574663; font-size:12px; }
.admin-account b { font-size:11px; font-weight:550; }
.admin-account small { margin-top:3px; color:#aaa3b1; font-size:9px; }
.admin-account button { margin-left:auto; border:0; background:transparent; color:#bbb2c1; cursor:pointer; font-size:18px; }
.admin-workspace { min-width:0; overflow:auto; padding:27px clamp(18px,3vw,42px) 20px; background:#f4f5f7; }
.admin-top { align-items:flex-start; padding-bottom:20px; border-color:#e6e4e9; }
.admin-top h2 { margin-top:12px; color:#211e26; font-size:24px; font-weight:650; letter-spacing:-.03em; }
.admin-top p { color:#7b7581; font-size:11px; }
.admin-breadcrumb { color:#88818d; font-size:10px; }
.admin-breadcrumb span { padding:0 7px; color:#b2abb7; }
.admin-top .close { border-radius:50%; background:#eae8ed; color:#514a56; }
.admin-top .close:hover { background:#ded9e3; }
.pill { display:flex; align-items:center; gap:6px; border-color:#dfdce4; color:#655c6c; font-size:9px; }
.pill i { width:6px; height:6px; border-radius:50%; background:#bd9363; }
.pill.is-connected i { background:#56a77d; }
.admin-workspace .btn { min-height:38px; border-color:#dedbe3; border-radius:8px; background:#fff; color:#39333f; font-size:11px; }
.admin-workspace .btn:hover { background:#f8f6fa; }
.admin-workspace .btn.primary { border-color:#806497; background:#806497; color:#fff; }
.admin-workspace .btn.primary:hover { background:#6f5584; }
.admin-workspace #admin-content { min-height:0; }
.admin-workspace .admin-section { margin:24px 0; }
.admin-workspace .admin-section h3 { color:#28242d; font-size:17px; }
.admin-help { margin:7px 0 0; color:#85808a; font-size:11px; line-height:1.65; }
.admin-welcome { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:23px 0 20px; padding:25px 28px; border:1px solid #ebe7ef; border-radius:14px; background:radial-gradient(ellipse at 82% 0,rgba(167,126,198,.13),transparent 44%),#fff; box-shadow:0 4px 14px #251c2a08; }
.admin-eyebrow { color:#8f7c9d; font-size:9px; letter-spacing:.14em; }
.admin-welcome h3 { margin:9px 0 5px; color:#27222d; font-size:23px; font-weight:650; letter-spacing:-.04em; }
.admin-welcome p { margin:0; color:#7e7784; font-size:11px; line-height:1.7; }
.dashboard-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.dashboard-stats > button { display:grid; justify-items:start; gap:8px; min-height:118px; padding:17px 19px; border:1px solid #e9e6ed; border-radius:12px; background:#fff; color:#29242f; text-align:left; cursor:pointer; transition:transform .2s,box-shadow .2s; }
.dashboard-stats > button:hover { transform:translateY(-2px); box-shadow:0 9px 24px #251c2a10; }
.dashboard-stats small { color:#77717d; font-size:10px; }
.dashboard-stats strong { font-size:29px; line-height:1; font-weight:650; }
.dashboard-stats span { color:#93849e; font-size:9px; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:14px; margin-top:14px; }
.dashboard-card { padding:18px 20px; border:1px solid #e9e6ed; border-radius:12px; background:#fff; }
.dashboard-card > header { display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; }
.dashboard-card h4 { margin:5px 0 0; color:#29242f; font-size:16px; }
.text-action { border:0; background:transparent; color:#806497; cursor:pointer; font-size:10px; }
.check-row { display:flex; align-items:center; width:100%; gap:10px; padding:13px 0; border:0; border-top:1px solid #f0edf2; background:#fff; text-align:left; cursor:pointer; }
.check-dot { flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:#69a882; }
.check-dot.warn { background:#d6a452; }
.check-row span { flex:1; }
.check-row b,.check-row small { display:block; }
.check-row b { color:#34303a; font-size:11px; font-weight:550; }
.check-row small { margin-top:4px; color:#8b8590; font-size:9px; }
.check-row em { color:#9b8ca4; font-style:normal; }
.recent-list { display:grid; }
.recent-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; padding:10px 0; border:0; border-top:1px solid #f0edf2; background:#fff; text-align:left; cursor:pointer; }
.recent-type { display:grid; width:32px; height:32px; place-items:center; border-radius:9px; background:#f0ebf4; color:#806497; font-size:11px; }
.recent-row b,.recent-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-row b { color:#34303a; font-size:10px; font-weight:550; }
.recent-row small { margin-top:4px; color:#8b8590; font-size:9px; }
.recent-row em { color:#94869c; font-size:9px; font-style:normal; }
.admin-local-note { margin:16px 2px 0; color:#8b8590; font-size:10px; line-height:1.6; }
.admin-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:28px; padding-top:14px; border-top:1px solid #e6e4e9; color:#96909b; font-size:9px; }
.work-toolbar { display:grid; grid-template-columns:minmax(200px,1.5fr) repeat(2,minmax(150px,1fr)); gap:10px; margin:18px 0 12px; padding:14px; border:1px solid #e9e6ed; border-radius:12px; background:#fff; }
.admin-workspace .field { color:#6e6873; font-size:10px; }
.admin-workspace .field input,.admin-workspace .field textarea,.admin-workspace .field select { border:1px solid #e4e1e7; border-radius:7px; background:#fff; color:#28242d; font-size:11px; }
.admin-workspace .field input:focus,.admin-workspace .field textarea:focus,.admin-workspace .field select:focus { border-color:#aa91b8; }
.admin-workspace .admin-list { gap:8px; }
.admin-workspace .video-row[hidden] { display:none!important; }
.admin-workspace .video-row { grid-template-columns:56px minmax(0,1fr) auto; min-height:70px; padding:9px 12px; border:1px solid #e9e6ed; border-radius:10px; background:#fff; }
.admin-workspace .video-row.work-admin-row { grid-template-columns:56px minmax(0,1fr) minmax(100px,140px) auto; }
.admin-workspace .mini-art { display:grid; place-items:center; height:48px; overflow:hidden; border-radius:7px; background:#efedf2; color:#877795; font-size:12px; }
.admin-workspace .mini-art img { width:100%; height:100%; object-fit:cover; }
.admin-workspace .row-name { color:#302b35; font-size:11px; }
.admin-workspace .row-meta { color:#817b86; font-size:9px; }
.admin-workspace .work-admin-row .work-admin-label { min-width:100px; justify-self:start; color:#655579; font-size:10px; font-weight:600; }
.admin-workspace .row-buttons button { min-width:31px; min-height:31px; border-color:#e7e3ea; border-radius:6px; background:#fff; color:#655d6b; }
.admin-workspace .row-buttons button:hover { background:#f4f0f6; }
.admin-workspace .empty-list { border-color:#ded9e3; border-radius:10px; color:#7b7581; }
.admin-workspace .copy-group { border:1px solid #e9e6ed; border-radius:10px; background:#fff; }
.admin-workspace .copy-group > summary strong { color:#302b35; font-size:14px; }
.admin-workspace .copy-group > summary .row-meta { color:#817b86; }
.admin-workspace .settings-save { background:linear-gradient(180deg,transparent,#f4f5f7 30%); }
.asset-upload-button { position:relative; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; cursor:pointer; }
.asset-upload-button input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.asset-notice { display:flex; align-items:flex-start; gap:11px; margin:16px 0; padding:13px 15px; border:1px solid #e6deed; border-radius:9px; background:#f5f0f8; color:#6d5e78; font-size:10px; line-height:1.7; }
.asset-notice b { flex:0 0 auto; color:#574566; }
.asset-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.asset-library-head-actions { display:flex; align-items:center; gap:8px; }
.asset-filters { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:16px 0 10px; padding:13px; border:1px solid #e9e4ee; border-radius:11px; background:#faf9fb; }
.asset-filters label { display:grid; gap:5px; min-width:175px; color:#6e6576; font-size:10px; }
.asset-filters .asset-search { flex:1 1 260px; }
.asset-filters input,.asset-filters select,.asset-associate-form select { min-height:36px; padding:7px 10px; border:1px solid #ddd6e4; border-radius:8px; background:#fff; color:#342e39; font:inherit; font-size:11px; }
.asset-type-tabs { display:flex; gap:7px; margin:0 0 13px; overflow:auto; }
.asset-type-tab { display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:6px 12px; border:1px solid #e2dce8; border-radius:20px; background:#fff; color:#665d6d; cursor:pointer; font:inherit; font-size:11px; white-space:nowrap; }
.asset-type-tab span { color:#998ba2; font-size:10px; }
.asset-type-tab.active { border-color:#8b68a1; background:#f2eaf7; color:#65477a; font-weight:700; }
.asset-card[hidden],.asset-associate-form[hidden],.asset-filter-empty[hidden] { display:none!important; }
.asset-filter-empty { margin:14px 0; padding:24px; border:1px dashed #dcd4e2; border-radius:10px; color:#847b8b; text-align:center; font-size:12px; }
.asset-bulk-cover-button { border-color:#805a99!important; color:#67457f!important; font-weight:700!important; }
.asset-bulk-cover-button:hover { background:#f4edf8!important; }
.asset-bulk-cover-status { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; padding:12px 14px; border:1px solid #d8c4e5; border-radius:9px; background:#faf6fc; color:#604778; font-size:12px; line-height:1.5; }
.asset-bulk-cover-status[hidden] { display:none; }
.upload-jobs-panel{margin:14px 0;padding:14px;border:1px solid #dfd1e9;border-radius:10px;background:#fbf9fc}.upload-jobs-panel h4{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#49345b}.upload-jobs-panel h4 small{font-size:11px;font-weight:400;color:#786b82}.upload-jobs-list{display:grid;gap:7px}.upload-job-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid #eee8f2;border-radius:8px;background:#fff}.upload-job-row>span{display:grid;min-width:0;gap:3px}.upload-job-row b,.upload-job-row small{overflow-wrap:anywhere}.upload-job-row b{font-size:12px;color:#403348}.upload-job-row small{font-size:11px;color:#786b82;line-height:1.45}.upload-job-row .btn{flex:0 0 auto}
.asset-trash { margin-top:24px; padding-top:20px; border-top:1px solid #e9e6ed; }
.asset-card { min-width:0; overflow:hidden; border:1px solid #e9e6ed; border-radius:11px; background:#fff; }
.asset-card--cover-editing { grid-column:1/-1; }
.asset-cover-editor { position:fixed; inset:0; z-index:620; display:grid; place-items:center; margin:0; padding:24px; overflow-y:auto; background:rgba(10,8,13,.78); backdrop-filter:blur(10px); }
.asset-cover-editor .frame-picker { width:min(100%,980px); max-height:calc(100vh - 48px); margin:0; overflow-y:auto; box-shadow:0 24px 90px #0008; }
.frame-picker-head-actions { display:flex; align-items:center; gap:10px; }
.frame-picker-head-actions [data-frame-close] { min-height:38px; padding:0 14px; white-space:nowrap; }
.work-progress-card { display:flex; align-items:center; gap:10px; margin:12px 0; padding:12px 14px; border:1px solid #d8c4e5; border-radius:10px; background:#faf6fc; color:#574566; }
.work-progress-card > span { display:grid; flex:1; min-width:0; gap:4px; }
.work-progress-card > span b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.work-progress-card > span small { color:#81758b; font-size:10px; }
.editor-form-actions { position:sticky; bottom:0; z-index:8; gap:8px; padding:12px 0 6px; border-top:1px solid #e6e0e9; background:linear-gradient(180deg,#f4f5f7e8,#f4f5f7 24%); }
.editor-form-actions [data-work-progress-status] { flex:1; margin-right:auto; color:#74687b; font-size:11px; }
.asset-cover-editor .frame-picker-head { position:sticky; top:0; z-index:2; background:#faf8fc; }
.asset-thumb { position:relative; display:grid; place-items:center; height:155px; overflow:hidden; background:linear-gradient(145deg,#ece8f0,#f8f7f9); }
.asset-thumb img,.asset-thumb video { display:block; width:100%; height:100%; object-fit:cover; }
.asset-file-icon { display:grid; min-width:58px; height:58px; padding:0 8px; place-items:center; border-radius:13px; background:#fff; color:#857091; box-shadow:0 5px 22px #251c2a12; font-size:13px; font-weight:700; }
.asset-play { position:absolute; display:grid; width:38px; height:38px; place-items:center; padding:0; border:0; border-radius:50%; background:#17151ca8; color:#fff; cursor:pointer; font-size:15px; }
.asset-play:hover { background:#17151cf0; transform:scale(1.06); }
.asset-info { display:grid; gap:5px; padding:11px 12px 8px; }
.asset-info b,.asset-info small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.asset-info b { color:#312c36; font-size:10px; }
.asset-info small { color:#8b8590; font-size:9px; }
.asset-actions { display:flex; align-items:center; gap:8px; padding:3px 12px 12px; }
.asset-actions .btn { min-height:31px!important; padding:5px 9px!important; font-size:9px!important; }
.asset-associate-form { display:flex; align-items:end; flex-wrap:wrap; gap:8px; padding:0 12px 12px; }
.asset-associate-form label { display:grid; flex:1 1 180px; gap:5px; color:#746b7b; font-size:10px; }
.asset-associate-form select { width:100%; }
.asset-actions .asset-cover-edit { background:#805a99!important; border-color:#805a99!important; color:#fff!important; font-weight:700!important; }
.asset-remove { border:0; background:transparent; color:#9b7580; cursor:pointer; font-size:9px; }
.asset-empty { grid-column:1/-1; display:grid; justify-items:center; gap:10px; min-height:240px; padding:36px; border:1px dashed #d8d2de; border-radius:12px; background:#fff; text-align:center; }
.asset-empty > span { color:#a38db2; font-size:28px; }
.asset-empty b { color:#342f39; font-size:13px; }
.asset-empty p { margin:0; color:#8b8590; font-size:10px; }
.backend-status { border-color:#dbd4e2; border-radius:8px; background:#fff; color:#605669; }
.backend-status.is-error { border-color:#e5c9ce; background:#fff7f8; color:#9f4557; }
.backend-status.has-progress { position:relative; overflow:hidden; padding-bottom:14px; }
.backend-status.has-progress::after { content:""; position:absolute; right:0; bottom:0; left:0; height:3px; background:linear-gradient(to right,#8b679b var(--upload-progress,0%),#eee8f1 var(--upload-progress,0%)); transition:background .12s linear; }
.editor-card { padding:20px; border:1px solid #e9e6ed; border-radius:12px; background:#fff; }
.editor-card .admin-section { margin:14px 0; }
.admin-workspace .field--check { color:#554f5b; }
.admin-workspace .field--check input { accent-color:#806497; }
.media-builder { min-width:0; padding:15px; border:1px solid #e5e0e9; border-radius:11px; background:#f8f7f9; }
.media-builder-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:13px; }
.media-builder-head b,.media-builder-head small { display:block; }
.media-builder-head b { color:#312c36; font-size:13px; }
.media-builder-head small { margin-top:5px; color:#89828e; font-size:10px; line-height:1.6; }
.media-add-actions { display:flex; flex-wrap:wrap; gap:6px; }
.media-add-actions button,.media-block > header button { min-height:30px; padding:4px 9px; border:1px solid #dfdbe3; border-radius:7px; background:#fff; color:#685d70; cursor:pointer; font-size:9px; }
.media-add-actions button:hover,.media-block > header button:hover { border-color:#b6a4c2; color:#624978; }
.media-block-list { display:grid; gap:10px; }
.media-block { min-width:0; padding:12px; border:1px solid #e6e2e9; border-radius:9px; background:#fff; }
.media-block > header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:11px; }
.media-block > header > div { display:flex; gap:5px; }
.media-block > header button { min-width:30px; min-height:28px; padding:3px 7px; }
.media-block > header button:disabled { opacity:.35; cursor:default; }
.media-block-type { display:flex; align-items:center; gap:8px; color:#5f5368; font-size:10px; font-weight:600; }
.media-block-type i { display:grid; min-width:26px; height:26px; padding:0 4px; place-items:center; border-radius:7px; background:#f0ebf4; color:#806497; font-size:9px; font-style:normal; }
.media-block .field { margin-top:9px; }
.media-block-preview { display:block; width:min(100%,520px); max-height:320px; margin:8px 0; border-radius:7px; background:#f0edf2; object-fit:contain; }
.media-block-placeholder { display:grid; height:100px; place-items:center; color:#92899a; font-size:10px; }
.media-empty { padding:23px; border:1px dashed #ded9e4; border-radius:8px; color:#89828e; font-size:10px; text-align:center; }
.film-cover-note { padding:11px 13px; border:1px solid #e4d9eb; border-radius:8px; background:#f6f0f8; color:#6d5d77; font-size:10px; line-height:1.7; }
.film-cover-note b,.film-cover-note span { display:block; }
.film-cover-note b { margin-bottom:3px; color:#5b4868; }
.detail-mode-panel[hidden] { display:none!important; }
.detail-mode-panel { min-width:0; margin:2px 0 8px; }
.article-editor { display:flex; flex-direction:column; width:100%; height:calc(100vh - 150px); height:calc(100dvh - 150px); min-height:calc(100vh - 150px); min-height:calc(100dvh - 150px); max-height:none; min-width:0; overflow:hidden; border:1px solid rgba(202,173,207,.24); border-radius:12px; background:#100d13; }
.article-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 17px; border-bottom:1px solid rgba(235,226,241,.12); }
.article-editor-heading strong,.article-editor-heading small { display:block; }
.article-editor-heading strong { color:#f5eef7; font-size:14px; font-weight:550; }
.article-editor-heading small { margin-top:5px; color:#a89eab; font-size:10px; line-height:1.6; }
.article-editor-heading > span { flex:0 0 auto; padding:6px 9px; border:1px solid rgba(208,179,215,.25); border-radius:99px; color:#d9c1e2; font-size:9px; }
.article-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:7px; padding:10px 12px; border-bottom:1px solid rgba(235,226,241,.1); background:#19151d; } .media-edit-tools[hidden]{display:none!important}.media-edit-tools{border-left:1px solid rgba(235,226,241,.16);padding-left:9px}.media-edit-tools select{min-width:74px}
.article-asset-picker { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; box-sizing:border-box; padding:24px; overflow:auto; background:rgba(7,5,9,.76); backdrop-filter:blur(5px); }
.article-asset-picker[hidden] { display:none!important; }
.article-asset-dialog { display:flex; flex-direction:column; width:min(100%,1000px); max-height:min(82dvh,780px); box-sizing:border-box; padding:18px; overflow:hidden; border:1px solid rgba(235,226,241,.2); border-radius:12px; background:#211b26; box-shadow:0 24px 80px rgba(0,0,0,.55); }
.article-asset-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.article-asset-dialog > header strong,.article-asset-dialog > header small { display:block; }
.article-asset-dialog > header strong { color:#f7eff8; font-size:12px; }
.article-asset-dialog > header small { margin-top:4px; color:#b8adbc; font-size:10px; }
.article-asset-dialog > header > button { width:38px; height:38px; border:1px solid rgba(235,226,241,.2); border-radius:7px; background:#302837; color:#fff; cursor:pointer; font-size:18px; }
.article-picker-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:10px; color:#aaa0ad; font-size:10px; }
.article-picker-actions .btn { min-height:40px; }
.article-picker-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); gap:7px; min-height:120px; flex:1; overflow:auto; }
.article-picker-item { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; min-height:58px; padding:6px 9px; border:1px solid rgba(235,226,241,.15); border-radius:7px; background:#100d13; color:#f4edf6; cursor:pointer; text-align:left; }
.article-picker-item:hover { border-color:#c49bd3; background:#2c2331; }
.article-picker-thumb { display:grid; width:44px; height:44px; place-items:center; overflow:hidden; border-radius:5px; background:#342b3b; color:#e1c6ed; }
.article-picker-thumb img { width:100%; height:100%; object-fit:cover; }
.article-picker-thumb i { font-size:11px; font-style:normal; }
.article-picker-item > span:nth-child(2) { min-width:0; }
.article-picker-item b,.article-picker-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.article-picker-item b { font-size:10px; font-weight:500; }
.article-picker-item small { margin-top:4px; color:#a79ca9; font-size:9px; }
.article-picker-item em { color:#d5b1e3; font-size:9px; font-style:normal; }
.article-picker-empty { padding:17px; border:1px dashed rgba(235,226,241,.2); border-radius:7px; color:#c4b9c8; font-size:11px; line-height:1.7; }
.toolbar-group { display:flex; flex-wrap:wrap; align-items:center; gap:5px; padding-right:7px; border-right:1px solid rgba(235,226,241,.14); }
.toolbar-group:last-of-type { border-right:0; }
.toolbar-group button,.toolbar-group label { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:38px; padding:6px 10px; border:1px solid rgba(235,226,241,.2); border-radius:7px; background:#29232e; color:#f2eaf5; cursor:pointer; font-size:11px; white-space:nowrap; }
.toolbar-group button:hover,.toolbar-group label:focus-within { border-color:#c69bd5; background:#3b2d43; }
.toolbar-group label { color:#bfb3c5; cursor:default; }
.toolbar-group select { max-width:125px; min-height:29px; padding:4px 7px; border:1px solid rgba(235,226,241,.2); border-radius:5px; background:#110e14; color:#f7f1f8; font-size:11px; }
.toolbar-group .toolbar-color { gap:7px; }
.toolbar-color input { width:28px; height:26px; padding:2px; border:1px solid rgba(235,226,241,.2); border-radius:4px; background:#100d13; }
.rich-file-input { display:none!important; }
.article-canvas { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:22px clamp(16px,4vw,38px); outline:none; background:#f9f7fa; color:#29242e; font-size:15px; line-height:1.85; overflow-wrap:anywhere; }
.article-upload-status { display:flex; align-items:center; gap:10px; padding:8px clamp(16px,4vw,38px); background:#f2edf5; color:#4c3c56; font-size:12px; }
.article-upload-status[hidden] { display:none; }
.article-upload-status span { flex:1 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.article-upload-status progress { flex:0 1 180px; width:180px; height:8px; accent-color:#8955c8; }
.article-upload-status b { min-width:4ch; text-align:right; font-variant-numeric:tabular-nums; }
.article-canvas:empty::before { content:attr(data-placeholder); color:#928a98; }
.article-canvas > :first-child { margin-top:0; }
.article-canvas img,.article-canvas video { display:block; width:100%; max-width:100%; max-height:560px; height:auto; margin:15px auto; object-fit:contain; cursor:grab; touch-action:none; } .article-canvas .is-media-selected { outline:3px solid #8a55c9; outline-offset:3px; }
.article-canvas figure { margin:18px 0; }
.article-canvas figure:has(img),.article-canvas figure:has(video),.article-canvas p:has(img),.article-canvas p:has(video) { position:relative; cursor:grab; }
.article-canvas .article-video-host { position:relative; display:grid; place-items:center; }
.article-canvas .article-video-play { position:absolute; left:50%; top:50%; z-index:2; display:grid; width:64px; height:64px; padding:0; place-items:center; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.8); border-radius:50%; background:rgba(26,20,31,.74); color:white; font-size:27px; line-height:1; cursor:pointer; box-shadow:0 4px 22px rgba(0,0,0,.28); }
.article-canvas .article-video-play--empty { width:auto; min-height:38px; height:auto; padding:8px 14px; border-radius:999px; font-size:12px; white-space:nowrap; background:rgba(92,39,112,.94); }
.article-canvas .article-video-play:hover { background:rgba(105,65,145,.92); transform:translate(-50%,-50%) scale(1.06); }
.article-canvas .is-media-dragging { opacity:.4; cursor:grabbing; }
.article-canvas .media-drop-before { box-shadow:0 -4px 0 #8955c8; }
.article-canvas .media-drop-after { box-shadow:0 4px 0 #8955c8; }
.media-drag-hint { color:#b6aabd; font-size:9px; white-space:nowrap; } .media-width-control { display:flex; align-items:center; gap:5px; } .media-width-control input[type="range"] { width:90px; accent-color:#8955c8; } .media-width-control output { min-width:32px; color:#e7d9ed; font-size:9px; }
.article-canvas figcaption { color:#77717d; font-size:12px; text-align:center; }
.article-canvas a { color:#75528e; text-decoration:underline; }
.article-editor-foot { padding:9px 14px; border-top:1px solid rgba(235,226,241,.12); color:#9c929f; font-size:10px; }
.detail-mode-html { gap:12px; padding:14px; border:1px solid rgba(202,173,207,.2); border-radius:10px; background:#100d13; }
.detail-mode-html::before { content:'独立 HTML 页面'; color:#f0e7f3; font-size:14px; font-weight:550; }
.detail-mode-html > .field { margin:0; }
.rich-article { box-sizing:border-box; width:min(100%,var(--work-detail-width,900px)); max-width:var(--work-detail-width,900px); margin:18px auto; padding:clamp(18px,4vw,42px); border:1px solid rgba(235,226,241,.12); border-radius:10px; background:#f9f7fa; color:#29242e; font-size:15px; line-height:1.85; overflow-wrap:anywhere; } .rich-article:has(img,video) { padding:0; border:0; border-radius:0; background:transparent; }
.rich-article > :first-child { margin-top:0; }
.rich-article img,.rich-article video { display:block; width:100%; max-width:100%; height:auto; margin:0 auto; object-fit:contain; }
.rich-article figure { margin:22px 0; }
.rich-article figcaption { color:#77717d; font-size:12px; text-align:center; }
.rich-article a { color:#75528e; text-decoration:underline; }
.standalone-html-view { display:flex; flex-direction:column; min-height:min(78vh,900px); overflow:hidden; border:1px solid rgba(235,226,241,.14); border-radius:10px; background:#fff; }
.standalone-html-view > header { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:6px 12px; background:#100d13; color:#f7f1f8; }
.standalone-html-view > header button { min-height:38px; padding:7px 12px; border:1px solid rgba(235,226,241,.25); border-radius:7px; background:#28212d; color:#fff; cursor:pointer; }
.standalone-html-view iframe { flex:1; width:100%; min-height:70vh; border:0; background:#fff; }
.work-detail-text { max-width:900px; margin:18px auto; padding:24px 28px; border-left:2px solid #8c6998; background:linear-gradient(100deg,rgba(129,92,144,.1),rgba(255,255,255,.018)); color:#e8dfea; }
.work-detail-text h3 { margin:0 0 10px; font-size:18px; font-weight:500; }
.work-detail-text p { margin:0; font-size:14px; line-height:1.9; }
/* Keep event detail covers, videos, copy and embedded media on one centered content rail. */
.event-detail > header,
.event-detail-cover,
.event-detail > .event-detail-media,
.event-detail-copy,
.event-detail > .rich-article,
.event-detail > .work-detail-media,
.event-detail > .work-detail-text,
.event-detail > .work-detail-document { box-sizing:border-box; width:min(100%,900px); max-width:900px; margin-left:auto; margin-right:auto; }
.event-detail > header { margin-top:0; }
.event-detail-cover { display:block; height:auto; max-height:82vh; margin-top:22px; margin-bottom:22px; object-fit:contain; object-position:center; }
.event-detail > .event-detail-media { margin-top:22px; margin-bottom:22px; }
.event-detail-copy { padding-left:0; padding-right:0; }
.event-detail > .rich-article { margin-top:22px; margin-bottom:22px; }
.event-detail > .work-detail-media { margin-top:22px; }
.event-detail > .work-detail-document { margin-top:22px; }
/* Match the event detail rail to the 1100px work detail rail; do not let tall media shrink horizontally. */
.event-detail > header,
.event-detail-cover,
.event-detail > .event-detail-media,
.event-detail-copy,
.event-detail > .rich-article,
.event-detail > .work-detail-media,
.event-detail > .work-detail-text,
.event-detail > .work-detail-document { width:min(100%,1100px); max-width:1100px; }
.event-detail-cover,
.event-detail > .event-detail-media,
.event-detail .rich-article img,
.event-detail .rich-article video,
.event-detail .work-detail-media img,
.event-detail .work-detail-media video { width:100%; max-width:100%; max-height:none; height:auto; }
/* One media rail for every category's detail view; portrait media stays within the visible screen. */
.player-dialog > .player-frame,
.player-dialog > .rich-article,
.player-dialog > .work-detail-media,
.player-dialog > .work-detail-text,
.player-dialog > .work-detail-document { box-sizing:border-box; width:min(100%,var(--work-detail-width,900px)); max-width:var(--work-detail-width,900px); margin-left:auto; margin-right:auto; }
.player-dialog > .player-frame,
.player-dialog > .work-detail-media,
.event-detail > .work-detail-media { display:grid; place-items:center; background:radial-gradient(ellipse at center,rgba(88,69,98,.22),transparent 72%),linear-gradient(90deg,#0b090d 0%,#151118 12%,#0b090d 50%,#151118 88%,#0b090d 100%); box-shadow:inset 34px 0 40px -38px rgba(0,0,0,.9),inset -34px 0 40px -38px rgba(0,0,0,.9); }
.player-dialog .player-frame img,
.player-dialog .player-frame video,
.player-dialog .rich-article img,
.player-dialog .rich-article video,
.player-dialog .work-detail-media img,
.player-dialog .work-detail-media video,
.event-detail-cover,
.event-detail > .event-detail-media,
.event-detail .rich-article img,
.event-detail .rich-article video,
.event-detail .work-detail-media img,
.event-detail .work-detail-media video { display:block; max-height:min(82svh,calc(100svh - 180px)); max-height:min(82dvh,calc(100dvh - 180px)); height:auto; margin-left:auto; margin-right:auto; object-fit:contain; object-position:center; background:radial-gradient(ellipse at center,rgba(88,69,98,.2),transparent 76%),#0b090d; box-shadow:0 10px 34px rgba(0,0,0,.34); }
.asset-field-source { display:grid; gap:8px; }
.upload-source-actions { display:flex; flex-wrap:wrap; gap:8px; }
.upload-source-actions button { min-height:38px; padding:7px 12px; border:1px solid #d9d1e0; border-radius:7px; background:#fff; color:#44394d; cursor:pointer; font:inherit; }
.upload-source-actions button:hover:not(:disabled) { border-color:#9470ac; color:#704b8c; }
.upload-source-actions button:disabled { opacity:.48; cursor:not-allowed; }
.upload-control input[type="file"][hidden] { display:none!important; }
.asset-library-picker { position:fixed; z-index:420; inset:0; display:grid; place-items:center; padding:24px; border:0; border-radius:0; background:rgba(8,6,10,.76); backdrop-filter:blur(8px); }
.asset-library-picker[hidden] { display:none!important; }
.asset-library-dialog { display:grid; grid-template-rows:auto auto auto minmax(180px,1fr) auto; gap:12px; width:min(1040px,100%); max-height:min(860px,calc(100dvh - 48px)); padding:18px; overflow:hidden; border:1px solid #ded5e4; border-radius:14px; background:#f8f7f9; box-shadow:0 28px 100px #000a; }
.asset-library-dialog > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.asset-library-dialog > header strong,.asset-library-dialog > header small { display:block; }
.asset-library-dialog > header strong { color:#29222e; font-size:16px; }
.asset-library-dialog > header small { margin-top:5px; color:#746d79; font-size:11px; line-height:1.55; }
.asset-library-dialog > header button { width:38px; height:38px; border:1px solid #ded7e4; border-radius:8px; background:#fff; color:#433a49; cursor:pointer; font-size:20px; }
.asset-library-dialog .asset-library-search { grid-template-columns:minmax(0,1fr) auto; }
.asset-library-dialog .asset-library-options { grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); max-height:none; min-height:0; }
.asset-library-dialog .asset-library-option[aria-pressed="true"] { border-color:#8658a0; box-shadow:0 0 0 2px #8658a0; }
.asset-library-dialog > footer { display:flex; justify-content:flex-end; gap:8px; padding-top:10px; border-top:1px solid #e4dee8; }
.asset-library-dialog > footer button { min-height:40px; padding:7px 14px; border:1px solid #d9d1e0; border-radius:7px; background:#fff; color:#44394d; cursor:pointer; }
.asset-library-dialog > footer button:disabled { opacity:.45; cursor:not-allowed; }
.asset-library-dialog > footer .primary { border-color:#806196; background:#806196; color:white; }
.article-picker-item.selected,.article-picker-item[aria-pressed="true"] { border-color:#aa82c1; box-shadow:0 0 0 1px #aa82c1; background:#30263a; }
@media(max-width:680px){.asset-library-picker{padding:8px}.asset-library-dialog{gap:9px;max-height:calc(100dvh - 16px);padding:12px;border-radius:10px}.asset-library-dialog .asset-library-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.asset-library-dialog .asset-library-thumb{height:58px}.asset-library-dialog .asset-library-search small{font-size:9px}.upload-source-actions button{min-height:42px}}
.player-dialog .player-frame img,
.player-dialog .player-frame video,
.player-dialog .rich-article img,
.player-dialog .rich-article video,
.player-dialog .work-detail-media img,
.player-dialog .work-detail-media video,
.event-detail-cover,
.event-detail > .event-detail-media,
.event-detail .rich-article img,
.event-detail .rich-article video,
.event-detail .work-detail-media img,
.event-detail .work-detail-media video { width:100%; max-width:100%; }
/* Final event media sizing override: keep every item aligned to the full detail rail. */
.event-detail-cover,
.event-detail > .event-detail-media,
.event-detail .rich-article img,
.event-detail .rich-article video,
.event-detail .work-detail-media img,
.event-detail .work-detail-media video { width:100%; max-width:100%; max-height:none; height:auto; }
@media(max-width:680px){.media-builder{padding:11px}.media-builder-head{display:grid}.media-add-actions button{min-height:34px}.media-block{padding:9px}.work-detail-text{padding:18px;margin:14px 0}.article-editor{height:calc(100vh - 140px);height:calc(100dvh - 140px);min-height:480px}.article-editor-heading{align-items:flex-start;padding:12px}.article-editor-heading > span{font-size:8px}.article-toolbar{gap:6px;padding:8px}.toolbar-group{gap:4px;padding-right:5px}.toolbar-group button,.toolbar-group label{min-height:40px;padding:6px 8px;font-size:10px}.toolbar-group select{max-width:100px;font-size:10px}.article-canvas{min-height:0;padding:16px;font-size:14px}.standalone-html-view iframe{min-height:65vh}}
@media(max-width:980px){.admin-shell{grid-template-columns:205px minmax(0,1fr)}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:1fr}}
@media(max-width:680px){.admin-layer.open{padding:0}.admin-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;max-height:100%;border:0;border-radius:0}.admin-sidebar{padding:9px 10px 7px}.admin-brand{padding:0 6px 9px}.admin-brand-mark{width:30px;height:30px;border-radius:9px;font-size:17px}.admin-brand strong{font-size:11px}.admin-brand small{font-size:7px}.admin-side-label,.admin-side-spacer,.admin-account{display:none}.admin-nav{display:flex;gap:5px;overflow-x:auto;padding:0 0 2px;scrollbar-width:none}.admin-nav-item{flex:0 0 auto;min-height:39px;width:auto;gap:6px;padding:5px 8px;border-radius:8px}.admin-nav-icon{flex-basis:23px;width:23px;height:23px;border-radius:6px;font-size:12px}.admin-nav-item b{font-size:9px}.admin-nav-item small,.admin-nav-item em{display:none}.admin-nav-item.active{box-shadow:inset 0 -2px #bf9dd5}.admin-workspace{padding:16px 13px 14px}.admin-top{gap:8px;padding-bottom:13px}.admin-breadcrumb{font-size:8px}.admin-top h2{margin-top:7px;font-size:19px}.admin-top p{max-width:195px;font-size:9px}.admin-top .admin-actions{gap:5px}.admin-top .pill{display:none}.admin-top .btn{min-height:34px!important;padding:6px 8px!important;font-size:9px!important}.admin-top .close{min-width:34px;min-height:34px;font-size:20px}.admin-welcome{align-items:flex-start;flex-direction:column;margin:14px 0;padding:17px}.admin-welcome h3{font-size:18px}.admin-welcome p{font-size:10px}.dashboard-stats{gap:8px}.dashboard-stats>button{min-height:94px;padding:12px}.dashboard-stats strong{font-size:24px}.dashboard-card{padding:14px}.work-toolbar{grid-template-columns:1fr;gap:8px;padding:11px}.admin-workspace .video-row{grid-template-columns:43px minmax(0,1fr);gap:8px;padding:8px}.admin-workspace .mini-art{height:40px}.admin-workspace .row-buttons{grid-column:1/-1;justify-content:flex-end}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.asset-thumb{height:110px}.asset-info{padding:8px}.asset-actions{padding:3px 8px 9px}.asset-actions .btn{padding:4px 6px!important}.asset-notice{display:grid;gap:3px;font-size:9px}.section-head{align-items:flex-start}.asset-library-head-actions{flex-wrap:wrap;justify-content:flex-end}.section-head h3{font-size:15px!important}.admin-footer{align-items:flex-start;flex-direction:column}.settings-grid{grid-template-columns:1fr}.admin-workspace .field--wide{grid-column:auto}}
.upload-control { display:grid; gap:6px; padding-top:3px; }
.upload-control input[type=file], .field input[type=file] { min-height:44px; padding:8px; border:1px dashed rgba(235,226,241,.24); background:#100d13; color:#dcd2df; }

/* Searchable thumbnail library used by the content editor asset fields. */
.asset-library-picker { display:grid; gap:8px; padding:10px; border:1px solid #e8e2ed; border-radius:8px; background:#faf9fb; }
.asset-library-search { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 10px; color:#51495a; font-size:10px; }
.asset-library-search > span { font-weight:700; }
.asset-library-search input[data-asset-search] { grid-column:1; min-height:34px; padding:7px 9px; }
.asset-library-search small { grid-column:2; grid-row:2; color:#8d8493; white-space:nowrap; }
.asset-library-options { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:8px; max-height:236px; overflow:auto; padding:1px 2px 2px 1px; }
.asset-library-option { display:grid; min-width:0; gap:5px; padding:5px; border:1px solid #e4dfe8; border-radius:7px; background:#fff; color:#38313d; text-align:left; cursor:pointer; }
.asset-library-option[hidden] { display:none!important; }
.asset-library-option:hover,.asset-library-option.selected { border-color:#9572aa; box-shadow:0 0 0 1px #9572aa; }
.asset-library-thumb { display:grid; place-items:center; height:66px; overflow:hidden; border-radius:4px; background:#201b24; color:#c8a8e2; font-size:20px; }
.asset-library-thumb img,.asset-library-thumb video { width:100%; height:100%; object-fit:cover; }
.asset-library-name { overflow:hidden; color:#3b3441; font-size:10px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.asset-library-selected { color:#65556e; font-size:10px; }
.asset-library-selected b { color:#352e3b; }
.asset-library-empty { grid-column:1/-1; padding:8px; color:#8d8493; }
.batch-upload-list { display:grid; gap:6px; margin-top:8px; }
.batch-upload-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(170px,auto) 110px; align-items:center; gap:10px; padding:7px 9px; border:1px solid #e5e0e8; border-radius:6px; background:#fff; color:#574f5d; font-size:10px; }
.batch-upload-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.batch-upload-state { color:#806497; }
.batch-upload-row.is-success .batch-upload-state { color:#2c8068; }
.batch-upload-row.is-error .batch-upload-state { color:#b74b58; overflow-wrap:anywhere; }
.batch-upload-track { height:5px; overflow:hidden; border-radius:5px; background:#ece8ef; }
.batch-upload-track i { display:block; width:0; height:100%; border-radius:inherit; background:#9272a8; transition:width .2s ease; }
@media(max-width:680px){.batch-upload-row{grid-template-columns:minmax(0,1fr) 84px;gap:5px 8px}.batch-upload-track{grid-column:1/-1}}
@media(max-width:680px){.asset-library-options{grid-template-columns:repeat(3,minmax(0,1fr));max-height:210px}.asset-library-thumb{height:56px}.asset-library-search small{font-size:9px}}
.layout-editor { padding-top:18px; }
.layout-section-list { display:grid; gap:8px; padding:12px; border:1px solid rgba(235,226,241,.12); }
.layout-section-list > strong { color:#f0e8f1; font-size:12px; font-weight:500; }
.layout-section-row { display:grid; grid-template-columns:minmax(0,1fr) 80px; align-items:center; gap:12px; min-height:40px; padding:5px 0; border-top:1px solid rgba(235,226,241,.08); color:#c1b7c3; font-size:11px; }
.layout-section-row label { display:flex; align-items:center; gap:8px; }
.layout-section-row input[type=checkbox] { width:17px; height:17px; accent-color:#a882b0; }
.layout-section-row input[type=number] { width:80px; padding:7px; border:1px solid rgba(235,226,241,.16); background:#09080a; color:#f3edf4; }
.admin-intro { padding:20px 22px 0; }
.admin-intro h3 { margin-bottom:6px; }
.admin-intro p { max-width:760px; color:var(--muted); line-height:1.6; }
.settings-save { position:sticky; bottom:0; z-index:3; padding:14px 0; background:linear-gradient(180deg,transparent,var(--panel) 28%); }

.work-detail-document { width:min(100%,1120px); margin:18px auto 0; }
.document-preview { display:block; width:100%; height:min(78vh,920px); min-height:420px; border:0; background:#17141a; }
.work-detail-document .document-download { margin:12px auto; }
.work-featured-flag,.project-featured-tag { position:absolute; z-index:3; top:12px; left:12px; padding:6px 10px; border-radius:99px; background:#f2c76d; color:#21190a; font-size:11px; font-weight:750; line-height:1; }
.event-project-line { position:relative; }
.project-featured-tag { position:static; display:inline-flex; margin-left:8px; }
@media(max-width:600px){.document-preview{min-height:55vh;height:65vh}}
@media(max-width:680px){.asset-cover-editor{padding:8px}.asset-cover-editor .frame-picker{max-height:calc(100vh - 16px)}.work-progress-card{flex-wrap:wrap}.work-progress-card>span{flex-basis:100%}.editor-form-actions{position:sticky;bottom:-14px;margin:16px -13px 0!important;padding:10px 13px 14px}.editor-form-actions [data-work-progress-status]{flex-basis:100%}}

.subcategory-empty-hint { display:grid; gap:6px; padding:13px 15px; border:1px solid rgba(187,145,202,.26); border-radius:10px; background:rgba(112,64,199,.07); color:var(--ink); }
.subcategory-empty-hint span { color:var(--muted); font-size:12px; line-height:1.6; }

.media-type-hint { margin-top:-10px; color:var(--muted); font-size:12px; line-height:1.6; }

.placement-picker { display:grid; gap:9px; padding:14px 16px; border:1px solid rgba(185,149,255,.28); border-radius:12px; background:rgba(112,64,199,.05); }
.placement-picker legend { padding:0 6px; color:var(--ink); font-weight:700; }
.placement-picker small { color:var(--muted); line-height:1.6; }
.placement-picker label { display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:8px; background:rgba(255,255,255,.035); color:var(--ink); }
.placement-picker label input { width:18px; height:18px; accent-color:#a36de2; }
.works-more-button { display:block; margin:24px auto; padding:12px 20px; border:1px solid rgba(185,149,255,.45); border-radius:999px; background:transparent; color:var(--ink); cursor:pointer; font:600 14px/1 system-ui; }
.works-more-button[hidden] { display:none!important; }

.event-project-heading{position:relative;z-index:2;padding:10px 0 5px;color:rgba(255,255,255,.7);font-size:11px;letter-spacing:.12em;text-transform:uppercase}

.placement-picker label{display:grid;grid-template-columns:minmax(160px,1fr) minmax(220px,1.25fr);align-items:center;gap:12px}.placement-picker label .placement-category-name{display:grid;gap:4px}.placement-picker label .placement-category-name small{font-size:11px}.placement-picker label select{min-width:0;min-height:40px;padding:7px 10px;border:1px solid rgba(185,149,255,.28);border-radius:8px;background:#17131d;color:var(--ink)}@media(max-width:680px){.placement-picker label{grid-template-columns:1fr}.placement-picker label select{width:100%}}

.event-project-extra{position:relative;z-index:2;color:rgba(255,255,255,.86);font-size:12px}.event-project-extra summary{padding:8px 0;cursor:pointer;color:#dfc9e8}.event-project-extra .event-project-line{animation:none}

/* Admin module registry: keep names, stable codes and controls readable. */
.layout-section-list{gap:0;padding:14px 16px;border-color:rgba(195,160,255,.28);border-radius:12px;background:rgba(26,19,34,.62)}
.layout-section-list>strong{color:#f7f1fb;font-size:14px;font-weight:700}
.layout-section-list>small{margin:4px 0 10px;color:#bdb2c8;font-size:12px;line-height:1.6}
.layout-section-row{grid-template-columns:minmax(220px,1.15fr) minmax(150px,.85fr) 72px;min-height:58px;padding:9px 0;color:#eee7f2;font-size:13px}
.layout-section-row label{min-width:0;gap:10px}
.layout-section-row label span{display:grid;gap:3px;min-width:0}
.layout-section-row label b{color:#f4edf7;font-size:13px;font-weight:650}
.layout-section-row label small{color:#b8adbf;font-size:11px}
.layout-section-row code{color:#ddbaff;font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.layout-section-row input[type=text],.layout-section-row input:not([type]){width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid rgba(224,205,244,.25);border-radius:7px;background:#100d13;color:#f8f3fa}
.layout-section-row input[type=number]{width:72px;min-height:38px;border-radius:7px;color:#f8f3fa}
.placement-picker{gap:12px;color:#f2ebf6}
.placement-picker>small{color:#c9bece;font-size:12px;line-height:1.65}
.placement-category{display:grid;gap:7px;padding:12px;border:1px solid rgba(221,199,244,.14);border-radius:9px;background:rgba(6,5,8,.42)}
.placement-category h4{margin:0;color:#e5c7fa;font-size:13px}
.placement-category-note{margin:0 0 3px;color:#c4b8cb;font-size:11px;line-height:1.55}
.placement-picker label{display:flex;align-items:flex-start;gap:11px;padding:10px 12px;border:1px solid rgba(221,199,244,.13);border-radius:8px;background:rgba(255,255,255,.035);color:#f7f2f9}
.placement-picker label input{flex:0 0 18px;margin-top:2px}
.placement-picker label .placement-category-name{display:grid;gap:4px;min-width:0}
.placement-picker label .placement-category-name b{color:#f7f2f9;font-size:13px;font-weight:650}
.placement-picker label .placement-category-name small{color:#c4b8cb;font-size:11px;line-height:1.55}
.placement-more-note{margin:0;color:#bdb2c8;font-size:12px;line-height:1.6}
.layout-order-fixed{justify-self:end;color:#a99daf;font-size:11px}
.events-overview.events-hide-project-list .event-project-heading,.events-overview.events-hide-project-list .event-project-list,.events-overview.events-hide-project-list .event-project-extra{display:none}
@media(max-width:760px){.layout-section-row{grid-template-columns:minmax(0,1fr) 64px;gap:8px}.layout-section-row label{grid-column:1/-1}.layout-section-row input[type=number]{width:64px;grid-column:2;grid-row:2}.layout-section-row input[type=text],.layout-section-row input:not([type]){grid-column:1;grid-row:2}}

.category-picker{gap:12px}.category-picker legend{font-weight:700}.category-picker>small{color:#c9bece;font-size:12px;line-height:1.6}.category-chip-list{display:flex;flex-wrap:wrap;gap:9px}.category-chip{display:inline-flex!important;align-items:center;gap:8px;padding:9px 12px!important;border:1px solid rgba(221,199,244,.22);border-radius:999px;background:rgba(255,255,255,.035);color:#f7f2f9;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.category-chip:has(input:checked){border-color:#c999e8;background:rgba(170,105,220,.2);transform:translateY(-1px)}.category-chip input{width:16px;height:16px;margin:0;accent-color:#b776da}.category-chip span{font-size:13px}@media(max-width:680px){.category-chip-list{gap:7px}.category-chip{padding:9px 10px!important}.category-chip span{font-size:12px}}

/* Compact, readable category-to-module mapping in the work editor */
.category-picker{gap:10px;padding:13px 0;border:0;border-bottom:1px solid #e4dce9;border-radius:0;background:transparent;color:#28232d}
.category-picker legend{padding:0;color:#28232d;font-size:14px;font-weight:700}
.category-picker>small{color:#655b6b;font-size:12px;line-height:1.55}
.category-chip-list{display:flex;flex-wrap:wrap;gap:8px}
.category-chip{display:inline-flex!important;align-items:center;gap:8px;padding:8px 12px!important;border:1px solid #d6cbdc;border-radius:999px;background:#fff;color:#302837!important;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.category-chip:has(input:checked){border-color:#8957a5;background:#f1e7f6;color:#432755!important;transform:translateY(-1px)}
.category-chip input{width:16px;height:16px;margin:0;accent-color:#86509f}
.category-chip span{color:inherit!important;font-size:13px;font-weight:600}
.subcategory-picker .category-chip-list{max-height:220px;overflow:auto;padding:2px 3px 8px}
.subcategory-chip[hidden]{display:none!important}
.placement-picker{display:grid;gap:0;padding:0;border:0;background:transparent;color:#29242e}
.placement-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:13px 0 11px;border-bottom:1px solid #e3dce8}
.placement-picker-head>div{display:grid;gap:4px}
.placement-picker-head b{font-size:15px;color:#29242e}
.placement-picker-head span,.placement-picker-head small{color:#655b6b;font-size:12px;line-height:1.5}
.placement-picker-head>small{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#f1eaf4;color:#604572;font-weight:650}
.placement-category{display:grid;gap:9px;padding:13px 0;border:0;border-bottom:1px solid #e9e3ec;border-radius:0;background:transparent}
.placement-category header{display:grid;gap:3px}
.placement-category header strong{color:#3a2d42;font-size:14px}
.placement-category header span{color:#655b6b;font-size:11px;line-height:1.45}
.placement-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.placement-picker .placement-option{display:grid;grid-template-columns:17px minmax(0,1fr);align-items:start;gap:9px;padding:10px 11px!important;border:1px solid #e3dce8;border-radius:9px;background:#fff;color:#302837;cursor:pointer;transition:border-color .15s,background .15s}
.placement-picker .placement-option:has(input:checked){border-color:#9b72b0;background:#faf6fc}
.placement-picker .placement-option input{width:16px;height:16px;margin:1px 0 0;accent-color:#80509a}
.placement-option>span{display:grid;gap:4px;min-width:0}
.placement-option b{color:#302837;font-size:13px;font-weight:700}
.placement-option small{color:#655b6b;font-size:11px;line-height:1.45}
.placement-option code{grid-column:2;color:#80678e;font-size:10px;overflow-wrap:anywhere}
.placement-picker-foot{margin:10px 0 0;color:#655b6b;font-size:11px;line-height:1.55}
.placement-picker.is-empty{display:grid;gap:4px;padding:12px 0;color:#655b6b}
.placement-picker.is-empty b{color:#302837;font-size:14px}
@media(max-width:680px){.placement-options{grid-template-columns:1fr}.placement-picker-head{gap:8px}.placement-picker-head span{max-width:32em}}

.placement-host{min-width:0;width:100%}.placement-host .placement-picker{width:100%}

/* Keep cloud failures visible as a notice; never hide the site while it retries. */
body.cloud-data-unavailable #backend-alert { display: block; margin: 0; padding: 20px 24px; font-size: 14px; line-height: 1.7; }

/* Hide the text called out in the homepage reference while keeping the visual artwork. */
.hero-orb > span,
.hero-art-caption,
.site-shell footer::before,
.intro-note,
.motion-marquee,
footer [data-copy="footer"],
footer [data-copy="email"] {
  display: none !important;
}

@media(max-width:680px){.admin-workspace .video-row.work-admin-row{grid-template-columns:43px minmax(0,1fr)}.admin-workspace .work-admin-row .work-admin-label{grid-column:2;min-width:0;padding-top:2px}.admin-workspace .work-admin-row .row-buttons{grid-column:1/-1}}
.frame-picker { display:grid; gap:12px; padding:16px; border:1px solid #ddd5e6; border-radius:12px; background:#faf8fc; color:#201b25; }
.frame-picker[hidden] { display:none; }
.frame-picker-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.frame-picker-head div { display:grid; gap:5px; }
.frame-picker-head b { font-size:15px; }
.frame-picker-head small,.frame-picker-status { color:#706978; font-size:12px; line-height:1.55; }
.frame-picker-head [data-frame-time] { flex:0 0 auto; padding:5px 9px; border-radius:999px; background:#eee8f3; color:#5b3a71; font:600 12px/1.2 ui-monospace,monospace; }
.frame-picker video { display:block; width:min(100%,760px); max-height:390px; aspect-ratio:16/9; margin:auto; border-radius:8px; background:#09080b; object-fit:contain; cursor:pointer; }
.frame-picker-empty { display:grid; min-height:180px; place-items:center; border-radius:8px; background:#17141b; color:#b9adbF; font-size:13px; }
.frame-picker-controls { display:flex; align-items:center; gap:8px; }
.frame-picker-controls button { min-height:42px; padding:0 12px; border:1px solid #d9d0e1; border-radius:8px; background:#fff; color:#33273c; font-size:12px; white-space:nowrap; }
.frame-picker-controls button.primary { background:#805a99; border-color:#805a99; color:#fff; }
.frame-picker-controls input[type=range] { flex:1 1 auto; min-width:80px; accent-color:#8251ff; }
.frame-picker [data-frame-result] { display:block; width:min(100%,760px); max-height:250px; margin:0 auto; border-radius:8px; background:#17141b; object-fit:contain; }
@media(max-width:680px) { .frame-picker-controls { flex-wrap:wrap; } .frame-picker-controls input[type=range] { order:5; flex-basis:100%; } .frame-picker-controls button[data-frame-generate] { flex:1 1 100%; } .frame-picker video { max-height:280px; } }
.article-asset-picker { overscroll-behavior:contain; }
@media(max-width:680px) { .article-asset-picker { padding:12px; } .article-asset-dialog { max-height:90dvh; padding:12px; } .article-picker-list { grid-template-columns:1fr; } }

/* Event section: clearer hierarchy, larger copy and hover previews. */
.events-overview .event-project-heading { display:none !important; }
.events-overview .event-panel-meta { display:none !important; }
.events-overview .event-category-summary { display:flex; align-items:center; flex-wrap:wrap; gap:6px 22px; padding:14px 0; font-size:18px; line-height:1.45; white-space:normal; }
.events-overview .event-category-summary > span { display:inline-block; }
.event-project-line { position:relative; min-height:52px; padding:12px 8px 12px 0; font-size:15px; overflow:visible; transition:color .22s,background .22s,padding .22s; }
.event-project-line > span { font-size:11px; }
.event-project-line > b { font-size:15px; transition:font-size .22s,transform .22s,color .22s; }
.event-project-line:hover > b,.event-project-line:focus-visible > b { color:#fff; font-size:18px; transform:translateX(3px); }
.event-project-preview,.timeline-preview { display:block; overflow:hidden; border:1px solid rgba(255,255,255,.55); border-radius:8px; background:linear-gradient(135deg,rgba(137,88,175,.36),rgba(22,15,28,.94)); box-shadow:0 12px 38px rgba(0,0,0,.5); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .22s,transform .28s,visibility .22s; }
.event-project-preview { position:absolute; z-index:8; right:32px; top:50%; width:88px; height:58px; transform:translateY(-50%) scale(.8); }
.event-project-preview img,.timeline-preview img { width:100%; height:100%; display:block; object-fit:cover; }
.event-project-line:hover .event-project-preview,.event-project-line:focus-visible .event-project-preview { opacity:1; visibility:visible; transform:translateY(-50%) scale(1); }
.event-category-name { font-size:clamp(25px,2.25vw,34px); }
.event-category-subtitle { font-size:clamp(18px,1.65vw,24px); }
.event-category-summary { font-size:16px; line-height:1.8; }
.event-category-heading p { font-size:16px; line-height:1.9; }
.event-category-heading h2 { font-size:clamp(42px,6vw,82px); }
.event-category-heading h2 small { display:inline-block; margin-left:.24em; color:#b6a9b9; font-size:.38em; font-weight:500; letter-spacing:.01em; vertical-align:baseline; }
.timeline--events .timeline-heading { margin-bottom:28px; }
.timeline--events .timeline-heading h2 { font-size:clamp(34px,4vw,52px); }
.timeline--events .timeline-list { width:min(100%,1280px); max-width:1280px; }
.timeline--events .timeline-item { grid-template-columns:120px minmax(0,1fr) 156px auto; gap:14px; min-height:58px; padding:7px 0; transition:padding-block .28s ease,background-color .28s ease,box-shadow .28s ease; }
.timeline--events .timeline-item:hover,.timeline--events .timeline-item:focus-within { z-index:3; min-height:86.4px; padding-block:0; background:rgba(16,13,19,.92); box-shadow:0 12px 28px rgba(0,0,0,.36); }
.timeline--events .timeline-item time { font-size:12px; }
.timeline--events .timeline-item h3 { font-size:clamp(17px,1.35vw,20px); transition:font-size .22s,color .22s; }
.timeline--events .timeline-item p { font-size:14px; line-height:1.75; }
.timeline--events .timeline-item button { font-size:13px; }
.timeline--events .timeline-preview { justify-self:end; width:40px; height:27px; transform:none; opacity:1; visibility:visible; transition:width .28s ease,height .28s ease,box-shadow .28s ease; }
.timeline--events .timeline-preview img { transform:none; }
.timeline--events .timeline-item:hover .timeline-preview,.timeline--events .timeline-item:focus-within .timeline-preview { width:144px; height:86.4px; transform:none; }
.timeline--events .timeline-item:hover .timeline-preview img,.timeline--events .timeline-item:focus-within .timeline-preview img { width:100%; height:111.111%; max-width:none; object-fit:cover; }
.timeline--events .timeline-item:hover h3,.timeline--events .timeline-item:focus-within h3 { color:#f0d5ff; font-size:clamp(24px,1.9vw,30px); }
.timeline--events .timeline-item:hover p,.timeline--events .timeline-item:focus-within p { font-size:clamp(16px,1.25vw,20px); line-height:1.6; }
.timeline--events .timeline-item button:hover { color:#fff; transform:translateX(3px); }
.event-detail h2 { font-size:clamp(40px,6vw,82px); }
.event-detail header > p:not(.eyebrow),.event-detail-copy { font-size:16px; line-height:1.9; }
@media(max-width:760px){
  .timeline--events .timeline-item,
  .timeline--events .timeline-item:hover,
  .timeline--events .timeline-item:focus-within { grid-template-columns:minmax(58px,18vw) minmax(0,1fr) 48px; gap:7px; min-height:0; padding-block:8px; }
  .timeline--events .timeline-item time { grid-column:1; grid-row:1; font-size:10px; }
  .timeline--events .timeline-item > div { grid-column:2; grid-row:1; min-width:0; }
  .timeline--events .timeline-item h3,
  .timeline--events .timeline-item:hover h3,
  .timeline--events .timeline-item:focus-within h3 { overflow:hidden; font-size:clamp(12px,3.2vw,14px); line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
  .timeline--events .timeline-item p,
  .timeline--events .timeline-item:hover p,
  .timeline--events .timeline-item:focus-within p { overflow:hidden; margin-top:3px; font-size:clamp(10px,2.7vw,12px); line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
  .timeline--events .timeline-preview,
  .timeline--events .timeline-item:hover .timeline-preview,
  .timeline--events .timeline-item:focus-within .timeline-preview { grid-column:3; grid-row:1; justify-self:end; width:48px; height:32px; aspect-ratio:3/2; }
  .timeline--events .timeline-item button { display:none; }
  .event-category-panel { box-sizing:border-box; min-width:0; padding-inline:10px; }
  .event-category-panel.is-active,
  .event-category-panel:not(.is-active) { transform:none !important; }
  .event-category-panel.is-active::after { inset:8px; }
  .events-overview .event-category-subtitle { display:none; }
  .event-category-summary,.event-category-heading p { font-size:15px; }
}

.events-overview .event-panel-meta { font-size:10px; }
.events-overview .event-category-index { font-size:12px; }
.events-overview .event-category-more { font-size:13px; }
.event-card-copy strong { font-size:clamp(19px,2.2vw,28px); transition:font-size .24s,transform .24s; }
.event-card-copy span { font-size:14px; line-height:1.75; }
.event-card:hover .event-card-copy strong,.event-card:focus-visible .event-card-copy strong { font-size:clamp(22px,2.7vw,34px); transform:translateY(-3px); }
.event-card:hover .art,.event-card:focus-visible .art { transform:translate3d(var(--drift-x,0px),var(--drift-y,0px),0) scale(1.07); }

/* Compact, predictable mobile shell for the embedded portfolio pages. */
@media (max-width: 760px) {
  .site-shell:has(#work.template-host) .site-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
    min-height: 0 !important;
    padding: 8px 14px 4px !important;
  }
  .site-shell:has(#work.template-host) .site-header .wordmark {
    min-height: 20px;
    gap: 8px;
    font-size: 12px;
  }
  .site-shell:has(#work.template-host) .mark-orbit { width: 16px; }
  .site-shell:has(#work.template-host) #category-nav {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(36px, auto));
    width: 100%;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    gap: 1px 6px !important;
    overflow: visible !important;
    transform: none !important;
  }
  .site-shell:has(#work.template-host) .category-link {
    min-width: 0;
    min-height: 36px;
    padding: 3px 4px !important;
    font-size: 13px !important;
  }
  .site-shell:has(#work.template-host) .category-name {
    min-height: 1.1em;
    font-size: clamp(12px, 3.45vw, 14px);
    line-height: 1.1;
  }
  .site-shell:has(#work.template-host) .category-english {
    margin-top: 2px;
    font-size: clamp(7px, 1.8vw, 8px);
    line-height: 1.1;
  }
}
@media (hover: none) and (max-width: 760px) {
  .site-shell:has(#work.template-host) .category-link:hover {
    transform: none;
    box-shadow: none;
    text-shadow: none;
  }
}

/* Final phone corrections requested in the review deck. All changes stay below phone breakpoints. */
@media (max-width: 699px) {
  /* Phone hero: lift the lead copy and keep it clear of the decorative orb. */
  .intro { grid-template-columns: minmax(0,1fr); align-items: start; gap: 10px; padding: 22px 0 24px; }
  .intro h1 { grid-column: 1; grid-row: 2; max-width: 100%; font-size: clamp(34px, 9vw, 40px); line-height: 1.08; letter-spacing: -.06em; text-wrap: pretty; }
  .intro-note { grid-column: 1; grid-row: 3; max-width: 100%; font-size: 13px; }
  .hero-art { grid-column: 1; grid-row: 4; justify-self: center; align-self: start; width: min(72vw, 270px); margin-top: 8px; }
  .hero-index { grid-column: 1; grid-row: 5; }

  #content-template[data-mobile-loading] { opacity: 0; pointer-events: none; }
  #content-template { transition: opacity .18s ease; }

  .timeline--events .timeline-item { cursor: pointer; touch-action: manipulation; }
  .timeline--events .timeline-item:focus-visible { outline: 2px solid #c7a4dc; outline-offset: 2px; }
  .event-detail h2,
  #player .work-detail-header h2 {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(19px, 5.6vw, 23px);
    line-height: 1.2;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-shell #category-nav .category-link,
  .site-shell:has(#work.template-host) #category-nav .category-link,
  .site-shell #category-nav .category-link.active,
  .site-shell:has(#work.template-host) #category-nav .category-link.active {
    min-height: 40px;
    height: 40px;
    padding: 3px 4px !important;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
  }
  .site-shell #category-nav .category-link.active,
  .site-shell:has(#work.template-host) #category-nav .category-link.active {
    background: rgba(112,64,199,.22);
    box-shadow: inset 0 0 0 1px rgba(196,164,255,.22);
  }
  .site-shell #category-nav .category-name,
  .site-shell:has(#work.template-host) #category-nav .category-name {
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.05;
    white-space: nowrap;
  }
  .site-shell #category-nav .category-english,
  .site-shell:has(#work.template-host) #category-nav .category-english { display: none; }

  /* Compact the event timeline rows and keep the thumbnail on the right. */
  .timeline--events .timeline-item,
  .timeline--events .timeline-item:hover,
  .timeline--events .timeline-item:focus-within {
    grid-template-columns: minmax(0,1fr) 50px;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    min-height: 0;
    padding-block: 10px;
  }
  .timeline--events .timeline-item time { grid-column: 1; grid-row: 1; font-size: 9px; }
  .timeline--events .timeline-item > div { grid-column: 1; grid-row: 2; min-width: 0; }
  .timeline--events .timeline-item h3,
  .timeline--events .timeline-item:hover h3,
  .timeline--events .timeline-item:focus-within h3 {
    overflow: hidden;
    font-size: clamp(11px, 2.7vw, 12px);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .timeline--events .timeline-item p,
  .timeline--events .timeline-item:hover p,
  .timeline--events .timeline-item:focus-within p {
    overflow: hidden;
    margin-top: 2px;
    font-size: clamp(9px, 2.3vw, 10px);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .timeline--events .timeline-preview,
  .timeline--events .timeline-item:hover .timeline-preview,
  .timeline--events .timeline-item:focus-within .timeline-preview {
    grid-column: 2; grid-row: 1 / 3; justify-self: end;
    width: 50px; height: 34px; aspect-ratio: 3 / 2;
  }
  .timeline--events .timeline-item button { display: block; grid-column: 2; grid-row: 1 / 3; justify-self: end; z-index: 2; width: 24px; min-height: 34px; overflow: hidden; font-size: 0; }
  .timeline--events .timeline-item button::after { content: '↗'; font-size: 12px; }

  .events-overview .event-category-panel {
    min-height: clamp(250px, 68vw, 300px);
    max-height: 320px;
    padding: 12px 12px 10px;
    overflow: hidden;
  }
  .events-overview .event-category-subtitle,
  .events-overview .event-category-summary { display: none; }
  .events-overview .event-category-open { padding-block: 7px; }
  .events-overview .event-category-name { font-size: clamp(13px, 3.3vw, 16px); }
  .events-overview .event-project-heading { margin-top: 7px; font-size: 9px; }
  .events-overview .event-project-line { min-height: 32px; padding-block: 5px; font-size: 10px; }
  .events-overview .event-project-line > b { font-size: 10px; line-height: 1.2; }
  .events-overview .event-project-line:nth-child(n+4) { display: none; }
  .events-overview .event-category-more { min-height: 28px; padding-block: 4px; }
}

/* Mobile-only corrections from the handset review deck. Keep all desktop rules above intact. */
@media (max-width: 699px) {
  /* Keep the active category pill the same footprint as its siblings. */
  .site-shell #category-nav .category-link,
  .site-shell:has(#work.template-host) #category-nav .category-link {
    box-sizing: border-box;
    transform: none !important;
  }
  .site-shell #category-nav .category-link.active,
  .site-shell:has(#work.template-host) #category-nav .category-link.active {
    min-width: 0;
    min-height: 48px;
    box-shadow: inset 0 0 0 1px rgba(196,164,255,.2);
  }

  /* Mobile filters stay in normal horizontal text and can be swiped when needed. */
  .filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 16px 12px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-buttons button {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    font-size: clamp(11px, 3vw, 13px);
  }

  /* On phones, event collections follow desktop left-to-right order vertically. */
  .film-wall.events-overview {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 14px 16px 28px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .events-overview .event-category-panel {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: clamp(420px, 122vw, 540px);
    padding: 16px 14px 14px;
    transform: none !important;
    scroll-snap-align: none;
  }
  .events-overview .event-category-panel::after { inset: 8px; }
  .events-overview .event-category-open { gap: 8px; padding: 10px 0; }
  .events-overview .event-category-index { font-size: 10px; }
  .events-overview .event-category-title { min-width: 0; gap: 7px; }
  .events-overview .event-category-name {
    min-width: 0;
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.15;
    white-space: nowrap;
  }
  .events-overview .event-category-subtitle {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(11px, 2.8vw, 14px);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .events-overview .event-category-summary {
    gap: 5px 12px;
    padding: 9px 0 10px;
    font-size: clamp(11px, 2.9vw, 13px);
    line-height: 1.45;
  }
  .events-overview .event-project-line { min-height: 42px; padding: 9px 4px 9px 0; font-size: 12px; }
  .events-overview .event-project-line > b { font-size: 12px; line-height: 1.35; }
  .events-overview .event-project-line > span { font-size: 10px; }
  .events-overview .event-category-more { min-height: 36px; padding-block: 8px; font-size: 11px; }
  .event-card-copy { inset: auto 12px 12px; gap: 3px; }
  .event-card-copy strong { font-size: clamp(13px, 3.7vw, 16px); line-height: 1.2; }
  .event-card-copy span { font-size: clamp(10px, 2.8vw, 12px); line-height: 1.45; }
  .event-card:hover .event-card-copy strong,
  .event-card:focus-visible .event-card-copy strong { font-size: clamp(13px, 3.7vw, 16px); transform: none; }
}

/* Keep mobile category, event and timeline corrections after all legacy mobile overrides. */
@media (max-width: 699px) {
  .site-shell #category-nav .category-link,
  .site-shell:has(#work.template-host) #category-nav .category-link,
  .site-shell #category-nav .category-link.active,
  .site-shell:has(#work.template-host) #category-nav .category-link.active {
    box-sizing: border-box; height: 40px; min-height: 40px; padding: 3px 4px !important;
    border-radius: 12px; transform: none !important; box-shadow: none;
  }
  .site-shell #category-nav .category-link.active,
  .site-shell:has(#work.template-host) #category-nav .category-link.active { background: rgba(112,64,199,.22); box-shadow: inset 0 0 0 1px rgba(196,164,255,.22); }
  .site-shell #category-nav .category-name,
  .site-shell:has(#work.template-host) #category-nav .category-name { font-size: clamp(11px,3vw,13px); line-height: 1.05; white-space: nowrap; }
  .site-shell #category-nav .category-english,
  .site-shell:has(#work.template-host) #category-nav .category-english { display: none; }

  .timeline--events .timeline-item,
  .timeline--events .timeline-item:hover,
  .timeline--events .timeline-item:focus-within { grid-template-columns:minmax(0,1fr) 50px; grid-template-rows:auto auto; gap:4px 10px; min-height:0; padding-block:10px; }
  .timeline--events .timeline-item time { grid-column:1; grid-row:1; font-size:9px; }
  .timeline--events .timeline-item > div { grid-column:1; grid-row:2; min-width:0; }
  .timeline--events .timeline-item h3,
  .timeline--events .timeline-item:hover h3,
  .timeline--events .timeline-item:focus-within h3 { overflow:hidden; font-size:clamp(11px,2.7vw,12px); line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
  .timeline--events .timeline-item p,
  .timeline--events .timeline-item:hover p,
  .timeline--events .timeline-item:focus-within p { overflow:hidden; margin-top:2px; font-size:clamp(9px,2.3vw,10px); line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
  .timeline--events .timeline-preview,
  .timeline--events .timeline-item:hover .timeline-preview,
  .timeline--events .timeline-item:focus-within .timeline-preview { grid-column:2; grid-row:1 / 3; justify-self:end; width:50px; height:34px; aspect-ratio:3/2; }
  .timeline--events .timeline-item button { display:block; grid-column:2; grid-row:1 / 3; justify-self:end; z-index:2; width:24px; min-height:34px; overflow:hidden; font-size:0; }
  .timeline--events .timeline-item button::after { content:'↗'; font-size:12px; }

  .events-overview .event-category-panel { min-height:clamp(250px,68vw,300px); max-height:320px; padding:12px 12px 10px; overflow:hidden; }
  .events-overview .event-category-subtitle,
  .events-overview .event-category-summary { display:none; }
  .events-overview .event-category-open { padding-block:7px; }
  .events-overview .event-category-name { font-size:clamp(13px,3.3vw,16px); }
  .events-overview .event-project-heading { margin-top:7px; font-size:9px; }
  .events-overview .event-project-line { min-height:32px; padding-block:5px; font-size:10px; }
  .events-overview .event-project-line > b { font-size:10px; line-height:1.2; }
  .events-overview .event-project-line.muted { display:block; width:100%; min-height:30px; padding:6px 0; overflow:hidden; font-size:10px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
  .events-overview .event-art-word { font-size:clamp(44px,13vw,56px); opacity:.35; }
  .events-overview .event-project-line:nth-child(n+4) { display:none; }
  .events-overview .event-category-more { min-height:28px; padding-block:4px; }
}

@media (max-width: 699px) {
  .intro h1 { position: relative; top: clamp(76px, 24vw, 96px); }
}

/* Event overview: show all four categories together in a fixed desktop grid. */
#events-rail-bar .rail-counter,#events-rail-bar .rail-hint{display:none!important}
.event-project-extra{display:none!important}
.event-category-panel{max-height:min(80vh,900px)}
.event-project-list{min-height:0;overflow:hidden}
.events-overview{overscroll-behavior-x:auto}

/* Event overview: break out of the centered content cap so four equal columns span the screen. */
@media (min-width: 761px) {
  .site-shell:has(#work.events-overview) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(18px, 2vw, 40px);
  }
  #work.events-overview {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.work-exit-backdrop{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:20px;background:rgba(12,10,17,.58);backdrop-filter:blur(8px)}
.work-exit-dialog{width:min(480px,100%);padding:26px;border:1px solid rgba(142,105,165,.32);border-radius:20px;background:#fff;color:#211a27;box-shadow:0 24px 80px rgba(0,0,0,.3)}
.work-exit-dialog h3{margin:0 0 10px;font-size:20px}
.work-exit-dialog p{margin:0;color:#706779;line-height:1.65}
.work-exit-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}
@media(max-width:560px){.work-exit-actions{display:grid;grid-template-columns:1fr}.work-exit-actions button{width:100%}}

/* AI+ Events opening atmosphere. The image stays above the existing event archive. */
.events-atmosphere-hero {
  position: relative;
  display: none !important;
  isolation: isolate;
  z-index: 3;
  width: 100%;
  aspect-ratio: 1.5077;
  overflow: visible;
  margin: 0 0 clamp(26px, 4vw, 58px);
  background: #09070d;
}
body:has(#category-nav [data-category="events"].active) .events-atmosphere-hero:not([hidden]) {
  display: block !important;
}
.events-atmosphere-hero[hidden] { display: none !important; }
.events-atmosphere-hero > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: events-atmosphere-zoom 12s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}
.events-insolo-entry {
  position: absolute;
  right: clamp(20px, 5.5vw, 88px);
  bottom: clamp(22px, 5vw, 76px);
  z-index: 5;
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: clamp(210px, 25vw, 360px);
  padding: clamp(12px, 1.7vw, 22px) clamp(17px, 2.3vw, 30px);
  overflow: hidden;
  color: #fff;
  text-align: right;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 2px;
  background: linear-gradient(112deg, rgba(12,9,17,.48), rgba(12,9,17,.84));
  box-shadow: 0 16px 52px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.events-insolo-entry::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 32%;
  transform: skewX(-20deg) translateX(-180%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .8s ease;
}
.events-insolo-entry:hover,
.events-insolo-entry:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(224,190,255,.9);
  background: linear-gradient(112deg, rgba(27,15,39,.62), rgba(12,9,17,.91));
  box-shadow: 0 22px 64px rgba(0,0,0,.4), 0 0 34px rgba(176,113,231,.19), inset 0 0 0 1px rgba(255,255,255,.1);
  outline: none;
}
.events-insolo-entry:hover::before,
.events-insolo-entry:focus-visible::before { transform: skewX(-20deg) translateX(620%); }
.events-insolo-entry__eyebrow {
  color: rgba(232,213,246,.76);
  font: 700 10px/1.3 "Instrument Sans", sans-serif;
  letter-spacing: .19em;
}
.events-insolo-entry__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 800 clamp(39px, 6.2vw, 86px)/.98 "Gabarito", "Instrument Sans", sans-serif;
  letter-spacing: -.055em;
  text-shadow: 0 3px 26px rgba(0,0,0,.3);
}
.events-insolo-entry__title i {
  display: grid;
  place-items: center;
  width: clamp(30px, 3.2vw, 44px);
  height: clamp(30px, 3.2vw, 44px);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  font: 500 18px/1 "Instrument Sans", sans-serif;
  transition: transform .35s ease, background .35s ease;
}
.events-insolo-entry:hover .events-insolo-entry__title i { transform: translate(3px,-3px); background: rgba(255,255,255,.14); }
.events-insolo-entry__note { color: rgba(255,255,255,.82); font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .06em; }
.events-atmosphere-hero.motion-visible > img { animation-play-state: running; }
.site-shell:has(#work.events-overview) { position: relative; }
.events-atmosphere-light {
  position: absolute;
  top: var(--events-atmosphere-top, 0px);
  left: 0;
  width: 100%;
  height: var(--events-atmosphere-span, 100%);
  z-index: 4;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .9;
}
.events-atmosphere-light[hidden] { display: none !important; }
.events-atmosphere-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 57% 43%, rgba(255, 177, 68, .28), transparent 31%),
    radial-gradient(ellipse at 77% 37%, rgba(151, 74, 255, .25), transparent 34%),
    radial-gradient(ellipse at 91% 48%, rgba(50, 190, 255, .20), transparent 30%);
  opacity: .88;
  animation: events-atmosphere-glow 6s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform, opacity, filter;
}
.events-atmosphere-sweep {
  top: 0;
  position: absolute;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 220, 170, .27) 47%, rgba(174, 112, 255, .22) 51%, rgba(74, 203, 255, .13) 54%, transparent 60%);
  animation: events-atmosphere-sweep 8.5s linear infinite alternate;
  animation-play-state: paused;
  will-change: transform, opacity;
}
.events-atmosphere-light:not([hidden]) .events-atmosphere-glow,
.events-atmosphere-light:not([hidden]) .events-atmosphere-sweep { animation-play-state: running; }
@keyframes events-atmosphere-zoom {
  0% { transform: scale(1) translate3d(-.35%, -.25%, 0); }
  100% { transform: scale(1.2) translate3d(.45%, .4%, 0); }
}
@keyframes events-atmosphere-glow {
  0% { opacity: .68; filter: brightness(.9); transform: translate3d(-2.5%, -1.2%, 0) scale(.97); }
  100% { opacity: 1; filter: brightness(1.45); transform: translate3d(2.5%, 1.4%, 0) scale(1.05); }
}
@keyframes events-atmosphere-sweep {
  0% { transform: translateX(-24%); }
  100% { transform: translateX(24%); }
}

/* Event cards size to their content so the call-to-action follows the final project row. */
.events-overview > .event-category-panel {
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: stretch;
}
.events-overview .event-project-list { flex: 0 0 auto; padding-bottom: 0; }
.events-overview .event-category-more {
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,.24);
  font-size: 12px;
}
.events-overview .event-panel-index { right: auto; left: 26px; bottom: 20px; }
.events-overview .event-art-word { top: 15%; }
@media (max-width: 699px) {
  .events-overview .event-category-panel { min-height: 0; }
  .events-overview .event-category-more { min-height: 36px; padding-top: 5px; }
  .events-overview .event-panel-index { left: 14px; bottom: 16px; }
  .events-overview .event-art-word { top: 12%; }
}
@media (max-width: 760px) {
  .events-atmosphere-hero { aspect-ratio: 1.5077; margin-bottom: 26px; }
  .events-atmosphere-hero > img { object-position: center; animation-name: events-atmosphere-zoom-mobile; }
  .events-insolo-entry { right: 14px; bottom: 14px; min-width: 0; padding: 10px 13px; }
  .events-insolo-entry__eyebrow { font-size: 8px; }
  .events-insolo-entry__title { gap: 8px; font-size: clamp(32px, 10vw, 50px); }
  .events-insolo-entry__title i { width: 27px; height: 27px; font-size: 14px; }
  .events-insolo-entry__note { font-size: 10px; }
  .events-atmosphere-glow { opacity: .48; }
  .events-atmosphere-sweep { opacity: .7; }
  @keyframes events-atmosphere-zoom-mobile {
    0% { transform: scale(1) translate3d(-.25%, -.2%, 0); }
    100% { transform: scale(1.2) translate3d(.35%, .3%, 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .events-atmosphere-hero > img,
  .events-atmosphere-glow,
  .events-atmosphere-sweep { animation: none !important; }
  .events-atmosphere-hero > img { transform: none; }
}
