/* DEX: shared seasonal palette and layout tokens. */
@theme {
  --color-primary: #1d3042;
  --color-background: #f6f8fb;
  --color-neutral: #48504c;
  --color-silver-blue: #d7e1e9;
  --color-highlight: #edf2f6;
  --color-depth: #b7c9d8;
  --color-exhibit: #eff1f0;
  --color-mat: #fcfcfa;
  --color-place-marker: #b35d4d;
  --font-sans: 'Lato', sans-serif;
  --font-personal: 'Caveat', cursive;
  --font-interface: 'Chakra Petch', sans-serif;
  --text-sm: 0.75rem;
  --text-base: 0.9375rem;
}
@layer base {
  :root {
    --dex-ink: #1d3042; --dex-blue: #d7e1e9; --dex-highlight: #edf2f6; --dex-depth: #b7c9d8;
    --dex-flow-seam: #101010; --dex-flow-blue: #101010; --dex-flow-mist: #414141; --dex-flow-ice: #ffffff;
    --dex-timeline-ink: #fafafa; --dex-neon-glow: #ffffff;
    --dex-gallery: #f6f8fb; --dex-wall: #eff1f0; --dex-mat: #fcfcfa; --dex-soft-ink: #48504c;
    --dex-border: #d9ddda; --dex-caption: #6a675f; --color-place-marker: #b35d4d;
    --dex-gap: 16px; --dex-page-inset: 48px; --dex-micro: 'Chakra Petch', sans-serif;
    --dex-personal: 'Caveat', 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans CJK SC', cursive; --dex-reading: 'Lato', 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
    --dex-z-backdrop: 0; --dex-z-content: 1; --dex-z-chrome: 10; --dex-z-return: 20; --dex-z-access: 30;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { margin-top: 0 !important; scroll-behavior: auto; }
  body.dex-archive-body { margin: 0; background: var(--dex-gallery); color: var(--dex-ink); -webkit-font-smoothing: antialiased; }
  #wpadminbar { display: none; }
  [x-cloak] { display: none !important; }
  #dex-app { min-height: 100dvh; font: 11px/16px var(--dex-micro); font-variant-numeric: tabular-nums; isolation: isolate; }
  #dex-app button, #dex-app a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  #dex-app button { font: inherit; color: inherit; border: 0; padding: 0; background: none; text-align: inherit; cursor: pointer; }
  #dex-app button:focus-visible, #dex-app a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
  #dex-app p, #dex-app h1, #dex-app h2, #dex-app h3, #dex-app figure, #dex-app dl, #dex-app dd { margin: 0; }
  #dex-app h1, #dex-app h2, #dex-app h3 { font: inherit; text-wrap: balance; }
  #dex-app p { text-wrap: pretty; }
  #dex-app img { display: block; max-width: 100%; }
  #dex-content { position: relative; z-index: var(--dex-z-content); }
  #dex-content:focus { outline: none; }
}
@layer components {
  .dex-atmosphere { position: fixed; inset: 0; z-index: var(--dex-z-backdrop); pointer-events: none; background: var(--dex-gallery); }
  [data-view='detail'] .dex-atmosphere { background: var(--dex-wall); }
  .dex-atmosphere::after, .year-atmosphere::after { content: ''; position: absolute; inset: 0; opacity: .095; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.55' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
  .year-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--dex-flow-seam); opacity: 0; transform: translate3d(0, 7%, 0) scale(1.03); transition: opacity .22s ease-out, transform .3s ease-out; }
  .year-atmosphere { --dex-silk-color: #101010; --dex-silk-accent: #414141; --dex-silk-speed: .28; --dex-silk-pixel-size: 0; --dex-silk-noise: .4; background: linear-gradient(125deg, #101010, #262626 55%, #181818); }
  .year-atmosphere::before { display: none; }
  .year-atmosphere::after { display: block; z-index: 1; opacity: var(--dex-silk-noise); mix-blend-mode: screen; }
  .silk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
  .has-silk .silk-canvas { display: block; }
  [data-view='years'] .archive-chrome { position: fixed; color: var(--dex-timeline-ink); }
  .year-page { overflow: clip; color: var(--dex-timeline-ink); isolation: isolate; }
  #dex-app .year-page .year-option { text-shadow: 0 0 7px #ffffff33; }
  #dex-app .year-page .year-option.is-selected { color: #ffffff; text-shadow: 0 0 2px #ffffffb3, 0 0 12px #ffffff66, 0 0 24px #ffffff26; }
  .year-page .compact-months .month-number { text-shadow: 0 0 6px #ffffff55; }
  .year-page .compact-months button:hover .month-number, .year-page .compact-months button:focus-visible .month-number { text-shadow: 0 0 2px #ffffffa6, 0 0 12px #ffffff80; }
  .year-atmosphere { z-index: 0; isolation: isolate; }
  .year-page .year-interaction, .year-page .year-footer { z-index: 3; }
  .year-page::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgb(10 10 10 / .16); backdrop-filter: blur(12px) grayscale(.4); -webkit-backdrop-filter: blur(12px) grayscale(.4); opacity: 1; transition: opacity .25s ease-out; }
  .year-page::after { display: none; }
  .year-page.is-direct::before { display: none; }
  .year-page.is-direct.is-arrived .year-atmosphere, .year-page.is-direct .year-interaction, .year-page.is-direct .year-footer { transition: none; }
  .year-page.is-arrived .year-atmosphere { opacity: 1; transform: none; transition: opacity .72s ease-out .16s, transform .86s ease-out .16s; }
  .year-page.is-revealed::before, .year-page.is-revealed::after { opacity: 0; }
  .year-page .year-interaction, .year-page .year-footer { opacity: 0; transition: opacity .24s ease-out; pointer-events: none; }
  .year-page.is-revealed .year-interaction { opacity: 1; pointer-events: auto; }
  .year-page.is-revealed .year-footer { opacity: 1; transition-delay: .08s; pointer-events: auto; }
  .archive-chrome { position: absolute; top: 28px; left: var(--dex-page-inset); right: var(--dex-page-inset); height: 44px; display: flex; justify-content: space-between; align-items: center; z-index: var(--dex-z-chrome); }
  .rule-label { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; white-space: nowrap; opacity: .78; }
  .rule-label::before { content: ''; width: 16px; height: 1px; background: currentColor; opacity: .55; }
  .archive-chrome nav { display: flex; gap: 24px; align-items: center; }
  .archive-chrome nav button { min-height: 44px; opacity: .55; }
  .archive-chrome nav button.is-current { opacity: .92; }
  #dex-app .round-return { width: 44px; height: 44px; border-radius: 50%; background: var(--dex-mat); display: flex; align-items: center; justify-content: center; color: var(--dex-soft-ink); flex: none; }
  .round-return img, .exhibit-brand img { width: 24px; height: 19px; object-fit: contain; transform: rotate(-7deg); }
  #dex-app .detail-return { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
  #dex-app .floating-return { position: fixed; right: var(--dex-page-inset); bottom: max(48px, env(safe-area-inset-bottom)); z-index: var(--dex-z-return); box-shadow: 0 2px 16px #23303c08; }
  .power-page { position: sticky; top: 0; min-height: 500px; height: 100dvh; overflow: hidden; background: #171819; }
  .power-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s linear; pointer-events: none; }
  .power-slide.is-active { opacity: 1; }
  .power-photo { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none !important; object-fit: cover; }
  .power-slide:not(.is-active) .power-photo { animation: none; }
  .power-slide.is-active .power-photo { animation: dex-photo-drift 12s linear infinite, dex-photo-scale 12s linear infinite; }
  .power-photo.motion-1 { --drift-x: 14px; }
  .power-photo { --drift-x: -14px; --drift-y: -9px; }
  .power-photo.is-paused { animation-play-state: paused !important; }
  .power-caption { position: absolute; width: 340px; color: #171717; }
  .power-caption.caption-0 { left: 10.28%; top: 27.78%; }
  .power-caption.caption-1 { left: 61.53%; top: 25.33%; }
  .power-caption.caption-2 { left: 61.94%; top: 21.56%; }
  .power-caption.light-ink { color: #fafafa; }
  .power-caption .eyebrow { font: 11px/17px var(--dex-reading); opacity: .92; margin-bottom: 4px !important; }
  .power-name { display: flex; gap: 12px; align-items: center; }
  .power-name h1 { font: 400 64px/64px var(--dex-personal) !important; opacity: 1; }
  .power-name img { width: 36px; height: 36px; opacity: 1; }
  .light-ink .power-name img { filter: brightness(0) invert(1); }
  .power-caption .personal-line { font: 400 21px/26px var(--dex-personal); opacity: 1; margin-top: 4px !important; }
  .power-top { position: absolute; left: 48px; right: 48px; top: 28px; display: flex; align-items: center; justify-content: space-between; color: #171819; z-index: var(--dex-z-chrome); }
  #dex-app .slide-counter { min-height: 44px; opacity: .72; display: flex; align-items: center; gap: 12px; }
  .pause-mark { opacity: 0; transition: opacity .15s; }
  .slide-counter:hover .pause-mark, .slide-counter:focus-visible .pause-mark, .slide-counter[aria-pressed='true'] .pause-mark { opacity: 1; }
  .power-bottom { position: absolute; left: 34px; right: 48px; bottom: max(48px, env(safe-area-inset-bottom)); height: 44px; display: flex; align-items: center; justify-content: space-between; color: #fffdf5; z-index: var(--dex-z-chrome); }
  .power-bottom img { filter: brightness(0) invert(1); }
  #dex-app .quiet-index { display: flex; align-items: center; gap: 8px; min-width: 44px; height: 44px; opacity: .6; }
  .quiet-index img { margin: 14px; }
  .quiet-index span { display: none; }
  .quiet-index:hover span, .quiet-index:focus-visible span { display: block; }
  #dex-app .continue-link { position: absolute; left: 50%; transform: translateX(-50%); min-width: 148px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 12px; opacity: .9; }
  .site-address { opacity: .72; }
  .year-page { position: relative; height: 100dvh; min-height: 560px; touch-action: pan-y; user-select: none; }
  .year-interaction { position: absolute; top: 50%; left: 50%; width: min(760px, calc(100% - 96px)); height: min(640px, calc(100% - 160px)); transform: translate(-50%, -50%); overflow: hidden; touch-action: pan-y; mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  .year-interaction.is-ready { touch-action: none; }
  .year-wheel { position: absolute; top: 50%; left: 50%; width: 160px; height: 416px; transform: translate(-50%, -50%); }
  #dex-app .year-option { position: absolute; width: 160px; top: 50%; left: 0; margin-top: -32px; height: 64px; text-align: center; font-size: 35px; font-weight: 500; line-height: 44px; transform-origin: center; transition: transform .24s ease-out, opacity .18s ease-out; }
  #dex-app .year-interaction.is-moving .year-option { transition: none; will-change: transform, opacity; }
  .compact-months { position: absolute; top: calc(50% + 22px); margin-top: 0; left: -124px; width: 408px; display: flex; height: 64px; align-items: stretch; }
  #dex-app .compact-months button { position: relative; flex: 1 1 0; min-width: 0; height: 64px; font-size: 12.5px; font-weight: 500; opacity: 1; transition: opacity .15s ease-out; }
  .compact-months .month-drift { position: absolute; inset: 0; display: grid; place-items: center; animation: dex-month-float var(--month-duration, 12s) ease-in-out infinite alternate; animation-delay: var(--month-delay, 0s); animation-play-state: paused; }
  .compact-months.is-floating .month-drift { animation-play-state: running; will-change: transform; }
  .compact-months .month-number { display: block; line-height: 18px; text-align: center; transform-origin: center; transition: transform .18s ease-out; }
  #dex-app .compact-months button:hover, #dex-app .compact-months button:focus-visible { opacity: 1; }
  .compact-months button:hover .month-number, .compact-months button:focus-visible .month-number { transform: scale(1.5); font-weight: 700; }
  .compact-months button:hover .month-drift, .compact-months button:focus-visible .month-drift { animation-play-state: paused; }
  @keyframes dex-month-float { from { transform: translate3d(var(--month-from-x, -1px), var(--month-from-y, -6px), 0); } to { transform: translate3d(var(--month-to-x, 1px), var(--month-to-y, 6px), 0); } }
  .month-rail-enter { transition: opacity .2s ease-out .04s, transform .24s ease-out .04s; }
  .month-rail-leave { transition: opacity .18s ease-out, transform .24s ease-out; }
  .month-rail-gathered { opacity: 0; transform: translate3d(0, -30px, 0) scale(.94); }
  .month-rail-hidden { opacity: 0; transform: translate3d(0, 3px, 0); }
  .month-rail-shown { opacity: 1; transform: translate3d(0, 0, 0); }
  .year-footer { position: absolute; left: var(--dex-page-inset); right: var(--dex-page-inset); bottom: 28px; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
  .year-footer>.rule-label { opacity: .62; }
  #dex-app .atmosphere-toggle { min-width: 44px; height: 44px; margin-left: 12px; text-align: center; opacity: .55; }
  body:has(#wpvibe-preview-banner) .year-footer { bottom: 76px; }
  .year-index { margin-left: auto; display: flex; align-items: center; gap: 32px; opacity: .68; }
  .index-marks { display: flex; gap: 6px; }
  .index-marks i { width: 4px; height: 1px; background: currentColor; opacity: .25; }
  .index-marks i.is-active { opacity: .9; }
  .gallery-page { padding: 152px 24px 80px; min-height: 100dvh; }
  .gallery-heading { position: relative; width: 660px; max-width: calc(100vw - 340px); margin: 0 auto 44px; height: 56px; }
  .period-label { position: absolute; left: -104px; top: 10px; width: 104px; height: 44px; font-size: 14px !important; line-height: 24px !important; display: flex; align-items: center; justify-content: center; opacity: .9; white-space: nowrap; }
  .month-picker { position: relative; height: 56px; }
  .month-viewport { overflow: visible; height: 56px; scrollbar-width: none; }
  .month-viewport::-webkit-scrollbar { display: none; }
  .month-track { position: relative; display: flex; justify-content: space-between; align-items: flex-start; height: 56px; padding: 18px 1px 0; }
  .month-track::before { content: ''; position: absolute; top: 22px; left: 17px; right: 17px; height: 1px; background: currentColor; opacity: .6; }
  #dex-app .month-option { position: relative; width: 32px; min-width: 32px; height: 38px; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .78; }
  .month-option i { display: block; height: 8px; width: 1px; background: linear-gradient(to bottom, transparent 2px, currentColor 2px, currentColor 6px, transparent 6px); opacity: .6; }
  .month-option:nth-child(3n+1) i { background: currentColor; }
  .month-option span { font-size: 11px; line-height: 20px; white-space: nowrap; }
  #dex-app .month-option.is-selected { opacity: 1; }
  .month-option.is-selected span { font-size: 16px; font-weight: 700; }
  .month-option.is-selected i { background: currentColor; }
  .month-pointer { display: none; }
  .archive-grid { display: flex; max-width: 1070px; margin: 0 auto; gap: var(--dex-gap); align-items: flex-start; }
  .archive-column { display: flex; flex-direction: column; gap: var(--dex-gap); min-width: 0; flex: 1; }
  #dex-app .artwork-unit { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; text-align: left; }
  .artwork-unit img { width: 100%; height: auto; }
  .work-caption { font-size: 11px; line-height: 12px; color: var(--dex-caption); }
  .artwork-unit:hover img, .board-work:hover img { opacity: .92; }
  .empty-month { min-height: 40dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; font: 14px/22px var(--dex-reading); opacity: .7; }
  #dex-app .empty-month button { min-height: 44px; font-size: 12px; border-bottom: 1px solid #48504c40; }
  .demo-footnote { margin: 56px auto 0 !important; font: 10px/16px var(--dex-micro); color: var(--dex-soft-ink); opacity: .5; text-align: center; }
  .board-page { padding: 140px var(--dex-page-inset) 80px; min-height: 100dvh; }
  .board-browse { display: flex; gap: 28px; margin-bottom: 36px; font: 12px/20px var(--dex-reading); }
  #dex-app .board-browse button { min-height: 44px; opacity: .5; }
  #dex-app .board-browse button.is-current, #dex-app .board-browse button:hover { opacity: 1; }
  .board-browse span { margin-left: 6px; }
  .collections-page, .collection-page { padding: 140px var(--dex-page-inset) 80px; min-height: 100dvh; }
  #dex-app .collections-heading { font: 400 40px/48px var(--dex-personal); margin-bottom: 36px; }
  .chronology-browse { margin-bottom: 28px; }
  #dex-app .gallery-heading .period-label { height: 72px; top: -8px; }
  .gallery-year-rail { width: 80px; height: 72px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; padding-block: 24px; box-sizing: border-box; scrollbar-width: none; mask-image: linear-gradient(transparent, black 24px, black 48px, transparent); -webkit-mask-image: linear-gradient(transparent, black 24px, black 48px, transparent); }
  .gallery-year-rail::-webkit-scrollbar { display: none; }
  .gallery-year-rail { transition: transform .18s ease-out; }
  .gallery-year-rail:is(.is-touching, :has(:focus-visible)) { transform: scale(1.24); }
  @media (hover: hover) { .gallery-year-rail:hover { transform: scale(1.24); } }
  @media (max-width: 700px) { .gallery-year-rail { transform-origin: left bottom; } }
  #dex-app .gallery-year-option { display: block; width: 100%; height: 24px; scroll-snap-align: center; text-align: center; font: 11px/24px var(--dex-micro); opacity: .38; transition: font-size .18s, opacity .18s; }
  #dex-app .gallery-year-option.is-selected { font-size: 16px; font-weight: 600; opacity: 1; }
  @media (max-width: 700px) { #dex-app .gallery-heading .period-label { top: -12px; width: 80px; } }
  .collection-list { max-width: 1000px; margin: 0 auto; }
  .collection-window { position: relative; touch-action: pan-y; }
  #dex-app .collection-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(245 245 245 / .85); color: #222; font-size: 22px; backdrop-filter: blur(8px); }
  .collection-prev { left: 16px; }
  .collection-next { right: 16px; }
  #dex-app .collection-summary { margin-top: 6px; font: 13px/21px var(--dex-reading); opacity: .65; }
  #dex-app .collection-entry { display: block; width: 100%; }
  .collection-entry>img { width: 100%; height: clamp(240px, 45vw, 560px); object-fit: cover; }
  .collection-entry-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
  .collection-title { font: 400 30px/38px var(--dex-personal); }
  .collection-count { font-size: 10px; opacity: .6; white-space: nowrap; }
  #dex-app .collection-back { min-height: 44px; display: inline-flex; gap: 10px; align-items: center; font: 12px/20px var(--dex-reading); opacity: .65; }
  .collection-heading { width: min(100%, 1070px); margin: 28px auto 48px; }
  .collection-heading .eyebrow { font: 10px/18px var(--dex-micro); opacity: .6; }
  #dex-app .collection-heading h1 { font: 400 52px/60px var(--dex-personal); margin: 8px 0 12px; }
  .collection-heading>p:last-child { font: 14px/24px var(--dex-reading); opacity: .7; }
  .collection-grid { padding-bottom: 24px; }
  .board-period { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 32px; margin-bottom: 32px; align-items: start; }
  .board-date { position: sticky; top: 28px; display: flex; flex-direction: column; font: 11px/16px var(--dex-micro) !important; opacity: .62; }
  .board-photos { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .board-row { display: flex; gap: 10px; width: 100%; }
  #dex-app .board-work { display: block; min-width: 0; flex-basis: 0; overflow: hidden; }
  .board-work img { width: 100%; height: 100%; object-fit: contain; }
  .detail-page { color: var(--dex-soft-ink); min-height: 100dvh; font-family: var(--dex-reading); }
  .exhibit-top { position: absolute; top: 28px; left: 44px; right: 48px; height: 44px; display: flex; align-items: center; justify-content: space-between; z-index: var(--dex-z-return); }
  #dex-app .exhibit-brand { display: flex; align-items: center; gap: 12px; height: 44px; }
  .exhibit-reading { padding: 104px 24px 80px; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; align-items: center; }
  .mount-stage { min-height: 672px; width: 100%; max-width: 1120px; display: flex; align-items: center; justify-content: center; }
  #dex-app .photo-mount { background: var(--dex-mat); border: 1px solid var(--dex-border); padding: 56px; box-shadow: 0 5px 16px #14171414; width: fit-content; max-width: 100%; }
  .photo-mount img { width: auto; height: auto; max-height: 520px; max-width: min(780px, calc(100vw - 224px)); object-fit: contain; }
  .photo-mount.is-portrait img { height: 520px; width: auto; }
  .wall-label { text-align: center; display: flex; flex-direction: column; gap: 6px; width: min(440px, 100%); }
  .wall-label h1 { font: 400 38px/46px var(--dex-personal) !important; }
  .wall-label p { font: 11px/17px var(--dex-reading); opacity: .72; }
  .provenance { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 336px); column-gap: 128px; padding-left: 48px; width: 992px; max-width: 100%; align-items: start; }
  .journal-column { display: flex; flex-direction: column; gap: 28px; }
  .provenance h2 { font: 500 13px/20px var(--dex-reading) !important; margin-bottom: 16px !important; }
  .artist-note p { font: 15px/26px var(--dex-reading); opacity: .7; white-space: pre-line; }
  .artist-note .note-placeholder { opacity: .45; }
  .artwork-facts dl { display: flex; flex-direction: column; gap: 10px; }
  .artwork-facts dl>div { display: flex; gap: 16px; align-items: baseline; }
  .artwork-facts dt { width: 72px; flex: none; opacity: .6; font: 11px/17px var(--dex-reading); }
  .artwork-facts dd { font: 12px/18px var(--dex-reading); }
  .location .location-placeholder { padding: 12px 0; opacity: .6; font: 12px/18px var(--dex-reading); }
  .location h3 { font: 16px/20px var(--dex-reading) !important; }
  .location p:not(.location-placeholder) { font: 10px/14px var(--dex-reading); opacity: .55; }
  .place-sketch { width: 100%; height: auto; margin-bottom: 12px; }
  .screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .skip-link { position: fixed; top: -70px; left: 24px; z-index: var(--dex-z-access); padding: 14px; color: var(--dex-ink); background: var(--dex-mat); }
  .skip-link:focus { top: 8px; }
  .no-script { padding: 64px; font: 16px/24px sans-serif; }
  @keyframes dex-photo-drift { 0% { translate: 0px 0px; } 68.333% { translate: var(--drift-x) var(--drift-y); } 100% { translate: var(--drift-x) var(--drift-y); } }
  @keyframes dex-photo-scale { 0% { scale: 1 1; } 68.333% { scale: 1.035 1.035; } 100% { scale: 1.035 1.035; } }
  @media (min-width: 701px) and (max-width: 1100px) {
    .provenance { column-gap: 64px; grid-template-columns: 1.3fr 1fr; padding-left: 24px; }
    .board-period { column-gap: 24px; grid-template-columns: 52px minmax(0, 1fr); }
  }
  @media (max-width: 700px) {
    :root { --dex-page-inset: 24px; }
    .archive-chrome { top: max(32px, env(safe-area-inset-top)); }
    .archive-chrome nav { gap: 20px; }
    .power-page { min-height: 500px; }
    .power-top { left: 24px; right: 24px; top: max(24px, env(safe-area-inset-top)); }
    .power-bottom { left: 10px; right: 24px; bottom: max(28px, env(safe-area-inset-bottom)); }
    .quiet-index span { display: none !important; }
    .power-caption { width: 276px; max-width: calc(100vw - 48px); }
    .power-caption.caption-0 { left: 24px; top: 10.9%; }
    .power-caption.caption-1 { left: 24px; top: 25.12%; }
    .power-caption.caption-2 { left: 24px; top: 73.46%; }
    .power-name h1 { font-size: 48px !important; line-height: 50px !important; }
    .power-name img { width: 30px; height: 30px; }
    .power-photo { --drift-x: 4px; --drift-y: -7px; }
    .power-photo.motion-1 { --drift-x: -4px; }
    .year-page { min-height: 540px; }
    .year-interaction { width: calc(100% - 32px); }
    .year-footer { bottom: max(24px, env(safe-area-inset-bottom)); }
    .year-index { gap: 18px; }
    .index-marks { gap: 2px; }
    .index-marks i { width: 2px; }
    .year-footer>.rule-label { font-size: 10px; gap: 8px; }
    .gallery-page { padding: 100px 24px 64px; }
    .gallery-heading { width: 100%; max-width: none; height: 92px; margin: 0 0 44px; }
    .period-label { position: relative; left: auto; top: auto; justify-content: flex-start; height: 44px; width: 100%; }
    .month-picker { position: absolute; left: 0; right: 0; top: 56px; height: 56px; }
    .month-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent); }
    .month-track { width: max-content; padding: 18px calc((100vw - 92px)/2) 0; gap: 0; justify-content: flex-start; }
    .month-track::before { left: 0; right: 0; }
    #dex-app .month-option { width: 44px; min-width: 44px; scroll-snap-align: center; }
    .month-pointer { display: block; position: absolute; left: calc(50% - .5px); top: 12px; height: 20px; width: 1px; background: currentColor; pointer-events: none; }
    .archive-grid { width: 100%; }
    #dex-app .floating-return { right: 24px; bottom: max(28px, env(safe-area-inset-bottom)); }
    .board-page, .collections-page, .collection-page { padding-top: 120px; }
    .board-browse { gap: 24px; margin-bottom: 24px; }
    #dex-app .collections-heading { font-size: 34px; line-height: 42px; margin-bottom: 28px; }
    .collection-entry>img { height: 300px; }
    .collection-entry-label { gap: 10px; }
    .collection-title { font-size: 27px; }
    .collection-heading { margin: 20px auto 32px; }
    #dex-app .collection-heading h1 { font-size: 42px; line-height: 50px; }
    .board-period { grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; margin-bottom: 32px; }
    .board-date { font-size: 10px !important; top: 24px; }
    .board-photos { gap: 12px; }
    .board-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
    #dex-app .board-work { width: 100%; }
    .board-work img { width: 100%; height: auto; }
    .exhibit-top { top: max(20px, env(safe-area-inset-top)); left: 24px; right: 24px; }
    .exhibit-reading { padding: 96px 24px 64px; gap: 24px; }
    .mount-stage { min-height: 0; padding: 12px 7px; }
    #dex-app .photo-mount { padding: 24px; max-width: 100%; }
    .photo-mount img { max-height: 420px; max-width: calc(100vw - 112px); }
    .photo-mount.is-portrait img { height: auto; max-height: 420px; }
    .wall-label h1 { font-size: 32px !important; line-height: 40px !important; }
    .provenance { display: flex; flex-direction: column; padding-left: 0; width: 100%; gap: 28px; }
    .journal-column { gap: 28px; width: 100%; }
    .location { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    #dex-app *, #dex-app *::before, #dex-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .year-atmosphere { opacity: 1; transform: none; }
    .year-page::before, .year-page::after { display: none; }
  }
}
