@font-face {
  font-family: Anton;
  src: url('/fonts/Anton.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url('/fonts/DMSans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0d0c;
  --panel: #141512;
  --gold: #e5bc75;
  --cream: #f4e8d1;
  --muted: #bdb9af;
  --border: #4b473c;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--ink) url('/art/urban-grain.svg'); color: var(--cream); font: 1rem/1.55 'DM Sans', system-ui, sans-serif; }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 10px 14px; background: var(--cream); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-bar, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
.site-bar { border-bottom: 1px solid var(--border); }
.wordmark { font: clamp(1.12rem, 2.5vw, 1.6rem)/1 var(--display); text-decoration: none; white-space: nowrap; }
.wordmark i { color: var(--gold); font: italic .76em Georgia, serif; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.back:hover, .help a:hover, .text-button:hover { color: var(--cream); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }

.entry { min-height: clamp(520px, 74svh, 820px); display: grid; place-items: center; padding: clamp(38px, 7vw, 94px) var(--gutter); background: radial-gradient(ellipse at 48% 40%, #68502a38 0%, transparent 68%); }
.entry-panel { width: min(100%, 520px); padding: clamp(22px, 5vw, 52px); border: 1px solid #7d6845; background: #121310; box-shadow: 0 28px 100px #0008; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.dot { flex: none; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.entry h1 { margin-top: 14px; font: clamp(3rem, 10vw, 5.8rem)/.95 var(--display); letter-spacing: -.025em; }
.entry h1 em { color: var(--gold); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.07em; }
.intro { margin-top: 21px; color: var(--muted); max-width: 35ch; }
#unlock { display: grid; gap: 10px; margin-top: 25px; }
#unlock label { font-size: .86rem; font-weight: 700; }
#code { min-height: 52px; width: 100%; padding: 11px 14px; color: var(--cream); background: var(--ink); border: 1px solid #777061; border-radius: 3px; font-size: 1rem; }
#code::placeholder { color: #aaa497; }
#code[aria-invalid='true'] { border-color: #ffac9d; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 15px; border: 1px solid #8a7858; border-radius: 3px; background: transparent; color: var(--cream); font-size: .91rem; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #29251b; }
.primary { background: var(--gold); color: #18120a; border-color: var(--gold); }
.primary:hover { background: #f1ce94; border-color: #f1ce94; }
.help { margin-top: 17px; font-size: .83rem; color: var(--muted); }
.help a { color: var(--gold); text-underline-offset: .16em; }
.message { margin-top: 3px; color: #ffc0b5; font-size: .89rem; }

@media (max-width: 360px) {
  .site-bar, .site-footer { padding-inline: 15px; }
}

.unveiling-page {
  --ink: #15141e;
  --panel: #1c1a29;
  --gold: #d3c7ff;
  --cream: #f7f3ff;
  --muted: #c0bcd1;
  --border: #514b67;
  --gutter: clamp(14px, 4vw, 42px);
  background: radial-gradient(ellipse at 50% 13rem, #28213c 0%, transparent 40rem), var(--ink);
}
.unveiling-page .site-bar,
.unveiling-page .site-footer { width: min(100%, 1080px); margin-inline: auto; }
/* Compact editorial lockup, using the homepage's established display type. */
.unveiling-page .site-bar { min-height: 94px; padding-block: 14px; flex-wrap: wrap; gap: 8px 20px; border-bottom-color: #b5a6d044; }
.unveiling-page .showcase-wordmark {
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  color: #f7f3ff;
  max-width: 100%;
  white-space: normal;
  text-decoration: none;
}
.showcase-wordmark-name {
  display: flex;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: .12em .16em;
  font: 400 clamp(1.875rem, 5vw, 2.375rem)/1 Anton, Impact, 'Arial Narrow', sans-serif;
  letter-spacing: 0;
}
.showcase-wordmark-by {
  align-self: center;
  margin: .08em .1em 0;
  padding-block: .2em;
  border-block: 1px solid currentColor;
  color: #d3c7ff;
  font-size: .35em;
  line-height: 1;
  letter-spacing: .08em;
}
.showcase-wordmark-signature {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: #c6bddb;
  font: 600 .625rem/1.25 'DM Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.showcase-wordmark-signature::before { content: ''; flex: none; width: 19px; height: 1px; background: #bda9e7; }
.showcase-wordmark:hover .showcase-wordmark-name { color: #dfd3ff; }
@media (max-width: 480px) {
  .unveiling-page .site-bar { min-height: 84px; padding-block: 11px; }
}
.unveiling-page .back { gap: 5px; font-size: .82rem; }
.unveiling-page .site-footer { justify-content: center; padding-block: 17px; font-size: .68rem; text-align: center; text-transform: uppercase; letter-spacing: .13em; }
.unveiling-page .site-footer span + span::before { content: '·'; margin-right: 14px; }
.unveiling-page main { padding: clamp(20px, 4vw, 42px) var(--gutter) clamp(32px, 6vw, 65px); }
.unveiling-page .button { border-radius: 5px; border-color: #73688d; }
.unveiling-page .button:hover { background: #332b47; }
.unveiling-page .primary { border-color: var(--gold); background: var(--gold); color: #241c34; }
.unveiling-page .primary:hover { background: #e3daff; border-color: #e3daff; }
.unveiling-page .text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--gold); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.premiere-shell {
  width: min(100%, 620px);
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 20px 65px #0b091265;
}
.premiere-stage {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(242px, 62vw, 339px);
  isolation: isolate;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #221d30;
}
.premiere-stage.is-open { border-radius: 15px; }
.premiere-media, .premiere-curtain { position: absolute; inset: 0; }
.premiere-media {
  background: radial-gradient(ellipse at 78% 12%, #6552864a, transparent 56%), linear-gradient(125deg,#191624,#39304a);
}
#cover-image,
#opening-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#opening-player { opacity: 0; }
.is-opening #opening-player { opacity: 1; }
.premiere-media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  background: linear-gradient(0deg,#110d19ee 0%,#130e1a65 47%,transparent 78%);
  pointer-events: none;
}
.premiere-curtain {
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg,#15112299 0%,#1812264d 53%,#18122614 100%),
    linear-gradient(0deg,#1c1727b3 0%,transparent 80%),
    url('/assets/showcase-legacy-in-motion-v1.webp') center / cover no-repeat,
    #221d30;
}
.premiere-curtain::after { position: absolute; inset: 14px; content: ''; border: 1px solid #d1c6f042; }
.is-open .premiere-curtain { visibility: hidden; }
.is-revealing .premiere-curtain { visibility: visible; animation: premiere-reveal .66s cubic-bezier(.21,.68,.26,1) both; }
@keyframes premiere-reveal { from { transform: translateX(0); } to { transform: translateX(102%); } }
@media (prefers-reduced-motion: reduce) {
  .is-revealing .premiere-curtain { visibility: hidden; animation: none; }
}
.premiere-invitation,
.premiere-credit { position: relative; padding: 23px clamp(22px, 5vw, 36px) 26px; }
.premiere-invitation { z-index: 5; }
.premiere-credit { z-index: 2; padding-top: 68px; pointer-events: none; }
.premiere-invitation .eyebrow,
.premiere-credit .eyebrow { display: block; color: #e8deff; font-size: .68rem; line-height: 1.45; overflow-wrap: anywhere; }
.premiere-invitation h1,
.premiere-credit h1 { margin-top: 8px; font-size: clamp(2.8rem, 11vw, 5rem); font-weight: 760; letter-spacing: -.075em; line-height: .94; overflow-wrap: anywhere; }
.premiere-invitation h1 span { color: #cbb8ff; }
.premiere-invitation #entry-intro { max-width: 34ch; margin-top: 12px; color: #e6def2; font-size: .9rem; line-height: 1.45; }
.premiere-credit h1 { font-size: clamp(2rem, 8.4vw, 4rem); }
.premiere-credit h1:focus { outline-offset: 3px; }
.premiere-controls { position: absolute; z-index: 3; top: 12px; right: 12px; left: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.premiere-controls .button { padding-inline: 10px; min-height: 44px; background: #1a1425ed; border-color: #d6c9ed8c; color: #fff5ff; font-size: .75rem; }
.premiere-controls .button:hover { background: #322749; }
#hero-media { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
#hero-media .film-player { width: 100%; height: 100%; margin: 0; object-fit: contain; pointer-events: auto; }
.premiere-stage.is-playing .premiere-credit { opacity: 0; }
.premiere-stage.is-playing .premiere-controls { visibility: hidden; }
.access-panel { padding: 20px clamp(17px, 4vw, 32px) 13px; border-top: 1px solid var(--border); }
.access-panel #unlock { margin: 0; }
.access-panel #code { background: #252138; border-color: #796d93; border-radius: 5px; }
.access-panel #code::placeholder { color: #c2bdd1; }
.access-panel #code[aria-invalid='true'] { border-color: #ffac9d; }
.access-panel .primary { justify-content: space-between; text-align: left; }
.access-panel .primary span { font-size: 1.15rem; }
.access-panel .help { margin: 8px 0 0; text-align: center; }
.access-panel .help a { display: inline-flex; align-items: center; min-height: 44px; }

.unveiling-page .showcase {
  --panel: #fffcf7;
  --cream: #30263a;
  --gold: #514078;
  --muted: #5d5263;
  --border: #cdc1d1;
  width: min(100%, 850px);
  margin: 17px auto 0;
  padding: clamp(13px, 3vw, 26px);
  border-radius: 12px;
  background: #f2eee8;
  color: var(--cream);
}
.unveiling-page .showcase .button { border-color: #a597b1; }
.unveiling-page .showcase .button:hover { background: #e9dff1; }
.unveiling-page .showcase .primary { background: var(--gold); border-color: var(--gold); color: #fffaf4; }
.unveiling-page .showcase .primary:hover { background: #3c2b5d; border-color: #3c2b5d; }
.unveiling-page .showcase .message { color: #8c352d; }
.unveiling-page .gallery-jump { display: flex; gap: 17px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.unveiling-page .gallery-jump a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--gold); font-weight: 700; text-underline-offset: .2em; }
.unveiling-page .gallery-note { max-width: 63ch; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.unveiling-page .collection { margin-top: 18px; }
.unveiling-page .collection-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.unveiling-page .collection h2 { font-size: clamp(1.25rem, 5vw, 1.62rem); font-weight: 760; letter-spacing: -.045em; }
.unveiling-page .film-list { display: grid; gap: 8px; }
.unveiling-page .film-card { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.unveiling-page .film-info { display: grid; gap: 9px; }
.unveiling-page .asset-name { font-size: .93rem; line-height: 1.35; overflow-wrap: anywhere; }
.unveiling-page .asset-size { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.unveiling-page .asset-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.unveiling-page .film-player { display: block; width: 100%; max-height: 74svh; margin-top: 9px; background: #100e18; }
.unveiling-page .photo-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(7px, 1.8vw, 14px); }
.unveiling-page .photo-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.unveiling-page .photo-view { display: block; position: relative; }
.unveiling-page .photo-card img { display: block; width: 100%; aspect-ratio: 1.24; object-fit: cover; background: #282138; }
.unveiling-page .photo-details { display: flex; flex-direction: column; align-items: start; flex: 1; gap: 2px; padding: 8px 8px 0; }
.unveiling-page .photo-details .asset-name { font-size: clamp(.72rem, 2.8vw, .9rem); }
.unveiling-page .photo-details .asset-size { font-size: .67rem; }
.unveiling-page .photo-details > .button { margin-top: auto; padding-inline: 0; min-height: 44px; border: 0; color: var(--gold); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.unveiling-page .showcase .photo-details > .button:hover { background: transparent; color: #392659; }
.unveiling-page .gallery-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 23px; padding-top: 8px; border-top: 1px solid var(--border); }
.unveiling-page .deadline { color: var(--muted); font-size: .77rem; }
@media (max-width: 480px) {
  .unveiling-page .photo-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .unveiling-page .site-footer { gap: 9px; }
  .unveiling-page .site-footer span + span::before { margin-right: 9px; }
}

/* Photo selection controls from version 41. */
.collection-kicker { color:var(--muted);font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:3px; }
.photo-selection { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;padding:12px 14px;border:1px solid var(--border);border-radius:5px;background:#fffcf7; }
.selection-options { display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px; }
.select-all { display:inline-flex;align-items:center;gap:9px;min-height:44px;font-weight:750;font-size:.84rem;cursor:pointer; }
.select-all input,.photo-select input { width:21px;height:21px;margin:0;accent-color:#514078;cursor:pointer;flex:none; }
#selection-count { font-size:.76rem;color:var(--muted); }
#clear-photo-selection { font-size:.76rem; }
#download-selected { min-height:46px;font-size:.83rem; }
.download-help { margin:12px 2px 17px;max-width:85ch;color:var(--muted);font-size:.76rem;line-height:1.6; }
.download-status { padding:12px 14px;border-left:3px solid #85729c;background:#e8e0ef;color:#453452;font-size:.84rem;margin-bottom:14px; }
#download-error { margin-bottom:14px; }
.unveiling-page .photo-card { position:relative;transition:border-color .15s,box-shadow .15s; }
.unveiling-page .photo-card.is-selected { border-color:#514078;box-shadow:0 0 0 2px #514078; }
.photo-select { position:absolute;z-index:1;top:7px;left:7px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 10px;border-radius:4px;background:#fffcf7f2;color:#30263a;font-size:.73rem;font-weight:750;box-shadow:0 2px 7px #0002;cursor:pointer; }
.photo-select:focus-within { outline:3px solid #d3c7ff;outline-offset:2px; }
.photo-select input:focus-visible { outline:none; }
.photo-load-error { padding:12px;font-size:.76rem;color:var(--muted); }
.gallery-empty { padding:22px 10px;color:var(--muted); }
@media(max-width:700px) {
  .photo-selection { gap:6px;padding:8px 12px 12px; }
  #download-selected { width:100%; }
  .selection-options { width:100%;justify-content:space-between;gap:4px 9px; }
  .photo-select { top:5px;left:5px;padding:7px; }
}
@media(prefers-reduced-motion:reduce) { .unveiling-page .photo-card { transition:none; } }

/* Native streamed downloads stay memory-safe for multi-gigabyte films. */
.unveiling-page .film-save-help, .unveiling-page .film-download-status { color: #514960; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.unveiling-page .film-save-help summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.unveiling-page .film-save-help summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.unveiling-page .film-save-help ol { padding-left: 1.4rem; }
.unveiling-page .film-save-help li + li, .unveiling-page .film-save-help p { margin-top: 8px; }

.film-watch-link { width: 100%; padding: 10px; margin: 8px 0; font: inherit; box-sizing: border-box; }
.film-download-status.is-preparing::before { content: ''; display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: 8px; animation: film-preparing 1s linear infinite; vertical-align: middle; }
@keyframes film-preparing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .film-download-status.is-preparing::before { animation: none; } }

/* Private project progress: no percentage guesses, just the owner's current step. */
.project-tracker{margin:28px 0 36px;padding:clamp(20px,4vw,36px);border:1px solid #bfa47a55;border-radius:20px;background:linear-gradient(135deg,#24201c,#141416);color:#f7f2ea}
.project-tracker h2{font-size:clamp(25px,4vw,36px);margin:8px 0 12px}
.tracker-steps{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;gap:14px;margin:26px 0}
.tracker-steps li{display:flex;flex-direction:column;gap:10px;color:#b8b4ae;font-size:14px;line-height:1.4}
.tracker-marker{display:grid;place-items:center;width:36px;height:36px;border:1px solid #8886;border-radius:50%;font-weight:700}
.tracker-steps .is-complete{color:#d9c39e}.is-complete .tracker-marker{background:#b89a6322;border-color:#b89a63}
.tracker-steps .is-current{color:#fff;font-weight:700}.is-current .tracker-marker{background:#e8c991;color:#211c17;box-shadow:0 0 0 5px #e8c99116}
.tracker-updated{color:#b8b4ae;font-size:13px;line-height:1.6}
@media(max-width:600px){.tracker-steps{grid-template-columns:1fr;gap:16px}.tracker-steps li{flex-direction:row;align-items:center;gap:14px}.tracker-marker{flex-shrink:0}.project-tracker{margin:20px 0}}

.premiere-stage.is-progress-only{min-height:220px;height:auto;aspect-ratio:auto}
