/* Workshops & tools page (isolated prototype). Loaded only by src/pages/workshops.html.
   Same tokens as the rest of the site: parchment, night, Fuji red, slate, Inter and
   JetBrains Mono. Notes are warm paper; each persona is marked by a strip of washi
   tape (wave blue, sand, stone) that follows them through every illustration. */

:root {
  --ws-fuji: #C8472C;
  --ws-fuji-deep: #B03C24;
  --ws-fuji-light: #D5543A;
  --ws-night: #0B121B;
  --ws-sea-deep: #1E3A5F;
  --ws-parchment: #FBFBFA;
  --ws-ink: #020617;
  --ws-slate-600: #475569;
  --ws-slate-500: #64748b;
  --ws-line: #e2e8f0;
  --ws-paper: #FFFDF8;
  --ws-paper-edge: #ECE7DC;
  --ws-p1: #1F3A5F;
  --ws-p1-tint: #E8EDF3;
  --ws-p2: #B8955A;
  --ws-p2-tint: #F5EFE3;
  --ws-p3: #7C8799;
  --ws-p3-tint: #EEF0F3;
  --ws-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ws-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ws-mono: 'JetBrains Mono', monospace;
}

/* ------------------------------------------------------------------ */
/* Shared pieces                                                       */
/* ------------------------------------------------------------------ */

.ws-label {
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-slate-500);
}

.ws-hint {
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  color: var(--ws-slate-500);
}

.ws-chip {
  font-family: var(--ws-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--ws-parchment);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.25rem;
  color: #334155;
  transition: border-color 200ms, color 200ms, transform 200ms var(--ws-ease);
}
.ws-chip:hover {
  border-color: #cbd5e1;
  color: var(--ws-ink);
  transform: translateY(-1px);
}

/* Phones: the top bar shows numbers, and the current item opens to show its name */
@media (max-width: 639px) {
  .ws-agenda .ws-agenda-steps { display: flex; gap: 0.25rem; }
  .ws-agenda .ws-agenda-steps li { flex: 1 1 0; min-width: 0; transition: flex-grow 350ms var(--ws-ease); }
  .ws-agenda .ws-agenda-steps li:has(.is-active) { flex-grow: 3; }
  .ws-agenda .ws-agenda-steps a { justify-content: center; white-space: nowrap; }
  .ws-agenda .ws-agenda-steps a.is-active .ws-agenda-name { display: inline; }
}

/* Thumb-sized targets on phones and touch screens */
@media (max-width: 767px), (pointer: coarse) {
  .ws-seg button { min-height: 2.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .ws-room-toggle { min-height: 2.5rem; }
  .ws-agenda .ws-agenda-steps a { min-height: 2.5rem; align-items: center; }
  .ws-release-handle { height: 32px; top: -16px; }
}
/* A generous grab area around the draggable MVP line handle */
.ws-release-handle::before { content: ''; position: absolute; inset: -10px -8px; }

/* One quiet line naming the tools a workshop uses */
.ws-tools {
  font-family: var(--ws-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--ws-slate-600);
}
.ws-tools span {
  color: var(--ws-fuji);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.6rem;
}

/* Segmented control */
.ws-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.6rem;
}
.ws-seg button {
  font-family: var(--ws-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem;
  color: var(--ws-slate-600);
  transition: background-color 200ms, color 200ms, box-shadow 200ms;
}
.ws-seg button:hover { color: var(--ws-ink); }
.ws-seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ws-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

/* Illustration stage: the card each workshop's visual sits on */
.ws-stage {
  position: relative;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
@media (min-width: 640px) {
  .ws-stage { padding: 1.5rem; }
}
.ws-stage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ws-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.ws-stage-foot-note {
  font-size: 0.75rem;
  color: var(--ws-slate-500);
}
.ws-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  color: var(--ws-slate-600);
}
.ws-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.ws-swatch--p1 { background: var(--ws-p1); }
.ws-swatch--p2 { background: var(--ws-p2); }
.ws-swatch--p3 { background: var(--ws-p3); }
.ws-swatch--night { background: var(--ws-night); }

.ws-count {
  font-family: var(--ws-mono);
  font-size: 0.75rem;
  color: var(--ws-ink);
  font-weight: 600;
}

/* Horizontal scroll only inside wide boards on small screens */
.ws-board-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  margin: 0 -0.25rem;
  padding: 0.25rem;
  scrollbar-width: thin;
}

/* First layout: no transitions until the pieces are in place */
.ws-settling,
.ws-settling .hn,
.ws-settling .sn,
.ws-settling .rm-item,
.ws-settling .ws-release,
.ws-settling .ws-board-zone {
  transition: none !important;
}

/* Scroll reveal (only once JavaScript is running, so nothing hides without it) */
.ws-js .ws-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ws-ease), transform 700ms var(--ws-ease);
}
.ws-js .ws-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.ws-index-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  transition: border-color 250ms;
}
.ws-index-link:hover { border-top-color: var(--ws-fuji); }
.ws-index-num {
  font-family: var(--ws-mono);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--ws-fuji);
  padding-top: 0.1rem;
  transition: transform 250ms var(--ws-spring);
}
.ws-index-link:hover .ws-index-num { transform: translateX(2px) scale(1.08); }
.ws-index-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ws-ink);
}
.ws-index-q {
  display: block;
  font-size: 0.875rem;
  color: var(--ws-slate-600);
  margin-top: 0.1rem;
}

.ws-room {
  position: relative;
  min-height: 360px;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.14) 1px, transparent 0) 0 0 / 18px 18px,
    var(--ws-night);
  border: 1px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .ws-room { min-height: 420px; }
}
@media (min-width: 1024px) {
  .ws-room { min-height: 470px; }
}
.ws-room-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0;
}
.ws-room-kicker {
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}
.ws-room-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ws-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 200ms, color 200ms, background-color 200ms;
}
.ws-room-toggle:hover { border-color: #64748b; color: #fff; }
.ws-room-toggle-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ws-fuji-light);
  box-shadow: 0 0 0 0 rgba(213, 84, 58, 0.55);
  animation: ws-pulse 2.2s infinite;
}
.ws-room.is-sorted .ws-room-toggle-dot { animation: none; background: #94a3b8; }
@keyframes ws-pulse {
  0% { box-shadow: 0 0 0 0 rgba(213, 84, 58, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(213, 84, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 84, 58, 0); }
}
.ws-room-notes {
  position: relative;
  flex: 1;
}
.ws-room-caption {
  position: relative;
  z-index: 2;
  padding: 0 1rem 1rem;
}
.ws-room-caption span {
  display: inline-block;
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid #1e293b;
  border-radius: 0.375rem;
  padding: 0.3rem 0.6rem;
}

/* A hero sticky note: scattered (x0, y0, r0) or sorted into a column (x1, y1) */
.hn {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.5rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ws-ink);
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 10px 20px -8px rgba(0, 0, 0, 0.55);
  transform: translate(var(--x0, 0), var(--y0, 0)) rotate(var(--r0, 0deg));
  transition: transform 900ms var(--ws-spring) var(--d, 0ms);
  will-change: transform;
}
.hn::after {
  /* the faint curl at the bottom of a sticky note */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
  border-radius: 0 0 3px 3px;
  pointer-events: none;
}
.ws-room.is-sorted .hn {
  transform: translate(var(--x1, 0), var(--y1, 0)) rotate(0deg);
}
.hn { background: var(--ws-paper); }
/* Washi tape: the only colour on a note */
.hn::before,
.sn-paper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 32%;
  width: 36%;
  height: 8px;
  border-radius: 1px;
  opacity: 0.85;
  transform: rotate(-2deg);
  background: var(--tape, transparent);
}
.hn--c0 { --tape: var(--ws-p1); }
.hn--c1 { --tape: var(--ws-fuji); }
.hn--c2 { --tape: var(--ws-p2); }
.hn--c3 { --tape: var(--ws-p3); }

.hn-head {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--ws-mono);
  opacity: 0;
  transform: translate(var(--x, 0), calc(var(--y, 0) + 8px));
  transition: opacity 400ms var(--ws-ease), transform 500ms var(--ws-ease);
}
.ws-room.is-sorted .hn-head {
  opacity: 1;
  transform: translate(var(--x, 0), var(--y, 0));
  transition-delay: 450ms;
}
.hn-head b {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: #fff;
}
.hn-head span {
  display: block;
  font-size: 0.625rem;
  color: var(--ws-fuji-light);
  margin-top: 0.1rem;
}

/* ------------------------------------------------------------------ */
/* Sticky agenda                                                       */
/* ------------------------------------------------------------------ */

.ws-agenda {
  position: sticky;
  top: 5rem;
  z-index: 40;
  margin-top: 4rem;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.875rem;
  overflow: hidden;
}
.ws-agenda-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
}
.ws-agenda-label {
  display: none;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ws-ink);
  white-space: nowrap;
  padding-right: 1rem;
  border-right: 1px solid var(--ws-line);
}
@media (min-width: 900px) {
  .ws-agenda-label { display: block; }
}
.ws-agenda-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  flex: 1;
}
.ws-agenda-steps a {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: var(--ws-slate-600);
  transition: background-color 200ms, color 200ms;
}
@media (min-width: 640px) {
  .ws-agenda-steps a { justify-content: flex-start; }
}
.ws-agenda-steps a:hover { background: #f1f5f9; color: var(--ws-ink); }
.ws-agenda-num {
  font-family: var(--ws-mono);
  font-weight: 800;
  color: #94a3b8;
  transition: color 200ms;
}
.ws-agenda-name {
  display: none;
  font-weight: 600;
}
.ws-agenda-day {
  display: none;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  color: var(--ws-slate-500);
}
@media (min-width: 640px) {
  .ws-agenda-name { display: inline; }
}
@media (min-width: 1100px) {
  .ws-agenda-day { display: inline; }
}
.ws-agenda-steps a.is-active { color: var(--ws-ink); background: #fff; box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9); }
.ws-agenda-steps a.is-active .ws-agenda-num { color: var(--ws-fuji); }
.ws-agenda-progress {
  height: 2px;
  background: transparent;
}
.ws-agenda-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ws-fuji);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 120ms linear;
}

/* ------------------------------------------------------------------ */
/* Timeline rail (1280px and up): replaces the top agenda bar          */
/* ------------------------------------------------------------------ */

.ws-rail { display: none; }
@media (min-width: 1280px) {
  .ws-body {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    column-gap: 3.5rem;
  }
  .ws-rail { display: block; padding-top: 5.4rem; }
  .ws-agenda { display: none; }
  .ws-body .ws-chapter { scroll-margin-top: 1.25rem; }
}
.ws-rail-inner {
  position: sticky;
  top: 7.5rem;
  padding-left: 0.5rem; /* room for the active milestone's halo */
}
.ws-rail-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-ink);
  margin-bottom: 1.75rem;
}
.ws-rail-kicker span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ws-fuji);
}
.ws-rail-list { position: relative; }
.ws-rail-list ol { display: grid; gap: 1.5rem; }
/* The track runs from the first dot to the last; JS sets its top and height */
.ws-rail-track {
  position: absolute;
  left: 4.5px;
  top: 0;
  width: 1px;
  background: #e2e8f0;
}
.ws-rail-fill {
  position: absolute;
  left: -0.5px;
  top: 0;
  width: 2px;
  height: 0;
  border-radius: 1px;
  background: var(--ws-fuji);
  transition: height 180ms linear;
}
.ws-rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 0.9rem;
  align-items: start;
  padding: 0.1rem 0;
}
.ws-rail-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ws-parchment);
  border: 1.5px solid #cbd5e1;
  transition: background-color 300ms, border-color 300ms, transform 400ms var(--ws-spring), box-shadow 300ms;
}
.ws-rail-item--end .ws-rail-dot { border-radius: 2px; }
.ws-rail-day {
  display: block;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ws-slate-500);
}
.ws-rail-day b {
  font-weight: 700;
  color: #94a3b8;
  margin-right: 0.3rem;
  transition: color 300ms;
}
.ws-rail-name {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ws-slate-500);
  transition: color 300ms;
}
.ws-rail-q {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ws-slate-600);
  transition: max-height 450ms var(--ws-ease), opacity 350ms var(--ws-ease), margin-top 450ms var(--ws-ease);
}
.ws-rail-item:hover .ws-rail-name { color: var(--ws-ink); }
.ws-rail-item:hover .ws-rail-dot { border-color: var(--ws-slate-500); transform: scale(1.2); }
.ws-rail-item.is-past .ws-rail-dot { background: var(--ws-night); border-color: var(--ws-night); }
.ws-rail-item.is-past .ws-rail-name { color: #334155; }
.ws-rail-item.is-active .ws-rail-dot {
  background: var(--ws-fuji);
  border-color: var(--ws-fuji);
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(200, 71, 44, 0.14);
}
.ws-rail-item.is-active .ws-rail-day b { color: var(--ws-fuji); }
.ws-rail-item.is-active .ws-rail-name { color: var(--ws-ink); }
.ws-rail-item.is-active .ws-rail-q { max-height: 3rem; opacity: 1; margin-top: 0.25rem; }

/* The value each workshop brings, ahead of how it works */
.ws-value {
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--ws-fuji);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ws-ink);
}
.ws-value span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-fuji);
}

/* Landing on a chapter: its number gives one soft pulse */
.ws-chapter:focus { outline: none; }
.ws-chapter.is-arrived .ws-num { animation: ws-arrive 900ms var(--ws-ease); }
@keyframes ws-arrive {
  0% { box-shadow: 0 0 0 0 rgba(200, 71, 44, 0.45); transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { box-shadow: 0 0 0 14px rgba(200, 71, 44, 0); transform: scale(1); }
}

/* ------------------------------------------------------------------ */
/* Chapters                                                            */
/* ------------------------------------------------------------------ */

.ws-chapter {
  padding-top: 5rem;
  scroll-margin-top: 5rem; /* below the header and top bar, less the padding above the badge */
}
.ws-chapter--end { padding-top: 6rem; }
.ws-chapter-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ws-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: var(--ws-night);
  color: #fff;
  font-family: var(--ws-mono);
  font-weight: 800;
  font-size: 0.875rem;
  position: relative;
}
.ws-num::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ws-fuji);
  border: 2px solid var(--ws-parchment);
}
.ws-eyebrow {
  font-family: var(--ws-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-fuji);
}

/* Wave divider: turbulent lines settle into one straight line and the red dot.
   JavaScript swaps the static SVG for a canvas that bends towards the pointer. */
.ws-wave-divider {
  position: relative;
  margin-top: 4rem;
  height: 64px;
  cursor: crosshair;
  touch-action: pan-y;
}
.ws-wave-divider svg,
.ws-wave-divider canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ws-wave-divider svg { overflow: visible; }
.ws-wave-divider path {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ws-wave-divider circle { fill: var(--ws-fuji); }

/* ------------------------------------------------------------------ */
/* 01 Personas                                                         */
/* ------------------------------------------------------------------ */

.ws-interview {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.ws-bubble {
  position: relative;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.ws-bubble-who {
  display: block;
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.ws-bubble--q {
  background: var(--ws-night);
  color: #fff;
  border-bottom-left-radius: 0.25rem;
  margin-right: 2.5rem;
}
.ws-bubble--q .ws-bubble-who { color: #94a3b8; }
.ws-bubble--a {
  background: var(--ws-paper);
  border: 1px solid var(--ws-paper-edge);
  color: var(--ws-ink);
  border-bottom-right-radius: 0.25rem;
  margin-left: 2.5rem;
}
.ws-bubble--a .ws-bubble-who { color: var(--ws-slate-500); }
.ws-bubble p { transition: opacity 260ms var(--ws-ease), filter 260ms var(--ws-ease); }
.ws-bubble p.is-swapping { opacity: 0; filter: blur(3px); }

/* Marker highlight: sweeps in behind the useful fragments of a story */
.ws-mark {
  background-image: linear-gradient(transparent 55%, rgba(200, 71, 44, 0.28) 55%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 600ms var(--ws-ease);
}
.ws-mark.is-on { background-size: 100% 100%; }

.ws-opps { display: grid; gap: 0.5rem; }
.ws-opps-list { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 1.75rem; }
.ws-opp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(200, 71, 44, 0.4);
  color: var(--ws-fuji-deep);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 350ms var(--ws-ease), transform 450ms var(--ws-spring);
}
.ws-opp::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ws-fuji);
}
.ws-opp.is-on { opacity: 1; transform: none; }

/* Persona deck */
.ws-stage--paper {
  background:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.22) 1px, transparent 0) 0 0 / 20px 20px,
    #fff;
}
.ws-deck {
  position: relative;
  height: 500px;
  /* Headroom for the lift, below the controls; z-index so cards pass over the frame edge */
  margin-top: 1.5rem;
  z-index: 5;
  container-type: inline-size;
  display: grid;
  place-items: center;
}
.pcard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(330px, 86%);
  margin-left: calc(min(330px, 86%) / -2);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.9rem;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 36px -18px rgba(15, 23, 42, 0.35);
  transform-origin: 50% 90%;
  /* The fan is measured from the deck: how far a card can travel before it leaves the frame */
  --card-w: min(330px, 86cqw);
  --slack: calc((100cqw - var(--card-w)) / 2);
  --breakout: 0px; /* phones: the stage fills the page, so the left card stays in the frame */
  /* Centred vertically in the frame; --tx, --ty and --r place it in the stack or the fan */
  transform: translate(var(--tx, 0px), calc(-50% + var(--ty, 0px))) rotate(var(--r, 0deg));
  transition: transform 650ms var(--ws-spring), box-shadow 300ms, filter 300ms;
  cursor: pointer;
  overflow: hidden;
}
.pcard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}
.pcard--p1::before { background: var(--ws-p1); }
.pcard--p2::before { background: var(--ws-p2); }
.pcard--p3::before { background: var(--ws-p3); }

.pcard[data-pos="0"] { z-index: 3; --tx: 0px; --ty: 0px; --r: 0deg; cursor: default; }
.pcard[data-pos="1"] { z-index: 2; --tx: -16px; --ty: 14px; --r: -4deg; filter: saturate(0.85); }
.pcard[data-pos="2"] { z-index: 1; --tx: 16px; --ty: 20px; --r: 4deg; filter: saturate(0.7); }
/* Fanned: the left card rises above the frame and just past its left edge; the right card
   stays tucked inside the frame, behind the front card */
.ws-deck.is-fanned .pcard[data-pos="0"] { --ty: -6px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 22px 40px -18px rgba(15, 23, 42, 0.38); }
.ws-deck.is-fanned .pcard[data-pos="1"] { --tx: calc(-1 * (var(--slack) + var(--breakout))); --ty: -30px; --r: -4deg; }
.ws-deck.is-fanned .pcard[data-pos="2"] { --tx: calc(var(--slack) - var(--lean, 22px)); --ty: -2px; --r: 2deg; }
.ws-deck.is-fanned .pcard[data-pos="1"]:hover { --tx: calc(-1 * (var(--slack) + var(--breakout) + 6px)); --ty: -38px; --r: -3deg; }
.ws-deck.is-fanned .pcard[data-pos="2"]:hover { --ty: -8px; --r: 1.5deg; }
@media (min-width: 640px) {
  .pcard { --breakout: 12px; } /* tablets: only the page padding is free beside the frame */
}
@media (min-width: 1024px) {
  .pcard { --breakout: 40px; } /* two columns: the gap beside the frame is free */
}
/* Cards that spread past the frame must not create a sideways page scroll. The clip sits on
   the padded page container, so halos and pulses at the content edge are not cut off. */
main:has(#view-workshops) { overflow-x: clip; }

.pcard-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
}
.pcard-avatar {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  transition: transform 500ms var(--ws-spring);
}
.pcard:hover .pcard-avatar { transform: rotate(-4deg) scale(1.05); }
.pcard-name { font-size: 1.05rem; font-weight: 800; color: var(--ws-ink); line-height: 1.2; }
.pcard-role { font-size: 0.75rem; color: var(--ws-slate-600); margin-top: 0.1rem; }
.pcard-tag {
  margin-left: auto;
  align-self: flex-start;
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  color: var(--ws-slate-500);
  white-space: nowrap;
}
.pcard-body { display: grid; gap: 0.7rem; padding-top: 0.8rem; }
.pcard-body dt {
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ws-slate-500);
  margin-bottom: 0.15rem;
}
.pcard-body dd { font-size: 0.875rem; line-height: 1.45; color: #334155; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pcard-chips span {
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: var(--ws-parchment);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.pcard-quote {
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-left: 2px solid var(--ws-fuji);
  background: var(--ws-parchment);
  border-radius: 0 0.4rem 0.4rem 0;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ws-ink);
}
.pcard--p1 .pcard-quote { background: var(--ws-p1-tint); }
.pcard--p2 .pcard-quote { background: var(--ws-p2-tint); }
.pcard--p3 .pcard-quote { background: var(--ws-p3-tint); }

/* ------------------------------------------------------------------ */
/* 02 Story map and Kanban board                                       */
/* ------------------------------------------------------------------ */

.ws-stage--board {
  background: #f8fafc;
}
.ws-board {
  position: relative;
  min-width: 760px;
  height: 520px;
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.28) 1px, transparent 0) 0 0 / 22px 22px,
    #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #f1f5f9;
  transition: height 650ms var(--ws-ease);
  touch-action: pan-x pan-y;
}
.ws-board-notes { position: absolute; inset: 0; }

/* Area above the release line */
.ws-board-zone {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  border-radius: 0.75rem 0.75rem 0 0;
  background: linear-gradient(to bottom, rgba(200, 71, 44, 0), rgba(200, 71, 44, 0.05));
  transform-origin: top;
  transition: height 550ms var(--ws-spring), opacity 400ms;
}
.ws-board[data-mode="kanban"] .ws-board-zone { opacity: 0; }

/* A board sticky note. Position (transform) is set by JS; the paper inside carries tilt and hover */
.sn {
  position: absolute;
  left: 0;
  top: 0;
  transition: transform 750ms var(--ws-spring), opacity 450ms var(--ws-ease);
  will-change: transform;
}
.sn-paper {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.45rem 0.55rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ws-ink);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.08), 0 6px 12px -6px rgba(15, 23, 42, 0.28);
  transform: rotate(var(--r, 0deg));
  transition: transform 350ms var(--ws-spring), box-shadow 300ms, opacity 400ms, filter 400ms;
  overflow: hidden;
}
.sn-paper::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.045));
  pointer-events: none;
}
.sn:hover { z-index: 30; }
.sn:hover .sn-paper {
  transform: rotate(0deg) translateY(-3px) scale(1.05);
  box-shadow: 0 2px 2px rgba(15, 23, 42, 0.06), 0 16px 26px -10px rgba(15, 23, 42, 0.35);
}
.sn-paper { background: var(--ws-paper); border: 1px solid var(--ws-paper-edge); }
.sn--p1 .sn-paper { --tape: var(--ws-p1); }
.sn--p2 .sn-paper { --tape: var(--ws-p2); }
.sn--p3 .sn-paper { --tape: var(--ws-p3); }
.sn--backbone .sn-paper {
  background: var(--ws-night);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
}
.sn--backbone .sn-paper::after { background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05)); }
.sn-who {
  position: absolute;
  right: 0.35rem;
  bottom: 0.3rem;
  font-family: var(--ws-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(2, 6, 23, 0.5);
}
.sn-step {
  display: block;
  font-family: var(--ws-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ws-fuji-light);
  margin-bottom: 0.1rem;
}
.sn.is-out .sn-paper {
  opacity: 0.42;
  filter: saturate(0.25);
}
.sn.is-out:hover .sn-paper { opacity: 0.9; filter: none; }
.sn.is-hidden { opacity: 0; pointer-events: none; }
/* In the "Not now" pile only the top line of each note shows, until it's hovered */
.sn.is-piled .sn-paper { white-space: nowrap; text-overflow: ellipsis; padding-right: 2.4rem; }
.sn.is-piled:hover .sn-paper { white-space: normal; padding-right: 0.55rem; }

/* Release line and its handle */
.ws-release {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-top: 2px dashed var(--ws-fuji);
  transition: transform 550ms var(--ws-spring), opacity 300ms;
  z-index: 20;
}
.ws-release.is-dragging { transition: opacity 300ms; }
.ws-board[data-mode="kanban"] .ws-release { opacity: 0; pointer-events: none; }
.ws-release-handle {
  position: absolute;
  left: 10px;
  top: -14px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 26px;
  padding: 0 0.6rem 0 0.45rem;
  border-radius: 999px;
  background: var(--ws-fuji-deep);
  color: #fff;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: ns-resize;
  user-select: none;
  touch-action: none;
  box-shadow: 0 6px 14px -6px rgba(176, 60, 36, 0.7);
  transition: transform 200ms var(--ws-spring), background-color 200ms;
}
.ws-release-handle svg { width: 0.6rem; height: 0.8rem; }
.ws-release-handle:hover,
.ws-release.is-dragging .ws-release-handle { transform: scale(1.06); background: var(--ws-fuji); }
.ws-release-handle:focus-visible { outline: 2px solid var(--ws-fuji); outline-offset: 3px; }

/* Kanban columns, drawn behind the notes */
.kcol {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0.6rem;
  background: rgba(241, 245, 249, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 450ms var(--ws-ease), transform 550ms var(--ws-ease);
  pointer-events: none;
}
.kcol--parked { background: transparent; border: 1.5px dashed #cbd5e1; }
.ws-board[data-mode="kanban"] .kcol { opacity: 1; transform: none; transition-delay: 120ms; }
.kcol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
}
.kcol-head i {
  font-style: normal;
  font-weight: 600;
  color: var(--ws-slate-500);
}
.bb-label {
  position: absolute;
  left: 20px;
  top: 14px;
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-slate-500);
  transition: opacity 300ms;
}
.ws-board[data-mode="kanban"] .bb-label { opacity: 0; }

/* ------------------------------------------------------------------ */
/* 03 Value Impact Map                                                 */
/* ------------------------------------------------------------------ */

.ws-vim {
  position: relative;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .ws-vim { grid-template-columns: 1.15fr 1fr 0.95fr 1.05fr; gap: 2.5rem; align-items: stretch; }
  .ws-vim-col { align-content: center; }
}
.ws-vim-lines {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .ws-vim-lines { display: block; }
}
.ws-vim-lines path {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1.5;
  transition: stroke 300ms, opacity 300ms, stroke-width 300ms;
}
.ws-vim-lines path.is-lit {
  stroke: var(--ws-fuji);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  animation: ws-flow 900ms linear infinite;
}
.ws-vim-lines path.is-dim { opacity: 0.35; }
@keyframes ws-flow {
  to { stroke-dashoffset: -11; }
}
.ws-vim-col { position: relative; z-index: 1; display: grid; gap: 0.6rem; }
.ws-vim-head {
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  color: var(--ws-slate-500);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.ws-vim-head b {
  color: var(--ws-fuji);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.25rem;
}
@media (min-width: 1024px) {
  /* Column labels share one line above the map */
  .ws-vim-head { position: absolute; top: -2rem; left: 0; right: 0; margin: 0; }
  .ws-vim { padding-top: 2rem; }
}

.vnode {
  position: relative;
  display: grid;
  gap: 0.15rem;
  text-align: left;
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.6rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: opacity 300ms, border-color 250ms, box-shadow 300ms, transform 350ms var(--ws-spring);
}
.vnode-kicker { font-family: var(--ws-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ws-slate-500); }
.vnode-title { font-size: 0.875rem; font-weight: 700; color: var(--ws-ink); line-height: 1.3; }
.vnode-num { font-family: var(--ws-mono); font-size: 0.6875rem; color: var(--ws-fuji-deep); }
.vnode--goal {
  background: var(--ws-night);
  border-color: var(--ws-night);
  padding: 1rem;
}
.vnode--goal .vnode-title { color: #fff; font-size: 1rem; }
.vnode--goal .vnode-kicker { color: #94a3b8; }
.vnode--goal .vnode-num { color: var(--ws-fuji-light); }

/* The objective carries its own progress meter */
.vnode-meter {
  display: block;
  height: 6px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}
.vnode-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #B03C24, #D5543A);
  transition: width 800ms var(--ws-spring);
}
.vnode-read {
  display: block;
  min-height: 1.1rem; /* reserved up front, so filling it in later doesn't shift the page */
  margin-top: 0.4rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  color: #cbd5e1;
}
.vnode-read b { color: #fff; }

/* Success metrics: "now" in grey, the target fills in red */
.vnode--metric { gap: 0.2rem; }
.vnode-bars {
  display: grid;
  gap: 3px;
  margin-top: 0.35rem;
}
.vnode-bars i {
  display: block;
  height: 5px;
  width: 0;
  border-radius: 3px;
  transition: width 800ms var(--ws-spring);
}
.vnode-bars .b-now { background: #cbd5e1; }
.vnode-bars .b-target { background: var(--ws-fuji); }
.vnode--metric .vnode-num { color: var(--ws-slate-500); transition: color 300ms; }
.vnode--metric.is-on .vnode-num { color: var(--ws-fuji-deep); }

.ws-example {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--ws-parchment);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-fuji);
}

.vnode--feature {
  grid-template-columns: auto 1fr;
  column-gap: 0.6rem;
  align-items: center;
  cursor: pointer;
}
.vnode--feature .vnode-num { grid-column: 2; }
.vnode-check {
  grid-row: span 2;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  transition: background-color 250ms, border-color 250ms, transform 350ms var(--ws-spring);
}
.vnode-check::after {
  content: '';
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 300ms var(--ws-spring);
}
.vnode--feature[aria-pressed="true"] .vnode-check { background: var(--ws-fuji); border-color: var(--ws-fuji); }
.vnode--feature[aria-pressed="true"] .vnode-check::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.vnode--feature:hover { transform: translateX(-3px); border-color: #cbd5e1; }
.vnode--feature:active .vnode-check { transform: scale(0.85); }

.ws-vim.is-tracing .vnode { opacity: 0.38; }
.ws-vim.is-tracing .vnode.is-lit { opacity: 1; }
.vnode.is-lit { box-shadow: 0 0 0 2px rgba(200, 71, 44, 0.85), 0 10px 22px -12px rgba(200, 71, 44, 0.6); }
.vnode--goal.is-lit { box-shadow: 0 0 0 2px var(--ws-fuji), 0 14px 26px -12px rgba(200, 71, 44, 0.7); }

/* ------------------------------------------------------------------ */
/* 04 Roadmap                                                          */
/* ------------------------------------------------------------------ */

.ws-roadmap {
  position: relative;
  min-width: 720px;
  height: 380px;
  transition: height 650ms var(--ws-ease);
}
.ws-rm-grid, .ws-rm-items { position: absolute; inset: 0; }
.ws-rm-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
  transition: opacity 350ms;
}
.ws-roadmap[data-mode="lanes"] .ws-rm-links,
.ws-js .ws-roadmap:not(.is-in) .ws-rm-links { opacity: 0; }
.ws-rm-links path {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.5;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke 250ms, opacity 250ms, stroke-dashoffset 1s var(--ws-ease) var(--d, 0ms);
}
.ws-roadmap.is-in .ws-rm-links path { stroke-dashoffset: 0; }
.ws-rm-links marker path { fill: #94a3b8; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.ws-rm-links path.is-lit { stroke: var(--ws-fuji); stroke-width: 2; }
.ws-rm-links path.is-dim { opacity: 0.25; }

/* Sprint columns, today marker and lane columns */
.rm-col {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #e2e8f0;
  transition: opacity 400ms;
}
.rm-col span {
  position: absolute;
  top: 0.35rem;
  left: 0.5rem;
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-slate-500);
}
.rm-today {
  position: absolute;
  top: 1.6rem;
  bottom: 0.25rem;
  width: 0;
  border-left: 1.5px solid var(--ws-fuji);
  transition: opacity 400ms;
}
.rm-today::before {
  content: 'Today';
  position: absolute;
  top: -0.2rem;
  left: 0.35rem;
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--ws-fuji-deep);
}
.rm-today::after {
  content: '';
  position: absolute;
  top: -0.25rem;
  left: -0.3rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ws-fuji);
  animation: ws-pulse 2.2s infinite;
}
.rm-lane {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 0.6rem;
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 450ms var(--ws-ease), transform 550ms var(--ws-ease);
}
.rm-lane span {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
}
.rm-lane span i { font-style: normal; font-weight: 500; color: var(--ws-slate-500); text-transform: none; letter-spacing: 0; margin-left: 0.35rem; }
.ws-roadmap[data-mode="lanes"] .rm-col,
.ws-roadmap[data-mode="lanes"] .rm-today { opacity: 0; }
.ws-roadmap[data-mode="lanes"] .rm-lane { opacity: 1; transform: none; transition-delay: 100ms; }

/* A roadmap item: a bar on the timeline, a card in the lanes */
.rm-item {
  position: absolute;
  left: 0;
  top: 0;
  text-align: left;
  transition: transform 750ms var(--ws-spring), width 650ms var(--ws-ease), height 650ms var(--ws-ease), opacity 300ms;
}
.rm-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 0.7rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  clip-path: inset(0 100% 0 0 round 0.5rem);
  transition: clip-path 900ms var(--ws-ease) var(--d, 0ms), box-shadow 250ms, transform 300ms var(--ws-spring), opacity 250ms;
}
.ws-roadmap.is-in .rm-bar { clip-path: inset(0 0 0 0 round 0.5rem); }
html:not(.ws-js) .rm-bar { clip-path: none; }
.rm-item:hover .rm-bar,
.rm-item:focus-visible .rm-bar { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.4); }
.rm-item:focus-visible { outline: none; }
.rm-item:focus-visible .rm-bar { outline: 2px solid var(--ws-fuji); outline-offset: 2px; }
.rm-name { font-size: 0.8125rem; font-weight: 700; color: var(--ws-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-why {
  font-family: var(--ws-mono);
  font-size: 0.625rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms var(--ws-ease), opacity 300ms;
}
.ws-roadmap[data-mode="lanes"] .rm-why { max-height: 1rem; opacity: 1; margin-top: 0.15rem; }
.rm-item--p1 .rm-bar,
.rm-item--p2 .rm-bar,
.rm-item--p3 .rm-bar { background: var(--ws-paper); border-color: var(--ws-paper-edge); }
.rm-item--p1 .rm-bar { border-left: 3px solid var(--ws-p1); }
.rm-item--p2 .rm-bar { border-left: 3px solid var(--ws-p2); }
.rm-item--p3 .rm-bar { border-left: 3px solid var(--ws-p3); }
.rm-item--night .rm-bar { background: var(--ws-night); }
.rm-item--night .rm-name { color: #fff; }
.rm-item--night .rm-why { color: #cbd5e1; }
.rm-item--tentative .rm-bar {
  background: repeating-linear-gradient(-45deg, #fff, #fff 6px, #f1f5f9 6px, #f1f5f9 12px);
  border: 1.5px dashed #94a3b8;
}
.ws-roadmap.is-tracing .rm-item .rm-bar { opacity: 0.35; }
.ws-roadmap.is-tracing .rm-item.is-lit .rm-bar { opacity: 1; }
.ws-roadmap.is-tracing .rm-item.is-focus .rm-bar { box-shadow: 0 0 0 2px var(--ws-fuji), 0 10px 20px -10px rgba(200, 71, 44, 0.6); }

.ws-rm-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: var(--ws-slate-600);
  min-height: 2.75rem;
}
.ws-rm-detail b { color: var(--ws-ink); }
.ws-rm-detail .ws-rm-tag {
  display: inline-block;
  font-family: var(--ws-mono);
  font-size: 0.6875rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  background: var(--ws-parchment);
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin: 0 0.15rem;
  color: #334155;
}

/* ------------------------------------------------------------------ */
/* Blueprint, sources and call to action                               */
/* ------------------------------------------------------------------ */

.ws-artefact {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  align-items: start;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  transition: border-color 200ms, box-shadow 300ms var(--ws-ease), transform 300ms var(--ws-ease);
}
.ws-artefact svg {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.35rem;
  border-radius: 0.6rem;
  background: var(--ws-parchment);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 450ms var(--ws-spring), background-color 300ms;
}
.ws-artefact:hover { border-color: #cbd5e1; box-shadow: 0 14px 28px -16px rgba(15, 23, 42, 0.35); transform: translateY(-3px); }
.ws-artefact:hover svg { transform: rotate(-6deg) scale(1.08); background: #fff; }
.ws-artefact-name { font-size: 0.9375rem; font-weight: 700; color: var(--ws-ink); }
.ws-artefact-text { font-size: 0.875rem; color: var(--ws-slate-600); line-height: 1.5; }
.ws-artefact .a-front { fill: var(--ws-paper); stroke: var(--ws-ink); stroke-width: 1.2; }
.ws-artefact .a-back { fill: var(--ws-p1-tint); stroke: var(--ws-ink); stroke-width: 1.2; }
.ws-artefact .a-accent { fill: var(--ws-fuji); }
.ws-artefact .a-line { fill: none; stroke: var(--ws-ink); stroke-width: 1.4; stroke-linecap: round; }
.ws-artefact .a-check { fill: none; stroke: var(--ws-fuji-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ws-artefact .a-cut { stroke: var(--ws-fuji); stroke-width: 1.5; stroke-dasharray: 3 2; }
.ws-artefact .a-grid { stroke: #cbd5e1; stroke-width: 1; }

.ws-shoulders {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.ws-source {
  display: grid;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--ws-parchment);
  transition: background-color 250ms, border-color 250ms, transform 300ms var(--ws-ease);
}
.ws-source:hover { background: #fff; border-color: #cbd5e1; transform: translateY(-2px); }
.ws-source-who { font-family: var(--ws-mono); font-size: 0.6875rem; color: var(--ws-slate-500); }
.ws-source-what { font-size: 0.9375rem; font-weight: 700; color: var(--ws-ink); }
.ws-source-take { font-size: 0.875rem; color: var(--ws-slate-600); }

.ws-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--ws-night);
  border: 1px solid #1e293b;
}
@media (min-width: 1024px) {
  .ws-cta { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 3rem; }
}
.ws-cta-wave {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}
.ws-cta-wave path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  animation: ws-drift 9s ease-in-out infinite alternate;
}
.ws-cta-wave path + path { stroke: rgba(213, 84, 58, 0.3); animation-duration: 12s; }
@keyframes ws-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-24px); }
}
