@layer base, common, concepts, narrow;

@layer base {
  :root {
    font-family: "DM Sans", system-ui, sans-serif;
    font-synthesis: none;
    color-scheme: light;
    color: #202b20;
    background: #e8e6dd;
    --serif: "Instrument Serif", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
  }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; }
  h1, h2, h3, p, figure { margin: 0; }
  img { max-width: 100%; display: block; }
  button, input { font: inherit; }
  button { cursor: pointer; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { color: inherit; }
  a { color: inherit; text-decoration: none; }
  svg { flex: none; vertical-align: middle; }
  :focus-visible { outline: 2px solid #aa631c; outline-offset: 4px; }
  [hidden] { display: none !important; }
  ::selection { color: #173628; background: #f4da73; }
  .skip-link { position: fixed; z-index: 20; top: -60px; padding: 10px 15px; background: #fff; }
  .skip-link:focus { top: 10px; left: 10px; }
}

@layer common {
  .preview-bar {
    min-height: 50px; display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
    align-items: center; gap: 14px; padding: 5px 32px;
    color: #f3f1e6; background: #161d16; font-size: 12px; position: relative; z-index: 2;
  }
  .preview-id { display: flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; justify-self: start; }
  .preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #e7cc5c; }
  .concept-nav { display: flex; gap: 3px; align-items: center; scrollbar-width: none; }
  .concept-nav::-webkit-scrollbar { display: none; }
  .concept-link {
    padding: 8px 12px; border-radius: 6px; color: #c6cdc0; font-size: 12px;
    font-weight: 600; white-space: nowrap; text-align: center;
  }
  .concept-link:hover { background: #30392e; color: #fff; }
  .concept-link[aria-current] { background: #f0e9d4; color: #1a291e; }
  .concept-link span + span { display: none; }
  .device-switch { display: flex; align-items: center; gap: 1px; justify-self: end; border: 1px solid #465144; border-radius: 6px; padding: 2px; }
  .device-switch button { min-width: 32px; min-height: 31px; color: #d4ddce; background: transparent; border: 0; border-radius: 4px; font-size: 10px; font-weight: 700; }
  .device-switch button:hover, .device-switch button[aria-pressed="true"] { background: #39453a; color: #fff; }
  .site-frame { container-type: inline-size; min-height: calc(100vh - 50px); margin: auto; }
  .site-frame[data-device="mobile"] { max-width: 430px; box-shadow: 0 0 0 1px #1b211b22, 0 10px 60px #23281c22; }
  .site-frame[data-device="desktop"] { min-width: 1080px; }
  #experience { min-height: inherit; background: var(--paper); color: var(--ink); }
  #experience:focus, .journal-list:focus { outline: none; }
  .theme-journal { --paper: #f5f0e4; --ink: #213322; --soft: #566052; --line: #d8d3c0; --accent: #255734; --button: #204b30; --button-text: #fff8e6; }
  .theme-atlas { --paper: #132419; --ink: #f3efdc; --soft: #c3cbb9; --line: #3b5241; --accent: #f2d46d; --button: #edce66; --button-text: #213421; color-scheme: dark; }
  .theme-objects { --paper: #efe8da; --ink: #3c2c20; --soft: #655141; --line: #cabca8; --accent: #87351f; --button: #813d27; --button-text: #fff5e8; }
  .theme-films { --paper: #191517; --ink: #f5eadc; --soft: #c8b8ae; --line: #483639; --accent: #efd173; --button: #efd173; --button-text: #251a15; color-scheme: dark; }
  .theme-festivals { --paper: #f7ecda; --ink: #502223; --soft: #775557; --line: #ddc5aa; --accent: #873231; --button: #8b342e; --button-text: #fff4dc; }
  .brand-header {
    display: grid; grid-template-columns: minmax(172px, 1fr) auto minmax(100px, 1fr); align-items: center;
    min-height: 77px; padding: 12px max(5%, calc((100% - 1330px) / 2)); gap: 20px; border-bottom: 1px solid var(--line);
  }
  .wordmark { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font-weight: 700; font-size: 19px; line-height: .97; letter-spacing: -.055em; white-space: nowrap; }
  .wordmark img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
  .wordmark-of { font-family: var(--serif); font-weight: 400; font-style: italic; }
  .wordmark small { display: block; color: var(--soft); font-size: 9px; letter-spacing: .01em; font-weight: 600; margin-top: 6px; }
  .site-nav { display: flex; align-items: center; gap: clamp(15px, 2.9cqw, 43px); }
  .site-nav a { color: var(--soft); font-weight: 650; font-size: 13px; padding: 11px 0; position: relative; }
  .site-nav a[aria-current], .site-nav a:hover { color: var(--accent); }
  .site-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 4px; height: 1px; background: currentColor; }
  .header-actions { display: flex; gap: 5px; justify-self: end; }
  .icon-button, .round-button {
    display: inline-grid; place-items: center; inline-size: 43px; block-size: 43px; flex: 0 0 auto;
    border: 1px solid transparent; border-radius: 50%; background: none;
  }
  .icon-button:hover { border-color: currentColor; }
  .icon-button[aria-pressed="true"] svg { fill: currentColor; }
  .primary-button, .secondary-button, .text-button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 700; min-height: 46px; }
  .primary-button { padding: 0 19px; border: 1px solid transparent; border-radius: 3px; background: var(--button); color: var(--button-text); }
  .primary-button:hover { filter: brightness(1.13); }
  .secondary-button { padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--accent); }
  .secondary-button:hover:not(:disabled) { border-color: var(--accent); }
  .secondary-button:disabled { opacity: .5; cursor: default; }
  .text-button { border: 0; padding: 0; background: transparent; color: var(--accent); }
  .text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
  .round-button { color: #18291d; background: #f0d15e; }
  .round-button:hover { background: #ffec93; }
  .eyebrow { font: 500 11px/1.45 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
  .rule-label { display: flex; align-items: center; gap: 10px; color: var(--accent); }
  .rule-label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
  .section-heading h2 { font: 400 clamp(38px, 4.3cqw, 62px)/.99 var(--serif); letter-spacing: -.025em; }
  .pills { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
  .pill { min-height: 38px; padding: 5px 13px; color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 50px; white-space: nowrap; font-size: 12px; font-weight: 650; }
  .pill:hover { border-color: var(--accent); color: var(--accent); }
  .pill[aria-pressed="true"] { color: var(--button-text); background: var(--button); border-color: var(--button); }
  .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 auto; width: 90%; max-width: 1330px; border-top: 1px solid var(--line); padding: 24px 0 27px; font-size: 13px; }
  .site-footer > span { font-weight: 700; }
  .site-footer small { color: var(--soft); font-weight: 500; }
  .site-footer > div { display: flex; gap: 16px; }
  .site-footer a { color: var(--soft); }
  .site-footer a:hover { color: var(--accent); }
  .overlay {
    --ink: #253322; --soft: #596254; --paper: #f8f1e3; --line: #d8d3c0; --accent: #255734; --button: #204b30; --button-text: #fff8e6;
    width: min(670px, calc(100% - 26px)); max-width: none; max-height: min(88vh, 800px); margin: auto;
    overflow: hidden; color-scheme: light; border: 1px solid var(--line); padding: 0; background: var(--paper);
    color: var(--ink); box-shadow: 0 23px 90px #080f0b55; border-radius: 10px;
  }
  .overlay::backdrop { background: #141b15a8; backdrop-filter: blur(4px); }
  .dialog-content { overflow: auto; max-height: min(88vh, 800px); padding: 30px; }
  body:has(.site-frame[data-device="mobile"]) .overlay { width: min(406px, calc(100% - 24px)); }
  body:has(.site-frame[data-device="mobile"]) .dialog-content { padding: 20px; }
  body:has(.site-frame[data-device="mobile"]) .dialog-photo { margin: -20px -20px 0; }
  .dialog-close { position: absolute; right: 13px; top: 13px; z-index: 1; background: #fdf6e7; box-shadow: 0 1px 8px #13231625; }
  .dialog-content h2 { font: 400 clamp(36px, 5vw, 58px)/.97 var(--serif); padding-right: 38px; margin-bottom: 14px; }
  .dialog-content h3 { font: 400 30px/1.1 var(--serif); padding-top: 23px; }
  .dialog-content p:not(.eyebrow) { margin: 11px 0; line-height: 1.58; color: var(--soft); }
  .dialog-content .dialog-eyebrow { color: var(--accent); margin: 18px 0 6px; }
  .dialog-content .dialog-summary { font-weight: 650; }
  .dialog-actions { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
  .dialog-photo { background: #40301f; margin: -30px -30px 0; }
  .dialog-photo img { width: 100%; max-height: 280px; object-fit: cover; }
  .dialog-content .photo-credit { font-size: 12px; }
  .photo-credit a { text-decoration: underline; }
  .video-frame { background: #201916; aspect-ratio: 16/9; margin-top: 14px; }
  .video-frame iframe { width: 100%; height: 100%; border: 0; }
  .search-field { display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; }
  .search-field:focus-within { outline: 2px solid var(--accent); }
  .search-field input { flex: 1; min-width: 0; min-height: 45px; padding: 0; background: none; border: 0; color: var(--ink); outline: none; }
  .share-field { display: grid; gap: 6px; margin: 20px 0 13px; color: var(--soft); font-size: 13px; font-weight: 650; }
  .share-field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fffaf0; color: var(--ink); font: 400 12px/1.5 var(--mono); }
  .result-list { margin-top: 12px; }
  .result-row { width: 100%; min-height: 70px; display: flex; gap: 13px; align-items: center; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 5px; }
  .result-row:hover { background: #eae5d6; }
  .result-row img { width: 69px; height: 46px; object-fit: cover; border-radius: 3px; }
  .result-row span { flex: 1; display: grid; gap: 4px; }
  .result-row small { color: var(--soft); }
  .toast { position: fixed; z-index: 5; bottom: 20px; left: 50%; translate: -50% 10px; opacity: 0; pointer-events: none; background: #163d28; color: white; padding: 10px 18px; border-radius: 5px; font-size: 13px; font-weight: 700; transition: opacity .18s, translate .18s; white-space: nowrap; }
  .toast.show { opacity: 1; translate: -50% 0; }
}

@layer concepts {
  .journal, .atlas, .object-room, .film-program, .festival-compare { width: 90%; max-width: 1330px; margin: auto; }
  .journal-hero { display: grid; grid-template-columns: .84fr 1.25fr; align-items: center; gap: 4.2%; padding: 39px 0 38px; }
  .journal-intro { padding: 10px 0 12px; }
  .journal-intro h1 { font: 400 clamp(72px, 8.7cqw, 140px)/.78 var(--serif); letter-spacing: -.042em; margin: 23px 0 24px; }
  .journal-intro h1 em { color: #466b49; font-weight: 400; }
  .journal-intro > p:not(.eyebrow) { max-width: 325px; color: var(--soft); line-height: 1.6; margin-bottom: 24px; font-size: clamp(14px, 1.3cqw, 18px); }
  .journal-feature { height: clamp(348px, 36.5cqw, 545px); position: relative; overflow: hidden; border-radius: 3px; background: #6c3a22; }
  .journal-feature img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
  .journal-feature::after { content: ""; position: absolute; inset: 32% 0 0; background: linear-gradient(0deg, #190e09e8, transparent 87%); pointer-events: none; }
  .journal-feature figcaption { position: absolute; z-index: 1; inset: auto 0 0; padding: clamp(17px, 2.9cqw, 43px); display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #fff1d6; }
  .journal-feature figcaption strong { display: block; margin-top: 3px; font: 400 clamp(30px, 4.5cqw, 67px)/.95 var(--serif); }
  .journal-feature .eyebrow { color: #fbdf93; }
  .journal-list { border-top: 1px solid var(--line); padding: 28px 0 55px; }
  .journal-list .section-heading { margin-bottom: 20px; }
  .stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 17px; }
  .story-card { position: relative; min-width: 0; border: 1px solid var(--line); background: #faf5e9; border-radius: 3px; overflow: hidden; }
  .story-hit { display: block; width: 100%; text-align: left; background: transparent; padding: 0; border: 0; }
  .story-hit:focus-visible { outline-offset: -3px; }
  .story-image { display: block; aspect-ratio: 1.72; overflow: hidden; background: #6d6951; position: relative; }
  .story-image img { width: 100%; height: 100%; object-fit: cover; transition: scale .28s ease; }
  .story-hit:hover img { scale: 1.04; }
  .duration { display: flex; align-items: center; gap: 4px; position: absolute; bottom: 8px; left: 9px; background: #171b14e8; color: #fff7e1; padding: 5px 7px; border-radius: 3px; font-size: 11px; }
  .story-copy { display: grid; gap: 6px; padding: 16px 17px 18px; }
  .story-copy .eyebrow { color: #526751; letter-spacing: .035em; }
  .story-copy strong { font: 400 clamp(25px, 3cqw, 40px)/1.04 var(--serif); }
  .story-description { color: var(--soft); font-size: 13px; line-height: 1.5; }
  .card-save { position: absolute; top: 9px; right: 9px; color: #223523; background: #f9f1dd; width: 36px; height: 36px; box-shadow: 0 1px 10px #1c1d1a45; }
  .atlas { padding: 35px 0 38px; }
  .atlas-heading, .object-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
  .atlas-heading h1, .object-heading h1 { font: 400 clamp(60px, 7.6cqw, 108px)/.85 var(--serif); letter-spacing: -.035em; margin-top: 11px; }
  .atlas-body { display: grid; grid-template-columns: minmax(0, 1.86fr) minmax(265px, 1fr); align-items: start; gap: 14px; }
  .map-panel { background: #192e21; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: grid; justify-items: center; }
  .map-plot { position: relative; width: min(100%, 655px); aspect-ratio: 640 / 595; }
  .atlas-outline { display: block; width: 100%; height: 100%; }
  .map-country { fill: #bac9a5; opacity: .83; font: 500 14px var(--mono); letter-spacing: 5px; }
  .map-water { fill: #aac4b2; opacity: .83; font: italic 21px var(--serif); }
  .map-pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; color: #f4d775; background: none; border: 0; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; z-index: 1; border-radius: 50%; }
  .map-pin span { width: 11px; height: 11px; background: #d5b95a; border: 1px solid #263e30; border-radius: 50%; box-shadow: 0 0 0 2px #edc95150; }
  .map-pin:hover, .map-pin[aria-pressed="true"] { z-index: 2; }
  .map-pin:hover span, .map-pin[aria-pressed="true"] span { width: 17px; height: 17px; background: #f8dc71; box-shadow: 0 0 0 4px #efcd6280, 0 0 17px #efcd62a9; }
  .map-pin:focus-visible { outline: 2px solid #f4d775; outline-offset: 1px; }
  .map-scale { position: absolute; top: 7%; right: 8%; display: grid; place-items: center; gap: 4px; color: #f2e3a3; font: 500 13px var(--mono); }
  .map-scale span { font-size: 33px; line-height: .8; }
  .map-credit { justify-self: end; color: var(--soft); font-size: 10px; padding: 0 9px 9px; }
  .map-credit:hover { text-decoration: underline; }
  .atlas-rail { display: grid; gap: 12px; min-width: 0; }
  .atlas-selected { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #203626; }
  .atlas-selected img { width: 100%; aspect-ratio: 2.12; object-fit: cover; background: #354134; }
  .atlas-selected > div { padding: 15px 17px 8px; }
  .atlas-selected .eyebrow { display: flex; align-items: center; gap: 5px; color: var(--accent); }
  .atlas-selected h2 { font: 400 clamp(30px, 3.5cqw, 48px)/.98 var(--serif); margin: 6px 0 8px; }
  .atlas-selected p:not(.eyebrow) { color: var(--soft); font-size: 13px; line-height: 1.55; }
  .place-list { border: 1px solid var(--line); border-radius: 4px; max-height: 235px; overflow: auto; }
  .place-row { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 40px; text-align: left; padding: 5px 11px; color: var(--soft); border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 12px; }
  .place-row:last-child { border-bottom: 0; }
  .place-row:hover, .place-row[aria-pressed="true"] { color: var(--accent); background: #263e2d; }
  .object-room { padding: 42px 0 49px; }
  .object-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
  .object-tabs button { padding: 10px 13px; min-height: 42px; border: 0; background: none; color: var(--soft); font-size: 13px; }
  .object-tabs button[aria-pressed="true"], .object-tabs button:hover { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
  .museum { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(255px, 1fr); gap: 16px; align-items: stretch; }
  .museum-display { background: #2c221d; color: #eee3cd; min-width: 0; border-radius: 3px; overflow: hidden; display: grid; align-content: center; }
  .object-picture { position: relative; overflow: hidden; aspect-ratio: 1.63; display: grid; align-items: center; background: #31231b; }
  .object-picture img { width: 100%; height: 100%; position: absolute; object-fit: cover; transition: transform .4s ease; }
  .object-picture[data-part="left"] img { transform: scale(1.34); transform-origin: 20% center; }
  .object-picture[data-part="center"] img { transform: scale(1.3); transform-origin: 65% center; }
  .object-picture[data-part="right"] img { transform: scale(1.36); transform-origin: 42% center; }
  .hotspot { position: absolute; display: grid; place-items: center; left: var(--x); top: var(--y); width: 41px; height: 41px; translate: -50% -50%; border-radius: 50%; border: 1px solid #f9e2ac; background: #351e15f2; color: #f9e2ac; box-shadow: 0 0 0 4px #f9e2ac38; font-weight: 700; }
  .hotspot:hover, .hotspot[aria-pressed="true"] { background: #f1d285; color: #361b11; }
  .museum-display figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; padding: 11px 13px; }
  .museum-display figcaption a:hover { text-decoration: underline; }
  .museum-notes { padding: clamp(17px, 2.6cqw, 33px); border: 1px solid var(--line); background: #f8f1e4; border-radius: 3px; }
  .museum-notes .eyebrow { color: var(--accent); }
  .museum-notes h2 { font: 400 clamp(46px, 6cqw, 82px)/.96 var(--serif); margin: 5px 0 9px; }
  .museum-notes > p:not(.eyebrow) { color: var(--soft); line-height: 1.57; font-size: 14px; }
  .part-section { border-top: 1px solid var(--line); margin-top: 16px; }
  .part-item { border-bottom: 1px solid var(--line); }
  .part-item p { padding: 0 4px 11px 34px; font-size: 13px; line-height: 1.45; color: var(--soft); }
  .part-toggle { display: flex; gap: 11px; width: 100%; align-items: center; text-align: left; min-height: 42px; background: none; border: 0; padding: 5px 2px; font-size: 13px; font-weight: 700; }
  .part-toggle:hover, .part-toggle[aria-expanded="true"] { color: var(--accent); }
  .part-toggle svg { margin-left: auto; }
  .part-number { font: 500 11px/1 var(--mono); color: var(--accent); }
  .kavad-display { background: radial-gradient(ellipse at 40% 40%, #634125, #2b2018 80%); }
  .kavad-stage { --kavad-photo: url("assets/kavad.jpg"); position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 3624 / 1644; perspective: 650px; }
  .kavad-stage > img { width: 100%; height: 100%; object-fit: cover; opacity: .44; }
  .kavad-window { position: absolute; inset: 0; background: var(--kavad-photo) center / cover no-repeat; }
  .kavad-fold { display: none; position: absolute; top: 25%; left: 24%; width: 32%; height: 52%; grid-template-columns: repeat(2, 1fr); transform-style: preserve-3d; }
  .kavad-fold span { border: 2px solid #c2964b; box-shadow: inset 0 0 24px #341a10ad, 0 8px 21px #170b09aa; background: var(--kavad-photo) 10% 50% / 760% auto; transform-origin: left center; }
  .kavad-fold span + span { background-position: 79% 53%; transform-origin: right center; }
  .kavad-stage[data-step="0"] > img { opacity: .18; }
  .kavad-stage[data-step="0"] .kavad-window { display: none; }
  .kavad-stage[data-step="0"] .kavad-fold { display: grid; }
  .kavad-stage[data-step="1"] .kavad-window { clip-path: inset(24% 3% 18% 2%); animation: reveal-doors .6s ease-out both; }
  .kavad-stage[data-step="1"] .kavad-fold { display: grid; animation: fold-disappear .68s forwards; }
  .kavad-stage[data-step="1"] .kavad-fold span { animation: fold-open-left .62s ease-in both; }
  .kavad-stage[data-step="1"] .kavad-fold span + span { animation-name: fold-open-right; }
  .kavad-stage[data-step="2"] .kavad-window { clip-path: polygon(2% 25%, 33% 25%, 33% 66%, 51% 66%, 51% 27%, 98% 28%, 98% 79%, 51% 74%, 2% 67%); animation: kavad-highlight .44s ease-out both; }
  .kavad-stage[data-step="3"] .kavad-window { clip-path: inset(1% 48% 3% 26%); animation: kavad-highlight .44s ease-out both; }
  @keyframes reveal-doors { from { clip-path: inset(24% 53% 18% 30%); } }
  @keyframes fold-disappear { 75% { opacity: 1; } to { opacity: 0; visibility: hidden; } }
  @keyframes fold-open-left { to { transform: rotateY(-100deg); } }
  @keyframes fold-open-right { to { transform: rotateY(100deg); } }
  @keyframes kavad-highlight { from { opacity: .15; } }
  .kavad-track { display: flex; gap: 7px; align-items: center; border-block: 1px solid var(--line); padding: 8px 0; margin: 13px 0; }
  .kavad-track button { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; background: none; color: var(--accent); font: 600 12px/1 var(--mono); }
  .kavad-track button[aria-current="step"] { background: var(--button); border-color: var(--button); color: var(--button-text); }
  .kavad-track button:hover { border-color: var(--accent); }
  .kavad-reading { min-height: 111px; }
  .kavad-reading h3 { font: 400 clamp(30px, 3.1cqw, 43px)/1 var(--serif); margin-bottom: 6px; }
  .kavad-reading p { color: var(--soft); font-size: 14px; line-height: 1.52; }
  .kavad-controls, .kavad-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
  .kavad-controls { margin-top: 12px; }
  .kavad-links { gap: 0 15px; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 4px; }
  .kavad-links .text-button { min-height: 37px; gap: 6px; }
  .film-hero { overflow: hidden; position: relative; min-height: clamp(410px, 43cqw, 650px); display: flex; align-items: end; isolation: isolate; background: #231814; }
  .film-hero > img, .film-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 48%; z-index: -2; }
  .film-hero > img { scale: 1.08; }
  .film-shade { z-index: -1; background: linear-gradient(90deg, #180f12f2, #1a1014b2 30%, #190f1423 76%), linear-gradient(0deg, #191517, #19151700 42%); }
  .film-copy { width: 90%; max-width: 1330px; margin: 0 auto; padding: 50px 0; color: #fff1da; }
  .film-copy h1 { max-width: 770px; margin: 10px 0 13px; font: 400 clamp(66px, 9.2cqw, 135px)/.82 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
  .film-copy > p:not(.eyebrow) { max-width: 360px; color: #f0e1cc; line-height: 1.58; font-size: 15px; }
  .film-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
  .film-save { border: 1px solid #fff2ca77; color: #fff1cf; }
  .film-duration { color: #efddc1; font: 500 10px/1.3 var(--mono); text-transform: uppercase; }
  .film-program { padding: 8px 0 43px; }
  .film-program .section-heading { margin: 0 0 15px; align-items: center; }
  .film-program .eyebrow { color: var(--accent); }
  .film-strip { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 10px; }
  .film-tile { display: grid; align-content: start; gap: 7px; min-width: 0; text-align: left; border: 0; padding: 0; background: transparent; color: var(--soft); }
  .film-thumb { position: relative; overflow: hidden; display: block; aspect-ratio: 1.65; border: 2px solid transparent; background: #5f483d; border-radius: 4px; }
  .film-tile strong { padding-left: 2px; font-size: 13px; line-height: 1.28; }
  .film-tile:hover, .film-tile[aria-pressed="true"] { color: var(--accent); }
  .film-tile:focus-visible .film-thumb, .film-tile[aria-pressed="true"] .film-thumb { border-color: var(--accent); }
  .film-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .film-thumb span { position: absolute; bottom: 4px; right: 4px; font-size: 10px; padding: 2px 5px; background: #160f11dc; color: #fff4dc; border-radius: 2px; }
  .festival-hero { display: grid; grid-template-columns: 1.1fr .85fr; align-items: center; padding: 35px max(5%, calc((100% - 1330px) / 2)) 27px; gap: 19px 6%; position: relative; isolation: isolate; overflow: hidden; color: #fff1d4; background-color: #752e2a; background-image: radial-gradient(ellipse at 72% 43%, #a95034, transparent 52%), repeating-linear-gradient(35deg, #edc28d0a 0px, #edc28d0a 1px, #edc28d00 1px, #edc28d00 7px); }
  .festival-hero .rule-label { color: #f4ce7a; }
  .festival-copy h1 { font: 400 clamp(66px, 8.8cqw, 132px)/.8 var(--serif); letter-spacing: -.029em; max-width: 8ch; margin: 15px 0 17px; text-wrap: balance; }
  .festival-copy > p:not(.eyebrow) { max-width: 340px; font-size: 15px; line-height: 1.53; color: #f8e5c5; }
  .festival-art { position: relative; min-width: 0; display: grid; place-items: center; height: clamp(240px, 29cqw, 420px); color: #edc67a; }
  .ornament { position: absolute; width: min(91%, 320px); aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; opacity: .69; }
  .ornament-outer { outline: 1px dashed #f7d68d93; outline-offset: 9px; }
  .ornament-mid { width: min(78%, 274px); border-radius: 40% 60% 40% 60%; rotate: 45deg; }
  .ornament-inner { width: min(66%, 230px); border: 1px dashed currentColor; }
  .festival-symbol { display: grid; width: min(52%, 177px); aspect-ratio: 1; place-items: center; border: 1px solid #f2cb83; border-radius: 50%; color: #ffdc8f; box-shadow: inset 0 0 45px #ec952325; background: #7d351d5c; }
  .festival-symbol svg { width: 61%; height: 61%; stroke-width: .72; }
  .art-spark { position: absolute; color: #fde397; }
  .art-spark.first { top: 18%; left: 20%; }
  .art-spark.second { top: 24%; right: 12%; }
  .art-spark.third { bottom: 13%; right: 20%; }
  .festival-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dda76b77; }
  .festival-tabs button { min-height: 62px; display: grid; align-content: center; justify-items: start; gap: 3px; padding: 9px 15px; background: #4c201b22; border: 0; border-right: 1px solid #dda76b77; color: #f2ddb7; text-align: left; }
  .festival-tabs button:last-child { border-right: 0; }
  .festival-tabs button:hover { background: #5b251e; }
  .festival-tabs button[aria-pressed="true"] { background: #f4d597; color: #6c2c24; }
  .festival-tabs small { font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
  .festival-tabs strong { font: 400 clamp(22px, 3cqw, 34px)/.9 var(--serif); }
  .festival-compare { padding: 27px 0 43px; }
  .festival-places { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 13px; }
  .festival-places h2 { font: 400 clamp(39px, 5.1cqw, 62px)/.95 var(--serif); }
  .region-pickers { margin: 16px 0 12px; display: flex; align-items: end; gap: 8px; }
  .region-picker { display: grid; gap: 5px; min-width: 0; width: min(100%, 240px); color: var(--soft); font-size: 12px; font-weight: 700; }
  .region-picker select { min-height: 46px; width: 100%; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff3df; color: var(--ink); font: 650 14px/1.35 "DM Sans", system-ui, sans-serif; }
  .swap-regions { flex: none; width: 42px; padding: 0; }
  .festival-topics { padding: 10px 0; background: var(--paper); display: flex; align-items: center; gap: 10px 17px; }
  .festival-topics > p { font-size: 13px; color: var(--soft); }
  .variant-card { display: grid; grid-template-columns: minmax(150px, .55fr) 1.45fr; background: #fff3df; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
  .variant-grid.is-comparing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .variant-grid.is-comparing .variant-card { grid-template-columns: minmax(102px, .42fr) 1fr; }
  .festival-links, .variant-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 15px; }
  .festival-links { margin-top: 7px; }
  .variant-links .text-button { min-height: 39px; }
  .variant-art { display: grid; place-items: center; min-height: 139px; color: #f3cd82; background: radial-gradient(circle, #b3653b, #733326); }
  .variant-art svg { stroke-width: 1; }
  .variant-art.has-photo { max-height: 205px; }
  .variant-art img { width: 100%; height: 100%; object-fit: cover; }
  .variant-copy { padding: clamp(15px, 2.6cqw, 31px); }
  .variant-copy .eyebrow { color: var(--accent); }
  .variant-copy h3 { font: 400 clamp(28px, 3.7cqw, 50px)/.95 var(--serif); margin: 6px 0; }
  .variant-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.5; color: var(--soft); }
}

@layer narrow {
  @media (max-width: 850px) {
    .preview-bar { padding: 5px 14px; gap: 8px; grid-template-columns: auto 1fr auto; }
    .concept-nav { overflow-x: auto; }
    .concept-link { padding: 7px 8px; }
    .concept-link span:first-child { display: none; }
    .concept-link span + span { display: inline; }
  }
  @media (max-width: 640px) {
    .preview-bar { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 5px 10px; }
    .concept-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; }
    .device-switch { grid-row: 1; grid-column: 2; }
    .concept-link { padding: 8px 9px; flex: 1 0 auto; }
    .dialog-content { padding: 20px; }
    .dialog-photo { margin: -20px -20px 0; }
  }
  @container (max-width: 900px) {
    .brand-header { padding-inline: 4%; grid-template-columns: auto 1fr auto; gap: 13px; }
    .site-nav { justify-content: center; gap: 15px; }
    .journal-hero { grid-template-columns: .9fr 1fr; gap: 3%; }
    .journal-intro h1 { font-size: clamp(62px, 9cqw, 81px); }
    .stories-grid { gap: 12px; }
  }
  @container (max-width: 700px) {
    .brand-header { grid-template-columns: 1fr auto; padding: 9px 4.7% 0; gap: 3px 8px; }
    .wordmark { font-size: 18px; }
    .wordmark img { width: 41px; height: 41px; }
    .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 4px; }
    .site-nav a { min-height: 42px; padding: 12px 0; font-size: 12px; }
    .site-nav a[aria-current]::after { inset: auto 0 5px; }
    .header-actions { gap: 0; }
    .site-footer { flex-wrap: wrap; font-size: 12px; padding: 16px 0 20px; }
    .section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .pill { min-height: 38px; padding-inline: 10px; }
    .journal-hero { display: grid; grid-template-columns: 1fr; gap: 21px; padding: 23px 0 22px; }
    .journal-intro { padding: 0; }
    .journal-intro h1 { font-size: clamp(64px, 15.7cqw, 98px); margin: 13px 0 14px; }
    .journal-intro > p:not(.eyebrow) { font-size: 14px; line-height: 1.45; margin-bottom: 15px; }
    .journal-feature { height: auto; aspect-ratio: 1.48; min-height: 0; }
    .journal-feature figcaption strong { font-size: clamp(28px, 8.1cqw, 50px); }
    .journal-feature figcaption { padding: 13px; }
    .journal-list { padding: 19px 0 27px; }
    .journal-list .section-heading { margin-bottom: 15px; }
    .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .story-copy { padding: 9px 8px 10px; gap: 4px; }
    .story-copy .eyebrow { font-size: 9px; }
    .story-copy strong { font-size: clamp(23px, 5.8cqw, 32px); }
    .story-description { font-size: 11px; }
    .card-save { width: 32px; height: 32px; right: 4px; top: 4px; }
    .atlas, .object-room { padding: 22px 0 25px; }
    .atlas-heading, .object-heading { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 13px; }
    .atlas-heading h1, .object-heading h1 { font-size: clamp(63px, 13cqw, 91px); margin-top: 7px; }
    .atlas-body, .museum { grid-template-columns: 1fr; gap: 9px; }
    .map-plot { max-width: 470px; }
    .atlas-selected > div { padding: 12px 13px 4px; }
    .atlas-selected { display: grid; grid-template-columns: .83fr 1.17fr; min-height: 138px; }
    .atlas-selected img { height: 100%; aspect-ratio: auto; }
    .atlas-selected h2 { font-size: 31px; }
    .atlas-selected .eyebrow { font-size: 9px; }
    .atlas-selected p:not(.eyebrow) { font-size: 12px; line-height: 1.4; }
    .map-pin { width: 24px; height: 24px; }
    .map-pin span { width: 9px; height: 9px; }
    .map-pin:hover span, .map-pin[aria-pressed="true"] span { width: 13px; height: 13px; }
    .object-tabs { flex-wrap: wrap; }
    .object-tabs button { padding: 8px 12px; }
    .museum-display figcaption { font-size: 10px; padding: 7px 8px; }
    .hotspot { width: 33px; height: 33px; box-shadow: 0 0 0 2px #f9e2ac3b; }
    .museum-notes { padding: 13px; }
    .museum-notes h2 { font-size: 51px; }
    .kavad-reading { min-height: 97px; }
    .kavad-track { margin-block: 10px; }
    .kavad-track button { min-width: 42px; min-height: 42px; }
    .kavad-controls { gap: 7px; }
    .film-hero { min-height: clamp(380px, 112cqw, 493px); align-items: end; }
    .film-hero > img { object-position: 59% center; scale: 1.35; }
    .film-shade { background: linear-gradient(0deg, #191517 0%, #191517e8 19%, #181316a0 47%, #19151700 78%); }
    .film-copy { padding: 26px 0 24px; }
    .film-copy h1 { font-size: clamp(51px, 13cqw, 78px); margin-block: 8px 10px; }
    .film-copy > p:not(.eyebrow) { font-size: 13px; }
    .film-actions { margin-top: 13px; }
    .film-program .section-heading { flex-direction: row; align-items: center; }
    .film-strip { grid-auto-columns: minmax(128px, 45%); overflow-x: auto; padding: 0 3px 7px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #886c50 transparent; }
    .film-tile { scroll-snap-align: start; }
    .festival-hero { grid-template-columns: minmax(0, 1fr) minmax(90px, 38%); padding: 22px 5% 14px; gap: 15px 4px; }
    .festival-copy h1 { font-size: clamp(49px, 12.7cqw, 86px); margin: 9px 0 10px; }
    .festival-copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.44; }
    .festival-art { height: 100%; min-height: 122px; }
    .ornament-outer { outline-offset: 5px; }
    .art-spark { display: none; }
    .festival-tabs button { padding: 6px 5px; min-height: 56px; }
    .festival-tabs strong { font-size: clamp(19px, 5.4cqw, 29px); }
    .festival-tabs small { font-size: 8px; }
    .festival-compare { padding: 20px 0 29px; }
    .festival-places { align-items: start; flex-direction: column; gap: 10px; }
    .festival-places .secondary-button { min-height: 40px; }
    .region-pickers { margin: 10px 0 5px; }
    .region-picker { flex: 1; }
    .region-picker select { font-size: 13px; min-height: 43px; }
    .swap-regions { min-height: 43px; width: 36px; }
    .festival-topics { position: sticky; top: 0; z-index: 1; flex-direction: column; align-items: start; gap: 5px; padding: 8px 0; }
    .festival-topics .pills { gap: 5px; }
    .festival-topics .pill { padding-inline: 8px; font-size: 11px; }
    .variant-card { grid-template-columns: minmax(78px, .45fr) 1fr; }
    .variant-grid.is-comparing { grid-template-columns: 1fr; }
    .variant-grid.is-comparing .variant-card { grid-template-columns: minmax(78px, .45fr) 1fr; }
    .variant-art svg { width: min(77%, 70px); height: auto; }
    .variant-copy { padding: 12px; }
    .variant-copy > p:not(.eyebrow) { font-size: 12px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .kavad-stage * { animation-duration: .01ms !important; }
  }
}
