/* ==========================================================================
   The Workshop — layered on top of ../styles.css (tokens, modal, buttons).
   Nothing here is used by the homepage.
   ========================================================================== */
:root {
  --ws-label:   rgba(255, 255, 255, 0.58);   /* small mono labels: AA on black */
  --ws-glass:   rgba(10, 10, 12, 0.62);
  --ws-glass-2: rgba(16, 16, 19, 0.78);
  --ws-line:    rgba(255, 255, 255, 0.12);
  --ws-line-2:  rgba(255, 255, 255, 0.24);
  --ws-warm:    #f2c38f;
  --ws-ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ws-safe-t:  env(safe-area-inset-top, 0px);
  --ws-safe-b:  env(safe-area-inset-bottom, 0px);
  --ws-safe-l:  env(safe-area-inset-left, 0px);
  --ws-safe-r:  env(safe-area-inset-right, 0px);
}

/* ── Page modes (set by js/boot.js) ────────────────────────────────────────
   No class      → no JavaScript: text version only.
   .ws-3d        → 3D attempt: app + loader visible, text version hidden.
   .ws-text      → text version (by choice, or WebGL2 unavailable).        */
.ws-app,
.ws-loader,
.ws-skip--3d { display: none; }

html.ws-3d .ws-app    { display: block; }
html.ws-3d .ws-loader { display: flex; }
html.ws-3d .ws-text-view,
html.ws-3d .ws-skip--text { display: none; }
html.ws-text .ws-skip--3d { display: block; }
html.ws-text .ws-skip--text { display: none; }

html:not(.ws-3d) body {
  overflow: auto;
  height: auto;
}

/* ── Shared primitives ─────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body :focus { outline: none; }
body :focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

kbd {
  display: inline-block;
  min-width: 1.45em;
  padding: 0.05em 0.35em;
  margin: 0 0.08em;
  border: 1px solid var(--ws-line-2);
  border-bottom-width: 2px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  line-height: 1.35;
  text-align: center;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}

.ws-dim { color: var(--text-3); }

.ws-skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 400;
  padding: 0.6rem 0.9rem;
  background: #000;
  color: var(--text-1);
  border: 1px solid var(--ws-line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.ws-skip:focus-visible { top: calc(0.75rem + var(--ws-safe-t)); }

.ws-chipbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.125rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ws-line);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ws-chipbtn:hover { color: var(--text-1); border-color: var(--ws-line-2); background: rgba(255, 255, 255, 0.05); }
.ws-chipbtn[aria-pressed="true"] {
  color: #000;
  background: var(--text-1);
  border-color: var(--text-1);
}
.ws-chipbtn--icon { width: 2.125rem; padding: 0; font-size: 12px; }
.ws-ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#ws-sound .ws-ico-wave { display: none; }
#ws-sound[aria-pressed="true"] .ws-ico-wave { display: inline; }
#ws-sound[aria-pressed="true"] .ws-ico-mute { display: none; }
.ws-chipbtn[disabled] { opacity: 0.4; cursor: default; }

.ws-iconbtn {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ws-line);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ws-iconbtn:hover { color: var(--text-1); border-color: var(--ws-line-2); }

.ws-textbtn {
  padding: 0.35rem 0;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ws-textbtn:hover { color: var(--text-1); }

.ws-inline-link {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}
.ws-inline-link:hover { color: var(--text-1); text-decoration-color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   App shell
   ========================================================================== */
.ws-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #050506;
  user-select: none;
  -webkit-user-select: none;
}

.ws-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.ws-app[data-cursor="pointer"] .ws-canvas { cursor: pointer; }
.ws-app[data-cursor="grab"] .ws-canvas    { cursor: grab; }
.ws-app[data-cursor="grabbing"] .ws-canvas { cursor: grabbing; }
.ws-app[data-cursor="walk"] .ws-canvas    { cursor: crosshair; }
.ws-app[data-locked="true"] .ws-canvas    { cursor: none; }

/* Chrome is hidden until the visitor is inside the room */
.ws-app .ws-guide,
.ws-app .ws-mode,
.ws-app #ws-lights,
.ws-app .ws-ask-wrap { transition: opacity 0.4s ease; }
.ws-app:not([data-inside="true"]) .ws-guide,
.ws-app:not([data-inside="true"]) .ws-bar-controls .ws-mode,
.ws-app:not([data-inside="true"]) #ws-lights { opacity: 0; pointer-events: none; visibility: hidden; }

/* The Pad chip only means something while exploring */
.ws-app:not([data-mode="explore"]) #ws-touchctl,
.ws-app:not([data-inside="true"]) #ws-touchctl { display: none; }

/* Copy that depends on whether on-screen controls are on (data-tc) */
.ws-only-touch { display: none; }
.ws-app[data-tc="true"] .ws-only-touch { display: inline; }
.ws-app[data-tc="true"] .ws-only-mouse { display: none; }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.ws-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: calc(0.75rem + var(--ws-safe-t)) calc(1rem + var(--ws-safe-r)) 0.75rem calc(1rem + var(--ws-safe-l));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.ws-bar > * { pointer-events: auto; }

.ws-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-dim);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ws-back:hover { color: var(--text-1); border-color: var(--border); }

.ws-brand {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}
.ws-brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--text-1);
}
.ws-brand-sep, .ws-brand-sys {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ws-label);
}

.ws-bar-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ws-mode { display: inline-flex; }
.ws-mode .ws-chipbtn + .ws-chipbtn { border-left-width: 0; }

/* ── Guided panel ──────────────────────────────────────────────────────── */
.ws-guide {
  position: absolute;
  left: calc(1rem + var(--ws-safe-l));
  bottom: calc(1rem + var(--ws-safe-b));
  z-index: 20;
  width: 14rem;
  max-height: calc(100dvh - 6.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem 0.8rem 0.9rem;
  background: rgba(8, 8, 10, 0.5);
  border: 1px solid var(--ws-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.ws-app[data-mode="explore"] .ws-guide { opacity: 0.0; pointer-events: none; visibility: hidden; }

.ws-guide-head { display: flex; align-items: center; justify-content: space-between; }
.ws-guide-step { display: flex; gap: 0.35rem; }

.ws-guide-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ws-label);
}

.ws-locations,
.ws-objects,
.ws-ask-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ws-loc-btn,
.ws-obj-btn,
.ws-ask-btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.42rem 0.5rem;
  background: none;
  border: 1px solid transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ws-loc-btn:hover,
.ws-obj-btn:hover,
.ws-ask-btn:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }
.ws-loc-btn[aria-current="true"] { color: var(--text-1); border-color: var(--ws-line); background: rgba(255, 255, 255, 0.05); }
.ws-loc-idx {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ws-label);
}
.ws-obj-btn { font-size: 0.8125rem; color: var(--text-2); padding: 0.36rem 0.5rem; }
.ws-obj-btn::before { content: '+'; font-family: var(--font-mono); color: var(--ws-label); }
.ws-obj-btn.is-hot { color: var(--text-1); background: rgba(255, 255, 255, 0.05); }

.ws-objects-wrap { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.75rem; border-top: 1px solid var(--border-dim); }
.ws-objects-wrap:has(.ws-objects:empty) { display: none; }

/* ── Inspect card ──────────────────────────────────────────────────────── */
.ws-card {
  position: absolute;
  top: calc(4.25rem + var(--ws-safe-t));
  right: calc(1rem + var(--ws-safe-r));
  z-index: 25;
  width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5.5rem - var(--ws-safe-t) - var(--ws-safe-b));
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem 1rem;
  background: var(--ws-glass-2);
  border: 1px solid var(--ws-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: auto;
  user-select: text;
  -webkit-user-select: text;
  animation: ws-card-in 0.45s var(--ws-ease) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.ws-card[hidden] { display: none; }
@keyframes ws-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ws-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.ws-card-sys {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-label);
}
.ws-card-back {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  background: none;
  border: 1px solid var(--ws-line);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ws-card-back:hover { color: var(--text-1); border-color: var(--ws-line-2); }
.ws-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--text-1);
}
.ws-card-body { display: flex; flex-direction: column; gap: 0.65rem; }
.ws-card-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
}
.ws-card-body p.is-quote { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; padding-left: 0.8rem; border-left: 1px solid var(--ws-line-2); }
.ws-card-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.ws-card-body li { color: var(--text-2); font-size: 0.85rem; line-height: 1.55; padding-left: 0.9rem; position: relative; }
.ws-card-body li::before { content: '//'; position: absolute; left: -0.2rem; font-family: var(--font-mono); font-size: 9px; color: var(--ws-label); top: 0.25em; }

.ws-card-controls:empty, .ws-card-actions:empty { display: none; }
button.card-link { background: transparent; cursor: pointer; }
button.card-link:hover { background: rgba(255, 255, 255, 0.04); }
.ws-card-actions .inspect-btn { width: 100%; }
.ws-card-controls { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ws-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.85rem; border-top: 1px solid var(--border-dim); }
.ws-card-actions .inspect-btn { margin-top: 0; }
.ws-card-step { display: flex; justify-content: space-between; padding-top: 0.25rem; }

.ws-readout {
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-wrap;
}

/* ── Explore HUD ───────────────────────────────────────────────────────── */
.ws-explore-hint {
  position: absolute;
  left: 50%;
  bottom: calc(1rem + var(--ws-safe-b));
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  background: var(--ws-glass);
  border: 1px solid var(--ws-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.6s ease;
  max-width: calc(100vw - 2rem);
}
.ws-explore-hint[hidden] { display: none; }
.ws-explore-hint.is-quiet { opacity: 0.35; }
.ws-explore-hint.is-quiet:hover, .ws-explore-hint.is-quiet:focus-within { opacity: 1; }
.ws-explore-keys {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-transform: uppercase;
}

.ws-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 15;
}
/* A ring closes around the dot when something is within reach */
.ws-reticle::after {
  content: '';
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0);
  transform: scale(0.35);
  transition: transform 0.22s var(--ws-ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.ws-reticle.is-hot { background: #fff; }
.ws-reticle.is-hot::after { transform: scale(1); border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.ws-app[data-mode="explore"][data-card="false"] .ws-reticle,
.ws-app[data-mode="explore"]:not([data-card]) .ws-reticle { opacity: 0.7; }
.ws-app[data-locked="true"] .ws-reticle,
.ws-app[data-tc="true"][data-mode="explore"] .ws-reticle { opacity: 1; }
.ws-app[data-tc="true"] .ws-target kbd { display: none; }

/* ── Explore, mouse: take the pointer back ─────────────────────────────── */
.ws-resume {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.7rem 1.05rem;
  background: var(--ws-glass-2);
  border: 1px solid var(--ws-line-2);
  color: var(--text-1);
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: ws-resume-in 0.4s var(--ws-ease) both;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ws-resume[hidden] { display: none; }
.ws-resume:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(24, 24, 28, 0.86); }
.ws-resume-title { font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1.1; }
.ws-resume-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
@keyframes ws-resume-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ── Explore, touch: walking pad + Interact ────────────────────────────── */
.ws-pad { position: absolute; inset: 0; z-index: 21; pointer-events: none; }
.ws-pad[hidden] { display: none; }
.ws-stick {
  position: absolute;
  left: calc(1.1rem + var(--ws-safe-l));
  bottom: calc(1.5rem + var(--ws-safe-b));
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 72%);
  border: 1px solid var(--ws-line-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.ws-stick.is-held { border-color: rgba(255, 255, 255, 0.5); background: radial-gradient(circle, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 72%); }
.ws-stick-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s var(--ws-ease);
  pointer-events: none;
}
.ws-stick.is-held .ws-stick-thumb { transition: none; background: rgba(255, 255, 255, 0.26); }
.ws-stick-arrow { position: absolute; width: 0; height: 0; border: 5px solid transparent; opacity: 0.5; pointer-events: none; }
.ws-stick-arrow--n { left: 50%; top: 9px; margin-left: -5px; border-top-width: 0; border-bottom-color: #fff; }
.ws-stick-arrow--s { left: 50%; bottom: 9px; margin-left: -5px; border-bottom-width: 0; border-top-color: #fff; }
.ws-stick-arrow--w { top: 50%; left: 9px; margin-top: -5px; border-left-width: 0; border-right-color: #fff; }
.ws-stick-arrow--e { top: 50%; right: 9px; margin-top: -5px; border-right-width: 0; border-left-color: #fff; }

.ws-act {
  position: absolute;
  right: calc(1.1rem + var(--ws-safe-r));
  bottom: calc(1.9rem + var(--ws-safe-b));
  width: 5.6rem;
  height: 5.6rem;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ws-line-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ws-ease);
}
.ws-act-label { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 4.4rem; overflow-wrap: anywhere; }
.ws-act.is-ready { background: #f5f5f5; color: #000; border-color: #fff; transform: scale(1.06); }
.ws-act:active { transform: scale(0.96); }

/* On-screen controls replace the hint strip; the Ask button steps up so it never meets Interact */
.ws-app[data-tc="true"] .ws-explore-hint { display: none; }
.ws-app[data-tc="true"][data-mode="explore"] .ws-ask-wrap { bottom: calc(9rem + var(--ws-safe-b)); }

@media (max-height: 480px) {
  .ws-stick { width: 6.6rem; height: 6.6rem; bottom: calc(0.9rem + var(--ws-safe-b)); }
  .ws-stick-thumb { width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; }
  .ws-act { width: 4.8rem; height: 4.8rem; bottom: calc(1rem + var(--ws-safe-b)); }
  .ws-app[data-tc="true"][data-mode="explore"] .ws-ask-wrap { bottom: calc(6.4rem + var(--ws-safe-b)); }
  .ws-resume { top: 66%; }
}

.ws-target {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 16;
  padding: 0.3rem 0.55rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--ws-line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ws-target.is-on { opacity: 1; }
.ws-target kbd { font-size: 9px; }

/* ── Hotspot markers (pointer affordance only; the list is the semantic path) */
.ws-markers, .ws-labels { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
.ws-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease, border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ws-marker::before, .ws-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.ws-marker::before { width: 9px; height: 1px; }
.ws-marker::after  { width: 1px; height: 9px; }
.ws-marker.is-visible { opacity: 0.9; }
.ws-marker.is-hot, .ws-marker:hover { opacity: 1; border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.ws-marker-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 0.22rem 0.45rem;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid var(--ws-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-1);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.ws-marker.is-hot .ws-marker-label, .ws-marker:hover .ws-marker-label { opacity: 1; }

.ws-label3d {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--ws-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  white-space: nowrap;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ws-label3d.is-visible { opacity: 1; }

/* ── Speech bubble ─────────────────────────────────────────────────────── */
.ws-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 28;
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.8rem 0.95rem 0.7rem;
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid var(--ws-line-2);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: text;
  -webkit-user-select: text;
}
.ws-bubble[hidden] { display: none; }
.ws-bubble::after {
  content: '';
  position: absolute;
  left: var(--tail-x, 50%);
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: rgba(8, 8, 10, 0.92);
  border-right: 1px solid var(--ws-line-2);
  border-bottom: 1px solid var(--ws-line-2);
  transform: translateX(-50%) rotate(45deg);
}
.ws-bubble.is-docked::after { display: none; }
.ws-bubble-name {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ws-label);
}
.ws-bubble-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-1);
}
.ws-bubble-next {
  display: block;
  margin: 0.45rem 0 0 auto;
  padding: 0.2rem 0;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ws-bubble-next:hover { color: var(--text-1); }

/* ── Ask menu ──────────────────────────────────────────────────────────── */
.ws-ask-wrap {
  position: absolute;
  right: calc(1rem + var(--ws-safe-r));
  bottom: calc(1rem + var(--ws-safe-b));
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.ws-ask {
  padding: 0.75rem 1.15rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--ws-line-2);
  color: var(--text-1);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ws-ask:hover, .ws-ask[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.ws-ask[hidden] { display: none; }
.ws-ask-menu {
  width: 16rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--ws-glass-2);
  border: 1px solid var(--ws-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: ws-card-in 0.35s var(--ws-ease) both;
}
.ws-ask-menu[hidden] { display: none; }
.ws-ask-btn { font-size: 0.86rem; }
.ws-ask-btn.is-seen { color: var(--text-3); }

/* ── Entry, intro, chooser ─────────────────────────────────────────────── */
.ws-entry {
  position: absolute;
  left: calc(clamp(1.25rem, 6vw, 5rem) + var(--ws-safe-l));
  bottom: calc(clamp(1.5rem, 9vh, 6rem) + var(--ws-safe-b));
  z-index: 26;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: ws-card-in 0.9s var(--ws-ease) both;
}
.ws-entry[hidden] { display: none; }
.ws-entry-sys {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ws-label);
}
.ws-entry-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.ws-entry-copy { margin: 0; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.ws-entry-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.ws-entry-actions .btn-outline { background: rgba(0, 0, 0, 0.35); }
.ws-entry-foot {
  margin: 0.3rem 0 0;
  display: flex;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ws-entry-foot a { color: var(--text-3); text-decoration: none; }
.ws-entry-foot a:hover { color: var(--text-1); }

.ws-skip-intro {
  position: absolute;
  right: calc(1rem + var(--ws-safe-r));
  bottom: calc(1rem + var(--ws-safe-b));
  z-index: 27;
}
.ws-skip-intro[hidden] { display: none; }

.ws-chooser {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(1.25rem, 8vh, 5rem) + var(--ws-safe-b));
  transform: translateX(-50%);
  z-index: 26;
  width: min(34rem, calc(100vw - 2rem));
  padding: 1.1rem 1.15rem 1.15rem;
  background: var(--ws-glass-2);
  border: 1px solid var(--ws-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: ws-card-in 0.5s var(--ws-ease) both;
}
.ws-chooser[hidden] { display: none; }
.ws-chooser-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text-1);
}
.ws-chooser-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ws-choice {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ws-line);
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ws-choice:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }
.ws-choice.is-suggested { border-color: rgba(255, 255, 255, 0.45); }
.ws-choice-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.ws-choice-desc { font-size: 0.82rem; line-height: 1.45; color: var(--text-2); }

/* ── Toast / diagnostics ───────────────────────────────────────────────── */
.ws-toast {
  position: absolute;
  left: 50%;
  top: calc(4.5rem + var(--ws-safe-t));
  transform: translate(-50%, -6px);
  z-index: 40;
  margin: 0;
  padding: 0.45rem 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--ws-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-1);
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ws-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.ws-diag {
  position: absolute;
  top: calc(4.25rem + var(--ws-safe-t));
  left: calc(1rem + var(--ws-safe-l));
  z-index: 35;
  margin: 0;
  padding: 0.6rem 0.8rem;
  min-width: 14rem;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--ws-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-2);
  pointer-events: none;
}
.ws-diag[hidden] { display: none; }

/* ── Loader / fade ─────────────────────────────────────────────────────── */
.ws-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.ws-loader.is-done { opacity: 0; visibility: hidden; }
.ws-loader-inner { width: min(26rem, calc(100vw - 3rem)); }
.ws-loader-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-2);
}
.ws-loader-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.ws-loader-lines li { display: flex; justify-content: space-between; gap: 1rem; animation: modal-fade-up 0.35s var(--ws-ease) both; }
.ws-loader-lines li.is-ok { color: var(--text-2); }
.ws-loader-lines li.is-fail { color: #f0a080; }
.ws-loader-lines .ws-loader-state { color: var(--ws-label); }

.ws-fade {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.ws-fade.is-on { opacity: 1; pointer-events: auto; }
.ws-fade span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}
.ws-fade.is-label span { opacity: 1; }

/* Arrival through the homepage portal: a warm bloom contracts into the room */
.ws-arrive {
  position: fixed;
  inset: 0;
  z-index: 290;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 246, 232, 1) 0%, rgba(255, 220, 170, 0.82) 16%, rgba(255, 190, 120, 0.3) 38%, rgba(0, 0, 0, 0) 66%);
}
.ws-arrive.is-on { animation: ws-arrive 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes ws-arrive {
  0%   { opacity: 1; transform: scale(2.6); }
  60%  { opacity: 0.55; }
  100% { opacity: 0; transform: scale(0.4); }
}
html:not(.ws-via-portal) .ws-arrive { display: none; }

/* ==========================================================================
   Overlays — extend the portfolio modal
   ========================================================================== */
.ws-overlay { z-index: 200; }
.ws-overlay .modal-card { max-height: min(88dvh, 88vh); }
.ws-overlay .modal-body { user-select: text; -webkit-user-select: text; }

/* Certificate viewer */
.cert-card {
  width: min(96vw, 1180px);
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  grid-template-rows: minmax(0, 1fr);
}
.cert-stage {
  position: relative;
  min-height: 0;
  max-height: min(88dvh, 88vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #060606;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cert-img {
  display: block;
  max-width: 100%;
  max-height: calc(min(88dvh, 88vh) - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
}
.cert-stage.is-zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; cursor: grab; }
.cert-stage.is-zoomed .cert-img { max-width: none; max-height: none; width: 1600px; cursor: zoom-out; }
.cert-missing { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }
.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 3rem 1.5rem 1.5rem;
  overflow: auto;
}
.cert-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.cert-original {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border-dim);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-2);
}
.cert-note { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--text-3); }
.cert-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--border-dim); }
.cert-actions .card-link { background: transparent; cursor: pointer; }
.cert-actions .card-link[aria-pressed="true"] { color: var(--text-1); border-color: var(--border-bright); }

/* Help */
.help-card { max-width: 860px; }
.help-card .modal-body { padding-top: 2.25rem; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
.help-list { margin: 0.5rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.help-list li, .help-text { margin: 0.5rem 0 0; color: var(--text-2); font-size: 0.875rem; line-height: 1.6; }
.help-list li { margin: 0; }
.help-quality { display: flex; flex-direction: column; gap: 0.55rem; padding-top: 1rem; border-top: 1px solid var(--border-dim); }

/* ==========================================================================
   Text version
   ========================================================================== */
.ws-text-view {
  min-height: 100vh;
  padding: calc(2.5rem + var(--ws-safe-t)) 1.5rem calc(3rem + var(--ws-safe-b));
  user-select: text;
}
.ws-text-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ws-text-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.ws-text-lede { margin: 0; max-width: 46rem; color: var(--text-2); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.ws-text-note { margin: 0; color: var(--text-3); font-size: 0.95rem; line-height: 1.6; padding-left: 0.9rem; border-left: 1px solid var(--border); }
.ws-text-reason { margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ws-label); }
.ws-text-switch { margin: 0; }
html:not(.ws-js) .ws-text-switch { display: none; }
.ws-text-section { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.ws-text-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.9rem;
}
.ws-text-projects li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.018);
}
.ws-text-projects .card-title { font-size: 1.6rem; }
.ws-text-where { margin: 0.2rem 0 0; color: var(--text-2); font-size: 0.88rem; line-height: 1.6; }
.ws-text-links { margin: 0.35rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ws-text-more { margin: 0; }
.ws-text-awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}
.ws-award-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.5;
}
.ws-award-thumb img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-dim);
  background: #0a0a0a;
  transition: border-color 0.2s ease;
}
.ws-award-thumb:hover img { border-color: var(--border-bright); }
.ws-award-thumb:hover { color: var(--text-1); }
.ws-text-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-dim); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .ws-brand { display: none; }
}

@media (max-width: 760px) {
  .ws-bar { gap: 0.5rem; padding-left: calc(0.75rem + var(--ws-safe-l)); padding-right: calc(0.75rem + var(--ws-safe-r)); }
  .ws-bar-controls { gap: 0.3rem; }
  .ws-back { padding: 0.5rem 0.65rem; min-height: 2.125rem; }
  /* Icon-only on phones; the label stays available to assistive tech */
  .ws-btn-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ws-mode .ws-chipbtn { padding-left: 0.6rem; padding-right: 0.6rem; }

  /* Guided becomes a bottom chip bar */
  .ws-guide {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: none;
    gap: 0.5rem;
    padding: 0.6rem calc(0.75rem + var(--ws-safe-r)) calc(0.6rem + var(--ws-safe-b)) calc(0.75rem + var(--ws-safe-l));
    border-left: none;
    border-right: none;
    border-bottom: none;
    overflow: visible;
  }
  .ws-guide-head { display: none; }
  .ws-locations,
  .ws-objects {
    flex-direction: row;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .ws-locations::-webkit-scrollbar, .ws-objects::-webkit-scrollbar { display: none; }
  .ws-locations li, .ws-objects li { flex-shrink: 0; }
  .ws-loc-btn, .ws-obj-btn {
    width: auto;
    min-height: 44px;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-color: var(--ws-line);
    white-space: nowrap;
  }
  .ws-objects-wrap { padding-top: 0; border-top: none; gap: 0; }
  .ws-objects-wrap .ws-guide-label { display: none; }

  .ws-card {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 58dvh;
    padding: 1rem calc(1rem + var(--ws-safe-r)) calc(1rem + var(--ws-safe-b)) calc(1rem + var(--ws-safe-l));
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .ws-ask-wrap { bottom: calc(7.6rem + var(--ws-safe-b)); }
  .ws-app[data-mode="explore"] .ws-ask-wrap { bottom: calc(5.2rem + var(--ws-safe-b)); }
  .ws-app[data-card="true"] .ws-ask-wrap { display: none; }
  .ws-ask { padding: 0.65rem 0.95rem; font-size: 0.95rem; }
  .ws-ask-menu { width: min(17rem, calc(100vw - 2rem)); }

  .ws-bubble.is-docked { left: 0.75rem !important; right: 0.75rem; max-width: none; width: auto; }

  .ws-explore-hint { flex-direction: column; align-items: stretch; gap: 0.45rem; width: calc(100vw - 1.5rem); padding: 0.6rem; }
  .ws-explore-keys { justify-content: center; }
  .ws-app[data-touch="true"] .ws-explore-keys kbd { display: none; }

  .ws-chooser-options { grid-template-columns: 1fr; }

  .cert-card { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow: auto; }
  .cert-stage { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 0.75rem; max-height: 60dvh; }
  .cert-img { max-height: calc(60dvh - 1.5rem); }
  .cert-meta { padding: 1.1rem 1.1rem 1.25rem; overflow: visible; }

  .help-grid { grid-template-columns: 1fr; }
}

@media (pointer: coarse) {
  .ws-chipbtn, .ws-iconbtn, .ws-card-back, .ws-textbtn, .ws-ask-btn, .ws-bubble-next, .ws-loc-btn, .ws-obj-btn { min-height: 44px; }
  .ws-chipbtn--icon, .ws-iconbtn { min-width: 44px; }
  .ws-marker { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
}

/* ── Reduced motion: honour the system setting unless the visitor opts in */
@media (prefers-reduced-motion: reduce) {
  html:not(.ws-motion-ok) .ws-card,
  html:not(.ws-motion-ok) .ws-entry,
  html:not(.ws-motion-ok) .ws-chooser,
  html:not(.ws-motion-ok) .ws-ask-menu,
  html:not(.ws-motion-ok) .ws-loader-lines li,
  html:not(.ws-motion-ok) .modal-content.is-active > * { animation: none !important; }
  html:not(.ws-motion-ok) .ws-fade,
  html:not(.ws-motion-ok) .ws-loader,
  html:not(.ws-motion-ok) .modal-card,
  html:not(.ws-motion-ok) .modal-backdrop { transition-duration: 0.01ms !important; }
}
html.ws-reduced .ws-resume,
html.ws-reduced .ws-card,
html.ws-reduced .ws-entry,
html.ws-reduced .ws-chooser,
html.ws-reduced .ws-ask-menu,
html.ws-reduced .ws-loader-lines li,
html.ws-reduced .modal-content.is-active > * { animation: none !important; }
html.ws-reduced .ws-fade,
html.ws-reduced .modal-card,
html.ws-reduced .modal-backdrop { transition-duration: 0.01ms !important; }
