/* ============================================================
   PROJECT SHOWCASE — "Holographic Neon Wireframe" miniatures
   Phase 3: pure-CSS interactive previews of each live project,
   rendered inside the timeline project cards (screen only).
   ============================================================ */

/* ── Showcase container + collapse toggle ─────────────────────────── */
.project-showcase {
  display: block;
  margin-top: 14px;
}

/* Collapsible variant (non-highlighted / early projects) — mirrors the
   achievement toggle so projects stay consistent with career cards. */
details.tl-showcase-toggle > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  user-select: none;
}
details.tl-showcase-toggle > summary::-webkit-details-marker {
  display: none;
}
details.tl-showcase-toggle > summary::before {
  content: "\25b6";
  font-size: 0.62rem;
  display: inline-block;
  transition: transform 0.15s ease;
}
details.tl-showcase-toggle[open] > summary::before {
  transform: rotate(90deg);
}
details.tl-showcase-toggle[open] > summary {
  color: var(--text-muted);
}

/* ── Frame: clickable (live link) or static (self-referencing resume) ── */
.showcase-frame {
  display: block;
  max-width: 440px;
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.showcase-frame.is-static {
  cursor: default;
}
.showcase-frame:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Responsive showcase swap */
.showcase-mobile { display: none; }
@media (max-width: 768px) {
  .showcase-desktop { display: none; }
  .showcase-mobile  { display: block; }
}

/* ── macOS-style browser window shell ─────────────────────────────── */
.mac-window {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.28);
  /* Opaque-ish fill instead of backdrop-filter: blur() — the live blur was
     re-sampled every frame (particle canvas + scan-line move behind it) and
     was the main showcase performance cost. */
  background: rgba(10, 14, 28, 0.94);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(0, 212, 255, 0.08);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

/* Title bar: traffic-light dots + address pill */
.mac-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  background: linear-gradient(180deg, rgba(32, 38, 64, 0.92), rgba(18, 22, 40, 0.92));
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
}
.mac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mac-dot:nth-child(1) { background: var(--error);     box-shadow: 0 0 5px var(--error); }
.mac-dot:nth-child(2) { background: var(--cert);      box-shadow: 0 0 5px var(--cert); }
.mac-dot:nth-child(3) { background: var(--secondary); box-shadow: 0 0 5px var(--secondary-glow); }
.mac-url {
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

/* Viewport */
.mac-screen {
  position: relative;
  height: 200px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 212, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #0a0e1c, #06070f);
}

/* ── Mobile browser window shell ───────────────────────────────────── */
.mob-window {
  position: relative;
  width: 190px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(10, 14, 28, 0.94);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(0, 212, 255, 0.08);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

.mob-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(32, 38, 64, 0.92), rgba(18, 22, 40, 0.92));
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
}

.mob-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
}

.mob-url {
  flex: 1;
  min-width: 0;
  margin: 0 10px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.mob-screen {
  position: relative;
  height: 330px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 212, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #0a0e1c, #06070f);
}

.mob-screen .scan-line {
  animation: scan-sweep-mob 4.8s linear infinite;
}
@keyframes scan-sweep-mob {
  0%   { transform: translateY(-44px); opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(330px); opacity: 0; }
}

/* ── Scanning laser line — proves the miniature is "alive" ─────────── */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 212, 255, 0.1) 65%,
    rgba(0, 240, 255, 0.4)
  );
  border-bottom: 1px solid rgba(120, 240, 255, 0.75);
  box-shadow: 0 1px 12px rgba(0, 212, 255, 0.45);
  animation: scan-sweep 4.8s linear infinite;
}
@keyframes scan-sweep {
  0%   { transform: translateY(-44px); opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(200px); opacity: 0; }
}

/* ── Wireframe miniature base ──────────────────────────────────────── */
.mini {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 7px;
}

/* Shared wireframe block — scales + brightens when the frame is hovered */
.wblock {
  border-radius: 3px;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s ease;
}

/* ── Hover / focus interactivity ───────────────────────────────────── */
.showcase-frame:hover .mac-window,
.showcase-frame:focus-visible .mac-window,
.showcase-frame:hover .mob-window,
.showcase-frame:focus-visible .mob-window {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(0, 212, 255, 0.22);
  transform: translateY(-3px);
}
.showcase-frame:hover .wblock,
.showcase-frame:focus-visible .wblock {
  transform: scale(1.06);
  filter: brightness(1.7) saturate(1.25);
}
.showcase-frame:hover .mac-screen,
.showcase-frame:focus-visible .mac-screen,
.showcase-frame:hover .mob-screen,
.showcase-frame:focus-visible .mob-screen {
  filter: saturate(1.55) brightness(1.1);
}
.showcase-frame:hover .t-chart,
.showcase-frame:focus-visible .t-chart {
  filter: brightness(1.5);
}

/* ── Intro animation gating ────────────────────────────────────────────
   Each miniature's intro animation runs only once its frame scrolls into
   view (scroll-reveal.js adds .playing) and replays whenever the frame is
   hovered / focused (JS re-toggles .playing). Until .playing is set the
   animations are removed, so each element holds its start state. */
.showcase-frame:not(.playing) .scan-line,
.showcase-frame:not(.playing) .t-line,
.showcase-frame:not(.playing) .r-name,
.showcase-frame:not(.playing) .mini-shps .wblock,
.showcase-frame:not(.playing) .mini-shps-mobile .wblock,
.showcase-frame:not(.playing) .s-badge {
  animation: none;
}

/* ============================================================
   MINIATURE 1 — Interactive Portfolio Tracker (R Shiny dashboard)
   Dashboard wireframe with a self-drawing CSS/SVG line chart.
   ============================================================ */
.mini-tracker {
  gap: 9px;
}
.t-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 14px;
  flex-shrink: 0;
}
.t-burger {
  width: 15px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.75;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0    / 100% 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 50%  / 100% 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 100% 2px no-repeat;
}
.t-titlebar {
  height: 7px;
  width: 44%;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.55), rgba(0, 212, 255, 0.1));
}
.t-plot {
  position: relative;
  flex: 1;
  min-height: 0;
}
.t-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.t-grid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}
.t-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: t-draw 2.6s ease-out both;
}
.t-line-1 { stroke: var(--secondary); filter: drop-shadow(0 0 3px var(--secondary-glow)); animation-delay: 0s;    }
.t-line-2 { stroke: var(--primary);   filter: drop-shadow(0 0 3px var(--primary-glow));   animation-delay: 0.45s; }
.t-line-3 { stroke: var(--accent);    filter: drop-shadow(0 0 3px var(--accent-glow));    animation-delay: 0.9s;  }
/* One-shot draw-in (was a 7.5s infinite loop). Animating stroke-dashoffset
   repaints the filtered path every frame, so it now draws once and holds. */
@keyframes t-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  12%  { opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}
.t-legend {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.t-leg {
  width: 32px;
  height: 5px;
  border-radius: 2px;
  transform-origin: left center;
  /* Sequential live-data tick — the three chips fill and empty in turn,
     like a dashboard feed updating after the one-shot chart draw settles.
     transform (scaleX) + opacity only, so it stays GPU-composited. */
  animation: t-leg-tick 1.8s ease-in-out infinite;
}
.t-leg-1 { background: linear-gradient(90deg, var(--secondary), transparent); animation-delay: 0s;   }
.t-leg-2 { background: linear-gradient(90deg, var(--primary), transparent);   animation-delay: 0.6s; }
.t-leg-3 { background: linear-gradient(90deg, var(--accent), transparent);    animation-delay: 1.2s; }
@keyframes t-leg-tick {
  0%, 100% { opacity: 0.12; transform: scaleX(0.5); }
  50%      { opacity: 1;    transform: scaleX(1); }
}

/* ============================================================
   MINIATURE 1 MOBILE — Interactive Portfolio Tracker
   ============================================================ */
.mini-tracker-mobile {
  gap: 8px;
}
.tm-top {
  display: flex;
  align-items: center;
  height: 14px;
  flex-shrink: 0;
}
.tm-burger {
  width: 15px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.75;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0    / 100% 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 50%  / 100% 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 0 100% / 100% 2px no-repeat;
}
.tm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}
.tm-pill {
  height: 8px;
  width: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.05));
}
.tm-pill.active {
  background: var(--primary);
  box-shadow: 0 0 4px var(--primary-glow);
}
.tm-plot {
  position: relative;
  flex: 1;
  min-height: 0;
}
.tm-brush {
  height: 16px;
  flex-shrink: 0;
  position: relative;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.tm-brush-chart {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, transparent 10%, rgba(0, 212, 255, 0.2) 20%, transparent 30%, rgba(0, 212, 255, 0.3) 50%, transparent 70%, rgba(0, 212, 255, 0.1) 80%, transparent 90%);
}
.tm-brush-window {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  width: 40%;
  background: rgba(0, 255, 136, 0.15);
  border-left: 1px solid rgba(0, 255, 136, 0.6);
  border-right: 1px solid rgba(0, 255, 136, 0.6);
}

/* ============================================================
   MINIATURE 2 — SHPS homepage (progressive-load wireframe)
   Blocks fade in sequentially to mimic progressive page loading.
   ============================================================ */
.mini-shps {
  gap: 6px;
}
.s-header {
  display: flex;
  align-items: center;
  height: 16px;
  flex-shrink: 0;
  padding: 0 5px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.28), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.28);
}
.s-logo {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.s-body {
  flex: 1;
  display: flex;
  gap: 6px;
  min-height: 0;
}
.s-nav {
  width: 22%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s-nav .wblock {
  height: 9px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.45), rgba(0, 212, 255, 0.07));
}
.s-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background:
    radial-gradient(70% 78% at 50% 42%, rgba(0, 255, 136, 0.18), transparent 72%),
    linear-gradient(155deg, rgba(124, 58, 237, 0.26), rgba(0, 212, 255, 0.12));
}
/* Abstract glowing shard standing in for the SHPS character artwork */
.s-figure {
  width: 30%;
  height: 76%;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.6), rgba(0, 212, 255, 0.16));
  clip-path: polygon(50% 0%, 68% 30%, 60% 100%, 40% 100%, 32% 30%);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.3);
  /* Pronounced breathing pulse — keeps the SHPS hero clearly alive once the
     progressive load settles. transform + opacity only, so the static
     box-shadow rides the composited layer instead of repainting per frame. */
  animation: s-figure-breathe 2.2s ease-in-out infinite;
}
@keyframes s-figure-breathe {
  0%, 100% { transform: scale(0.82); opacity: 0.45; }
  50%      { transform: scale(1.16); opacity: 1; }
}
.s-side {
  width: 27%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s-news-title {
  height: 9px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--cert), transparent);
}
.s-news-art {
  flex: 1;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background:
    repeating-linear-gradient(45deg, rgba(124, 58, 237, 0.2) 0 4px, transparent 4px 8px),
    rgba(255, 255, 255, 0.03);
}
.s-infobar {
  height: 12px;
  flex-shrink: 0;
  border-left: 2px solid var(--primary);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.32), rgba(0, 212, 255, 0.05));
}
.s-badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle at 38% 34%, #ff7d97, #d22b48);
  box-shadow: 0 0 9px rgba(255, 85, 119, 0.6);
}
/* Progressive load — opacity only, so hover transform stays unconflicted */
.mini-shps .wblock {
  opacity: 0;
  animation: s-load 0.55s ease forwards;
}
.s-badge {
  opacity: 0;
  animation: s-load 0.55s ease forwards;
  animation-delay: 1.15s;
}
.s-header                   { animation-delay: 0.05s; }
.s-nav .wblock:nth-child(1) { animation-delay: 0.2s;  }
.s-nav .wblock:nth-child(2) { animation-delay: 0.3s;  }
.s-nav .wblock:nth-child(3) { animation-delay: 0.4s;  }
.s-nav .wblock:nth-child(4) { animation-delay: 0.5s;  }
.s-hero                     { animation-delay: 0.58s; }
.s-news-title               { animation-delay: 0.78s; }
.s-news-art                 { animation-delay: 0.92s; }
.s-infobar                  { animation-delay: 1.05s; }
@keyframes s-load {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   MINIATURE 2 MOBILE — SHPS homepage
   ============================================================ */
.mini-shps-mobile {
  gap: 8px;
}
.sm-header {
  display: flex;
  align-items: center;
  height: 12px;
  flex-shrink: 0;
  padding: 0 2px;
}
.sm-logo {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.sm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sm-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background:
    radial-gradient(70% 78% at 50% 42%, rgba(0, 255, 136, 0.18), transparent 72%),
    linear-gradient(155deg, rgba(124, 58, 237, 0.26), rgba(0, 212, 255, 0.12));
}
.sm-figure {
  width: 35%;
  height: 60%;
}
.sm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 14px;
  flex-shrink: 0;
  padding: 0 4px;
  border-top: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
}
.sm-burger {
  width: 10px;
  height: 7px;
  opacity: 0.8;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0    / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 50%  / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
}
.sm-copy {
  height: 2px;
  width: 30px;
  background: rgba(255, 255, 255, 0.2);
}
/* Progressive load for SHPS mobile */
.mini-shps-mobile .wblock {
  opacity: 0;
  animation: s-load 0.55s ease forwards;
}
.sm-header        { animation-delay: 0.05s; }
.sm-hero          { animation-delay: 0.2s;  }
.sm-footer        { animation-delay: 0.4s;  }

/* ============================================================
   MINIATURE 3 — dz.shps.co.za résumé (typing-terminal wireframe)
   Header name "types out" beside a blinking terminal cursor;
   skill chips + a glowing mini timeline echo this very page.
   ============================================================ */
.mini-resume {
  gap: 7px;
  padding: 12px;
}
.r-head {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
  flex-shrink: 0;
}
.r-name {
  height: 10px;
  width: 8%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
  /* One-shot type-in (was infinite) — animating width reflows every step. */
  animation: r-type 2.2s steps(16) forwards;
}
@keyframes r-type {
  from { width: 8%; }
  to   { width: 66%; }
}
.r-cursor {
  width: 3px;
  height: 12px;
  flex-shrink: 0;
  background: var(--secondary);
  box-shadow: 0 0 6px var(--secondary-glow);
  animation: blink 1s step-end infinite;
}
.r-sub {
  height: 5px;
  width: 46%;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), transparent);
}

/* Skill chips — echo the résumé's skills section */
.r-chips {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.r-chips .wblock { height: 8px; border-radius: 99px; }
.r-chips .wblock:nth-child(1) { width: 30px; background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), rgba(0, 212, 255, 0.12)); }
.r-chips .wblock:nth-child(2) { width: 44px; background: linear-gradient(90deg, rgba(0, 255, 136, 0.5), rgba(0, 255, 136, 0.12)); }
.r-chips .wblock:nth-child(3) { width: 24px; background: linear-gradient(90deg, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0.12)); }

/* Mini timeline */
.r-timeline {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-left: 4px;
}
.r-axis {
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--secondary), var(--primary), var(--accent));
  opacity: 0.7;
}
.r-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.r-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-left: -1px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 6px var(--primary-glow);
  animation: r-pulse 3s ease-in-out infinite;
}
.r-card {
  position: relative;
  flex: 1;
  height: 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-left: 2px solid var(--primary);
  border-radius: 0 3px 3px 0;
  background: linear-gradient(100deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.02));
}
.r-card::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 44%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.r-card::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 72%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
}
/* First row reads as the "current" entry — green accent, larger dot */
.r-timeline > .r-row:first-of-type .r-card {
  border-left-color: var(--secondary);
  background: linear-gradient(100deg, rgba(0, 255, 136, 0.14), rgba(0, 255, 136, 0.03));
}
.r-timeline > .r-row:first-of-type .r-card::before {
  background: linear-gradient(90deg, var(--secondary), transparent);
}
.r-timeline > .r-row:first-of-type .r-dot {
  width: 11px;
  height: 11px;
  background: var(--secondary);
  box-shadow: 0 0 9px var(--secondary-glow);
}
.r-timeline > .r-row:nth-of-type(1) .r-dot { animation-delay: 0s;   }
.r-timeline > .r-row:nth-of-type(2) .r-dot { animation-delay: 0.8s; }
.r-timeline > .r-row:nth-of-type(3) .r-dot { animation-delay: 1.6s; }
/* Composited scale pulse — was an animated box-shadow (repaint every frame). */
@keyframes r-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.22); }
}

/* Mini timeline 2-column (Desktop) */
.r-timeline-2col {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.r-axis-2col {
  position: absolute;
  left: 28%;
  transform: translateX(-50%);
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--secondary), var(--primary), var(--accent));
  opacity: 0.7;
}
.r-row-left, .r-row-right {
  display: flex;
  align-items: center;
  position: relative;
}
.r-row-left {
  width: 28%;
  align-self: flex-start;
  justify-content: flex-end;
  padding-right: 10px;
}
.r-row-right {
  width: 72%;
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 10px;
}
.r-dot-2col {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 6px var(--primary-glow);
  animation: r-pulse 3s ease-in-out infinite;
  z-index: 2;
}
.r-row-left .r-dot-2col {
  right: -5px;
}
.r-row-right .r-dot-2col {
  left: -5px;
}
.r-row-left .r-card {
  border-left: 1px solid rgba(0, 212, 255, 0.2);
  border-right: 2px solid var(--primary);
  border-radius: 3px 0 0 3px;
  background: linear-gradient(-100deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.02));
}
.r-row-left .r-card::before {
  left: auto;
  right: 7px;
  background: linear-gradient(270deg, var(--primary), transparent);
}
.r-row-left .r-card::after {
  left: auto;
  right: 7px;
}

/* First row is 'current' */
.r-timeline-2col > div:nth-of-type(1) .r-card {
  border-right-color: var(--secondary);
  background: linear-gradient(-100deg, rgba(0, 255, 136, 0.14), rgba(0, 255, 136, 0.03));
}
.r-timeline-2col > div:nth-of-type(1) .r-card::before {
  background: linear-gradient(270deg, var(--secondary), transparent);
}
.r-timeline-2col > div:nth-of-type(1) .r-dot-2col {
  width: 11px;
  height: 11px;
  background: var(--secondary);
  box-shadow: 0 0 9px var(--secondary-glow);
  right: -6px;
}

.r-timeline-2col > div:nth-of-type(1) .r-dot-2col { animation-delay: 0s;   }
.r-timeline-2col > div:nth-of-type(2) .r-dot-2col { animation-delay: 0.8s; }
.r-timeline-2col > div:nth-of-type(3) .r-dot-2col { animation-delay: 1.6s; }

/* ============================================================
   MINIATURE 3 MOBILE — dz.shps.co.za résumé
   ============================================================ */
.mini-resume-mobile {
  gap: 8px;
  padding: 14px;
}
.rm-head {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
  flex-shrink: 0;
}
.rm-sub {
  height: 5px;
  width: 60%;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), transparent);
}
.rm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}
.rm-chips .wblock { height: 8px; border-radius: 99px; }
.rm-chips .wblock:nth-child(1) { width: 36px; background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), rgba(0, 212, 255, 0.12)); }
.rm-chips .wblock:nth-child(2) { width: 44px; background: linear-gradient(90deg, rgba(0, 255, 136, 0.5), rgba(0, 255, 136, 0.12)); }
.rm-chips .wblock:nth-child(3) { width: 50px; background: linear-gradient(90deg, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0.12)); }
.rm-chips .wblock:nth-child(4) { width: 28px; background: linear-gradient(90deg, rgba(255, 85, 119, 0.5), rgba(255, 85, 119, 0.12)); }

/* ── Reduced motion: freeze every animation at a sensible end-state ── */
@media (prefers-reduced-motion: reduce) {
  .scan-line {
    animation: none;
    opacity: 0;
  }
  .t-line {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .mini-shps .wblock,
  .mini-shps-mobile .wblock,
  .s-badge {
    animation: none;
    opacity: 1;
  }
  .r-name {
    animation: none;
    width: 70%;
  }
  .r-cursor,
  .r-dot,
  .r-dot-2col,
  .t-leg,
  .s-figure {
    animation: none;
  }
  .mac-window,
  .mob-window,
  .wblock {
    transition: none;
  }
}
