:root {
  color-scheme: dark;
  --ink: #f5f1ea;
  --muted: #9c9690;
  --surface: #0b0a0a;
  --panel: #171414;
  --ease: cubic-bezier(.22, .72, .24, 1);
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", "Songti SC", STSong, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--surface); }
body { color: var(--ink); font-family: var(--sans); }
button { font: inherit; }
[hidden] { display: none !important; }
.share-card-probe { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: .001; pointer-events: none; }
.share-card-probe img { display: block; width: 640px; height: 640px; }

.page-shell {
  isolation: isolate;
  min-height: 100svh;
  background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.025), transparent 38%), var(--surface);
  position: relative;
  overflow: hidden;
}
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  z-index: 40;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-pill {
  min-height: 34px;
  padding: 0 14px;
  color: #d7d2cc;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: #272423;
  font-size: 13px;
  line-height: 32px;
}
.header-pill:hover { color: white; background: #34302e; }
.header-pill.is-static { cursor: default; }

.intro {
  position: absolute;
  z-index: 30;
  top: clamp(92px, 13vh, 124px);
  left: 50%;
  width: min(690px, calc(100vw - 40px));
  text-align: center;
  transform: translateX(-50%);
  transition: top .82s var(--ease), left .82s var(--ease), width .82s var(--ease), transform .82s var(--ease);
}
.intro-line { width: 72px; height: 1px; margin: 0 auto 24px; background: #3e3a38; }
.eyebrow { margin: 0; color: #77716d; font-size: 10px; font-weight: 650; letter-spacing: .21em; }
.intro h1 { margin: 12px 0 16px; font-family: var(--serif); font-size: clamp(38px,4.2vw,58px); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.lede { max-width: 600px; margin: 0 auto; color: #aca6a0; font-size: 15px; line-height: 1.7; }
.presenter { margin: 12px 0 0; color: #6f6a66; font-size: 10px; font-weight: 650; letter-spacing: .09em; }
.page-shell:not(.has-poster-selection) .lede,
.page-shell:not(.has-poster-selection) .presenter { display: none; }
.page-shell:not(.has-poster-selection) .intro h1 { margin-bottom: 0; }
.has-poster-selection .intro { top: 50%; left: clamp(42px,8vw,144px); width: min(370px,31vw); text-align: left; transform: translateY(-56%); }
.has-poster-selection .intro-line, .has-poster-selection .lede { margin-left: 0; }

.gallery-stage { position: absolute; top: clamp(290px,36vh,390px); bottom: 56px; left: 50%; width: 1040px; transform: translateX(-50%); }
.poster-shell {
  --card-w: 228px;
  --card-h: 322px;
  position: absolute;
  z-index: var(--poster-z);
  top: 50%; left: 50%;
  width: var(--card-w); height: var(--card-h);
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  transform: translate(var(--poster-x),var(--poster-y)) rotate(var(--poster-r));
  transform-origin: 50%;
  transition: transform .86s var(--ease), width .82s var(--ease), height .82s var(--ease), top .86s var(--ease), left .86s var(--ease), opacity .42s ease, filter .42s ease;
  transition-delay: calc(var(--poster-z) * 12ms);
  will-change: transform;
}
.poster-card { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 15px; background: #181616; box-shadow: 0 20px 50px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.09); transition: transform .36s var(--ease), border-radius .72s var(--ease), box-shadow .72s var(--ease); }
.poster-card img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; transform: translateZ(0); }
.poster-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, rgba(255,255,255,.04), transparent 40%, rgba(0,0,0,.1)); }
.poster-number { position: absolute; top: 11px; right: 12px; display: grid; place-items: center; min-width: 28px; height: 28px; opacity: 0; color: white; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(8,7,7,.52); backdrop-filter: blur(8px); font-family: var(--serif); font-size: 11px; transition: opacity .22s; }
.poster-shell:hover .poster-card, .poster-shell:focus-visible .poster-card { transform: translateY(-5px) scale(1.008); box-shadow: 0 28px 60px rgba(0,0,0,.42); }
.poster-shell:hover .poster-number, .poster-shell:focus-visible .poster-number { opacity: 1; }
.poster-shell:focus-visible { outline: 2px solid #eee9e1; outline-offset: 8px; border-radius: 15px; }
.gallery-stage.has-selection { inset: 56px 0 54px; width: auto; transform: none; }
.gallery-stage.has-selection .poster-shell[data-selected="true"] { --selected-h: min(76svh,700px,calc(100svh - 150px)); z-index: 20; top: 50%; left: 68%; width: calc(var(--selected-h) * .707); height: var(--selected-h); transform: translate(-50%,-50%) rotate(0); transition-delay: 0s; }
.gallery-stage.has-selection .poster-shell[data-selected="true"] .poster-card { border-radius: 19px; box-shadow: 0 38px 84px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.16); }
.gallery-stage.has-selection .poster-shell[data-selected="false"] { z-index: calc(21 + var(--poster-z)); top: 75%; left: 22%; transform: translate(var(--mini-x),-50%) scale(.34) rotate(var(--mini-r)); }
.gallery-stage.has-selection .poster-shell[data-selected="false"] .poster-shade { opacity: .18; }

.mobile-presentation { display: none; }
.page-footer { position: absolute; z-index: 30; left: 22px; right: 22px; bottom: 16px; display: flex; justify-content: space-between; color: #4b4643; font-size: 9px; font-weight: 600; letter-spacing: .12em; }

.viewer, .video-layer { position: fixed; inset: 0; z-index: 100; display: grid; background: rgba(7,6,6,.97); animation: fade-in .35s var(--ease) both; }
.viewer { grid-template-rows: auto minmax(0,1fr) auto; backdrop-filter: blur(18px); }
.viewer.is-closed, .video-layer.is-closed { visibility: hidden; pointer-events: none; opacity: 0; animation: none; }
@keyframes fade-in { from { opacity: 0; } }
.viewer-topbar, .viewer-controls { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-color: rgba(255,255,255,.08); }
.viewer-topbar { border-bottom: 1px solid rgba(255,255,255,.08); }
.viewer-topbar p { margin: 0 0 4px; color: #716b67; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.viewer-topbar h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.viewer-actions { display: flex; align-items: center; gap: 22px; color: #77716d; font-size: 11px; letter-spacing: .08em; }
.viewer button, .video-topbar button { color: #ddd8d1; cursor: pointer; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: #252221; }
.viewer button:hover:not(:disabled), .video-topbar button:hover { background: #373230; }
.viewer-actions button { min-height: 36px; padding: 0 13px; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 18px 24px; overflow: hidden; touch-action: pan-y pinch-zoom; contain: layout paint; }
.slide-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 10px; background: #111; box-shadow: 0 22px 64px rgba(0,0,0,.42); will-change: transform, opacity; }
.slide-image.enter-next { animation: slide-next .2s var(--ease) both; }
.slide-image.enter-prev { animation: slide-prev .2s var(--ease) both; }
@keyframes slide-next { from { opacity: .35; transform: translate3d(28px,0,0); } }
@keyframes slide-prev { from { opacity: .35; transform: translate3d(-28px,0,0); } }
.poster-placeholder { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 128px); border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.viewer-controls { border-top: 1px solid rgba(255,255,255,.08); }
.viewer-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 108px; min-height: 42px; padding: 0 16px; font-size: 12px; }
.viewer-controls button:disabled { cursor: not-allowed; opacity: .3; }
.viewer-controls em { font-style: normal; }
.video-fab { position: absolute; z-index: 8; right: 7%; bottom: 7%; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 14px; color: #171514 !important; border-color: rgba(255,255,255,.28) !important; border-radius: 999px !important; background: rgba(243,239,232,.94) !important; font-size: 12px; font-weight: 650; box-shadow: 0 16px 44px rgba(0,0,0,.42); }
.play-triangle { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #171514; }
.video-layer { z-index: 150; grid-template-rows: auto minmax(0,1fr); background: rgba(5,5,5,.985); }
.video-topbar { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.video-topbar span { color: #736d68; font-size: 9px; letter-spacing: .16em; }
.video-topbar h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.video-topbar button { min-height: 36px; padding: 0 13px; }
.video-stage { display: grid; place-items: center; min-height: 0; padding: 22px; }
.video-stage video { display: block; max-width: 100%; max-height: 100%; border-radius: 12px; background: black; box-shadow: 0 30px 90px rgba(0,0,0,.5); }

@media (max-width: 800px) {
  .page-shell { height: 100svh; min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 70% 10%,rgba(205,13,102,.1),transparent 30%),radial-gradient(circle at 20% 64%,rgba(33,150,222,.07),transparent 26%),var(--surface); }
  .site-header { position: fixed; top: max(12px,env(safe-area-inset-top)); left: 14px; right: 14px; z-index: 90; pointer-events: none; }
  .site-header > * { pointer-events: auto; }
  .intro, .gallery-stage, .page-footer, .header-actions { display: none; }
  .mobile-presentation { display: block; position: relative; width: 100%; height: 100svh; overflow: hidden; }
  .mobile-event-title { position: absolute; top: calc(76px + env(safe-area-inset-top)); left: 18px; z-index: 24; width: min(340px,calc(100vw - 36px)); margin: 0; color: #f2ede6; font-family: var(--serif); font-size: clamp(48px,14vw,62px); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
  .mobile-featured-poster { --featured-h: min(50svh,420px); position: absolute; z-index: 26; top: clamp(164px,22svh,190px); left: 50%; width: calc(var(--featured-h) * .707); height: var(--featured-h); padding: 0; cursor: pointer; border: 0; border-radius: 21px; background: transparent; transform: translateX(-50%); }
  .mobile-featured-card { display: block; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 21px; background: #171515; box-shadow: 0 32px 74px rgba(0,0,0,.5); }
  .mobile-featured-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mobile-open-icon { position: absolute; z-index: 3; right: 13px; bottom: 13px; display: grid; place-items: center; width: 42px; height: 42px; color: white; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; background: rgba(10,9,9,.7); backdrop-filter: blur(10px); }
  .mobile-fan { position: absolute; z-index: 42; right: 0; bottom: calc(8px + env(safe-area-inset-bottom)); left: 0; height: 180px; touch-action: pan-y; user-select: none; }
  .mobile-fan-card { --fan-w: 88px; --fan-h: 124px; position: absolute; top: 18px; left: 50%; z-index: var(--fan-z); width: var(--fan-w); height: var(--fan-h); padding: 0; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; background: #171515; box-shadow: 0 13px 30px rgba(0,0,0,.42); transform: translate(calc(-50% + var(--fan-x)),var(--fan-y)) rotate(var(--fan-r)); transform-origin: 50% 100%; transition: transform .38s var(--ease), border-color .22s, filter .22s; }
  .mobile-fan-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mobile-fan-card[data-active="true"] { transform: translate(calc(-50% + var(--fan-x)),calc(var(--fan-y) - 18px)) rotate(var(--fan-r)) scale(1.08); border-color: rgba(255,255,255,.54); }
  .mobile-fan-card[data-active="false"] { filter: saturate(.72) brightness(.76); }
  .viewer { height: 100svh; padding-top: env(safe-area-inset-top); backdrop-filter: none; background: #080707; }
  .viewer-topbar, .viewer-controls { padding: 12px 14px; }
  .viewer-topbar h2 { max-width: 210px; font-size: 20px; line-height: 1.1; }
  .viewer-actions { gap: 10px; font-size: 9px; }
  .viewer-stage { display: flex; align-items: center; min-height: 0; padding: 10px; overflow: auto; }
  .slide-image { width: 100%; max-height: 100%; border-radius: 9px; }
  .poster-placeholder { margin: auto; max-height: calc(100svh - 150px); }
  .viewer-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .viewer-controls button { min-width: 0; min-height: 50px; border-radius: 13px; }
  .video-fab { right: 18px; bottom: 18px; min-height: 44px; padding: 0 14px 0 12px; font-size: 10px; }
  .video-topbar { padding: 13px 14px; }
  .video-topbar h3 { max-width: 230px; font-size: 18px; }
  .video-stage { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
}

@media (max-width: 800px) and (max-height: 650px) {
  .mobile-event-title { top: calc(70px + env(safe-area-inset-top)); font-size: clamp(44px,13vw,50px); }
  .mobile-featured-poster { top: 154px; }
  .mobile-fan { height: 170px; }
}

@media (min-width: 801px) and (max-height: 760px) {
  .intro { top: 72px; }
  .intro h1 { margin: 8px 0 10px; font-size: 42px; }
  .gallery-stage { top: 280px; transform-origin: top; transform: translateX(-50%) scale(.86); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
