/* Styles for js/tour.js. On the Bridge tokens (--sk-*), so the
   Design, Product and Code lenses restyle them like the rest of the site. */

/* ---- Window bar: Code, on its own at the right (Saar, 13 Nov 2026) ------ */
.xr-tools { display: inline-flex; gap: 6px; }
/* Code left the Design / Product pair; the prototype hides the site's own. */
.lens-bar .lens-btn--code { display: none; }
.code-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 11px;
  border-radius: 8px; border: 1px solid var(--sk-line, #e3e5e9); background: var(--sk-sunken, #f2f3f6);
  color: var(--sk-ink-2, #555b66); font: 500 12px var(--sk-mono, ui-monospace, monospace); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.code-btn:hover { color: var(--sk-ink, #16181d); }
.code-btn__dot { width: 7px; height: 7px; border-radius: 2px; background: var(--sk-code, #1f8a5b); }
.code-btn[aria-pressed="true"] { background: var(--sk-code, #1f8a5b); border-color: var(--sk-code, #1f8a5b); color: #fff; }
.code-btn[aria-pressed="true"] .code-btn__dot { background: #fff; }
.code-btn__key { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 4px; padding-inline-start: 8px; border-inline-start: 1px solid var(--sk-line, #e3e5e9); color: var(--sk-ink-3, #80868f); font-size: 11px; }
.code-btn__key kbd { min-width: 16px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--sk-line-2, #c1c7d0); border-bottom-width: 2px; background: var(--sk-card, #fff); color: var(--sk-ink, #16181d); font: 600 10px/14px var(--sk-mono, ui-monospace, monospace); text-align: center; }
.code-btn[aria-pressed="true"] .code-btn__key { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .35); }
.code-btn[aria-pressed="true"] .code-btn__key kbd { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .45); color: #fff; }
.code-btn:focus-visible, .tour-cta:focus-visible, .tour-fab:focus-visible { outline: 2px solid var(--sk-ink, #16181d); outline-offset: 2px; }

/* ---- The tour: a floating button, bottom right, on every page ------------ */
.tour-fab {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 2147481000;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 0; background: var(--sk-card, #fff); color: var(--sk-ink, #16181d);
  font: 500 13px var(--sk-mono, ui-monospace, monospace); cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 18, 25, .14), 0 1px 3px rgba(15, 18, 25, .10);
  transition: transform .15s, box-shadow .15s;
  /* White with a shadow, rising in from below on a linear curve (Saar, 13 Nov
     2026). Backwards fill only, so hover still owns the transform afterwards;
     it replays whenever the button comes back after Inspect or a tour. */
  animation: fab-in 260ms linear backwards;
}
@keyframes fab-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .tour-fab { animation: none; } }
.tour-fab svg { color: var(--sk-design, #ff5b1f); flex: none; }
.tour-fab__emo { flex: none; font-size: 16px; line-height: 1; }
.tour-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 18, 25, .18), 0 1px 3px rgba(15, 18, 25, .10); }
/* Out of the way while Inspect's panel owns that corner, and during a tour. */
html.xray-on .tour-fab, html.tour-on .tour-fab { display: none; }
/* First-visit note on the tour button (js/tour.js intro()). */
.tour-fab--intro { box-shadow: 0 0 0 3px var(--sk-card, #fff), 0 0 0 5px var(--sk-design, #ff5b1f), 0 8px 24px rgba(15, 18, 25, .14); animation: fab-in 260ms linear backwards, tour-ring 1.8s ease-in-out 400ms 3; }
@keyframes tour-ring { 50% { box-shadow: 0 0 0 3px var(--sk-card, #fff), 0 0 0 9px color-mix(in srgb, var(--sk-design, #ff5b1f) 35%, transparent), 0 8px 24px rgba(15, 18, 25, .14); } }
.tour-tip {
  position: fixed; right: 20px; bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 56px); z-index: 2147481001;
  width: 280px; box-sizing: border-box; padding: 14px 16px 16px; border-radius: 12px;
  background: var(--sk-card, #fff); color: var(--sk-ink, #16181d);
  box-shadow: 0 1px 2px rgba(15, 18, 25, .08), 0 14px 36px rgba(15, 18, 25, .18);
  animation: tour-in 260ms linear backwards;
}
.tour-tip::after { content: ''; position: absolute; right: 44px; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); box-shadow: 3px 3px 4px rgba(15, 18, 25, .06); }
.tour-tip__x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--sk-ink-3, #80868f); cursor: pointer; }
.tour-tip__x:hover { background: var(--sk-sunken, #f2f3f6); color: var(--sk-ink, #16181d); }
.tour-tip__k { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--sk-design, #ff5b1f); font: 600 11px var(--sk-mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .06em; }
.tour-tip__t { margin: 6px 0 0; font: 600 16px/1.3 var(--sk-sans, sans-serif); }
.tour-tip__b { margin: 4px 0 0; color: var(--sk-ink-2, #555b66); font: 400 13px/1.5 var(--sk-sans, sans-serif); }
.tour-tip__ok { margin-top: 12px; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--sk-accent, #16181d); color: var(--sk-on-accent, #fff); font: 500 13px var(--sk-sans, sans-serif); cursor: pointer; }
.tour-tip__x:focus-visible, .tour-tip__ok:focus-visible { outline: 2px solid var(--sk-ink, #16181d); outline-offset: 2px; }
html.xray-on .tour-tip, html.tour-on .tour-tip, html.mgate-on .tour-tip { display: none; }
@media (prefers-reduced-motion: reduce) { .tour-fab--intro, .tour-tip { animation: none; } }
/* Phones are closed behind the gate (js/gate.js); nothing of the tour shows. */
html.mgate-on :is(.tour-fab, .tour, .xr-panel, .xr) { display: none; }

/* ---- Inline tour button (a case's TL;DR line) ----------------------------- */
.tour-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 14px; align-self: flex-start;
  border-radius: 999px; border: 1px solid var(--sk-line, #e3e5e9); background: var(--sk-card, #fff);
  color: var(--sk-ink, #16181d); font: 500 13px var(--sk-sans, sans-serif); cursor: pointer;
  /* A soft lift so it reads as a button, not a label (Saar, 17 Nov 2026). */
  box-shadow: 0 1px 2px rgba(15, 18, 25, .08), 0 2px 8px rgba(15, 18, 25, .08);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tour-cta svg { color: var(--sk-design, #ff5b1f); }
.tour-cta:hover { border-color: var(--sk-ink-3, #80868f); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 18, 25, .08), 0 6px 16px rgba(15, 18, 25, .12); }
.tour-cta:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15, 18, 25, .10); }

/* ---- Inspect overlay ------------------------------------------------------ */
html.xray-on body, html.xray-on body * { cursor: crosshair !important; }
html.xray-on :is(.xr-panel, .xr-panel *, .lens-bar *, .code-btn, .code-btn *) { cursor: pointer !important; }
html.xray-on .xr-panel :is(dl, dt, dd, code, p, span) { cursor: default !important; }
.xr { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; }
.xr__box, .xr__pad { position: fixed; display: none; box-sizing: border-box; }
.xr__box { outline: 1.5px solid var(--sk-product, #4b5bd7); outline-offset: 0; }
.xr__pad { border-style: solid; border-color: rgba(255, 91, 31, .14); }
.xr__size {
  position: absolute; left: -1px; bottom: 100%; margin-bottom: 4px; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
  background: var(--sk-product, #4b5bd7); color: #fff; font: 500 11px var(--sk-mono, ui-monospace, monospace);
}
.xr__box--below .xr__size { bottom: auto; top: 100%; margin: 4px 0 0; }

.xr-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147482001; width: 320px; max-height: calc(100vh - 32px); overflow: auto;
  box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  background: var(--sk-card, #fff); border: 1px solid var(--sk-line, #e3e5e9);
  box-shadow: 0 12px 32px rgba(15, 18, 25, .16), 0 2px 6px rgba(15, 18, 25, .06);
  color: var(--sk-ink, #16181d); font: 400 12px/1.4 var(--sk-mono, ui-monospace, monospace);
}
.xr-panel[hidden], .xr[hidden] { display: none; }
/* Always bottom right (Saar, 13 Nov 2026); above the tour's shade during its Code step. */
html.tour-on :is(.xr, .xr-panel) { z-index: 2147482600; }
.xr-panel__head { display: flex; align-items: center; gap: 8px; }
.xr-panel__head b { font: 600 13px var(--sk-sans, sans-serif); }
.xr-pin { padding: 2px 6px; border: 0; border-radius: 4px; background: var(--sk-accent-soft, #e9f2ff); color: var(--sk-ink-2, #555b66); font: inherit; font-size: 11px; }
.xr-x { margin-inline-start: auto; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--sk-ink-3, #80868f); font: 400 18px/1 var(--sk-sans, sans-serif); }
.xr-x:hover { background: var(--sk-sunken, #f2f3f6); color: var(--sk-ink, #16181d); }
.xr-panel__hint { margin: 8px 0 2px; color: var(--sk-ink-2, #555b66); font-family: var(--sk-sans, sans-serif); font-size: 13px; }
.xr-panel__el { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; color: var(--sk-ink-3, #80868f); overflow-wrap: anywhere; }
.xr-panel__el span { flex: none; color: var(--sk-product, #4b5bd7); }
.xr-rows { margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--sk-line, #e3e5e9); display: grid; gap: 5px; }
.xr-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.xr-row dt { color: var(--sk-ink-3, #80868f); }
/* A long token list (padding with two tokens) wraps, the value stays right. */
.xr-row dd { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; min-width: 0; }
.xr-tok { min-width: 0; overflow-wrap: normal; color: var(--sk-code, #1f8a5b); font: inherit; }
html[data-lens="code"] .xr-tok { color: var(--sk-accent, #3ecf8e); }
.xr-raw { color: var(--sk-ink-3, #80868f); font-style: italic; }
.xr-val { flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--sk-ink, #16181d); }
.xr-sw { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); }
.xr-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--sk-line, #e3e5e9); }
.xr-score { color: var(--sk-ink-2, #555b66); }
.xr-score b { color: var(--sk-code, #1f8a5b); }
html[data-lens="code"] .xr-score b { color: var(--sk-accent, #3ecf8e); }
.xr-copy { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--sk-line, #e3e5e9); background: var(--sk-sunken, #f2f3f6); color: var(--sk-ink, #16181d); font: inherit; }
.xr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 8px; color: var(--sk-ink-3, #80868f); }
.xr-crumbs button { padding: 1px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--sk-ink-2, #555b66); font: inherit; font-size: 11px; }
.xr-crumbs button:hover { background: var(--sk-sunken, #f2f3f6); }
.xr-crumbs button[aria-current] { color: var(--sk-product, #4b5bd7); font-weight: 600; }

/* ---- The tour ------------------------------------------------------------- */
html.tour-on, html.tour-on body { overflow: hidden; }
.tour { position: fixed; inset: 0; z-index: 2147482500; }
.tour__blur {
  position: fixed; inset: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.tour__shade { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tour__dim { fill: rgba(12, 14, 20, .58); } /* no ring around the focus (Saar) */
.tour__card {
  position: fixed; left: 0; top: 0; width: 360px; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 14px 16px 12px; border-radius: 12px; outline: none;
  background: var(--sk-card, #fff); color: var(--sk-ink, #16181d);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.tour__card:not(.tour__card--pick):not(.tour__card--end) { width: 300px; }
.tour__card--end { width: 420px; }
/* Rises in from below on a linear curve, like the floating button. Uses the
   translate property, so it adds to the transform that places the card. */
.tour__card--in { animation: tour-in 260ms linear backwards; }
@keyframes tour-in { from { opacity: 0; translate: 0 24px; } }
.tour__x {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: none; color: var(--sk-ink-3, #80868f); cursor: pointer;
}
.tour__x:hover { background: var(--sk-sunken, #f2f3f6); color: var(--sk-ink, #16181d); }
.tour__ic--again { display: grid; place-items: center; padding: 0; }
/* The picker's narration switch, beside the title. */
.tour__narr {
  position: absolute; top: 12px; right: 52px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px;
  border: 1px solid var(--sk-line, #e3e5e9); border-radius: 999px; background: var(--sk-card, #fff);
  color: var(--sk-ink-2, #555b66); font: 500 12px var(--sk-sans, sans-serif); cursor: pointer;
}
.tour__narr[aria-pressed="true"] { color: var(--sk-ink, #16181d); }
.tour__narr[aria-pressed="true"] .tour__spk-x, .tour__narr[aria-pressed="false"] .tour__spk-w { display: none; }
.tour__sw { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--sk-line, #e3e5e9); transition: background .15s; }
.tour__sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 18, 25, .2); transition: transform .15s; }
.tour__narr[aria-pressed="true"] .tour__sw { background: var(--sk-design, #ff5b1f); }
.tour__narr[aria-pressed="true"] .tour__sw::after { transform: translateX(12px); }
/* Narration: speaker on/off and reading speed. */
.tour__voice { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tour__ic--spk { display: grid; place-items: center; padding: 0; color: var(--sk-ink-3, #80868f); }
.tour__ic--spk[aria-pressed="true"] { color: var(--sk-design, #ff5b1f); border-color: color-mix(in srgb, var(--sk-design, #ff5b1f) 45%, transparent); }
.tour__ic--spk[aria-pressed="true"] .tour__spk-x, .tour__ic--spk[aria-pressed="false"] .tour__spk-w { display: none; }
.tour__rates { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--sk-sunken, #f2f3f6); }
.tour__rate { min-width: 38px; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--sk-ink-2, #555b66); font: 500 12px var(--sk-mono, ui-monospace, monospace); cursor: pointer; }
.tour__rate[aria-pressed="true"] { background: var(--sk-card, #fff); color: var(--sk-ink, #16181d); box-shadow: 0 1px 2px rgba(15, 18, 25, .12); }
.tour__rate:disabled { opacity: .45; cursor: default; }
.tour .wk-nda { --wk-chip: var(--sk-card, #fff); --wk-chipline: var(--sk-line-2, #dddef8); font-weight: 400; text-transform: none; letter-spacing: 0; }
.tour__segs { display: flex; gap: 4px; margin-bottom: 12px; }
.tour__segs i { flex: 1; height: 3px; border-radius: 2px; background: var(--sk-line, #e3e5e9); overflow: hidden; }
.tour__segs b { display: block; height: 100%; background: var(--sk-design, #ff5b1f); }
.tour__meta { display: flex; justify-content: space-between; color: var(--sk-ink-3, #80868f); font: 500 11px var(--sk-mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .05em; }
.tour__clock { font-variant-numeric: tabular-nums; }
.tour__title { margin: 6px 0 0; font: 600 20px/1.2 var(--sk-sans, sans-serif); letter-spacing: -.01em; text-wrap: balance; }
.tour__body { margin: 6px 0 0; color: var(--sk-ink-2, #555b66); font: 400 14px/1.5 var(--sk-sans, sans-serif); }
.tour__stat {
  margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: var(--sk-sunken, #f2f3f6);
  color: var(--sk-ink, #16181d); font: 500 13px/1.4 var(--sk-sans, sans-serif);
}
.tour__ctrl { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.tour__ic {
  min-width: 32px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--sk-line, #e3e5e9);
  background: var(--sk-card, #fff); color: var(--sk-ink, #16181d); font: 500 15px/1 var(--sk-sans, sans-serif); cursor: pointer;
}
.tour__ic--wide { min-width: 64px; font-size: 13px; }
.tour__ic:disabled { opacity: .4; cursor: default; }
.tour__link { margin-inline-start: auto; padding: 6px 4px; border: 0; background: none; color: var(--sk-ink-3, #80868f); font: 500 13px var(--sk-sans, sans-serif); cursor: pointer; }
.tour__link:hover { color: var(--sk-ink, #16181d); }
.tour__end { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tour__btn {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; box-sizing: border-box;
  border-radius: var(--sk-r-frame, 10px); border: 1px solid var(--sk-line, #e3e5e9); background: var(--sk-sunken, #f2f3f6);
  color: var(--sk-ink, #16181d); font: 500 14px var(--sk-sans, sans-serif); text-decoration: none; cursor: pointer;
}
.tour__btn--primary { background: var(--sk-accent, #16181d); border-color: transparent; color: var(--sk-on-accent, #fff); }
@media (prefers-reduced-motion: reduce) { .tour__card { transition: none; } .tour__card--in { animation: none; } .tour-cta { transition: none; } }

/* ---- The picker: the whole portfolio, or one case ------------------------- */
.tour__card--pick { width: 680px; max-height: calc(100vh - 32px); overflow-y: auto; }
.tour__opts { display: grid; gap: 6px; margin-top: 14px; }
.tour__opt {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; grid-template-areas: "img t go" "img m go" "img l go";
  gap: 1px 12px; align-items: center;
  padding: 10px 12px 10px 10px; border-radius: var(--sk-r-frame, 10px); border: 1px solid var(--sk-line, #e3e5e9);
  background: var(--sk-card, #fff); color: var(--sk-ink, #16181d); text-align: start; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tour__thumb {
  grid-area: img; align-self: center; width: 104px; height: 68px; border-radius: 6px; object-fit: cover; object-position: left top;
  background: var(--sk-sunken, #f2f3f6); display: grid; place-items: center; color: var(--sk-ink-3, #80868f);
}
.tour__thumb--face { object-position: center 20%; filter: grayscale(1); }
.tour__opt-m { grid-area: m; color: var(--sk-ink-3, #80868f); font: 500 11px var(--sk-mono, ui-monospace, monospace); letter-spacing: .02em; }
.tour__opt:hover, .tour__opt:focus-visible { border-color: var(--sk-ink-3, #80868f); background: var(--sk-sunken, #f2f3f6); outline: none; }
.tour__opt--all {
  background:
    linear-gradient(90deg, var(--sk-product) 0 33.3%, var(--sk-design) 33.3% 66.6%, var(--sk-code) 66.6%) top / 100% 3px no-repeat,
    var(--sk-card, #fff);
}
.tour__opt-t { grid-area: t; display: flex; align-items: center; gap: 6px; font: 600 15px/1.3 var(--sk-sans, sans-serif); }
.tour__opt-l { grid-area: l; color: var(--sk-ink-2, #555b66); font: 400 13px/1.4 var(--sk-sans, sans-serif); }
.tour__opt-go {
  grid-area: go; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px;
  background: var(--sk-sunken, #f2f3f6); color: var(--sk-ink-2, #555b66); font: 500 11px var(--sk-mono, ui-monospace, monospace);
}
.tour__opt-go svg { color: var(--sk-design, #ff5b1f); }
.tour__tag { padding: 1px 6px; border-radius: 4px; background: var(--sk-accent-soft, #eef0f3); color: var(--sk-ink-2, #555b66); font: 500 10px var(--sk-mono, ui-monospace, monospace); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.tour__tag--nda { background: transparent; border: 1px solid var(--sk-line, #e3e5e9); }
.tour__sep { margin: 8px 0 2px; color: var(--sk-ink-3, #80868f); font: 500 11px var(--sk-mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .05em; }
.tour__link--start { margin-inline-start: 0; padding-inline-start: 0; }

/* ---- Card rows: facts and impact numbers ---------------------------------- */
.tour__rows { display: grid; gap: 6px; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--sk-sunken, #f2f3f6); }
.tour__rows div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.tour__rows dt { color: var(--sk-ink-3, #80868f); font: 600 11px var(--sk-mono, ui-monospace, monospace); }
.tour__rows dd { margin: 0; color: var(--sk-ink, #16181d); font: 400 13px/1.4 var(--sk-sans, sans-serif); }

.tour__rows--num div { grid-template-columns: 64px minmax(0, 1fr); }
.tour__rows--num dt { color: var(--sk-ink, #16181d); font: 600 15px/1.3 var(--sk-sans, sans-serif); white-space: nowrap; }

/* ---- A case page's own tour button, inline in the TL;DR's top line ------- */
.tour-cta--case { min-height: 24px; padding: 2px 10px; margin-inline-start: auto; gap: 6px; font-size: 12px; }
.cs2-tldr__top:has(.tour-cta--case) { display: flex; align-items: center; gap: 8px; }

/* ---- The case options: a 2 x 2 grid, like the Work page ------------------ */
.tour__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour__opt--card {
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img img" "t go" "m m" "l l";
  align-items: start; align-content: start; gap: 2px 8px; padding: 8px 8px 12px;
}
.tour__opt--card .tour__thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 8px; }
.tour__opt--card .tour__opt-t, .tour__opt--card .tour__opt-m, .tour__opt--card .tour__opt-l { padding-inline: 4px; }
.tour__opt--card .tour__opt-go { align-self: center; }
.tour__opt--card .tour__opt-l { margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour__thumb--lock { position: relative; }
.tour__thumb--lock b { display: none; }
.tour__opt--card .tour__thumb--lock { place-items: end start; padding: 14px 16px; box-sizing: border-box; }
.tour__opt--card .tour__thumb--lock svg { position: absolute; top: 12px; left: 14px; }
.tour__opt--card .tour__thumb--lock b { display: block; color: var(--sk-ink, #16181d); font: 400 34px/1 "Instrument Serif", var(--sk-display, serif); letter-spacing: -.01em; }

/* ---- Product: outcomes first, in the Design look ------------------------- */
.out-k { color: var(--sk-ink-3, #80868f); font: 600 11px var(--sk-mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .06em; }
.out-status { padding: 2px 7px; border-radius: 4px; font: 500 11px var(--sk-mono, ui-monospace, monospace); white-space: nowrap; }
.out-status--done { background: color-mix(in srgb, var(--sk-code, #1f8a5b) 12%, transparent); color: var(--sk-code, #1f8a5b); }
.out-status--progress { background: color-mix(in srgb, var(--sk-product, #4b5bd7) 12%, transparent); color: var(--sk-product, #4b5bd7); }

/* Home: one tile per project, then About, Skills and Contact in a row of three.
   The Portfolio card goes: the tiles already lead to every case. */
.out-strip { display: grid; gap: 12px; margin: 0 0 var(--space-2, 8px); }
.out-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2, 8px); }
html[data-view="product"] .hubcard[href="/work"] { display: none; }
html[data-view="product"] .hubgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Every card stays 140px tall in both views (Saar, 13 Nov 2026), so the rows
   keep their height and the hero does not move. In a row of three the card
   title goes to one 24px line and the disc to 96px to fit. */
html[data-view="product"] .hubgrid .hubcard { height: 140px; min-height: 0; padding: 16px; }
html[data-view="product"] .hubgrid .hubcard__text { gap: 6px; padding-right: 0; }
html[data-view="product"] .hubgrid .hubcard__title { font-size: 24px; line-height: 1.15; white-space: nowrap; }
html[data-view="product"] .hubgrid .hubcard__tagline { padding-right: 80px; }
html[data-view="product"] .hubgrid .hubcard__disc { width: 96px; height: 96px; font-size: 30px; right: -16px; bottom: -20px; }
.out-tile {
  height: 140px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--sk-r-card, 12px);
  /* 2px: the hub cards' 3px bar shows 2px under their 1px rim, and the
     tiles have no rim (Saar, 17 Nov 2026: match the cards). */
  background:
    linear-gradient(90deg, var(--sk-product) 0 33.3%, var(--sk-design) 33.3% 66.6%, var(--sk-code) 66.6%) top / 100% 2px no-repeat,
    var(--sk-card, #fff);
  color: var(--sk-ink, #16181d); text-decoration: none; transition: transform .15s;
}
.out-tile:hover { transform: translateY(-2px); }
.out-tile__case { color: var(--sk-ink-3, #80868f); font: 500 11px var(--sk-mono, ui-monospace, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-tile__nda { display: inline-flex; vertical-align: -2px; margin-right: 5px; }
.out-tile__nda svg { width: 11px; height: 11px; }
.out-tile__v { margin-top: 2px; font: 500 30px/1.05 var(--sk-display, sans-serif); letter-spacing: -.02em; }
.out-tile__v--lock { display: inline-flex; align-items: center; gap: 8px; color: var(--sk-ink-3, #80868f); font-size: 22px; }
.out-tile__l { color: var(--sk-ink-2, #555b66); font: 400 13px/1.4 var(--sk-sans, sans-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .out-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { html[data-view="product"] .hubgrid { grid-template-columns: minmax(0, 1fr); } }

/* Work: the outcome takes the visual's place, same frame and size. */
/* Only the Work cards: the case hero shares .wk-visual and keeps its cover. */
/* Unused since Work stopped changing in Product (13 Nov 2026). */
html[data-view="product"] .wk-card .wk-visual:has(.out-panel) > :not(.out-panel) { visibility: hidden; }
.out-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-frame, 10px); overflow: hidden;
  background:
    linear-gradient(90deg, var(--sk-product) 0 33.3%, var(--sk-design) 33.3% 66.6%, var(--sk-code) 66.6%) top / 100% 3px no-repeat,
    var(--sk-card, #fff);
  color: var(--sk-ink, #16181d); text-align: start;
}
.out-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.out-panel__v { margin-top: auto; font: 500 clamp(44px, 5.4vw, 72px)/1 var(--sk-display, sans-serif); letter-spacing: -.03em; }
.out-panel__v--lock { display: inline-flex; align-items: center; gap: 10px; color: var(--sk-ink-3, #80868f); font-size: clamp(28px, 3vw, 40px); }
.out-panel__v--lock svg { width: 28px; height: 28px; }
.out-panel__l { color: var(--sk-ink-2, #555b66); font: 400 15px/1.45 var(--sk-sans, sans-serif); max-width: 34ch; }
.out-panel__rows { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sk-line, #e3e5e9); }
.out-panel__rows span { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; color: var(--sk-ink, #16181d); font: 400 13px/1.45 var(--sk-sans, sans-serif); }
.out-panel__rows i { font-style: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.out-panel__rows b { padding-top: 2px; color: var(--sk-ink-3, #80868f); font: 600 11px var(--sk-mono, ui-monospace, monospace); text-transform: uppercase; letter-spacing: .05em; }

/* Case: the impact beat sits under the hero; the screens gallery folds. */
.out-folded:not(.out-open) > :not(.storybeat__head):not(.out-more) { display: none; }
.out-more {
  justify-self: center; align-self: center; margin: 4px auto 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: var(--sk-r-frame, 10px); border: 1px solid var(--sk-line, #e3e5e9); background: var(--sk-card, #fff);
  color: var(--sk-ink, #16181d); font: 500 14px var(--sk-sans, sans-serif); cursor: pointer;
}
.out-more:hover { border-color: var(--sk-ink-3, #80868f); }

/* Design <-> Product on Home: clones play the move while the real grid
   waits hidden underneath (js/tour.js morph()). */
.out-morphing { position: relative; }
.out-morphing > :not(.out-ghosts) { visibility: hidden; }
.out-ghosts { position: absolute; inset: 0; pointer-events: none;
  /* About rides out past the grid's edge: clip-path hides it, but without
     this it still widened the page, a scrollbar showed for the length of
     the move and the hero and footer jumped (Saar, 17 Nov 2026). */
  overflow-x: clip; }
.out-ghosts > .out-ghost { position: absolute; left: 0; top: 0; margin: 0; box-sizing: border-box; overflow: hidden; display: flex; transition: none; will-change: transform; }

/* Product is off where it changes nothing (Work, About, Skills, Contact),
   so the switch is hidden there, its place kept so the bar does not shift
   (Saar, 17 Nov 2026; it was greyed out). */
.lens-btn--product:disabled { opacity: .4; cursor: not-allowed; }
.lens-btn--product:disabled:hover { color: var(--sk-ink-2); }
.lens-bar:has(.lens-btn--product:disabled) { visibility: hidden; }

/* Picker cards carry the Work page's own visual (js/tour.js workVisual()),
   on the Work page's colours. Its stage scales itself to the card width. */
.tour__wk {
  grid-area: img; display: block; overflow: hidden; border-radius: 6px;
  --wk-ink: var(--sk-ink); --wk-muted: var(--sk-ink-2); --wk-link: var(--sk-accent-text); --wk-lede: var(--sk-ink-2);
  --wk-back: var(--sk-sunken); --wk-chip: var(--sk-card); --wk-chipline: var(--sk-line-2); --wk-eyebrow: var(--sk-accent-text);
}
/* The Work card's visual starts its backdrop 10% down; the picker crops
   that empty band off the top (44 of 441.59px, 9.2% of the width). */
.tour__wk .wk-visual { margin-top: -9.2%; }
/* The whole picker fits the window with no scroll (Saar, 13 Nov 2026): the
   case cards' image box takes its height from what the window leaves after
   the header, the portfolio row and the card text, and the visual shrinks to
   that height, centred on the backdrop's colour. 0.828 is the visible
   height-to-width ratio once the top band is cropped (0.92 - 0.092). */
.tour__card--pick { --pick-th: clamp(72px, calc((100vh - 484px) / 2), 190px); }
.tour__opt--card .tour__wk, .tour__opt--card .tour__thumb { height: var(--pick-th); aspect-ratio: auto; margin-bottom: 8px; }
.tour__opt--card .tour__wk { display: flex; justify-content: center; width: 100%; background: var(--sk-sunken, #f2f3f6); }
.tour__opt--card .tour__wk .wk-visual { flex: none; width: calc(var(--pick-th) / .828); margin-top: calc(var(--pick-th) * -.1111); }
/* Rows layout (prototype, __xray.pickLayout('rows')): each case on its own
   line like the portfolio row, image left, text and play button right. */
.tour__card--rows { --pick-th: clamp(64px, calc((100vh - 400px) / 4.2), 104px); }
.tour__card--rows .tour__grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tour__card--rows .tour__opt--card {
  grid-template-columns: calc(var(--pick-th) * 1.6) minmax(0, 1fr) auto; grid-template-areas: "img t go" "img m go" "img l go";
  align-items: center; align-content: center; gap: 2px 14px; padding: 8px 12px 8px 8px;
}
.tour__card--rows .tour__opt--card .tour__wk, .tour__card--rows .tour__opt--card .tour__thumb { margin-bottom: 0; align-self: stretch; height: var(--pick-th); }
.tour__card--rows .tour__opt--card .tour__opt-t, .tour__card--rows .tour__opt--card .tour__opt-m, .tour__card--rows .tour__opt--card .tour__opt-l { padding-inline: 0; }
.tour__card--rows .tour__opt--card .tour__opt-l { margin-top: 0; }
.tour__card--rows .tour__thumb--face { width: calc(var(--pick-th) * 1.6); height: var(--pick-th); }
.tour__card--rows .tour__opt--all { grid-template-columns: calc(var(--pick-th) * 1.6) minmax(0, 1fr) auto; align-content: center; padding: 8px 12px 8px 8px; gap: 2px 14px; }
.tour__card--rows .tour__wk, .tour__card--rows .tour__thumb { grid-row: 1 / -1; }
/* Tiles layout (live since 13 Nov 2026, Saar's pick): the rows card, two
   to a line like the 2 x 2 grid. The picker widens a little so each card's
   text keeps room beside its image. */
.tour__card--tiles { width: 800px; --pick-th: clamp(72px, calc((100vh - 400px) / 2.4), 124px); }
.tour__card--tiles .tour__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tour__card--tiles .tour__opt--card { grid-template-columns: calc(var(--pick-th) * 1.15) minmax(0, 1fr); grid-template-areas: "img t" "img m" "img l" "img go"; gap: 3px 12px; }
.tour__card--tiles .tour__opt--card .tour__opt-go { justify-self: start; margin-top: 4px; }
.tour__card--tiles .tour__opt--card .tour__opt-m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour__card--tiles .tour__opt--card .tour__thumb--face { width: calc(var(--pick-th) * 1.15); }

/* Animated emoji (js/emoji.js): the image stands in for the glyph at the
   glyph's own size. */
.emo { display: block; width: 1.2em; height: 1.2em; object-fit: contain; pointer-events: none; user-select: none; }
