/* Interactive 3D pipeline viewer: a quiet card, one short sentence per step, a pill stepper */
.p3d-section {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --line: #d2d2d7; --fill: #e8e8ed; --band: #f5f5f7;
  --accent: #0071e3;
  background: var(--band); padding: 5.5rem 1rem 5rem;
}
.p3d-wrap { max-width: 1080px; margin: 0 auto; text-align: center; }
.p3d-h {
  font-family: 'Inter Tight', Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; color: var(--ink); margin: 0 0 0.9rem;
}
.p3d-lede { font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); max-width: 40rem; margin: 0 auto 2.4rem; }
.p3d { text-align: left; }
.p3d:focus { outline: none; }

/* the 3D card */
.p3d-stage {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px rgb(0 0 0 / 0.05);
}
.p3d-canvas, .p3d-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.p3d-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 0.95rem; }
.p3d-loading[hidden] { display: none; }
.p3d-legend {
  position: absolute; left: 1.25rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem;
  font-size: 0.75rem; color: var(--ink-2); pointer-events: none;
}
.p3d-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.p3d-legend i { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; }
.p3d-hint { position: absolute; right: 1.25rem; bottom: 1rem; font-size: 0.72rem; color: var(--ink-3); pointer-events: none; }

/* options menu in the card corner */
.p3d-opt-btn {
  position: absolute; top: 1rem; right: 1rem; font: inherit; font-size: 0.8rem; font-weight: 500; color: var(--ink);
  background: rgb(255 255 255 / 0.85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem; cursor: pointer;
}
.p3d-opt-btn[hidden] { display: none; }
.p3d-opt-btn:hover, .p3d-opt-btn[aria-expanded=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.p3d-options {
  position: absolute; top: 3.3rem; right: 1rem; width: min(300px, calc(100% - 2rem)); max-height: calc(100% - 4.5rem); overflow: auto;
  background: rgb(255 255 255 / 0.96); backdrop-filter: blur(12px); border-radius: 16px; padding: 0.8rem 0.95rem;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.12); display: flex; flex-direction: column; gap: 0.55rem; z-index: 2;
}
.p3d-options[hidden] { display: none; }
.p3d-options .p3d-row { flex: none; }
.p3d-options .p3d-choice { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

/* caption under the card */
.p3d-info { max-width: 760px; margin: 1.6rem auto 0; text-align: center; }
.p3d-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); text-transform: uppercase; }
.p3d-title {
  font-family: 'Inter Tight', Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em;
  font-size: 1.6rem; line-height: 1.2; color: var(--ink); margin: 0.3rem 0 0.45rem;
}
.p3d-text { font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); margin: 0 auto 1.1rem; }
.p3d-more {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.1rem; padding: 0.38rem 0.75rem 0.38rem 0.95rem;
  font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.p3d-more:hover { color: var(--ink); border-color: var(--ink-3); background: rgb(255 255 255 / 0.6); }
.p3d-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p3d-chev { width: 0.8rem; height: 0.8rem; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.p3d-open .p3d-chev { transform: rotate(180deg); }
/* unfolds by animating the row height from 0fr to 1fr, with a fade and a slight rise */
.p3d-more-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.p3d-open .p3d-more-body { grid-template-rows: 1fr; }
.p3d-more-inner {
  overflow: hidden; min-height: 0; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.p3d-open .p3d-more-inner { opacity: 1; transform: none; transition-delay: 0.08s; }
.p3d-detail {
  text-align: left; font-size: 0.92rem; line-height: 1.65; color: var(--ink-2); max-width: 620px; margin: 0.9rem auto 0.2rem;
  background: #fff; border-radius: 16px; padding: 1rem 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
@media (prefers-reduced-motion: reduce) { .p3d-more-body, .p3d-more-inner, .p3d-chev { transition: none; } }

/* controls */
.p3d-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7rem 1rem; }
.p3d-row { display: flex; align-items: center; gap: 0.6rem; flex: 1 1 340px; max-width: 520px; font-size: 0.85rem; }
.p3d-row > label { color: var(--ink-2); white-space: nowrap; }
.p3d-val { font-variant-numeric: tabular-nums; color: var(--ink-3); min-width: 3.2rem; text-align: right; font-size: 0.8rem; }
.p3d-section input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 90px; height: 4px; border-radius: 4px; background: var(--fill); outline: none; margin: 0;
}
.p3d-section input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.2);
}
.p3d-section input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.2);
}
.p3d-play {
  width: 2rem; height: 2rem; border-radius: 50%; border: none; flex: none; background: var(--fill); color: var(--ink);
  cursor: pointer; font-size: 0.65rem;
}
.p3d-play:hover { background: var(--line); }
.p3d-toggle { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--ink); cursor: pointer; }
.p3d-toggle input { accent-color: var(--ink); }
.p3d-choice { flex: 0 1 auto; max-width: none; }
.p3d-seg { display: inline-flex; flex-wrap: wrap; background: var(--fill); border-radius: 999px; padding: 3px; gap: 2px; }
.p3d-seg button {
  font: inherit; font-size: 0.8rem; padding: 0.3rem 0.85rem; border: none; border-radius: 999px; background: transparent;
  color: var(--ink-2); cursor: pointer;
}
.p3d-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.p3d-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.p3d-btn {
  font: inherit; font-size: 0.82rem; font-weight: 500; padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer;
  border: none; background: var(--fill); color: var(--ink); transition: background 0.15s;
}
.p3d-btn:hover { background: var(--line); }
.p3d-btn.is-primary { background: var(--ink); color: #fff; }
.p3d-btn.is-primary:hover { background: #000; }
.p3d-readout { flex: 1 1 100%; font-size: 0.82rem; color: var(--ink-2); text-align: center; }
.p3d-readout b { color: var(--ink); font-weight: 600; }
.p3d-sub { display: contents; }

/* per-part sliders */
.p3d-parts {
  flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, 300px); justify-content: center; gap: 0.5rem 2rem;
}
.p3d-parts .p3d-row { max-width: none; flex: none; width: 300px; }
.p3d-parts .p3d-row > label { width: 6.5rem; flex: none; }
.p3d-part { display: inline-flex; align-items: center; gap: 0.4rem; }
.p3d-part i { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; flex: none; }
.p3d-track { position: relative; flex: 1; display: flex; align-items: center; min-width: 90px; }
.p3d-track input[type=range] { flex: 1; }
.p3d-tick { position: absolute; top: -0.45rem; width: 2px; height: 0.4rem; border-radius: 2px; transform: translateX(-50%); pointer-events: none; }

/* stepper: a pill of numbered dots in two groups */
.p3d-steps { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin-top: 2rem; flex-wrap: wrap; }
.p3d-pill { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--fill); border-radius: 999px; padding: 4px 6px; }
.p3d-pill-label { font-size: 0.72rem; font-weight: 600; color: var(--ink-3); padding: 0 0.45rem 0 0.35rem; text-transform: uppercase; letter-spacing: 0.03em; }
.p3d-dot {
  height: 1.7rem; min-width: 1.7rem; border-radius: 999px; border: none; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.78rem; font-weight: 500; cursor: pointer; padding: 0 0.45rem; transition: background 0.15s, color 0.15s;
}
.p3d-dot:hover { background: rgb(255 255 255 / 0.7); }
.p3d-dot.is-on { background: var(--ink); color: #fff; padding: 0 0.8rem; }
.p3d-arrow {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; border: none; background: var(--fill); color: var(--ink);
  font-size: 0.95rem; cursor: pointer;
}
.p3d-arrow:hover { background: var(--line); }
.p3d-arrow:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 760px) {
  .p3d-parts { grid-template-columns: minmax(0, 1fr); }
  .p3d-parts .p3d-row { width: auto; }
  .p3d-section { padding: 3.5rem 0.75rem 3.5rem; }
  .p3d-stage { aspect-ratio: 1 / 1.08; border-radius: 20px; }
  .p3d-legend { left: 0.9rem; right: 0.9rem; bottom: 0.7rem; gap: 0.15rem 0.7rem; font-size: 0.68rem; }
  .p3d-opt-btn { top: 0.7rem; right: 0.7rem; }
  .p3d-options { top: 2.9rem; right: 0.7rem; }
  .p3d-hint { display: none; }
  .p3d-title { font-size: 1.3rem; }
  .p3d-dot.is-on { padding: 0 0.55rem; }
  .p3d-pill-label { display: none; }
  .p3d-dot-t { display: none; }
}

/* step 8: the phases of the alignment sequence */
.p3d-phases { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; font-size: 0.8rem; color: var(--ink-3); }
.p3d-phase { display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.3s; }
.p3d-phase b {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.68rem; font-weight: 600;
  background: var(--fill); color: var(--ink-3); transition: background 0.3s, color 0.3s;
}
.p3d-phase.is-done { color: var(--ink-2); }
.p3d-phase.is-done b { background: var(--line); color: var(--ink); }
.p3d-phase.is-on { color: var(--ink); font-weight: 500; }
.p3d-phase.is-on b { background: var(--ink); color: #fff; }

/* results gallery: same card as the pipeline viewer, then a grid of tiles that turn from A to B on hover */
.gal-section { background: #fff; }
.gal-section .p3d-stage { background: var(--band); box-shadow: none; }
.gal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.9rem; margin-top: 2.2rem; }
.gal-tile {
  display: flex; flex-direction: column; gap: 0.45rem; align-items: stretch; padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; color: var(--ink-2); text-align: center;
}
.gal-thumb {
  position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--band);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.04); transition: box-shadow 0.2s, transform 0.2s;
}
.gal-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: opacity 0.35s ease; }
.gal-thumb .gal-b { opacity: 0; }
.gal-tile:hover .gal-b, .gal-tile:focus-visible .gal-b, .gal-tile.is-on .gal-b { opacity: 1; }
.gal-tile:hover .gal-thumb { transform: translateY(-2px); }
.gal-tile.is-on .gal-thumb { box-shadow: 0 0 0 2px var(--ink); }
.gal-name { font-size: 0.8rem; line-height: 1.3; }
.gal-tile.is-on .gal-name { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; } .gal-name { font-size: 0.72rem; } }
.gal-badge {
  display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.02em; background: var(--ink); color: #fff; vertical-align: 1px;
}
.p3d-readout-note { display: block; margin-top: 0.2rem; color: var(--ink-3); }

/* runtime: horizontal stacked bars by stage, total at the tip */
.rt-section { --s1: #257de0; --s2: #f47230; --s3: #00b894; --s4: #f2a600; --s5: #b9bec7; }
.rt-card { max-width: 860px; margin: 0 auto; text-align: left; background: #fff; border-radius: 28px; padding: 2rem 2.2rem 1.6rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px rgb(0 0 0 / 0.05); }
.rt-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.8rem; color: var(--ink-2); margin-bottom: 1.3rem; }
.rt-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.rt-legend i { width: 0.65rem; height: 0.65rem; border-radius: 3px; display: inline-block; }
.rt-chart { position: relative; display: flex; flex-direction: column; gap: 0.85rem; }
.rt-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 1rem; }
.rt-name { white-space: nowrap; }
.rt-name { font-size: 0.9rem; color: var(--ink-2); text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 0.4rem; }
.rt-row.is-ours .rt-name { color: var(--ink); font-weight: 600; }
.rt-badge { font-size: 0.66rem; font-weight: 600; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--ink); color: #fff; }
.rt-bar { position: relative; display: flex; gap: 2px; height: 26px; padding-right: 4.5rem; }
.rt-seg { height: 100%; border-radius: 0; cursor: default; transition: filter 0.15s; }
.rt-seg:first-child { border-radius: 4px 0 0 4px; }
.rt-bar .rt-seg:nth-last-child(2) { border-radius: 0 4px 4px 0; }
.rt-seg:hover { filter: brightness(1.08) saturate(1.1); }
.rt-row:not(.is-ours) .rt-seg { opacity: 0.55; }
.rt-total { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.85rem; font-variant-numeric: tabular-nums;
  color: var(--ink-2); white-space: nowrap; margin-left: 0.5rem; }
.rt-bar .rt-total { position: static; transform: none; align-self: center; }
.rt-row.is-ours .rt-total { color: var(--ink); font-weight: 600; }
.rt-A { background: var(--s1); } .rt-reg { background: var(--s2); } .rt-update { background: var(--s3); } .rt-bake { background: var(--s4); } .rt-other { background: var(--s5); }
.rt-legend i.rt-A { background: var(--s1); } .rt-legend i.rt-reg { background: var(--s2); } .rt-legend i.rt-update { background: var(--s3); }
.rt-legend i.rt-bake { background: var(--s4); } .rt-legend i.rt-other { background: var(--s5); }
.rt-axis-row { margin-top: -0.2rem; }
.rt-axis { position: relative; height: 1.2rem; margin-right: 4.5rem; border-top: 1px solid var(--line); }
.rt-axis span { position: absolute; top: 0.3rem; transform: translateX(-50%); font-size: 0.72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-axis span.is-start { transform: none; }
.rt-axis span.is-end { transform: translateX(-100%); }
.rt-tip { position: absolute; z-index: 3; width: 180px; padding: 0.35rem 0.6rem; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 0.78rem; text-align: center; pointer-events: none; box-shadow: 0 6px 20px rgb(0 0 0 / 0.18); }
.rt-tip[hidden] { display: none; }
.rt-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.rt-details { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-2); }
.rt-details summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.rt-table { width: 100%; border-collapse: collapse; margin-top: 0.7rem; font-variant-numeric: tabular-nums; }
.rt-table th, .rt-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--fill); text-align: right; }
.rt-table th:first-child, .rt-table td:first-child { text-align: left; }
.rt-table th { font-weight: 600; color: var(--ink); font-size: 0.8rem; }
.rt-note { margin: 1rem 0 0; font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 760px) {
  .rt-card { padding: 1.3rem 1rem 1.1rem; border-radius: 20px; }
  .rt-row { grid-template-columns: 6.8rem 1fr; gap: 0.5rem; }
  .rt-name { font-size: 0.72rem; }
  .rt-badge { font-size: 0.6rem; }
  .rt-bar { padding-right: 3.6rem; height: 22px; }
  .rt-axis { margin-right: 3.6rem; }
  .rt-table { font-size: 0.72rem; }
}

/* generation-time table */
.rt-gen { margin-top: 0; font-size: 0.95rem; }
.rt-gen th, .rt-gen td { padding: 0.7rem 0.9rem; }
.rt-gen thead th { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--line); }
.rt-gen tbody td { color: var(--ink-2); }
.rt-gen tr.is-ours td { color: var(--ink); font-weight: 600; background: var(--band); }
.rt-gen tr.is-ours td:first-child { border-radius: 10px 0 0 10px; }
.rt-gen tr.is-ours td:last-child { border-radius: 0 10px 10px 0; }
.rt-gen tbody tr:last-child td { border-bottom: none; }
.rt-gen .rt-badge { margin-left: 0.35rem; vertical-align: 1px; }
.rt-gen td:not(:first-child), .rt-gen th:not(:first-child) { white-space: nowrap; text-align: right; }
@media (max-width: 760px) { .rt-gen { font-size: 0.85rem; } .rt-gen th, .rt-gen td { padding: 0.55rem 0.45rem; } }
.rt-gen tr.is-total td { color: var(--ink-3); }
.rt-mark { font-size: 0.65em; color: var(--ink-3); margin-left: 1px; }

/* generation-time chart: log-scale horizontal bars */
.rc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1.3rem; }
.rc-legend { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--ink-2); }
.rc-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.rc-key { width: 1.1rem; height: 0.6rem; border-radius: 2px; background: #9aa3b2; display: inline-block; }
.rc-key.is-total, .rc-row.is-total .rc-fill {
  background: repeating-linear-gradient(135deg, #cfd5de 0 3px, #e8ebf0 3px 6px);
}
.rc-chart { position: relative; display: flex; flex-direction: column; gap: 0.45rem; }
.rc-row { display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: 0.9rem; }
.rc-name { font-size: 0.86rem; color: var(--ink-2); text-align: right; white-space: nowrap; display: flex; justify-content: flex-end; align-items: center; gap: 0.35rem; }
.rc-name sup { font-size: 0.65em; color: var(--ink-3); }
.rc-row.is-ours .rc-name { color: var(--ink); font-weight: 600; }
.rc-track { position: relative; height: 22px; margin-right: 3.6rem; }
.rc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 0 4px 4px 0; background: #9aa3b2; }
.rc-row.is-ours .rc-fill { background: var(--accent); }
.rc-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 0.45rem; font-size: 0.8rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rc-row.is-ours .rc-val { color: var(--ink); font-weight: 600; }
.rc-grid { position: absolute; top: 0; bottom: 1.5rem; left: calc(11rem + 0.9rem); right: 3.6rem; pointer-events: none; }
.rc-grid span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--fill); }
.rc-axis-row { margin-top: 0.1rem; }
.rc-axis { position: relative; height: 1.1rem; margin-right: 3.6rem; }
.rc-axis span { position: absolute; transform: translateX(-50%); font-size: 0.72rem; color: var(--ink-3); white-space: nowrap; }
.rc-axis span:first-child { transform: none; }
.rc-axis span:last-child { transform: translateX(-100%); }
.rt-details table { margin-top: 0.8rem; }
@media (max-width: 760px) {
  .rc-row { grid-template-columns: 7.4rem 1fr; gap: 0.5rem; }
  .rc-name { font-size: 0.72rem; white-space: normal; line-height: 1.2; }
  .rc-grid { left: calc(7.4rem + 0.5rem); right: 3rem; }
  .rc-track, .rc-axis { margin-right: 3rem; }
  .rc-val { font-size: 0.72rem; }
  .rc-head { justify-content: center; }
}
.rc-val { background: rgb(255 255 255 / 0.85); padding: 0 0.2rem; border-radius: 3px; }

/* quality against time */
.rt-card-2 { margin-top: 1.5rem; }
.qc-segs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qc-wrap { position: relative; }
.qc-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.qc-grid { stroke: var(--fill); stroke-width: 1; }
.qc-tick { font-size: 11px; fill: var(--ink-3); }
.qc-axis { font-size: 12px; fill: var(--ink-2); }
.qc-corner { fill: #eef5ff; }
.qc-corner-t { font-size: 11px; fill: #5b8fd6; font-weight: 600; }
.qc-dot { fill: #8f98a8; stroke: #fff; stroke-width: 2; transition: r 0.15s; }
.qc-pt.is-total .qc-dot { fill: #fff; stroke: #8f98a8; stroke-width: 2; }
.qc-pt.is-ours .qc-dot { fill: var(--accent); }
.qc-hit { fill: transparent; cursor: default; }
.qc-pt:focus { outline: none; }
.qc-pt:hover .qc-dot, .qc-pt:focus .qc-dot { stroke-width: 3; }
.qc-lab { font-size: 12px; fill: var(--ink-2); pointer-events: none; }
.qc-pt.is-ours .qc-lab { fill: var(--ink); font-weight: 700; font-size: 13px; }
.qc-key { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #8f98a8; display: inline-block; }
.qc-key.is-ours { background: var(--accent); }
.qc-key.is-total { background: #fff; box-shadow: inset 0 0 0 2px #8f98a8; }
.qc-tip { width: 190px; }
.qc-better { stroke: var(--ink-3); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.qc-better-t { font-size: 11px; fill: var(--ink-3); font-weight: 600; }

/* scroll reveal (static/js/reveal.js) */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--rv-delay, 0ms); }
.rv-on .rv.rv-in { opacity: 1; transform: none; }
.rv-on .gal-tile.rv { transform: translateY(14px) scale(0.98); }
.rv-on .gal-tile.rv.rv-in { transform: none; }

/* chart motion */
.rc-fill { transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); overflow: hidden; }
.rc-val { transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rc-row.is-ours .rc-fill::after {                         /* one light sweep over our bar once it has grown */
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.55) 50%, transparent 80%);
}
.rc-chart.is-swept .rc-row.is-ours .rc-fill::after { animation: rc-sweep 1.1s ease-out 1; }
@keyframes rc-sweep { to { transform: translateX(120%); } }
.rc-row { transition: opacity 0.25s; }
.rc-chart.is-hover .rc-row:not(.is-lit):not(.rc-axis-row) { opacity: 0.35; }
.qc-pt { transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.5s; }
.qc-dot, .qc-hit, .qc-ring { cx: 0; cy: 0; }
.qc-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.qc-pt.is-pulse .qc-ring { animation: qc-pulse 2.4s ease-out 2; }
@keyframes qc-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.4); opacity: 0; } }
.qc-front { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 0; opacity: 0.55; stroke-linejoin: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
.qc-front-t { font-size: 11px; font-weight: 600; fill: var(--accent); opacity: 0; transition: opacity 0.6s; }
.qc-front-t.is-in { opacity: 0.8; transition-delay: inherit; }
.qc-lab { transition: opacity 0.3s; }
.qc-key-line { width: 1.1rem; height: 0; border-top: 2px solid var(--accent); opacity: 0.55; display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .rc-fill, .rc-val, .qc-pt, .qc-front { transition: none !important; }
  .qc-pt.is-pulse .qc-ring, .rc-chart.is-swept .rc-row.is-ours .rc-fill::after { animation: none; }
}
.qc-lab, .qc-front-t { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
