:root {
  color-scheme: dark;
  --paper: #f2f0e9;
  --ink: #090909;
  --soft-ink: #151515;
  --muted: #aaa79f;
  --acid: #e5ff35;
  --red: #ff3b30;
  --blue: #8bbcff;
  --line: rgba(255,255,255,.18);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--paper); background: var(--ink); font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
a { color: inherit; }
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 11px; line-height: 1; text-transform: uppercase; }
.site-header a { font-weight: 700; text-decoration: none; }
.site-header p { margin: 0; }

.hero { position: relative; min-height: 760px; height: 94vh; max-height: 1000px; overflow: hidden; isolation: isolate; background: #060606; }
.hero::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 32%, rgba(0,0,0,.16) 67%, rgba(0,0,0,.52) 100%), linear-gradient(0deg, rgba(0,0,0,.88), transparent 47%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 1px; background: #383838; }
.hero-grid figure { min-width: 0; min-height: 0; margin: 0; display: grid; place-items: center; overflow: hidden; background: #070707; }
.hero-grid img { width: 100%; height: 100%; object-fit: contain; opacity: .74; filter: saturate(1.15) contrast(1.05); }
.hero-copy { position: absolute; z-index: 4; left: 5vw; top: 50%; width: min(760px, 64vw); transform: translateY(-42%); }
.eyebrow, .contract-mark, .index-intro > p, .viewer-kicker p, .map-heading > p, .contract-provenance > p { margin: 0; font-size: 10px; line-height: 1.4; text-transform: uppercase; }
.eyebrow { margin-bottom: 20px; color: var(--acid); }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .76; }
.hero h1 span { display: block; font-size: 188px; }
.hero h1 small { display: block; margin: 18px 0 0 9px; font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1; font-weight: 400; text-transform: uppercase; }
.hero-copy > p:last-child { max-width: 610px; margin: 48px 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.35; }
.contract-mark { position: absolute; z-index: 4; right: 28px; bottom: 26px; color: rgba(255,255,255,.72); }

.index-intro { display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; padding: 130px 7vw 150px; color: var(--ink); background: var(--paper); }
.index-intro > p { padding-top: 11px; color: #66645f; }
.index-intro h2 { max-width: 980px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 70px; line-height: .98; font-weight: 400; }
.index-intro div > p { max-width: 730px; margin: 44px 0 0; font-size: 18px; line-height: 1.65; }

.viewer-section { padding: 110px 4vw 125px; background: #0a0a0a; }
.viewer-kicker { display: flex; justify-content: space-between; gap: 40px; max-width: 1580px; margin: 0 auto 34px; }
.viewer-kicker p:first-child { color: var(--acid); }
.viewer-kicker p:last-child { color: var(--muted); }
.viewer-shell { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(350px, .72fr); max-width: 1580px; margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.media-column { min-width: 0; border-right: 1px solid var(--line); }
.media-frame { --art-ratio: 3 / 2; position: relative; width: 100%; min-height: 620px; height: min(76vh, 870px); display: grid; place-items: center; overflow: hidden; background: #030303; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; opacity: .82; transition: opacity .24s ease; }
.media-frame img.is-ready { opacity: 1; }
.media-frame[data-lifecycle="burned"]::after { content: "ARCHIVED / BURNED"; position: absolute; top: 18px; right: 18px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.5); color: rgba(255,255,255,.82); background: rgba(0,0,0,.52); font-size: 9px; line-height: 1; letter-spacing: 0; }
.media-frame[data-lifecycle="burned"] img { filter: saturate(.88); }
#media-status { position: absolute; z-index: 3; left: 16px; bottom: 14px; margin: 0; padding: 7px 9px; color: rgba(255,255,255,.78); background: rgba(0,0,0,.68); font-size: 9px; text-transform: uppercase; }
.filmstrip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); height: 126px; border-top: 1px solid var(--line); }
.filmstrip button { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; border-right: 1px solid var(--line); border-radius: 0; color: white; background: #050505; cursor: pointer; }
.filmstrip button:last-child { border-right: 0; }
.filmstrip img { width: 100%; height: 100%; object-fit: contain; opacity: .42; transition: opacity .2s ease, transform .2s ease; }
.filmstrip span { position: absolute; right: 8px; bottom: 7px; font-size: 9px; }
.filmstrip button:hover img, .filmstrip button:focus-visible img, .filmstrip button.is-active img { opacity: 1; transform: scale(1.025); }
.filmstrip button.is-active::before { content: ""; position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 3px; background: var(--acid); }

.work-panel { min-width: 0; display: flex; flex-direction: column; padding: 44px 36px 34px; background: linear-gradient(180deg, rgba(229,255,53,.055), transparent 34%); }
.token-index, .project-context { margin: 0; font-size: 10px; line-height: 1.4; text-transform: uppercase; }
.token-index { color: var(--acid); }
.project-context { margin-top: 30px; color: var(--blue); }
.work-panel h2 { margin: 12px 0 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 48px; line-height: .98; font-weight: 400; }
.work-summary { margin: 28px 0 30px; color: #c4c1ba; font-size: 15px; line-height: 1.58; }
.work-facts { margin: 0; border-top: 1px solid var(--line); }
.work-facts div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.work-facts dt { color: #77756f; font-size: 9px; text-transform: uppercase; }
.work-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }
#lifecycle[data-state="burned"] { color: #ff9f98; }
#lifecycle[data-state="extant"] { color: var(--acid); }
.viewer-controls { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; height: 46px; margin-top: 28px; }
.viewer-controls button, .viewer-controls select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 0; color: var(--paper); background: transparent; }
.viewer-controls button { cursor: pointer; font-size: 18px; }
.viewer-controls button:hover, .viewer-controls button:focus-visible { color: var(--ink); background: var(--acid); }
.viewer-controls label { min-width: 0; }
.viewer-controls select { padding: 0 12px; border-left: 0; border-right: 0; cursor: pointer; text-overflow: ellipsis; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 24px; }
.source-links a { font-size: 10px; text-underline-offset: 4px; }
.source-links a:hover, .source-links a:focus-visible { color: var(--acid); }
.metadata-statement { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.metadata-statement summary { color: #aaa79f; font-size: 10px; text-transform: uppercase; cursor: pointer; }
.metadata-statement p { max-height: 260px; margin: 18px 0 0; padding-right: 10px; overflow-y: auto; white-space: pre-line; color: #bbb8b0; font-size: 12px; line-height: 1.6; }

.contract-map { padding: 125px 6vw 140px; color: var(--ink); background: var(--acid); }
.map-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; margin-bottom: 80px; }
.map-heading h2 { max-width: 950px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 67px; line-height: 1; font-weight: 400; }
.project-list { border-top: 2px solid var(--ink); }
.project-list article { display: grid; grid-template-columns: 80px minmax(190px,.7fr) minmax(0,1.3fr); gap: 24px; align-items: baseline; padding: 23px 0; border-bottom: 1px solid rgba(0,0,0,.45); }
.project-list span { font-size: 10px; }
.project-list h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; }
.project-list p { max-width: 660px; margin: 0; font-size: 14px; line-height: 1.55; }

.contract-provenance { display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; padding: 100px 7vw 110px; background: #1c1c1c; }
.contract-provenance > p { padding-top: 7px; color: var(--muted); }
.contract-provenance h2 { margin: 0 0 30px; font-family: Georgia, "Times New Roman", serif; font-size: 58px; font-weight: 400; }
.contract-provenance a { font-size: 12px; text-underline-offset: 5px; }
.contract-provenance a:hover, .contract-provenance a:focus-visible { color: var(--acid); }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 22px 28px; border-top: 1px solid var(--line); font-size: 9px; text-transform: uppercase; }
footer p { margin: 0; }

@media (max-width: 1000px) {
  .hero h1 span { font-size: 140px; }
  .viewer-shell { grid-template-columns: minmax(0,1fr) 350px; }
  .media-frame { min-height: 560px; }
  .work-panel { padding: 38px 26px 30px; }
  .work-panel h2 { font-size: 39px; }
}

@media (max-width: 740px) {
  .site-header { padding: 17px 18px; }
  .site-header p { display: none; }
  .hero { min-height: 700px; height: 91vh; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.36) 66%, rgba(0,0,0,.48) 100%); }
  .hero-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,1fr); }
  .hero-copy { left: 18px; top: auto; bottom: 88px; width: calc(100% - 36px); transform: none; }
  .hero h1 span { font-size: 92px; }
  .hero h1 small { margin-top: 12px; font-size: 14px; }
  .hero-copy > p:last-child { margin: 30px 0 0 0; font-size: 20px; }
  .contract-mark { right: 18px; bottom: 18px; }
  .index-intro, .map-heading, .contract-provenance { grid-template-columns: 1fr; gap: 34px; }
  .index-intro { padding: 82px 20px 92px; }
  .index-intro h2 { font-size: 47px; }
  .index-intro div > p { margin-top: 30px; font-size: 16px; }
  .viewer-section { padding: 78px 14px 88px; }
  .viewer-kicker { display: block; margin-bottom: 28px; }
  .viewer-kicker p:last-child { margin-top: 12px; }
  .viewer-shell { display: flex; flex-direction: column; }
  .media-column { border-right: 0; }
  .media-frame { width: 100%; min-height: 0; height: auto; aspect-ratio: var(--art-ratio); max-height: 72vh; }
  .media-frame img { position: absolute; inset: 0; }
  .filmstrip { display: flex; height: 108px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .filmstrip button { flex: 0 0 105px; }
  .work-panel { padding: 34px 4px 26px; background: none; }
  .work-panel h2 { font-size: 41px; }
  .metadata-statement p { max-height: 340px; }
  .contract-map { padding: 84px 20px 95px; }
  .map-heading { margin-bottom: 52px; }
  .map-heading h2 { font-size: 47px; }
  .project-list article { grid-template-columns: 42px minmax(0,1fr); gap: 12px 14px; }
  .project-list p { grid-column: 2; }
  .project-list h3 { font-size: 25px; }
  .contract-provenance { padding: 74px 20px 82px; }
  .contract-provenance h2 { font-size: 44px; }
  footer { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media-frame img, .filmstrip img { transition: none; }
}
