:root {
    --night: #19212a;
    --night-soft: #25313b;
    --night-faint: #34434c;
    --fog: #ebe6dc;
    --paper: #f5f1e8;
    --mist: #d6d5ce;
    --line: #b7b8b2;
    --amber: #c98655;
    --amber-light: #e1b07e;
    --coral: #b86858;
    --sage: #7f9a90;
    --ink: #26333c;
    --muted: #69747a;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --width: 1240px;
    --shadow: 0 22px 70px rgb(25 33 42 / 16%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 300px;
    color: var(--ink);
    background: var(--fog);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.workspace-body { background: #ddd9d0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
::selection { color: var(--night); background: var(--amber-light); }

.page-width { width: min(calc(100% - 64px), var(--width)); margin-inline: auto; }
.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; z-index: 200; left: 16px; top: -80px; padding: 12px 16px;
    color: var(--night); background: var(--paper); text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.overline {
    margin: 0 0 20px; color: var(--amber-light); font-size: 11px; font-weight: 750;
    letter-spacing: .18em; line-height: 1.4; text-transform: uppercase;
}
.overline.dark { color: #8d5d43; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 22px;
    min-height: 48px; padding: 12px 20px; border: 1px solid transparent;
    border-radius: 1px; font-size: 13px; font-weight: 750; letter-spacing: .03em;
    text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-light { color: var(--night); background: var(--paper); }
.button-light:hover { background: #fffaf0; }
.button-warm { color: var(--night); background: var(--amber); }
.button-warm:hover { background: var(--amber-light); }
.button-dark { color: var(--fog); background: var(--night); }
.button-dark:hover { background: var(--night-soft); }
.button-ghost { color: var(--ink); background: transparent; border-color: #929b9e; }
.button-ghost:hover { border-color: var(--ink); }
.arrow-link, .quiet-link, .back-link {
    display: inline-flex; align-items: center; gap: 14px; color: inherit;
    font-size: 13px; font-weight: 700; text-underline-offset: 5px;
}
.arrow-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(4px); }

.site-header {
    position: relative; z-index: 50; color: var(--fog); background: var(--night);
    border-bottom: 1px solid rgb(235 230 220 / 12%);
}
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; text-decoration: none; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand {
    display: inline-flex; align-items: center; gap: 11px; color: inherit;
    font-size: 13px; font-weight: 750; letter-spacing: .12em; text-decoration: none; text-transform: uppercase;
}
.brand-orbit { width: 27px; height: 27px; border: 1px solid var(--amber); border-radius: 50%; position: relative; }
.brand-orbit::before, .brand-orbit::after {
    content: ""; position: absolute; top: 50%; width: 9px; height: 1px; background: var(--amber);
}
.brand-orbit::before { right: 100%; }
.brand-orbit::after { left: 100%; }
.brand-orbit i { position: absolute; inset: 8px; border-radius: 50%; background: var(--amber-light); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .nav-logout button {
    padding: 8px 0; border: 0; color: #c6cbc9; background: transparent;
    font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer;
}
.main-nav > a:hover, .main-nav > a.active, .nav-logout button:hover { color: var(--paper); }
.main-nav .nav-login { color: var(--amber-light); }
.nav-logout { margin: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 11px; border: 1px solid #68747a; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--fog); }

.flash {
    position: relative; z-index: 45; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin-top: 16px; padding: 13px 16px; border-left: 3px solid var(--sage);
    color: #31453f; background: #e3ebe5; font-size: 14px;
}
.flash-error { border-color: var(--coral); color: #713c32; background: #f2ded7; }
.flash-success { border-color: var(--sage); }
.flash button { border: 0; color: inherit; background: transparent; font-size: 22px; cursor: pointer; }

.hero-section {
    min-height: 720px; padding: 94px 0 42px; color: var(--fog); overflow: hidden;
    background:
        radial-gradient(circle at 83% 18%, rgb(201 134 85 / 20%), transparent 29%),
        linear-gradient(135deg, var(--night), #26343d 65%, #39464c);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(400px, 1.14fr); align-items: center; gap: 74px; }
.hero-copy h1, .page-hero h1, .journey-intro h1, .admin-hero h1, .auth-copy h1 {
    margin: 0; font-family: var(--serif); font-size: clamp(54px, 7vw, 98px); font-weight: 400;
    letter-spacing: -.04em; line-height: .96;
}
.hero-lead { max-width: 650px; margin: 34px 0 0; color: #c1c8c6; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 42px; }
.hero-mark { position: relative; margin: 0; }
.hero-mark::before {
    content: ""; position: absolute; z-index: 0; inset: -36px -55px 62px 28%;
    border: 1px solid rgb(225 176 126 / 30%); border-radius: 50%;
}
.hero-mark img {
    position: relative; z-index: 1; width: 100%; aspect-ratio: 828 / 281; object-fit: cover;
    filter: saturate(.76) sepia(.08); box-shadow: 0 30px 80px rgb(13 21 27 / 42%);
}
.hero-mark figcaption {
    position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px;
    margin: 18px 0 0 34px; padding-left: 16px; border-left: 1px solid var(--amber);
    color: #aeb8b7; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-mark figcaption span:first-child { color: var(--paper); }
.hero-index { display: flex; align-items: center; gap: 16px; margin-top: 74px; color: #8e9a9c; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.hero-index i { display: block; width: 85px; height: 1px; background: #657278; }

.definition-section { padding: 112px 0 124px; background: var(--paper); }
.definition-grid { display: grid; grid-template-columns: .35fr 1fr; gap: 38px 82px; }
.definition-grid > div h2, .projection-copy h2, .context-grid h2, .section-header h2 {
    margin: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 66px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08;
}
.definition-grid > div > p { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.principles {
    grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none;
}
.principles li { padding: 26px 28px 0 0; border-right: 1px solid var(--line); }
.principles li + li { padding-left: 28px; }
.principles li:last-child { border-right: 0; }
.principles span { color: #9b6d50; font-size: 11px; letter-spacing: .15em; }
.principles strong { display: block; margin-top: 28px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.principles p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.archive-preview, .archive-page { padding: 110px 0 130px; color: var(--fog); background: var(--night-soft); }
.archive-page { min-height: 52vh; padding-top: 78px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section-header .overline { margin-bottom: 14px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 26px; }
.journey-grid-home .journey-card:first-child { grid-column: span 2; }
.journey-card { display: block; color: inherit; text-decoration: none; }
.journey-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #334149; }
.journey-grid-home .journey-card:first-child .journey-image { aspect-ratio: 16 / 9; }
.journey-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.journey-card:hover .journey-image img { transform: scale(1.025); filter: brightness(1.07); }
.image-placeholder {
    display: block; width: 100%; height: 100%;
    background: radial-gradient(circle at 55% 40%, #8b654e, transparent 12%), linear-gradient(145deg, #425159, #26323a);
}
.image-placeholder::after { content: ""; position: absolute; inset: 18%; border: 1px solid #78848a; border-radius: 50%; }
.image-number { position: absolute; left: 14px; bottom: 12px; padding: 6px 8px; color: var(--night); background: var(--amber-light); font-size: 10px; letter-spacing: .12em; }
.journey-card-copy { display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; padding-top: 18px; border-top: 1px solid #526067; }
.journey-card-copy h2, .journey-card-copy h3 { grid-column: 1 / -1; margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.15; }
.journey-card-copy p, .journey-card-copy span { margin: 0; color: #9ba6a8; font-size: 11px; letter-spacing: .04em; }
.journey-card-copy span { text-align: right; }
.soft-empty, .editor-empty {
    display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 210px;
    border: 1px solid #59666c; color: #b5bdbc; text-align: left;
}
.soft-empty h2, .soft-empty h3 { margin: 0 0 8px; color: var(--paper); font-family: var(--serif); font-size: 28px; font-weight: 400; }
.soft-empty p, .editor-empty p { margin: 0; }
.empty-orbit { display: block; width: 48px; height: 48px; border: 1px solid var(--amber); border-radius: 50%; box-shadow: inset 0 0 0 14px transparent; position: relative; }
.empty-orbit::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--amber); }

.projection-story { padding: 120px 0; color: var(--paper); background: #35444b; }
.projection-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 86px; }
.projection-visual { min-width: 0; }
.screen-frame { padding: 3.5%; background: #222d35; box-shadow: var(--shadow); }
.screen-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.65) brightness(.82); }
.screen-progress { display: flex; align-items: center; gap: 16px; margin-top: 15px; color: #9da8aa; font-size: 10px; letter-spacing: .13em; }
.screen-progress i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--amber) 38%, #66737a 38%); }
.projection-copy p:not(.overline) { margin: 26px 0 28px; color: #b9c1c1; line-height: 1.8; }

.context-section { padding: 105px 0; background: var(--fog); }
.context-grid { display: grid; grid-template-columns: .38fr 1fr; gap: 34px 76px; }
.context-grid h2 { max-width: 820px; }
.context-links { grid-column: 2; margin-top: 30px; border-top: 1px solid var(--line); }
.context-links a { display: flex; justify-content: space-between; gap: 20px; padding: 19px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.context-links a:hover { color: #8e5d42; }
.context-links b { font-weight: 400; }

.page-hero { padding: 100px 0 112px; color: var(--fog); background: linear-gradient(135deg, var(--night), #34434b); }
.compact-hero p:last-child { max-width: 680px; margin: 30px 0 0; color: #bcc4c3; }
.compact-hero h1 { font-size: clamp(48px, 7vw, 86px); }
.error-page { min-height: 64vh; display: grid; align-items: center; }
.error-page h1 { max-width: 850px; font-size: clamp(50px, 8vw, 92px); }
.error-page p:not(.overline) { margin: 25px 0 32px; color: #bbc4c3; }

.journey-intro { padding: 88px 0 80px; color: var(--fog); background: var(--night); }
.back-link { margin-bottom: 60px; color: #aab4b5; }
.journey-intro h1 { max-width: 950px; font-size: clamp(50px, 8vw, 96px); }
.journey-meta { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 38px; color: #9da8aa; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.journey-meta span + span::before { content: "·"; margin-right: 30px; color: var(--amber); }
.journey-stream { padding: 82px 0 40px; background: #d8d5cd; }
.journey-stream figure { width: min(calc(100% - 64px), 1040px); margin: 0 auto 86px; }
.journey-stream figure:nth-child(even) { width: min(calc(100% - 120px), 820px); }
.journey-stream img { width: 100%; max-height: 82vh; object-fit: contain; background: #c5c4be; box-shadow: 0 18px 60px rgb(25 33 42 / 12%); }
.journey-stream figcaption { display: flex; justify-content: space-between; gap: 30px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.journey-stream figcaption p { max-width: 600px; margin: 0; }
.journey-note { margin-top: 70px; margin-bottom: 70px; padding: 52px 8%; border: 0; border-left: 2px solid var(--amber); font-family: var(--serif); font-size: clamp(24px, 4vw, 42px); line-height: 1.4; }
.journey-note span { display: block; margin-bottom: 24px; color: #8c624a; font: 700 10px/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.journey-close { padding-bottom: 80px; }

.site-footer { padding: 72px 0; color: #adb6b5; background: #222c34; }
.footer-grid { display: grid; grid-template-columns: 1fr .8fr .8fr; gap: 70px; }
.footer-brand { color: var(--paper); }
.footer-grid p { font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.footer-links > span { margin-bottom: 8px; color: #7f8c8f; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { text-underline-offset: 4px; }
.footer-note { margin: 0; align-self: end; text-align: right; }

/* Forms */
.stack-form { display: grid; gap: 18px; }
.stack-form label, .editor-form label {
    display: grid; gap: 8px; color: #4d5a61; font-size: 11px; font-weight: 750;
    letter-spacing: .08em; text-transform: uppercase;
}
input, textarea, select {
    width: 100%; border: 1px solid #aeb4b2; border-radius: 0; color: var(--ink);
    background: #faf7f0; padding: 12px 13px; letter-spacing: normal; text-transform: none;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--amber); outline: 1px solid var(--amber); }
label small { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: normal; text-transform: none; }

.auth-body .site-header, .auth-body .site-footer { display: none; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; background: var(--night); }
.auth-art { position: relative; min-height: 640px; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--night)); }
.auth-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.68); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 70px min(8vw, 110px) 50px 6vw; color: var(--fog); }
.auth-panel .site-brand { margin-bottom: 90px; }
.auth-copy h1 { font-size: clamp(55px, 7vw, 88px); }
.auth-copy > p:last-child { margin: 22px 0 34px; color: #aeb8b8; }
.auth-panel .stack-form label { color: #bdc4c2; }
.auth-panel input { color: var(--paper); background: #24313a; border-color: #536167; }
.auth-note { margin-top: 28px; color: #7f8c8f; font-size: 11px; }

/* Author and curator workspaces */
.workspace-shell { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 330px minmax(0, 1fr); }
.workspace-sidebar { padding: 38px 24px; color: var(--fog); background: #2b3841; border-right: 1px solid #526068; }
.workspace-sidebar-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.workspace-sidebar h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.icon-button { border: 1px solid #68767c; color: inherit; background: transparent; cursor: pointer; }
.sidebar-toggle { display: none; width: 38px; height: 38px; }
.new-item-form { display: flex; margin-bottom: 28px; }
.new-item-form input { min-width: 0; color: var(--fog); background: #243038; border-color: #58666b; }
.new-item-form button { flex: 0 0 44px; border: 0; color: var(--night); background: var(--amber); font-size: 20px; cursor: pointer; }
.workspace-list { display: grid; gap: 4px; }
.workspace-list-item { display: grid; grid-template-columns: 9px 1fr; align-items: center; gap: 13px; padding: 13px 10px; color: #bbc3c2; text-decoration: none; }
.workspace-list-item:hover, .workspace-list-item.active { color: var(--paper); background: #34434b; }
.workspace-list-item strong, .workspace-list-item small { display: block; }
.workspace-list-item strong { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.workspace-list-item small { margin-top: 3px; color: #8e9a9d; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border: 1px solid #aeb7b5; border-radius: 50%; }
.status-draft { border-color: var(--amber-light); }
.status-published { border-color: var(--sage); background: var(--sage); }
.status-archived { border-color: #6f7b7f; background: #6f7b7f; }
.workspace-list-empty { color: #889598; font-size: 12px; }
.workspace-main { min-width: 0; padding: 54px clamp(28px, 5vw, 76px) 90px; background: #e8e3d9; }
.workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.workspace-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 55px); font-weight: 400; line-height: 1.05; }
.workspace-actions { display: flex; align-items: center; gap: 10px; }
.workspace-actions form { margin: 0; }
.editor-form { margin-top: 34px; padding: 30px; background: #f3eee5; border: 1px solid #c5c3bb; }
.compact-editor { margin-bottom: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field-wide { grid-column: 1 / -1; }
.field-optional { color: #8c9698; font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.photo-editor, .program-builder, .photo-pool { margin-top: 62px; }
.editor-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 23px; }
.editor-section-head h3 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.editor-section-head h3 span { color: #7a8588; font: 500 12px/1 var(--sans); }
.editor-section-head > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.upload-zone { position: relative; display: grid; min-height: 150px; border: 1px dashed #899395; background: #dedbd3; }
.upload-zone > label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.upload-zone > label strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.upload-zone > label > span:last-child { color: var(--muted); font-size: 11px; }
.upload-symbol { color: #97664b; font-size: 27px; }
.upload-progress { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--fog); background: rgb(37 49 59 / 96%); }
.upload-progress[hidden] { display: none; }
.upload-progress i { display: block; width: min(240px, 70%); height: 2px; background: linear-gradient(90deg, var(--amber) var(--upload-progress, 10%), #56646a var(--upload-progress, 10%)); }
.sortable-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.sortable-photo { position: relative; min-width: 0; background: #d0cec7; }
.sortable-photo.dragging, .program-item.dragging { opacity: .45; }
.sortable-photo figure { margin: 0; }
.sortable-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sortable-photo figcaption { display: flex; justify-content: space-between; padding: 8px 10px; color: #687377; font-size: 10px; }
.sortable-photo figcaption em { color: #98664b; font-style: normal; }
.drag-handle { border: 0; color: #526067; background: transparent; cursor: grab; }
.sortable-photo > .drag-handle { position: absolute; top: 7px; left: 7px; width: 28px; height: 28px; color: var(--paper); background: rgb(25 33 42 / 72%); }
.photo-delete, .sequence-remove { border: 0; color: var(--paper); background: var(--coral); cursor: pointer; }
.photo-delete { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; font-size: 18px; }
.editor-empty { min-height: 150px; border-color: #adb1ad; color: var(--muted); }
.editor-empty .empty-orbit { width: 38px; height: 38px; }
.editor-empty .empty-orbit::after { inset: 14px; }
.workspace-welcome { max-width: 720px; margin: 13vh auto 0; text-align: center; }
.workspace-welcome .empty-orbit { margin: 0 auto 36px; }
.workspace-welcome h2 { margin: 0; font-family: var(--serif); font-size: clamp(43px, 6vw, 70px); font-weight: 400; line-height: 1.05; }
.workspace-welcome > p:not(.overline) { max-width: 540px; margin: 25px auto 30px; color: var(--muted); }

.program-sequence { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.program-item { display: grid; grid-template-columns: 45px 92px 1fr auto auto; align-items: center; gap: 14px; padding: 9px 12px; background: #d6d3cb; border: 1px solid #c4c2bb; }
.program-item img { width: 92px; height: 58px; object-fit: cover; }
.program-position { color: #8b6049; font-size: 11px; }
.program-item-copy strong, .program-item-copy small { display: block; }
.program-item-copy strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.program-item-copy small { color: var(--muted); font-size: 10px; }
.sequence-remove { width: 29px; height: 29px; font-size: 17px; }
.pool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pool-card { position: relative; margin: 0; background: #d3d0c8; }
.pool-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pool-card > span { display: block; overflow: hidden; padding: 8px 38px 8px 9px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pool-card > button { position: absolute; right: 6px; bottom: 6px; width: 27px; height: 27px; border: 0; color: var(--night); background: var(--amber); cursor: pointer; }
.muted-copy { color: var(--muted); }

/* Administration and profile */
.admin-page { min-height: 70vh; background: #ddd9d0; }
.admin-hero { padding: 70px 0; color: var(--fog); background: linear-gradient(120deg, #25323b, #3c4a50); }
.admin-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.admin-hero h1 { font-size: clamp(44px, 6vw, 74px); }
.admin-hero-inner > p { margin: 0; color: #b6bfbe; text-align: right; }
.admin-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 38px; padding-top: 54px; padding-bottom: 90px; }
.create-user-panel, .users-panel { padding: 28px; background: #f2eee5; border: 1px solid #c4c3bd; }
.create-user-panel h2, .panel-header h2 { margin: 0 0 25px; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.create-user-panel > p:not(.overline) { color: var(--muted); font-size: 13px; }
.admin-grid.profile-grid { grid-template-columns: minmax(0, 620px); justify-content: center; }
.profile-card { padding: 38px; }
.panel-header { border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.users-table th, .users-table td { padding: 17px 12px; border-bottom: 1px solid #cecac1; text-align: left; vertical-align: middle; }
.users-table th { color: #778286; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.users-table td strong, .users-table td small { display: block; }
.users-table td small { margin-top: 3px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.status-pill.disabled i { background: var(--coral); }
.text-button { border: 0; color: #8d5c42; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.self-label { color: #899396; font-size: 10px; }

/* Presentation */
.presentation-body { overflow: hidden; color: var(--fog); background: #151e25; }
.presentation { position: fixed; inset: 0; background: #151e25; }
.presentation-slides, .presentation-slide { position: absolute; inset: 0; }
.presentation-slide { margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s ease; }
.presentation-slide.active { opacity: 1; visibility: visible; }
.presentation-slide.transition-cut { transition-duration: 0s; }
.presentation-slide img { width: 100%; height: 100%; object-fit: contain; background: #151e25; }
.presentation-head { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; background: linear-gradient(#151e25cc, transparent); opacity: .55; transition: opacity .25s ease; }
.presentation:hover .presentation-head, .presentation:hover .presentation-ui, .presentation:focus-within .presentation-head, .presentation:focus-within .presentation-ui { opacity: 1; }
.presentation-head div span, .presentation-head div strong { display: block; }
.presentation-head div span { color: var(--amber-light); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.presentation-head div strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.presentation-head button { width: 40px; height: 40px; border: 1px solid #66747a; color: var(--fog); background: rgb(25 33 42 / 55%); cursor: pointer; }
.presentation-ui { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; opacity: .55; transition: opacity .25s ease; }
.presentation-progress { height: 2px; background: #58656b; }
.presentation-progress i { display: block; width: 0; height: 100%; background: var(--amber); }
.presentation-controls { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 25px; padding: 18px 30px 24px; background: linear-gradient(transparent, #151e25 35%); }
.presentation-counter { font-size: 11px; letter-spacing: .12em; }
.presentation-counter b { color: var(--amber-light); font-weight: 700; }
.presentation-buttons { display: flex; justify-content: center; gap: 7px; }
.presentation-buttons button { width: 42px; height: 42px; border: 1px solid #637177; color: var(--fog); background: rgb(28 39 47 / 78%); cursor: pointer; }
.presentation-buttons button:hover { border-color: var(--amber); }
.play-button .pause-icon { display: none; }
.play-button[aria-pressed="true"] .play-icon { display: none; }
.play-button[aria-pressed="true"] .pause-icon { display: inline; }
.presentation-help { color: #879397; font-size: 9px; letter-spacing: .05em; text-align: right; }
.presentation-empty { height: 100%; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.presentation-empty img { width: min(620px, 80vw); }
.presentation-empty h1 { margin: 35px 0 8px; font-family: var(--serif); font-size: 42px; font-weight: 400; }
.presentation-empty p { color: #95a1a3; }
.presentation-empty button { padding: 10px 18px; border: 1px solid #66747a; color: var(--fog); background: transparent; cursor: pointer; }

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 15px 32px 24px; background: #232f38; border-top: 1px solid #4b5960; }
    .main-nav.open { display: flex; }
    .main-nav > a, .nav-logout button { display: block; width: 100%; padding: 12px 4px; text-align: left; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 820px; }
    .hero-mark { max-width: 760px; margin-left: auto; }
    .definition-grid { grid-template-columns: .28fr 1fr; gap: 38px 45px; }
    .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .projection-grid { gap: 45px; }
    .sortable-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .workspace-shell { grid-template-columns: 280px minmax(0, 1fr); }
    .admin-grid { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 820px) {
    .page-width { width: min(calc(100% - 36px), var(--width)); }
    .header-inner { min-height: 66px; }
    .main-nav { padding-inline: 18px; }
    .hero-section { min-height: auto; padding-top: 68px; }
    .hero-grid { gap: 50px; }
    .hero-copy h1 { font-size: clamp(48px, 14vw, 74px); }
    .hero-mark figcaption { margin-left: 0; }
    .definition-section, .archive-preview, .projection-story, .context-section { padding-block: 80px; }
    .definition-grid, .context-grid { grid-template-columns: 1fr; }
    .definition-grid > *, .context-grid > * { grid-column: 1; }
    .principles { grid-template-columns: 1fr; }
    .principles li, .principles li + li { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .projection-grid { grid-template-columns: 1fr; }
    .context-links { margin-top: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-note { grid-column: 1 / -1; text-align: left; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { min-height: 34vh; max-height: 360px; }
    .auth-art::after { background: linear-gradient(transparent 55%, var(--night)); }
    .auth-panel { padding: 48px 28px 70px; }
    .auth-panel .site-brand { margin-bottom: 55px; }
    .workspace-shell { display: block; }
    .workspace-sidebar { padding: 23px 18px; }
    .workspace-sidebar-head { margin-bottom: 0; }
    .sidebar-toggle { display: block; }
    .new-item-form, .workspace-list { display: none; }
    .workspace-sidebar.open .new-item-form { display: flex; margin-top: 22px; }
    .workspace-sidebar.open .workspace-list { display: grid; }
    .workspace-main { padding: 38px 20px 70px; }
    .workspace-header { align-items: flex-start; flex-direction: column; }
    .editor-section-head { align-items: flex-start; flex-direction: column; }
    .editor-section-head > p { text-align: left; }
    .sortable-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-hero-inner { align-items: flex-start; flex-direction: column; }
    .admin-hero-inner > p { text-align: left; }
    .admin-grid { grid-template-columns: 1fr; }
    .presentation-help { display: none; }
    .presentation-controls { grid-template-columns: 65px 1fr; }
}

@media (max-width: 560px) {
    .page-width { width: min(calc(100% - 28px), var(--width)); }
    .hero-section { padding-top: 52px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-mark figcaption { display: block; }
    .hero-mark figcaption span { display: block; margin-bottom: 4px; }
    .hero-index { margin-top: 48px; }
    .section-header { align-items: flex-start; flex-direction: column; }
    .journey-grid { grid-template-columns: 1fr; }
    .journey-grid-home .journey-card:first-child { grid-column: auto; }
    .journey-grid-home .journey-card:first-child .journey-image { aspect-ratio: 4 / 3; }
    .page-hero { padding-block: 72px; }
    .journey-stream figure, .journey-stream figure:nth-child(even) { width: calc(100% - 28px); margin-bottom: 52px; }
    .journey-meta { display: grid; gap: 8px; }
    .journey-meta span + span::before { content: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: 1; }
    .workspace-actions { flex-wrap: wrap; }
    .editor-form { padding: 20px 16px; }
    .sortable-photo-grid { gap: 7px; }
    .program-item { grid-template-columns: 30px 70px 1fr auto; gap: 8px; }
    .program-item img { width: 70px; height: 50px; }
    .program-item .drag-handle { display: none; }
    .program-item-copy small { display: none; }
    .pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .create-user-panel, .users-panel { padding: 20px 15px; }
    .users-table thead { display: none; }
    .users-table tr { display: block; padding: 12px 0; border-bottom: 1px solid #c8c5bd; }
    .users-table td { display: flex; justify-content: space-between; gap: 20px; padding: 6px 3px; border: 0; text-align: right; }
    .users-table td::before { content: attr(data-label); color: #778286; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
    .table-action { justify-content: flex-end !important; }
    .table-action::before { display: none; }
    .presentation-head { padding: 15px; }
    .presentation-controls { padding: 14px 12px 17px; gap: 8px; }
    .presentation-buttons { gap: 3px; }
    .presentation-buttons button { width: 38px; height: 38px; }
}

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