/* THE TOUR: ONE WINDOW, FIVE WORKFLOWS, A CAMERA (2026-10-05).

   The owner asked for a presentation of the whole platform that is a
   tutorial, on theme and breathtaking. What that means here, as rules the
   sheet keeps (the rules for glass, motion and type the owner set on
   2026-09-20, read once and then held):

   - Every colour is a theme token from /site.css. Not one hex lives in
     this file, so every named theme, light and dark, dresses the tour the
     same way it dresses the rest of the site.
   - The glass is the site's own. /glass.js paints the window behind the
     page, a living ring in this frame's border (tour.js names the frame
     before glass.js boots), and a strip of jewel panes across the top of
     every scene ([data-glass-strip]). Nothing here reimplements it.
   - Words never sit on the glass. Each scene is an opaque plate in the
     theme's own ground (the leadlight recipe .stained-window already
     uses), and so are the rail and the head.
   - One thing moves at a time: the camera. The scene headings keep the
     site's band rule but not its drift, so the only motion beside the
     glass is the move from one pane to the next.
   - With scripts off there is no camera and no rail of buttons: the panes
     stand in a column and the rail's links are plain anchors to them.
     Reduced motion makes every move instant. Forced colours strip the
     decoration and keep the edges. */

/* ---- the page: keep the full-screen glass behind a quiet reading field */
.tour-page main.wrap.tour{padding-top:24px;padding-bottom:34px}
html.glass-window-on body.tour-page main.wrap.tour{
  background:var(--surface-0);box-shadow:none;border-radius:0;margin-top:0;margin-bottom:0}
@media(max-width:640px){
  .tour-page main.wrap.tour{padding:16px 16px 28px}
  html.glass-window-on body.tour-page main.wrap.tour{padding:16px 16px 28px;margin:0}
}

/* ---- the head: one plate, one h1, one line of keys ----------------- */
.tour-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 28px;
  align-items:end;padding:18px 22px 16px;margin-bottom:16px;--glass-radius:12px}
.tour-head h1{font:500 clamp(24px,3.4vw,38px)/1.15 var(--display);letter-spacing:-.035em;
  color:var(--text-1);margin:6px 0 8px;max-width:24ch}
.tour-head .lead{font-size:14px;line-height:1.7;max-width:64ch;color:var(--text-2);margin:0}
.tour-keys{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:0;
  font-size:12px;color:var(--text-3)}
.tour-keys kbd{font:11px var(--mono);border:1px solid var(--edge-lit);border-radius:4px;
  padding:2px 6px;color:var(--text-2);margin-right:4px}
@media(hover:none),(pointer:coarse){.tour-keys{display:none}}
@media(max-width:899px){.tour-head{grid-template-columns:minmax(0,1fr);padding:16px 18px 14px}}

/* ---- the body: rail beside the window ------------------------------- */
.tour-body{display:grid;grid-template-columns:228px minmax(0,1fr);gap:18px;align-items:start}
@media(max-width:899px){.tour-body{grid-template-columns:minmax(0,1fr);gap:12px}}

/* ---- the rail: where you are, where you can go ---------------------- */
.tour-rail{position:sticky;top:92px;padding:14px 12px 12px;--glass-radius:12px}
.rail-top{padding:0 8px 8px}
.rail-eyebrow{font:600 10px var(--body);letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold-text);margin:0}
.rail-count{font:500 13px var(--mono);color:var(--text-2);margin:6px 0 0}
.rail-now{display:none;font:500 14px var(--body);color:var(--text-1);margin:0}
.rail-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
/* position:relative so the pill contains its own hidden name on the phone (an absolutely
   placed 1px span with no positioned ancestor sat at its static x and widened the page) */
.rail-step{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 8px;
  border-radius:7px;border:1px solid transparent;color:var(--text-2);font-size:13px;
  line-height:1.3;text-decoration:none}
.rail-step:hover{background:var(--surface-2);color:var(--text-1);text-decoration:none}
.rail-step[aria-current="step"]{background:var(--surface-2);border-color:var(--edge-lit);
  color:var(--text-1)}
.rail-step i{flex:none;width:22px;font:11px var(--mono);font-style:normal;color:var(--gold-text)}
.rail-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:12px;
  border-top:1px solid var(--edge)}
.rail-controls button{flex:1 1 auto;min-height:44px;min-width:44px;padding:6px 10px;
  background:var(--surface-2);border:1px solid var(--edge);border-radius:6px;
  color:var(--text-1);font:13px var(--body);cursor:pointer}
.rail-controls button:hover{border-color:var(--edge-lit)}
.rail-controls button[aria-pressed="true"]{border-color:var(--gold-dim);color:var(--gold-text)}
.rail-controls button:disabled{opacity:.55;cursor:default}
html:not([data-tour-js]) .rail-controls,html:not([data-tour-js]) .rail-count{display:none}
@media(max-width:899px){
  .tour-rail{position:static;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;
    padding:10px 12px 12px}
  .rail-top{display:flex;align-items:baseline;gap:12px;padding:0 2px}
  .rail-eyebrow{display:none}
  .rail-count{margin:0}
  .rail-now{display:block}
  /* the list becomes a strip of numbered pills that scrolls inside itself; the name
     of the current pane is the line above, and every pill still says its name to a
     screen reader (aria-label) */
  .rail-list{display:flex;gap:4px;overflow-x:auto;padding:2px;scrollbar-width:thin}
  .rail-step{flex:none;min-width:44px;justify-content:center;padding:6px}
  .rail-step span{display:none}   /* the pill's aria-label carries the name */
  .rail-step i{width:auto;font-size:12px}
  .rail-controls{margin-top:2px;padding-top:0;border-top:0}
}

/* ---- the window: a frame of living glass, the set showing through --- */
.tour-view{position:relative;overflow:clip;border:10px solid var(--edge);border-radius:14px;
  height:clamp(520px,calc(100vh - 236px),920px);min-height:420px;isolation:isolate;
  touch-action:pan-y;background:var(--surface-0)}
/* the frame's canvas covers the border ring itself (glass.js positions a canvas at the
   padding box; here the ring IS the border, so the canvas is widened by the border) */
.tour-view > .glass-pane-canvas{inset:-10px;width:calc(100% + 20px);height:calc(100% + 20px)}
@media(max-width:899px){
  .tour-view{border-width:8px;border-radius:12px;height:auto;min-height:420px}
  .tour-view > .glass-pane-canvas{inset:-8px;width:calc(100% + 16px);height:calc(100% + 16px)}
}
.tour-stage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;
  transition:transform 1.05s cubic-bezier(.22,.68,.26,1)}
html[data-tour-instant] .tour-stage{transition:none}

/* ---- a scene: an opaque plate with a leaded edge and a band of glass -- */
.tour-scene{position:absolute;left:0;top:0;width:760px;padding:24px 28px 26px;
  color:var(--text-2);border:2px solid transparent;border-radius:12px;
  background:linear-gradient(var(--surface-1),var(--surface-1)) padding-box,
    var(--glass-cut) border-box,var(--glass-mosaic) border-box;
  box-shadow:0 0 0 1px var(--glass-lead),inset 0 0 0 1px var(--glass-lead),
    0 18px 44px color-mix(in srgb,var(--glass-lead) 18%,transparent);outline:0}
.tour-scene.is-away{visibility:hidden}
html[data-tour-overview] .tour-scene{visibility:visible}
.scene-band{height:9px;margin:-24px -28px 18px;border-radius:9px 9px 0 0;
  background:var(--glass-cut),var(--glass-mosaic)}
.tour-scene .eyebrow{font-size:10px;letter-spacing:.2em}
.tour-scene h2{display:block;font:500 clamp(22px,2.4vw,30px)/1.22 var(--display);
  letter-spacing:-.03em;color:var(--text-1);margin:8px 0 12px;padding-bottom:0;max-width:24ch}
.tour-scene h2::after{display:none}
.tour-scene p{font-size:15px;line-height:1.7;max-width:64ch;margin:0 0 10px}
.tour-scene p:last-child{margin-bottom:0}
.tour-scene .scene-note{font-size:12.5px;line-height:1.6;color:var(--text-3);margin-top:10px}
.tour-scene a{text-decoration:underline;text-underline-offset:3px}
.scene-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 26px;
  align-items:start;margin-top:4px}
.scene-cols.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.scene-cols h3{font:600 14px var(--body);color:var(--text-1);margin:0 0 6px}
.scene-cols p{font-size:14px}
@media(max-width:640px){.scene-cols,.scene-cols.three{grid-template-columns:minmax(0,1fr)}}
.scene-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.scene-actions .cta,.scene-actions .ghost{display:inline-flex;align-items:center;
  justify-content:center;min-height:44px;padding:10px 16px;font-size:13px}
/* the map label: read only when the camera is out at the overview, where the
   pane itself is a thumbnail. Off everywhere else. */
.scene-label{display:none;position:absolute;left:14px;right:14px;top:14px;z-index:2;
  font:500 clamp(64px,9vw,96px)/1 var(--display);letter-spacing:-.04em;color:var(--text-1);
  background:var(--surface-1);padding:8px 14px 12px;border-radius:8px;
  overflow-wrap:anywhere;pointer-events:none}
html[data-tour-overview] .scene-label{display:block}

/* ---- real fixture captures and source-backed workflow text --------- */
.tour-shot{margin:14px 0 0;border:1px solid var(--edge);border-radius:9px;
  overflow:hidden;background:var(--surface-0)}
.tour-shot picture,.tour-shot img{display:block;width:100%}
.tour-shot img{height:clamp(190px,25vw,300px);object-fit:cover;object-position:center top}
.tour-shot figcaption{padding:8px 12px;border-top:1px solid var(--edge);
  font:12px/1.5 var(--body);color:var(--text-3)}
.shot-open{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:5px}
/* The tour camera scales its pane slightly on a phone; 52px here keeps the
   rendered target above 44px after that transform. */
.shot-open a{display:inline-flex;align-items:center;min-height:52px}
@media(max-width:700px){.tour-shot img{height:260px;object-position:center top}}
.ui{display:inline-block;max-width:100%;padding:2px 7px;border:1px solid var(--edge-lit);
  border-radius:5px;background:var(--surface-2);color:var(--text-1);font:12px/1.5 var(--mono);
  font-weight:400;vertical-align:baseline}
.ui.plain{border-color:transparent;background:transparent;padding-left:0;padding-right:0}
.scene-callout{display:grid;gap:4px;margin:16px 0;padding:14px 16px;
  border-inline-start:3px solid var(--gold);background:var(--surface-2);
  color:var(--text-1);font:14px/1.5 var(--body)}
.scene-callout b{font-weight:700}
.workflow-path{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:18px 0;padding:0}
.workflow-path li{padding:8px 10px;border:1px solid var(--edge);border-radius:6px;
  background:var(--surface-2);color:var(--text-1);font:13px var(--body)}

/* ---- no scripts: a column of panes, plain anchors ------------------- */
html:not([data-tour-js]) .tour-view{height:auto;min-height:0;overflow:visible}
html:not([data-tour-js]) .tour-stage{position:static;transform:none;display:grid;gap:18px;
  padding:18px;transition:none}
html:not([data-tour-js]) .tour-scene{position:static;width:auto;max-width:760px}
html:not([data-tour-js]) .rail-now{display:none}

/* ---- motion, contrast, forced colours ------------------------------- */
@media (prefers-reduced-motion:reduce){
  .tour-stage{transition:none}
  .tour-view{transition:none}
  .tour-scene{transition:none}
}
@media (prefers-contrast:more){
  .tour-scene,.tour-view{border-color:var(--text-1);box-shadow:none}
  .scene-band{display:none}
}
@media (forced-colors:active){
  .tour-scene{background:Canvas;border:2px solid CanvasText;box-shadow:none}
  .tour-view{border-color:CanvasText}
  .scene-band{display:none}
  .ui,.tour-shot,.rail-step[aria-current="step"]{border-color:CanvasText}
  .rail-step[aria-current="step"]{outline:2px solid Highlight}
}
