/* The introduction is a small exhibition within the exhibition. */
.exhibition-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-block:12px; border-bottom:1px solid var(--line); font-size:13px; }
.tour-reopen { display:flex; align-items:center; gap:8px; color:var(--blue); min-height:36px; font-weight:650; }
.tour-reopen > span { font-size:22px; }
.language-control { display:flex; align-items:center; gap:10px; font-size:12px; }
.language-control > span { font-family:var(--mono); color:var(--ink-2); }
.language-control select, .tour-audio-controls select { font:inherit; border:1px solid var(--line); border-radius:4px; background:var(--bg); color:var(--ink); padding:8px 28px 8px 10px; min-height:40px; max-width:150px; }
.keeper-tour { width:1120px; height:min(780px,calc(100dvh - 40px)); max-width:calc(100vw - 40px); max-height:calc(100dvh - 40px); margin:auto; padding:0; border:1px solid var(--ink); border-radius:8px; background:var(--bg); color:var(--ink); overflow:hidden; box-shadow:0 32px 100px #15140f55; overscroll-behavior:contain; }
.keeper-tour[open] { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:88px minmax(0,1fr) 112px 90px 60px; }
.keeper-tour > * { min-width:0; }
.keeper-tour::backdrop { background:#15140fb0; backdrop-filter:blur(6px); }
.keeper-tour:focus { outline:none; }
html.tour-open { overflow:hidden; }
.tour-header { position:sticky; top:0; z-index:5; background:var(--bg); display:flex; justify-content:space-between; align-items:center; gap:24px; padding:22px 28px; border-bottom:1px solid var(--line); }
.tour-eyebrow { font:11px/1.5 var(--mono); letter-spacing:.035em; text-transform:uppercase; color:var(--blue); }
.tour-header h2 { margin-top:5px; font-size:19px; line-height:1.3; letter-spacing:-.02em; font-weight:600; }
.tour-header-actions { display:flex; align-items:center; gap:18px; flex-shrink:0; }
.tour-close { display:flex; align-items:center; gap:12px; min-height:44px; font-size:12px; }
.tour-close > span { font-size:27px; }
.tour-story { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); min-height:0; overflow:hidden; }
.tour-stage { position:relative; background:var(--soft); min-height:0; height:100%; overflow:hidden; --phase:0; }
.tour-scene { position:absolute; inset:0; overflow:hidden; }
.tour-scene[hidden] { display:none; }
.scene-index { position:absolute; top:20px; left:24px; font:11px var(--mono); z-index:3; }
.scene-bottom { position:absolute; bottom:18px; left:24px; right:24px; display:flex; gap:8px; justify-content:space-between; font:10px/1.6 var(--mono); z-index:3; }
.tour-copy { padding:32px 34px 26px; display:flex; flex-direction:column; align-items:flex-start; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.tour-copy > * { flex-shrink:0; }
.tour-copy h3 { margin:15px 0 18px; font-size:clamp(29px,3.4vw,45px); line-height:1.04; font-weight:680; letter-spacing:-.035em; text-wrap:balance; }
#tour-transcript { font-size:17px; line-height:1.65; color:var(--ink-2); }
.tour-hint { margin-top:auto; padding-top:18px; font:11px/1.6 var(--mono); color:var(--ink-2); }
.tour-start { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; border-radius:4px; background:var(--blue); color:white; font-size:14px; padding:10px 18px; margin-top:12px; }
.tour-start > span:first-child { font-size:24px; line-height:1; }
.tour-player { border-top:1px solid var(--line); padding:17px 28px 12px; }
.tour-timeline-row { display:flex; align-items:center; gap:14px; }
.tour-timeline-row output { font:11px var(--mono); font-variant-numeric:tabular-nums; min-width:36px; }
.tour-timeline-row output:last-child { text-align:right; }
#tour-timeline { width:100%; height:32px; margin:0; cursor:pointer; accent-color:var(--blue); }
.tour-controls { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.tour-transport, .tour-audio-controls { display:flex; align-items:center; gap:12px; }
.tour-transport button { width:44px; height:44px; font-size:22px; border-radius:50%; }
.tour-transport button:hover { background:var(--soft); }
.tour-transport #tour-play { color:white; background:var(--ink); }
.tour-transport button:disabled { opacity:.25; cursor:default; }
.tour-audio-controls { gap:16px; font:12px var(--mono); }
#tour-mute { min-height:44px; text-decoration:underline; text-underline-offset:5px; }
.tour-chapters { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); padding:8px 28px 18px; gap:8px; }
.tour-chapters button { border-top:2px solid var(--line); text-align:left; padding:11px 4px 4px; font-size:12px; line-height:1.4; min-height:55px; min-width:0; overflow-wrap:anywhere; }
.tour-chapters button span { display:block; font:10px var(--mono); color:var(--ink-3); margin-bottom:4px; }
.tour-chapters button[aria-current="step"] { border-color:var(--blue); color:var(--blue); }
.tour-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 28px; border-top:1px solid var(--line); background:#eae8e060; font-size:11px; line-height:1.5; }
.tour-footer label { display:flex; align-items:center; gap:8px; cursor:pointer; min-height:32px; }
.tour-footer input { width:17px; height:17px; accent-color:var(--blue); }
#tour-audio { display:none; }
#tour-explore { color:var(--blue); min-height:40px; font-weight:600; }
.scene-meet { background:#eee9de; }
.tour-orbit { position:absolute; width:325px; height:325px; border:1px solid #c2baa8; border-radius:50%; top:9%; left:35%; transform:scale(calc(.85 + var(--phase)*.15)); }
.tour-orbit::after { content:''; position:absolute; inset:24px; border:1px dashed #c2baa8; border-radius:50%; }
.tour-robot { position:absolute; right:9%; bottom:8%; height:83%; width:auto; z-index:2; transform:translateY(calc((1 - var(--phase))*7px)); }
.scene-painting { position:absolute; width:27%; left:9%; top:17%; padding:8px; background:var(--bg); box-shadow:5px 8px 0 #15140f10; transform:rotate(-7deg); }
.scene-painting img { width:100%; max-height:200px; object-fit:cover; }
.scene-painting > span { display:block; padding-top:8px; font:10px var(--mono); }
.story-ribbon { position:absolute; z-index:3; bottom:23%; left:8%; width:42%; padding:12px; background:var(--marigold); font-size:18px; line-height:1.2; font-weight:600; transform:rotate(-5deg) translateX(calc(var(--phase)*7px)); box-shadow:3px 4px 0 #15140f16; }
.story-ribbon > span { float:right; }
.scene-map { background:#e7ebf7; }
.scene-tag { position:absolute; top:20px; right:24px; font:11px var(--mono); color:var(--blue); }
.tour-floor { width:90%; height:80%; position:absolute; left:5%; top:10%; overflow:visible; }
.floor-grid { fill:none; stroke:#2340c018; stroke-width:1; }
.tour-walls { fill:none; stroke:var(--ink); stroke-width:7; stroke-dasharray:1500; stroke-dashoffset:calc(1500 - var(--phase)*1500); }
.tour-scan { fill:none; stroke:var(--blue); stroke-width:1.5; opacity:calc(.2 + var(--phase)*.5); transform-origin:260px 215px; transform:scale(calc(.65 + var(--phase)*.35)); }
.tour-sweep { fill:none; stroke:var(--blue); stroke-width:1.3; transform-origin:260px 215px; transform:rotate(calc(var(--phase)*360deg)); }
.tour-map-route { fill:none; stroke:var(--red); stroke-width:3; stroke-dasharray:8 7; opacity:calc(var(--phase)*.7); }
.tour-map-robot > circle { fill:var(--ink); }
.tour-map-robot > use { fill:#3bdcfc; }
.scene-see { background:var(--blue); color:var(--bg); }
.tour-viewfinder { position:absolute; top:14%; left:17%; width:44%; height:66%; padding:12px; }
.tour-viewfinder img { width:100%; height:100%; object-fit:cover; }
.viewfinder-corner { position:absolute; width:25px; height:25px; border:2px solid var(--marigold); }
.corner-one { top:0; left:0; border-right:0; border-bottom:0; }
.corner-two { bottom:0; right:0; border-left:0; border-top:0; }
.tour-scanline { position:absolute; top:calc(12% + var(--phase)*72%); left:0; width:100%; height:2px; background:var(--marigold); box-shadow:0 0 16px var(--marigold); }
.tour-label-read { position:absolute; top:35%; right:8%; width:35%; padding:18px; background:var(--bg); color:var(--ink); transform:rotate(4deg) translateY(calc((1 - var(--phase))*12px)); box-shadow:5px 5px 0 #15140f25; }
.tour-label-read > span, .tour-label-read small { display:block; font:11px/1.5 var(--mono); }
.tour-label-read b { display:block; font-size:24px; margin-block:8px 4px; }
.tour-label-read > span { color:var(--red); }
.tour-discovery { position:absolute; left:8%; right:8%; bottom:13%; display:flex; flex-wrap:wrap; gap:7px; }
.tour-discovery span { border:1px solid #ffffff66; border-radius:3px; padding:6px 9px; font:10px/1.5 var(--mono); }
.scene-architecture { background:#eae8e0; }
.architecture-flow { position:absolute; top:14%; left:8%; right:8%; }
.architecture-node { display:flex; align-items:center; gap:14px; padding:12px 15px; background:var(--bg); border:1px solid #cbc6b8; box-shadow:3px 3px 0 #15140f0a; transition:border-color .4s,background .4s; }
.architecture-node > div { flex:1; }
.architecture-node b { display:block; font-size:19px; line-height:1.2; }
.architecture-node div > span { display:block; font-size:11px; margin-top:4px; line-height:1.5; color:var(--ink-2); }
.architecture-node i { font:10px var(--mono); color:var(--ink-3); }
.node-symbol { color:var(--blue); font-size:29px; width:32px; text-align:center; }
.architecture-link { display:block; padding:1px; text-align:center; font-size:18px; line-height:1; color:var(--blue); }
.architecture-node.is-lit { border-color:var(--blue); background:#dfe5ff; }
.local-robotics { display:flex; justify-content:center; flex-wrap:wrap; align-items:center; gap:8px; border-top:1px solid #cbc6b8; margin-top:15px; padding-top:12px; font-size:11px; }
.local-robotics > span:last-child { color:var(--ink-2); }
.local-dot { width:7px; height:7px; background:var(--red); border-radius:50%; }
.local-robotics.is-lit .local-dot { background:var(--blue); box-shadow:0 0 0 4px #2340c020; }
.scene-guide { background:var(--marigold); }
.tour-conversation { position:absolute; left:10%; right:10%; top:18%; }
.conversation-step { display:flex; align-items:center; gap:14px; padding:17px 0; border-top:1px solid #15140f33; }
.conversation-step > span { font:10px var(--mono); color:var(--ink-2); }
.conversation-step > b { flex:1; font-size:20px; line-height:1.25; }
.conversation-step > i { font-size:22px; font-style:normal; color:var(--blue); opacity:.35; }
.conversation-step.is-lit > i { opacity:1; transform:translateX(4px); }
.curator-stamp { position:absolute; right:8%; bottom:12%; font:10px/1.4 var(--mono); transform:rotate(-5deg); border:1px solid var(--ink); padding:6px 10px; }
.scene-team { background:#e7ebf7; }
.tour-team-photo { position:absolute; width:67%; left:9%; top:14%; padding:8px; background:var(--bg); transform:rotate(-4deg); box-shadow:4px 6px 0 #15140f15; }
.tour-team-photo img { width:100%; height:210px; object-fit:cover; }
.tour-team-photo figcaption, .tour-prototype-photo figcaption { font:10px/1.5 var(--mono); padding-top:7px; }
.tour-prototype-photo { position:absolute; z-index:1; width:40%; top:58%; left:12%; padding:7px; background:var(--bg); transform:rotate(6deg); box-shadow:3px 5px 0 #15140f15; }
.tour-prototype-photo img { width:100%; height:65px; object-fit:cover; }
.tour-rank-ticket { position:absolute; right:8%; top:46%; width:33%; padding:13px; background:var(--marigold); transform:rotate(5deg) translateY(calc((1 - var(--phase))*10px)); box-shadow:4px 5px 0 var(--blue); }
.tour-rank-ticket b { font-size:75px; line-height:.95; display:block; }
.tour-rank-ticket span { font:11px/1.5 var(--mono); display:block; margin-top:6px; }
.tour-journey { position:absolute; left:9%; right:9%; bottom:11%; display:flex; gap:9px; justify-content:space-between; font:10px/1.5 var(--mono); }
.keeper-tour.is-playing .tour-map-robot { filter:drop-shadow(0 0 8px #2340c030); }
.keeper-tour.is-playing .tour-start { background:var(--ink); }
@media (min-width:761px) and (max-height:750px) {
  .keeper-tour[open] { grid-template-rows:72px minmax(0,1fr) 94px 78px 54px; }
  .tour-header { padding-block:14px; }
  .tour-copy { padding:22px 28px; }
  .tour-copy h3 { font-size:34px; margin-block:10px 12px; }
  #tour-transcript { font-size:15px; line-height:1.6; }
  .architecture-flow { top:12%; }
  .architecture-node { padding:8px 12px; }
  .architecture-node b { font-size:17px; }
  .architecture-node div > span { font-size:10px; margin-top:2px; }
  .architecture-link { font-size:14px; }
  .local-robotics { padding-top:8px; margin-top:10px; }
  .tour-conversation { top:15%; }
  .conversation-step { padding:12px 0; }
  .tour-team-photo img { height:155px; }
  .tour-rank-ticket b { font-size:55px; }
  .tour-prototype-photo img { height:50px; }
  .tour-player { padding-block:9px 7px; }
  .tour-chapters { padding-bottom:12px; }
  .tour-footer { padding-block:9px; }
}
@media (max-width:760px) {
  .keeper-tour { max-width:calc(100vw - 20px); height:calc(100dvh - 20px); max-height:calc(100dvh - 20px); }
  .keeper-tour[open] { grid-template-rows:100px minmax(0,1fr) 100px 140px 76px; }
  .tour-header { padding:14px 18px; align-items:flex-start; gap:14px; }
  .tour-header h2 { display:none; }
  .tour-header > div:first-child { min-width:0; max-width:45%; }
  .tour-header-actions { gap:8px; flex-direction:row; align-items:center; }
  .tour-header-actions select { max-width:110px; font-size:12px; }
  .tour-close { font-size:0; gap:0; width:44px; min-width:44px; justify-content:center; }
  .tour-story { display:block; overflow:auto; overscroll-behavior:contain; }
  .tour-stage { min-height:0; height:280px; }
  .tour-copy { padding:22px 22px 18px; overflow:visible; }
  .tour-copy h3 { margin:9px 0 12px; font-size:32px; }
  #tour-transcript { font-size:15px; line-height:1.65; }
  .tour-hint { padding-top:14px; }
  .tour-start { min-height:44px; font-size:13px; }
  .tour-player { padding:10px 18px; }
  .tour-chapters { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); padding:4px 18px 12px; }
  .tour-chapters button { min-height:0; font-size:11px; padding-top:7px; }
  .tour-footer { padding:12px 18px; flex-wrap:wrap; gap:0 14px; }
  .scene-index { top:15px; left:20px; }
  .scene-bottom { left:20px; right:20px; bottom:10px; font-size:9px; }
  .scene-painting img { max-height:145px; }
  .story-ribbon { font-size:16px; padding:10px; }
  .architecture-flow { top:13%; left:7%; right:7%; }
  .architecture-node { padding:7px 10px; gap:8px; }
  .architecture-node b { font-size:16px; }
  .architecture-node div > span { font-size:10px; margin-top:1px; }
  .node-symbol { font-size:22px; width:25px; }
  .architecture-link { font-size:14px; }
  .local-robotics { padding-top:8px; margin-top:9px; font-size:10px; gap:6px; }
  .tour-conversation { top:16%; }
  .conversation-step { padding:11px 0; }
  .conversation-step > b { font-size:18px; }
  .curator-stamp { bottom:14%; }
  .tour-team-photo img { height:145px; }
  .tour-rank-ticket b { font-size:52px; }
  .tour-rank-ticket { width:38%; right:6%; padding:10px; }
  .tour-rank-ticket span { font-size:9px; line-height:1.5; }
  .tour-prototype-photo img { height:45px; }
  .scene-team .scene-bottom { display:none; }
  .tour-journey { bottom:5%; font-size:8px; }
}
@media (max-width:380px) {
  .keeper-tour[open] { grid-template-rows:86px minmax(0,1fr) 100px 136px 80px; }
  .exhibition-toolbar { gap:8px; font-size:11px; }
  .exhibition-toolbar .language-control > span { display:none; }
  .tour-header h2 { display:none; }
  .tour-controls { gap:8px; }
  .tour-audio-controls { gap:6px; font-size:10px; }
  #tour-mute { width:42px; overflow-wrap:anywhere; text-align:center; }
  #tour-speed { width:64px; max-width:64px; padding-inline:4px; font-size:11px; }
  .tour-transport { gap:0; }
  .tour-chapters button { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .tour-stage { --phase:1 !important; }
  .tour-sweep, .tour-scanline { display:none; }
  .tour-scene *, .tour-scene *::after { transition:none; transform:none; }
  .tour-walls { stroke-dashoffset:0; }
  .tour-scan, .tour-map-route { opacity:.5; }
}
@media print { .exhibition-toolbar, .keeper-tour { display:none; } }
