:root {
  --ink: #080809;
  --ink-soft: #19191c;
  --paper: #f3efe6;
  --muted: #aaa49a;
  --coral: #ff644f;
  --yellow: #f4c84e;
  --blue: #6c9ac0;
  --line: rgba(243, 239, 230, 0.19);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --page: min(1380px, calc(100% - 64px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 16px; background: var(--yellow); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .065; z-index: 10; 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='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"); }

.site-header { width: var(--page); margin: 0 auto; min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 11; }
.wordmark { font-size: 19px; font-weight: 800; letter-spacing: .34em; }
.main-nav { display: flex; gap: 42px; color: #d3cec4; font-size: 14px; }
.main-nav a { padding: 36px 0 18px; position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--coral); }
.main-nav a.active::after { content: ""; position: absolute; height: 3px; background: var(--coral); bottom: 10px; left: 0; right: 0; transform: rotate(-1deg); }
.header-actions { justify-self: end; display: flex; gap: 18px; }
.owner-presence { display: inline-flex; align-items: center; gap: 7px; color: var(--yellow); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.owner-presence i, .admin-presence i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(244, 200, 78, .12); }
.icon-button { appearance: none; border: 0; background: none; color: var(--paper); padding: 5px; cursor: pointer; }
.icon-button svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.menu-button { display: none; }
.page-shell { width: var(--page); margin: 0 auto; }

.hero-grid { min-height: 740px; display: grid; grid-template-columns: 29% 56% 15%; position: relative; padding: 90px 0 96px; }
.hero-copy { align-self: center; position: relative; z-index: 3; }
.eyebrow { color: var(--coral); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; margin: 0 0 22px; }
h1, h2 { font: 400 clamp(58px, 5.4vw, 96px)/.9 var(--serif); letter-spacing: -.055em; margin-bottom: 34px; }
h1 em, h2 em { color: var(--paper); font-style: italic; }
.hero-text { color: var(--muted); line-height: 1.72; max-width: 310px; font-size: 15px; }
.outline-button { display: inline-flex; gap: 30px; align-items: center; border: 1px solid var(--coral); color: var(--coral); padding: 15px 20px; margin-top: 22px; font-size: 14px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.outline-button:hover { background: var(--coral); color: var(--ink); transform: translateY(-2px); }
.outline-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.scrapbook { min-height: 550px; position: relative; isolation: isolate; }
.paper-frame { position: absolute; padding: 12px; margin: 0; background: var(--paper); box-shadow: 0 18px 34px rgba(0, 0, 0, .35); color: var(--ink); }
.frame-main { width: min(380px, 57%); left: 17%; top: 8%; transform: rotate(-3deg); z-index: 2; }
.frame-pass { width: 210px; left: 0; bottom: 1%; transform: rotate(7deg); z-index: 3; }
.frame-city { width: 250px; right: 1%; bottom: 3%; transform: rotate(4deg); z-index: 2; }
.frame-image { aspect-ratio: 1 / 1.08; display: grid; place-items: center; text-align: center; overflow: hidden; position: relative; background-position: center; background-size: cover; }
.frame-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-image::before, .frame-image::after { content: ""; position: absolute; inset: 0; transition: opacity .25s ease; }
.frame-image.has-media::before, .frame-image.has-media::after { opacity: 0; }
.image-beginning { background-color: #192d50; background-image: radial-gradient(circle at 68% 28%, #e03e3d 0 12%, transparent 13%), linear-gradient(132deg, #192d50 0 21%, #e25536 22% 35%, #272145 36% 59%, #121d31 60%); }
.image-beginning::before { background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 211, 68, .22) 23px 27px, transparent 28px 52px); transform: skewX(-14deg); }
.image-growing { background-color: #cb5b35; background-image: linear-gradient(150deg, #cb5b35, #f1ca58 47%, #39708c 48%); }
.image-growing::after { inset: 17% 12%; border: 2px solid var(--ink); transform: rotate(-8deg); }
.image-today { background-color: #0d1b2b; background-image: linear-gradient(155deg, #0d1b2b, #345d75 46%, #c75545 47%, #ebbd4c 62%, #12151b 63%); }
.image-today::before { background: repeating-linear-gradient(167deg, transparent 0 36px, rgba(255, 255, 255, .18) 37px 39px); }
.frame-image span { position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, .65); padding: 10px; color: white; font-size: 14px; line-height: 1.1; letter-spacing: .1em; font-weight: 700; }
.frame-image.has-media span { opacity: 0; }
.frame-caption { display: block; font: italic 14px var(--serif); padding: 12px 3px 2px; margin: 0; }
.tape { position: absolute; width: 88px; height: 21px; top: -12px; left: 40%; transform: rotate(7deg); opacity: .86; }
.tape-dark { background: #30302f; }
.tape-yellow { background: rgba(244, 200, 78, .88); top: -10px; left: 38%; }
.paper-note { position: absolute; right: 2%; top: 2%; padding: 13px 16px; transform: rotate(8deg); background: var(--yellow); color: var(--ink); font: 12px/1.1 var(--serif); text-transform: uppercase; box-shadow: 8px 10px 0 rgba(0, 0, 0, .25); }
.paper-note strong { font-size: 15px; }

.year-rail { align-self: center; display: flex; flex-direction: column; padding-left: 40px; position: relative; color: #9f9a91; font-size: 13px; }
.year-links { display: flex; flex-direction: column; gap: 15px; }
.rail-label { color: var(--paper); font: italic 15px var(--serif); margin-bottom: 19px; }
.rail-line { position: absolute; left: 48px; top: 56px; bottom: 10px; width: 1px; background: rgba(243, 239, 230, .35); }
.year-rail a { position: relative; padding-left: 27px; z-index: 1; }
.year-rail a::before { content: ""; width: 8px; height: 8px; position: absolute; left: 4px; top: 3px; border: 1px solid var(--paper); border-radius: 50%; background: var(--ink); }
.year-rail a:hover, .year-rail a.current { color: var(--coral); }
.year-rail a.current::before { background: var(--coral); border-color: var(--coral); }

.preface-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: 10% 48% 1fr; gap: 36px; padding: 115px 0 125px; align-items: start; }
.preface-index { color: var(--coral); font: italic 36px var(--serif); }
.preface-heading h2 { font-size: clamp(50px, 4.7vw, 78px); margin-bottom: 0; }
.preface-copy { padding-top: 33px; max-width: 470px; }
.preface-copy p { color: #cbc5ba; font: 400 20px/1.65 var(--serif); }
.preface-copy p + p { color: var(--muted); font: 14px/1.75 var(--sans); margin-top: 25px; }

.timeline-section, .gallery-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: 32% 1fr; gap: 90px; padding: 118px 0 140px; }
.section-heading h2 { font-size: clamp(52px, 5vw, 80px); }
.section-heading > p:last-child { max-width: 345px; color: var(--muted); line-height: 1.7; font-size: 15px; }
.timeline-heading { align-self: start; position: sticky; top: 34px; }
.timeline-list { border-top: 1px solid var(--line); }
.loading-state { min-height: 190px; display: grid; place-items: center; color: var(--muted); font: italic 20px var(--serif); }
.timeline-chapter { display: grid; grid-template-columns: 86px 24px 1fr; gap: 22px; padding: 34px 0 38px; border-bottom: 1px solid var(--line); position: relative; }
.chapter-year { color: var(--coral); font: 400 22px var(--serif); }
.chapter-point { display: flex; justify-content: center; position: relative; }
.chapter-point::before { content: ""; position: absolute; top: 20px; bottom: -39px; width: 1px; background: var(--line); }
.timeline-chapter:last-child .chapter-point::before { display: none; }
.chapter-point::after { content: ""; width: 10px; height: 10px; margin-top: 5px; border: 1px solid var(--paper); border-radius: 50%; background: var(--ink); z-index: 1; }
.timeline-chapter[data-accent="yellow"] .chapter-point::after { border-color: var(--yellow); background: var(--yellow); }
.timeline-chapter[data-accent="blue"] .chapter-point::after { border-color: var(--blue); background: var(--blue); }
.timeline-chapter[data-accent="coral"] .chapter-point::after { border-color: var(--coral); background: var(--coral); }
.chapter-main h3 { font: 400 29px/1.1 var(--serif); margin-bottom: 10px; }
.chapter-summary { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 580px; margin-bottom: 17px; }
.chapter-meta { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.chapter-meta strong { color: var(--paper); font-weight: 400; }
.chapter-events { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.chapter-events li { display: flex; align-items: baseline; gap: 12px; color: #d1cbc0; font: 15px var(--serif); }
.chapter-events time { color: var(--yellow); min-width: 76px; font: 10px var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.chapter-preview { display: flex; gap: 8px; margin-top: 20px; overflow: hidden; }
.chapter-preview img { width: 92px; aspect-ratio: 1; object-fit: cover; filter: saturate(.88); border: 5px solid var(--paper); }
.chapter-empty { color: #77736d; font-size: 12px; margin-top: 18px; }

.gallery-content { min-width: 0; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-button { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted); min-width: 54px; padding: 9px 13px; cursor: pointer; font-size: 12px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-button:hover { color: var(--paper); border-color: var(--muted); }
.filter-button.active { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
.gallery-empty { grid-column: 1 / -1; border: 1px dashed var(--line); min-height: 220px; display: grid; place-items: center; padding: 30px; color: var(--muted); font: italic 20px var(--serif); text-align: center; }
.gallery-item { margin: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .018); padding: 10px; min-width: 0; }
.gallery-item img, .gallery-item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #09090a; }
.gallery-item video { object-fit: contain; }
.gallery-meta { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px 3px; }
.gallery-meta h3 { margin: 0; font: 400 18px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-meta span { color: var(--yellow); font-size: 11px; white-space: nowrap; }
.gallery-name { margin: 0; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-caption { margin: 8px 2px 2px; color: #cbc5ba; font: italic 13px/1.4 var(--serif); }

.site-footer { width: var(--page); margin: 0 auto; padding: 20px 0 36px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.admin-link:hover { color: var(--coral); }

.search-dialog { width: min(720px, calc(100% - 28px)); max-height: min(680px, calc(100vh - 40px)); border: 1px solid rgba(243, 239, 230, .3); padding: 0; background: var(--ink-soft); color: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .65); }
.search-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.search-shell { padding: 28px; }
.search-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.search-heading h2 { margin: 0; font-size: 38px; }
.search-field { display: block; margin-top: 24px; }
.search-field input { width: 100%; border: 1px solid var(--line); color: var(--paper); background: var(--ink); padding: 17px; outline: none; font-size: 16px; }
.search-field input:focus { border-color: var(--coral); }
.search-results { display: grid; max-height: 410px; overflow: auto; margin-top: 16px; }
.search-result { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.search-result:hover h3 { color: var(--coral); }
.search-result-year { color: var(--yellow); font-size: 12px; }
.search-result h3 { margin: 0 0 5px; font: 18px var(--serif); }
.search-result p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.search-empty { color: var(--muted); padding: 30px 4px; text-align: center; font: italic 17px var(--serif); }

/* Private archive desk */
.admin-shell { width: min(1080px, calc(100% - 38px)); margin: 0 auto; padding: 70px 0 100px; }
.admin-presence { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--yellow); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.admin-presence > span { display: inline-flex; align-items: center; gap: 10px; }
.login-panel { width: min(620px, 100%); margin: 70px auto 30px; padding: 34px; border: 1px solid rgba(243, 239, 230, .25); background: rgba(255, 255, 255, .018); }
.login-panel h2 { font-size: clamp(42px, 6vw, 64px); margin-bottom: 18px; }
.login-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 16px; margin-top: 28px; }
.login-form > span { min-height: 18px; color: var(--coral); font-size: 12px; text-align: center; }
.admin-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 34px; margin-bottom: 42px; }
.admin-heading h1 { font-size: clamp(54px, 7vw, 92px); margin: 0; }
.admin-heading > p { color: var(--muted); max-width: 300px; line-height: 1.6; margin: 0; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-field input, .admin-field textarea { width: 100%; color: var(--paper); background: transparent; border: 1px solid var(--line); padding: 14px; outline: none; resize: vertical; }
.admin-field input:focus, .admin-field textarea:focus { border-color: var(--coral); }
.admin-field-wide { margin-bottom: 16px; }
.uploader-panel { border: 1px solid rgba(243, 239, 230, .25); background: rgba(255, 255, 255, .018); padding: 28px; }
.drop-zone { min-height: 230px; border: 1px dashed var(--coral); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; cursor: pointer; text-align: center; transition: background .2s ease; }
.drop-zone:hover, .drop-zone.dragging { background: rgba(255, 100, 79, .08); }
.drop-zone strong { font: 400 21px var(--serif); }
.drop-zone > span:last-child { color: var(--muted); font-size: 12px; }
.upload-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--coral); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
#file-input, #folder-input { display: none; }
.upload-options { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 15px; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--paper); font-size: 13px; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; }
.fake-check { display: grid; place-items: center; background: var(--yellow); color: var(--ink); width: 18px; height: 18px; font-size: 14px; font-weight: 700; }
.check-row input:not(:checked) + .fake-check { background: transparent; border: 1px solid var(--muted); color: transparent; }
.text-button { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--paper); }
.queue { display: flex; flex-direction: column; gap: 9px; min-height: 48px; max-height: 190px; overflow: auto; }
.queue-empty { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; }
.queue-item { display: grid; grid-template-columns: 42px 1fr auto 26px; gap: 11px; align-items: center; border-top: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.queue-type { color: var(--yellow); font-size: 10px; }
.queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-size { color: var(--muted); }
.queue-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 17px; }
.queue-remove:hover { color: var(--coral); }
.compression-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 15px; padding: 15px 0; display: grid; gap: 8px; }
.compression-summary > div { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.compression-summary strong { color: var(--paper); font-weight: 400; }
.compression-summary .saved span, .compression-summary .saved strong { color: var(--yellow); }
.upload-footer { padding-top: 22px; display: grid; gap: 12px; }
.primary-button { border: 0; background: var(--yellow); color: var(--ink); padding: 17px 20px; cursor: pointer; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: #ffd96a; }
.primary-button:disabled, .outline-button:disabled { opacity: .55; cursor: wait; transform: none; }
.upload-submit { justify-content: center; background: transparent; margin-top: 0; }
.upload-footer > span { color: var(--muted); text-align: center; font-size: 12px; }
.admin-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 18px 0 0; }
.admin-back { margin-top: 26px; }
.analysis-panel { margin-top: 82px; border-top: 1px solid var(--line); padding-top: 70px; }
.analysis-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 60px; align-items: end; }
.analysis-heading h2 { font-size: clamp(48px, 6vw, 74px); margin: 0; }
.analysis-heading > div:last-child p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.analysis-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 42px 0 18px; }
.analysis-mode-status { margin: 30px 0 -20px; padding: 13px 16px; border-left: 3px solid var(--yellow); background: rgba(244,200,78,.07); color: var(--muted); font-size: 11px; line-height: 1.55; }
.analysis-mode-status.is-paused { border-left-color: var(--coral); background: rgba(255,100,79,.07); }
.analysis-list { display: grid; gap: 14px; }
.analysis-empty { min-height: 160px; border: 1px dashed var(--line); display: grid; place-items: center; padding: 28px; color: var(--muted); font: italic 18px var(--serif); text-align: center; }
.analysis-card { display: grid; grid-template-columns: 230px 1fr; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.analysis-card[data-status="accepted"] { border-color: rgba(244, 200, 78, .55); }
.analysis-card[data-status="rejected"] { opacity: .58; }
.analysis-card > img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; background: #09090a; }
.analysis-body { padding: 24px; min-width: 0; }
.analysis-card-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.analysis-card h3 { font: 400 25px/1.2 var(--serif); margin: 0; }
.status-badge { flex: none; color: var(--yellow); border: 1px solid rgba(244,200,78,.4); padding: 6px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.status-queued { color: var(--blue); border-color: rgba(108,154,192,.4); }
.status-metadata-only { color: var(--coral); border-color: rgba(255,100,79,.4); }
.analysis-source, .analysis-detail, .mashup-note { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 9px 0 0; }
.analysis-detail { color: var(--paper); text-transform: uppercase; letter-spacing: .06em; }
.mashup-note { font: italic 14px/1.5 var(--serif); color: #cbc5ba; }
.review-fields { display: grid; grid-template-columns: 140px 1fr; gap: 12px; margin-top: 18px; }
.review-field { display: grid; gap: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.review-field input { min-width: 0; width: 100%; background: transparent; color: var(--paper); border: 1px solid var(--line); padding: 10px; }
.review-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.review-actions .primary-button { padding: 11px 14px; font-size: 11px; }

/* Owner editorial control center */
.desk-nav { position: sticky; top: 0; z-index: 9; display: flex; justify-content: center; gap: clamp(18px, 4vw, 54px); margin: -8px 0 70px; padding: 19px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8,8,9,.96); color: #d6d1c8; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.desk-nav a:hover { color: var(--coral); }
.editorial-desk { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .8fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial-lead { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 46px 0 36px; border-bottom: 1px solid var(--line); }
.editorial-lead h2 { margin: 0; font-size: clamp(54px, 6.4vw, 88px); }
.editorial-lead p { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.media-control { grid-column: 1 / -1; min-width: 0; padding: 34px 0 42px; border-bottom: 1px solid var(--line); }
.media-control .desk-section-heading { align-items: end; }
.media-control .desk-section-heading > div { min-width: 0; }
.media-control .section-note { margin: 8px 0 0; }
.media-filter { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.media-filter select,.inline-create select { min-height: 40px; border: 1px solid var(--line); border-radius: 0; padding: 0 30px 0 10px; background: var(--ink); color: var(--paper); font: 10px var(--sans); }
.media-control-summary { margin: 0 0 15px; color: var(--yellow); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.media-control-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; max-height: 560px; overflow: auto; padding-right: 4px; }
.media-control-card { min-width: 0; display: grid; grid-template-columns: 92px minmax(0,1fr); grid-template-rows: 1fr auto; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.media-control-card.is-hidden { border-color: rgba(255,100,79,.52); opacity: .7; }
.media-control-card > img { grid-row: 1 / 3; width: 92px; height: 100%; min-height: 126px; object-fit: cover; filter: saturate(.82); }
.media-control-card.is-hidden > img { filter: grayscale(.8) brightness(.6); }
.media-control-card > div { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 13px 13px 7px; }
.media-control-card strong { overflow: hidden; font: 400 16px/1.2 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.media-control-card span,.media-control-card small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.media-control-card > button { justify-self: start; margin: 0 13px 12px; padding: 6px 0; font-size: 9px; }
.media-control-card > .primary-button { padding: 7px 10px; }
.album-studio { min-width: 0; padding: 38px 36px 55px 0; border-right: 1px solid var(--line); }
.editorial-rail { min-width: 0; }
.desk-section { padding: 38px 0 38px 34px; border-bottom: 1px solid var(--line); }
.desk-section:last-child { border-bottom: 0; }
.desk-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.desk-section-heading h3 { margin: 0; color: var(--yellow); font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.section-note { max-width: 520px; margin: -5px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.album-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
.album-list { border-top: 1px solid var(--line); }
.album-list-row { width: 100%; display: grid; gap: 7px; border: 0; border-bottom: 1px solid var(--line); padding: 16px 3px; background: transparent; color: var(--paper); cursor: pointer; text-align: left; }
.album-list-row strong { font: 400 19px var(--serif); }
.album-list-row span { color: var(--muted); font-size: 9px; line-height: 1.35; text-transform: uppercase; letter-spacing: .07em; }
.album-list-row.active strong { color: var(--coral); }
.album-editor { min-width: 0; }
.album-editor .admin-field + .admin-field { margin-top: 16px; }
.album-media-heading { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0 10px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.album-media-heading strong { color: var(--paper); font-weight: 400; }
.album-media { display: grid; grid-template-columns: repeat(5, minmax(70px, 1fr)); gap: 8px; max-height: 350px; overflow: auto; padding-right: 4px; }
.album-media-item { position: relative; aspect-ratio: .9; padding: 0; border: 1px solid transparent; background: #111; cursor: pointer; overflow: hidden; }
.album-media-item img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82); }
.album-media-item span { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: none; place-items: center; background: var(--coral); color: var(--ink); font-size: 12px; }
.album-media-item.selected { border-color: var(--coral); }
.album-media-item.selected span { display: grid; }
.album-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.album-actions output { color: var(--yellow); font-size: 10px; line-height: 1.4; }
.desk-empty { margin: 0; padding: 20px 0; color: var(--muted); font: italic 15px var(--serif); }
.contributor-list, .video-default-list, .audit-list { border-top: 1px solid var(--line); }
.contributor-row { display: grid; grid-template-columns: minmax(100px, 1fr) auto auto; gap: 14px; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.contributor-row > div:first-child { min-width: 0; display: grid; gap: 4px; }
.contributor-row strong { font: 400 18px var(--serif); }
.contributor-row span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.contributor-status.active { color: var(--yellow); }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.row-actions .text-button { font-size: 9px; text-transform: uppercase; text-decoration: none; }
.inline-create { display: grid; grid-template-columns: minmax(110px,1fr) minmax(170px,1fr) auto; gap: 10px; margin-top: 18px; align-items: end; }
.inline-create .primary-button { padding: 14px; }
.one-time-code { margin-top: 18px; padding: 15px 0; border-top: 1px solid var(--coral); border-bottom: 1px solid var(--coral); }
.one-time-code > span { display: block; color: var(--coral); font-size: 10px; }
.one-time-code strong { display: block; margin: 11px 0; font: 400 17px var(--serif); letter-spacing: .04em; overflow-wrap: anywhere; }
.video-default-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 13px; min-height: 72px; border-bottom: 1px solid var(--line); cursor: pointer; }
.video-default-row img { width: 60px; height: 54px; object-fit: cover; }
.video-default-row > span:nth-child(2) { display: grid; gap: 5px; }
.video-default-row strong { font: 400 16px var(--serif); }
.video-default-row small { color: var(--muted); font-size: 9px; }
.audio-toggle { position: relative; width: 38px; height: 20px; }
.audio-toggle input { position: absolute; opacity: 0; }
.audio-toggle span { display: block; width: 38px; height: 20px; border: 1px solid var(--muted); background: transparent; transition: background .2s, border .2s; }
.audio-toggle span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); transition: transform .2s; }
.audio-toggle input:checked + span { border-color: var(--coral); background: var(--coral); }
.audio-toggle input:checked + span::after { transform: translateX(18px); }
.audit-list { max-height: 330px; overflow: auto; }
.operation-card { display: grid; gap: 7px; border: 1px solid var(--line); border-left: 3px solid var(--yellow); padding: 15px; background: rgba(244,200,78,.035); }
.operation-card.is-warning { border-left-color: var(--coral); background: rgba(255,100,79,.04); }
.operation-card strong { font: 400 18px/1.25 var(--serif); }
.operation-card span { color: var(--muted); font-size: 9px; line-height: 1.55; }
.operation-download { display: inline-block; margin-top: 15px; font-size: 9px; text-transform: uppercase; }
.usage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-bottom: 20px; background: var(--line); border: 1px solid var(--line); }
.usage-grid > div { min-width: 0; display: grid; gap: 5px; padding: 13px; background: var(--ink); }
.usage-grid span { color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.usage-grid strong { color: var(--paper); font: 400 22px/1 var(--serif); }
.usage-grid small { color: var(--muted); font-size: 8px; }
.uploader-usage { margin: 0 0 20px; border-top: 1px solid var(--line); }
.uploader-usage h4 { margin: 15px 0 8px; color: var(--coral); font: italic 15px var(--serif); }
.uploader-usage > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(243,239,230,.1); }
.uploader-usage strong { font: 400 13px var(--serif); }
.uploader-usage span { color: var(--muted); font-size: 8px; text-align: right; }
.audit-row { display: grid; grid-template-columns: 105px 78px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(243,239,230,.1); font-size: 10px; }
.audit-row time { color: var(--muted); }
.audit-row strong { color: var(--yellow); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.audit-row span { color: #d2cdc4; line-height: 1.4; }
.intake-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin: 0 0 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.intake-heading h2 { margin: 0; font-size: clamp(46px, 5vw, 68px); }
.intake-heading p { max-width: 370px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.uploader-panel { margin-top: 82px; }

@media (max-width: 1060px) {
  :root { --page: min(100% - 38px, 820px); }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { position: absolute; right: 0; top: 76px; display: none; width: 220px; padding: 10px 22px 22px; background: var(--ink-soft); border: 1px solid var(--line); box-shadow: 0 18px 35px rgba(0, 0, 0, .35); }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .menu-button { display: block; }
  .hero-grid, .timeline-section, .gallery-section { grid-template-columns: 1fr; gap: 52px; }
  .hero-grid { padding-top: 70px; }
  .hero-copy { max-width: 570px; }
  .hero-text { max-width: 420px; }
  .scrapbook { min-height: 540px; }
  .year-rail { flex-direction: row; padding: 0; gap: 18px; align-items: center; overflow: auto; }
  .year-links { flex-direction: row; gap: 18px; }
  .rail-line, .rail-label { display: none; }
  .year-rail a { padding: 9px 0; }
  .year-rail a::before { display: none; }
  .preface-section { grid-template-columns: 64px 1fr; }
  .preface-copy { grid-column: 2; padding-top: 0; }
  .timeline-section, .gallery-section { padding: 85px 0 100px; }
  .timeline-heading { position: static; }
  .section-heading > p:last-child { max-width: 540px; }
  .editorial-desk { grid-template-columns: 1fr; }
  .album-studio { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-section { padding-left: 0; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  .site-header { min-height: 74px; }
  .header-actions { gap: 8px; }
  .main-nav { top: 66px; width: min(280px, 100%); }
  .hero-grid { padding: 54px 0 58px; }
  h1 { font-size: clamp(50px, 15.5vw, 68px); }
  .scrapbook { min-height: 465px; transform: scale(.88); transform-origin: left top; width: 113%; margin-bottom: -48px; }
  .frame-main { width: 62%; left: 13%; }
  .frame-pass { width: 43%; }
  .frame-city { width: 49%; }
  .paper-note { right: -2%; }
  .preface-section { grid-template-columns: 1fr; gap: 22px; padding: 76px 0 82px; }
  .preface-index { margin-bottom: 0; }
  .preface-copy { grid-column: 1; }
  .preface-copy p { font-size: 18px; }
  .timeline-chapter { grid-template-columns: 58px 16px 1fr; gap: 12px; }
  .chapter-year { font-size: 18px; }
  .chapter-main h3 { font-size: 25px; }
  .chapter-events li { display: grid; gap: 4px; }
  .chapter-preview img { width: 75px; border-width: 4px; }
  .media-gallery { grid-template-columns: 1fr; }
  .site-footer { display: grid; gap: 12px; line-height: 1.5; }
  .search-shell { padding: 20px; }
  .search-result { grid-template-columns: 48px 1fr; gap: 10px; }
  .admin-shell { padding-top: 45px; }
  .admin-heading { display: grid; }
  .admin-form { grid-template-columns: 1fr; }
  .uploader-panel { padding: 16px; }
  .drop-zone { min-height: 200px; }
  .owner-presence span { display: none; }
  .login-panel { margin-top: 34px; padding: 22px; }
  .analysis-heading { grid-template-columns: 1fr; gap: 24px; }
  .analysis-card { grid-template-columns: 1fr; }
  .analysis-card > img { height: 240px; min-height: 0; }
  .analysis-body { padding: 18px; }
  .analysis-card-top { display: grid; }
  .review-fields { grid-template-columns: 1fr; }
  .review-actions { align-items: stretch; flex-direction: column; }
  .desk-nav { justify-content: flex-start; gap: 25px; margin-bottom: 45px; overflow-x: auto; }
  .editorial-lead { display: grid; }
  .media-control-grid { grid-template-columns: 1fr; max-height: 620px; }
  .media-control .desk-section-heading { display: grid; }
  .album-layout { grid-template-columns: 1fr; }
  .album-list { display: flex; overflow-x: auto; }
  .album-list-row { min-width: 170px; border-right: 1px solid var(--line); }
  .album-media { grid-template-columns: repeat(3, minmax(70px, 1fr)); }
  .contributor-row { grid-template-columns: 1fr auto; padding: 12px 0; }
  .row-actions { grid-column: 1 / -1; }
  .inline-create { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 82px 62px 1fr; }
  .intake-heading { display: grid; }
}

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