@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f1e6cc;
  --paper-2: #f8f0dc;
  --paper-3: #e6d7b4;
  --ink: #2a1f14;
  --ink-2: #5b4a36;
  --ink-3: #8a7559;
  --rule: #b89a68;
  --gold: #b08a45;
  --gold-hi: #e8cf8f;
  --gold-lo: #6f5222;
  --vermilion: #c0391b;
  --ultramarine: #2c4f9e;
  --verdigris: #2f7a5c;
  --heat: 214, 168, 72;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --head-h: 90px;
  --logo-h: 60px;
  --salon-h: 112px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0; color: var(--ink); font: 18px/1.5 var(--text); font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 40%, rgba(255, 250, 235, .55), rgba(255, 250, 235, 0) 60%),
    radial-gradient(ellipse 140% 120% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(92, 64, 24, .16) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .26 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .14 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23f)' opacity='.22'/%3E%3C/svg%3E");
  background-attachment: fixed;
}
a { color: var(--vermilion); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
b { font-weight: 600; }
::selection { background: rgba(192, 57, 27, .2); }

/* ------------------------------------------------------------ masthead */
.masthead {
  height: var(--head-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 0 32px; position: relative;
}
.masthead::after {
  content: ""; position: absolute; left: 32px; right: 32px; bottom: 0; height: 5px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); opacity: .9;
}
.brand { display: flex; align-items: center; gap: 26px; color: var(--ink); }
/* the project's own logo file, shown as it is: only its size is set */
.wordmark { display: block; flex: none; line-height: 0; padding: 4px 26px 4px 2px; border-right: 1px solid var(--rule); }
.wordmark img { display: block; height: var(--logo-h); width: auto; }
.brand-title { font: italic 600 31px/1.05 var(--display); letter-spacing: .005em; white-space: nowrap; }
.tagline { margin: 0; font-size: 17.5px; color: var(--ink-2); text-align: center; line-height: 1.3; }
.tagline em { font: italic 500 21px/1.2 var(--display); color: var(--ink); margin-right: 6px; }
.links { display: flex; align-items: center; gap: 20px; font-size: 16px; white-space: nowrap; }
.links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.links a:hover { border-bottom-color: var(--ink); }
.links .key-link {
  padding: 6px 14px; border: 1px solid var(--ink); border-radius: 2px; letter-spacing: .04em;
  background: linear-gradient(var(--paper-2), var(--paper)); box-shadow: 2px 2px 0 rgba(42, 31, 20, .85);
}
.links .key-link:hover { background: var(--ink); color: var(--paper-2); border-bottom-color: var(--ink); }

/* inside the Hub's Space page its mini header floats at the top right: the links stay clear of it */
.embedded .masthead { padding-right: 360px; }
.embedded .masthead::after { right: 32px; }
@media (max-width: 1600px) and (min-width: 901px) {
  .embedded .tagline { display: none; }
  .embedded .links { grid-column: 3; }
}

/* ------------------------------------------------------------ the salon hang (works strip) */
.salon { height: var(--salon-h); padding: 12px 32px 0; }
.works {
  list-style: none; margin: 0; padding: 0 2px 6px; display: grid; grid-template-columns: repeat(var(--n, 9), minmax(168px, 1fr)); gap: 10px; overflow-x: auto; scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.work {
  flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px;
  width: 100%; padding: 6px 8px 6px 6px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
  font: inherit; border-radius: 2px; transition: background .25s, transform .25s var(--ease);
}
.work:hover { background: rgba(255, 250, 235, .55); transform: translateY(-1px); }
.work[aria-pressed="true"] { background: rgba(255, 250, 235, .8); box-shadow: inset 0 0 0 1px var(--rule); }
.thumb {
  display: block; padding: 4px; background: linear-gradient(135deg, var(--gold-lo), var(--gold-hi) 30%, var(--gold) 55%, var(--gold-hi) 75%, var(--gold-lo));
  box-shadow: 0 0 0 1px #4a3618, 0 5px 10px -4px rgba(42, 31, 20, .55);
}
.thumb img { display: block; width: 66px; height: 50px; object-fit: cover; border: 2px solid var(--paper-2); }
.work-label { display: flex; flex-direction: column; min-width: 0; }
.work-label i { font: italic 600 16px/1.1 var(--display); }
.work-label small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; line-height: 1.2; white-space: nowrap; }
.work[aria-pressed="true"] .work-label i::before { content: "● "; color: var(--vermilion); font-size: 11px; vertical-align: 2px; font-style: normal; }

/* ------------------------------------------------------------ the room: the framed work and the catalogue */
.room {
  display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 26px;
  padding: 6px 32px 22px; height: calc(100vh - var(--head-h) - var(--salon-h)); min-height: 560px;
}
.wall { min-width: 0; min-height: 0; display: flex; }
.frame {
  flex: 1; min-height: 0; display: flex; padding: 15px; position: relative;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(255, 255, 255, 0) 3%, rgba(255, 255, 255, 0) 97%, rgba(0, 0, 0, .2)),
    linear-gradient(180deg, #e9cf8b 0%, #b48b3f 18%, #f0d897 34%, #9a7431 52%, #d9b965 70%, #7c5b25 88%, #c9a45a 100%);
  box-shadow:
    0 0 0 1px #3a2a12, inset 0 0 0 1px rgba(255, 244, 210, .55), inset 0 0 0 4px rgba(122, 88, 34, .55),
    0 26px 48px -18px rgba(52, 34, 12, .6), 0 6px 14px rgba(52, 34, 12, .28);
}
.frame::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(70, 48, 16, .55); box-shadow: inset 0 0 0 1px rgba(255, 238, 190, .35);
}
.mat {
  flex: 1; min-height: 0; display: flex; padding: 16px; background: #f7f0dd;
  background-image: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 2px 7px rgba(60, 40, 10, .45), inset 0 0 0 1px rgba(90, 64, 24, .35);
}
.stage {
  position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden;
  background: #e9dfc6; box-shadow: 0 0 0 1px #b39563, 0 0 0 4px #f7f0dd, 0 0 0 5px rgba(140, 108, 60, .5), inset 0 0 22px rgba(70, 50, 20, .18);
}
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 1.15s var(--ease); will-change: transform; }
.world img { display: block; width: 100%; height: 100%; user-select: none; box-shadow: 0 2px 10px rgba(40, 26, 8, .35); }
.world svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hanging {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; justify-items: center;
  font: italic 500 22px var(--display); color: var(--ink-2); background: #e9dfc6;
}
.hanging span { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--vermilion); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plaque {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px); max-width: min(86%, 980px);
  padding: 9px 22px 10px; text-align: center; font: 500 21px/1.35 var(--display); color: var(--ink);
  background: linear-gradient(#fbf6e7, #f1e6c9); border: 1px solid #8f733f;
  box-shadow: 0 0 0 3px rgba(251, 246, 231, .9), 0 0 0 4px rgba(143, 115, 63, .6), 0 10px 22px -8px rgba(40, 26, 8, .55);
  opacity: 0; transition: opacity .4s, transform .45s var(--ease); pointer-events: none;
}
.plaque.on { opacity: 1; transform: translate(-50%, 0); }
.plaque .num { font: 600 13px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--vermilion); margin-right: 10px; vertical-align: 2px; }
.rounds { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: 2px; }
.rounds i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: rgba(255, 252, 242, .9); }
.rounds i.done { background: var(--ink); border-color: var(--ink); }
.rounds i.now { background: var(--vermilion); border-color: var(--vermilion); animation: pip 1.1s ease-in-out infinite; }
@keyframes pip { 50% { box-shadow: 0 0 0 4px rgba(192, 57, 27, .18); } }
.step .detail .rounds { display: flex; margin: 3px 0 4px; gap: 5px; }
.step .detail .rounds i { width: 9px; height: 9px; }
.plaque q { font-style: italic; }
.plaque q::before { content: "“"; } .plaque q::after { content: "”"; }
.plaque b { font-weight: 700; }

/* ------------------------------------------------------------ the question, the answer and a miss, over the work */
.stage { container-type: size; }
.plaque { z-index: 5; }
.veil {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(28, 18, 6, .52), rgba(28, 18, 6, .3));
}
.veil.on { opacity: 1; }
.card-paper {
  background: linear-gradient(#fdf9ee, #f2e7cc); border: 1px solid #8f733f;
  box-shadow: 0 0 0 4px rgba(253, 249, 238, .93), 0 0 0 5px rgba(143, 115, 63, .65), 0 26px 60px -16px rgba(26, 16, 4, .72);
}
.q-label { font: 600 clamp(10px, 1cqw, 14.5px)/1 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--vermilion); }
.q-text { font-family: var(--display); font-style: italic; font-weight: 600; color: var(--ink); }
/* the question, large in the centre when a search starts */
.qcard {
  position: absolute; left: 50%; top: 50%; z-index: 6; width: max-content; max-width: min(80%, 1040px);
  padding: clamp(14px, 2cqw, 28px) clamp(22px, 3.6cqw, 52px) clamp(16px, 2.3cqw, 32px); text-align: center; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.94); transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.qcard.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.qcard.up { opacity: 0; transform: translate(-50%, calc(-50% + var(--up, -40cqh))) scale(.46); transition: opacity .55s ease-in, transform .7s var(--ease); }
.qcard .q-label { display: block; margin-bottom: clamp(8px, 1.1cqw, 16px); }
.qcard .q-text { display: block; font-size: clamp(26px, 4.4cqw, 64px); line-height: 1.1; text-wrap: balance; }
.qcard .q-meta { display: block; margin-top: clamp(8px, 1cqw, 14px); font: italic clamp(13px, 1.25cqw, 19px)/1.2 var(--text); color: var(--ink-2); }
/* then a caption at the top of the frame for the rest of the search; the work is fitted below it */
.caption {
  position: absolute; left: 50%; top: var(--cap-top); z-index: 5; width: max-content; max-width: calc(100% - 32px);
  padding: clamp(4px, .55cqw, 8px) clamp(12px, 1.7cqw, 24px) clamp(5px, .65cqw, 9px); text-align: center; pointer-events: none;
  opacity: 0; transform: translate(-50%, -10px); transition: opacity .45s .2s, transform .6s .15s var(--ease);
  box-shadow: 0 0 0 3px rgba(253, 249, 238, .92), 0 0 0 4px rgba(143, 115, 63, .55), 0 10px 22px -10px rgba(40, 26, 8, .55);
}
.caption.on { opacity: 1; transform: translate(-50%, 0); }
.caption .q-label { margin-right: .9em; vertical-align: .32em; }
.caption .q-text { font-size: clamp(16px, 2.2cqw, 32px); line-height: 1.15; text-wrap: balance; }
:root { --cap-top: 12px; }
/* the answer, on the final box: the query and the confidence */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.leader-under { fill: none; stroke: rgba(255, 249, 232, .95); stroke-width: 6.5; stroke-linecap: round; }
.leader { fill: none; stroke: var(--vermilion); stroke-width: 2.6; stroke-linecap: round; }
.leader-dot { fill: var(--vermilion); stroke: rgba(255, 249, 232, .95); stroke-width: 2.4; }
.leader.m2 { stroke: var(--ultramarine); } .leader-dot.m2 { fill: var(--ultramarine); }
.leaders g { opacity: 0; transition: opacity .45s var(--ease); }
.leaders g.on { opacity: 1; }
.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout {
  position: absolute; left: 0; top: 0; width: max-content; max-width: min(42%, 480px);
  padding: clamp(6px, .8cqw, 11px) clamp(10px, 1.4cqw, 19px) clamp(7px, .9cqw, 12px);
  background: linear-gradient(#fffbf1, #f6ecd4); border: 1px solid var(--vermilion); border-left-width: 5px;
  box-shadow: 0 0 0 3px rgba(255, 251, 241, .9), 0 14px 28px -12px rgba(26, 16, 4, .65);
  opacity: 0; transition: opacity .45s var(--ease);
}
.callout.on { opacity: 1; }
.callout.m2 { border-color: var(--ultramarine); }
.callout .c-model { display: block; margin-bottom: 4px; font: 600 clamp(10px, .95cqw, 13px)/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--vermilion); }
.callout.m2 .c-model { color: var(--ultramarine); }
.callout .c-query { display: block; font-size: clamp(16px, 2cqw, 29px); line-height: 1.13; text-wrap: balance; }
.callout .c-conf { display: block; margin-top: clamp(3px, .45cqw, 6px); font: clamp(13px, 1.25cqw, 18px)/1.1 var(--text); color: var(--ink-2); }
.callout .c-conf b { margin-right: .22em; font: 700 clamp(21px, 2.7cqw, 40px)/1 var(--display); font-variant-numeric: lining-nums; color: var(--vermilion); }
.callout.m2 .c-conf b { color: var(--ultramarine); }
/* nothing found: a card in the centre, with other searches to try */
.missing {
  position: absolute; left: 50%; top: 50%; z-index: 7; width: min(88%, 780px); max-height: calc(100% - 20px); overflow: auto;
  padding: clamp(14px, 2.4cqw, 36px) clamp(16px, 3.4cqw, 50px) clamp(14px, 2.2cqw, 32px); text-align: center;
  opacity: 0; transform: translate(-50%, -47%) scale(.96); transition: opacity .5s var(--ease), transform .65s var(--ease);
}
.missing.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.missing .m-orn { display: block; font-size: clamp(16px, 1.9cqw, 28px); line-height: 1; color: var(--vermilion); }
.missing h2 { margin: clamp(4px, .6cqw, 9px) 0 0; font-size: clamp(25px, 4.5cqw, 62px); line-height: 1.04; }
.missing .m-query { margin: clamp(6px, 1cqw, 14px) 0 0; font-size: clamp(19px, 2.8cqw, 40px); line-height: 1.12; color: var(--vermilion); text-wrap: balance; }
.missing .m-note { margin: clamp(6px, .9cqw, 13px) auto 0; max-width: 34em; font: italic clamp(13px, 1.3cqw, 19px)/1.35 var(--text); color: var(--ink-2); text-wrap: balance; }
.missing .m-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin-top: clamp(10px, 1.8cqw, 26px); padding-top: clamp(10px, 1.5cqw, 20px); border-top: 1px solid var(--rule); }
.missing .m-try > span { font: 600 clamp(10px, .95cqw, 13px)/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.missing button {
  font: clamp(14px, 1.35cqw, 19px)/1.25 var(--text); color: var(--ink); cursor: pointer; padding: .32em .85em .38em;
  background: rgba(255, 252, 242, .95); border: 1px solid #b89a68; border-radius: 2px; transition: border-color .2s, background .2s;
}
.missing button:hover { border-color: var(--ink); background: #fffaf0; }
.missing button.m-other { color: var(--gold-hi); background: linear-gradient(#3a2b1c, #241910); border-color: #120c06; letter-spacing: .04em; }
.missing button.m-other:hover { filter: brightness(1.18); }
@container (max-width: 560px) {
  .missing .m-try .extra { display: none; }
  .callout { max-width: 52%; padding: 4px 8px 5px; border-left-width: 4px; }
  .callout .c-model { font-size: 9px; margin-bottom: 2px; }
  .callout .c-query { font-size: 13.5px; }
  .callout .c-conf { font-size: 11.5px; margin-top: 1px; }
  .callout .c-conf b { font-size: 18px; }
  .caption .q-label { display: none; }
}

/* ------------------------------------------------------------ the catalogue (sidebar) */
.catalogue {
  min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 22px 16px; background: var(--paper-2); position: relative; scrollbar-width: thin;
  background-image: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 40%);
  border: 1px solid var(--rule); box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 5px rgba(184, 154, 104, .7), 0 18px 32px -16px rgba(52, 34, 12, .45);
}
.label-card { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.label-card .no { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--vermilion); font-weight: 600; }
.label-card h1 { margin: 2px 0 4px; font: italic 600 32px/1.05 var(--display); }
.label-card .who { margin: 0; font-size: 16.5px; color: var(--ink); }
.label-card .where { margin: 1px 0 0; font-size: 14.5px; color: var(--ink-2); font-style: italic; }

.ask { display: flex; flex-direction: column; gap: 9px; }
.presets { border: 0; margin: 0; padding: 0; min-width: 0; }
.presets legend, .own-label {
  padding: 0; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 7px;
}
.chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 6px 12px 7px; text-align: left; cursor: pointer;
  font: 17px/1.3 var(--text); color: var(--ink); background: rgba(255, 252, 242, .9); border: 1px solid #cbb48a; border-radius: 2px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.chip::before { content: attr(data-n); font: italic 600 15px var(--display); color: var(--ink-3); min-width: 14px; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: #fffaf0; box-shadow: inset 3px 0 0 var(--vermilion), 0 2px 0 rgba(42, 31, 20, .15); }
.chip[aria-pressed="true"]::before { color: var(--vermilion); }
.own-label { margin: 6px 0 0; }
.own-row input {
  width: 100%; padding: 6px 2px 7px; font: italic 19px/1.3 var(--text); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink-2); outline: none; border-radius: 0;
}
.own-row input::placeholder { color: var(--ink-3); }
.own-row input:focus { border-bottom-color: var(--vermilion); }
.run-row { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.models { display: flex; border: 1px solid var(--rule); background: rgba(255, 252, 242, .7); border-radius: 2px; }
.models button {
  font: 600 14.5px var(--text); letter-spacing: .04em; color: var(--ink-2); background: none; border: 0; padding: 7px 11px; cursor: pointer; white-space: nowrap;
  border-right: 1px solid rgba(184, 154, 104, .6);
}
.models button:last-child { border-right: 0; }
.models button[aria-checked="true"] { color: var(--paper-2); background: var(--ink); }
.run {
  flex: 1; cursor: pointer; font: 600 17px var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi);
  background: linear-gradient(#3a2b1c, #241910); border: 1px solid #120c06; border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(232, 207, 143, .25), 0 3px 0 rgba(42, 31, 20, .35); transition: filter .2s, transform .1s;
}
.run:hover { filter: brightness(1.18); }
.run:active { transform: translateY(1px); }
.run:disabled { cursor: progress; filter: saturate(.6); }

.steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 0 11px; padding: 8px 0 7px; border-bottom: 1px dotted rgba(138, 117, 89, .55); opacity: .5; transition: opacity .35s; }
.step.active, .step.done { opacity: 1; }
.step .num {
  grid-row: span 2; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  font: 600 15px/1 var(--display); color: var(--ink-2); border: 1px solid var(--ink-3); background: rgba(255, 252, 242, .8);
}
.step.active .num { color: var(--vermilion); border-color: var(--vermilion); animation: ring 1.4s ease-in-out infinite; }
.step.done .num { color: var(--gold-hi); background: var(--ink); border-color: var(--ink); }
.step .title { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); line-height: 1.5; }
.step .detail { font-size: 15.5px; color: var(--ink-2); line-height: 1.38; }
.step .detail b { color: var(--ink); }
.step .detail .m1 { color: var(--vermilion); font-weight: 600; }
.step .detail .m2 { color: var(--ultramarine); font-weight: 600; }
@keyframes ring { 50% { box-shadow: 0 0 0 5px rgba(192, 57, 27, .14); } }

.notice { margin: 0; padding: 7px 12px 8px 30px; position: relative; font-size: 15px; font-style: italic; color: var(--ink-2); background: rgba(255, 247, 230, .85); border: 1px dashed var(--rule); }
.notice::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); animation: pip 1.4s ease-in-out infinite; }
.verdict { display: none; gap: 6px; padding: 10px 14px 12px; background: #fffaf0; border: 1px solid var(--rule); box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px rgba(184, 154, 104, .5); }
.verdict.on { display: grid; }
.verdict .row { display: flex; align-items: baseline; gap: 12px; }
.verdict .big { font: 600 44px/1 var(--display); font-variant-numeric: lining-nums; }
.verdict .what { font-size: 16px; color: var(--ink-2); line-height: 1.3; }
.verdict .what q { color: var(--ink); font-style: italic; }
.verdict .what q::before { content: "“"; } .verdict .what q::after { content: "”"; }
.verdict .m1 .big { color: var(--vermilion); }
.verdict .m2 .big { color: var(--ultramarine); }
.verdict .tag { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; min-width: 70px; }

.keybox { padding: 10px 12px; background: #fff7e6; border: 1px solid #d3b27a; font-size: 15.5px; line-height: 1.4; }
.keybox p { margin: 0 0 8px; }
.key-row { display: flex; gap: 8px; }
.key-row input { flex: 1; min-width: 0; padding: 6px 8px; font: 15px var(--text); border: 1px solid var(--rule); background: #fffdf6; border-radius: 2px; }
.key-row button { font: 600 14px var(--text); padding: 6px 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-2); border-radius: 2px; cursor: pointer; }
.keychip { margin: auto 0 0; font-size: 13.5px; color: var(--ink-3); font-style: italic; }
.keychip.ready::before { content: "✓ "; color: var(--verdigris); font-style: normal; }

/* ------------------------------------------------------------ the overlay (SVG in image pixels) */
.grid-line { stroke: rgba(255, 248, 228, .92); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s; filter: drop-shadow(0 0 1.5px rgba(30, 20, 6, .9)); }
.grid-line.on { opacity: 1; }
.tile { fill: rgba(var(--heat), 0); transition: fill .6s, opacity .6s; }
.tile.scan { animation: scan 1.3s ease-in-out infinite; }
@keyframes scan { 0%, 100% { fill: rgba(255, 246, 220, .0); } 50% { fill: rgba(255, 246, 220, .2); } }
.tile-label { font-family: var(--display); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 249, 232, .94); stroke-linejoin: round; opacity: 0; transition: opacity .45s, transform .45s var(--ease); font-variant-numeric: lining-nums; }
.tile-label.on { opacity: 1; }
.tile-label.best { fill: var(--vermilion); }
.tile-frame { fill: none; stroke: #f3d68e; stroke-width: 4; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 2px rgba(30, 20, 6, .95)); }
.tile-frame.on { opacity: 1; }
.dim { fill: rgba(34, 24, 12, .62); opacity: 0; transition: opacity .7s; }
.dim.on { opacity: 1; }
.box-under { fill: none; stroke: rgba(255, 249, 232, .95); stroke-width: 7.5; vector-effect: non-scaling-stroke; }
.box-rect { fill: none; stroke: var(--vermilion); stroke-width: 3.5; vector-effect: non-scaling-stroke; }
.box-rect.m2 { stroke: var(--ultramarine); }
.box-halo { fill: rgba(255, 240, 200, .1); }
.edge { stroke-width: 7; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(255, 249, 232, .95)); }
.edge.ok { stroke: var(--verdigris); }
.edge.cut { stroke: var(--vermilion); stroke-dasharray: 2 10; animation: march .6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -12; } }
.edge-label { font-family: var(--text); font-weight: 700; paint-order: stroke; stroke: rgba(255, 249, 232, .96); stroke-linejoin: round; font-variant-numeric: lining-nums; }
.edge-label.ok { fill: var(--verdigris); }
.edge-label.cut { fill: var(--vermilion); }
/* ------------------------------------------------------------ below the room */
.notes, .provenance, .colophon { max-width: 1480px; margin: 0 auto; padding: 8px 32px 18px; }
.notes h2, .provenance h2 { font: italic 600 30px/1.2 var(--display); margin: 22px 0 10px; }
.orn { color: var(--vermilion); font-style: normal; margin-right: 6px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.how li { font-size: 17px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 10px; }
.how b { display: block; font: italic 600 21px var(--display); color: var(--ink); margin-bottom: 4px; }
.aside { max-width: 1100px; color: var(--ink-2); font-size: 17px; }
.own-image { margin-top: 14px; }
.own-image h3 { font: italic 600 23px var(--display); margin: 8px 0 2px; }
.own-image p { margin: 2px 0 8px; color: var(--ink-2); }
.file { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 7px 16px 7px 7px; border: 1px dashed var(--ink-2); cursor: pointer; background: rgba(255, 252, 242, .6); font-size: 16px; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn { padding: 5px 14px; border: 1px solid var(--ink); background: linear-gradient(var(--paper-2), var(--paper)); box-shadow: 2px 2px 0 rgba(42, 31, 20, .85); letter-spacing: .03em; }
.file:hover .file-btn { background: var(--ink); color: var(--paper-2); }
.file:focus-within { outline: 2px solid var(--vermilion); outline-offset: 2px; }
.file-name { color: var(--ink-3); font-style: italic; font-size: 15px; }
.details { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.details summary { cursor: pointer; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.details table { border-collapse: collapse; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }
.details td, .details th { padding: 3px 18px 3px 0; text-align: left; border-bottom: 1px dotted rgba(138, 117, 89, .5); font-weight: 400; }
.details th { font-weight: 600; color: var(--ink); }
.prov { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.prov li { font-size: 15.5px; color: var(--ink-2); line-height: 1.45; border-top: 1px solid var(--rule); padding-top: 8px; }
.prov li i { color: var(--ink); font: italic 600 18.5px var(--display); }
.colophon { font-size: 14.5px; color: var(--ink-3); border-top: 1px solid var(--rule); margin-top: 18px; padding-bottom: 40px; }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 1280px) {
  .tagline span { display: none; }
  .room { grid-template-columns: minmax(0, 1fr) 400px; }
  .how { grid-template-columns: repeat(2, 1fr); }
  .prov { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --head-h: auto; --salon-h: auto; }
  .masthead { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px 14px; }
  .masthead::after { left: 16px; right: 16px; }
  .embedded .masthead { padding-right: 16px; padding-top: 50px; }
  .embedded .masthead::after { right: 16px; }
  :root { --logo-h: 46px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand-title { font-size: 27px; }
  .wordmark { padding: 2px 0 6px; border-right: 0; }
  .tagline { text-align: left; font-size: 16px; }
  .tagline em { font-size: 19px; }
  .links { gap: 14px; font-size: 15px; flex-wrap: wrap; }
  .salon { padding: 10px 12px 0; }
  .works { grid-template-columns: repeat(var(--n, 9), 172px); }
  .room { grid-template-columns: 1fr; height: auto; min-height: 0; padding: 6px 12px 18px; gap: 18px; }
  .frame { padding: 10px; }
  .mat { padding: 9px; }
  .stage { height: min(56vh, 82vw); flex: none; width: 100%; }
  .plaque { font-size: 17px; padding: 7px 14px; bottom: 10px; max-width: 94%; }
  .catalogue { overflow: visible; }
  .notes, .provenance, .colophon { padding-left: 16px; padding-right: 16px; }
  .how, .prov { grid-template-columns: 1fr; }
}
/* short 16:9 screens (720p recordings): the steps stay in view beside the work */
@media (max-height: 820px) and (min-width: 901px) {
  :root { --head-h: 68px; --logo-h: 46px; --salon-h: 92px; }
  .brand { gap: 22px; }
  .wordmark { padding-right: 22px; }
  .brand-title { font-size: 28px; }
  .salon { padding-top: 8px; }
  .thumb img { width: 58px; height: 44px; }
  .work-label i { font-size: 15px; }
  .room { gap: 20px; padding-bottom: 16px; }
  .catalogue { padding: 13px 18px 10px; gap: 9px; }
  .label-card { padding-bottom: 8px; }
  .label-card h1 { font-size: 26px; }
  .label-card .who { font-size: 15px; }
  .label-card .where { font-size: 13.5px; }
  .presets legend, .own-label { margin-bottom: 4px; }
  .chips { gap: 4px; }
  .chip { font-size: 15.5px; padding: 3px 10px 4px; }
  .own-row input { font-size: 17px; padding: 2px 2px 4px; }
  .run-row { margin-top: 2px; }
  .step { padding: 5px 0 4px; }
  .step .num { width: 26px; height: 26px; font-size: 13.5px; }
  .step .detail { font-size: 14px; }
  .verdict { padding: 7px 12px 9px; }
  .verdict .big { font-size: 36px; }
  .plaque { font-size: 19px; padding: 7px 18px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .world, .plaque, .tile, .grid-line, .dim, .work, .tile-label, .qcard, .caption, .veil, .missing, .callout, .leaders g { transition: none !important; }
  .tile.scan, .edge.cut, .step.active .num, .hanging span, .rounds i.now { animation: none !important; }
}
