/* dash-animations.css - journey milestone motion (production) */
.dash-motion-page {
  --motion-blue: var(--color-brand-blue, #1078be);
  --motion-green: var(--color-brand-green, #27b577);
  --motion-teal: var(--color-brand-teal, #5cc3dd);
  --motion-purple: var(--color-brand-purple, #6b4b9e);
  --motion-gold: #f5c842;
  --motion-text: var(--color-text-primary, #2f546a);
  --motion-muted: var(--color-text-muted, #8aacbf);
  --motion-border: var(--color-card-border, rgba(16,120,190,0.12));
  --motion-card: var(--color-card-bg);
  --motion-r: var(--radius-card, 18px);
  /* Aliases used by ported inline styles from animation-demo.html */
  --blue: var(--motion-blue);
  --green: var(--motion-green);
  --teal: var(--motion-teal);
  --purple: var(--motion-purple);
  --gold: var(--motion-gold);
  --text: var(--motion-text);
  --muted: var(--motion-muted);
  --border: var(--motion-border);
  --card: var(--motion-card);
  --r: var(--motion-r);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dash-motion-page .page-title { text-align: center; }
.dash-motion-page .page-title h1 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--motion-blue);
}

.dash-motion-page .page-title h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--motion-text);
  margin-top: 6px;
  margin-bottom: 10px;
}

.dash-motion-page .page-title p {
      font-size: 14px; color: #4a7a95; max-width: 520px; line-height: 1.7;
    }

    /* â”€â”€ Section headers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  .dash-motion-page .section { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
  .dash-motion-page .section-label {
      display: flex; align-items: center; gap: 12px;
    }
  .dash-motion-page .section-label__num {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-title); font-size: 12px; font-weight: 800;
      color: #fff;
    }
  .dash-motion-page .section-label__num--1 { background: var(--motion-blue); }
  .dash-motion-page .section-label__num--2 { background: linear-gradient(135deg, var(--motion-purple), var(--motion-teal)); }
  .dash-motion-page .section-label__title {
      font-family: var(--font-title); font-size: 16px; font-weight: 700; color: var(--motion-text);
    }
  .dash-motion-page .section-label__sub { font-size: 12.5px; color: #4a7a95; margin-top: 2px; }

  .dash-motion-page .divider { width: 100%; max-width: 820px; height: 0.5px; background: var(--motion-border); }

    /* â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  .dash-motion-page .card {
      background: var(--motion-card); border: 0.5px solid var(--motion-border);
      border-radius: var(--motion-r); box-shadow: var(--shadow-card);
      padding: 28px 32px; position: relative; overflow: hidden;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       ANIMATION 1 â€” PATH PULSE
       Small task completion: connector travels,
       node ripples, check mark pops in.
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    /* Trail layout */
  .dash-motion-page .trail { display: flex; align-items: flex-start; gap: 0; position: relative; }
  .dash-motion-page .stage { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }

    /* Connector track */
  .dash-motion-page .connector-wrap {
      position: absolute; top: 17px; left: 50%; right: -50%;
      height: 3px; overflow: hidden; z-index: 0;
    }
  .dash-motion-page .stage:last-child .connector-wrap { display: none; }
  .dash-motion-page .connector-track {
      width: 100%; height: 100%;
      background: var(--motion-border);
      border-radius: 2px;
      position: relative;
    }
    /* The travelling fill */
  .dash-motion-page .connector-fill {
      position: absolute; inset: 0;
      border-radius: 2px;
      transform: scaleX(0);
      transform-origin: left;
    }
  .dash-motion-page .connector-fill--green { background: var(--motion-green); }
  .dash-motion-page .connector-fill--blue  { background: linear-gradient(90deg, var(--motion-blue), rgba(16,120,190,0.3)); }

    /* Travelling dot */
  .dash-motion-page .connector-dot {
      position: absolute; top: 50%; right: -5px;
      width: 10px; height: 10px; border-radius: 50%;
      transform: translateY(-50%) scale(0);
      opacity: 0;
    }
  .dash-motion-page .connector-dot--green { background: var(--motion-green); }
  .dash-motion-page .connector-dot--blue  { background: var(--motion-blue); }

    /* Node */
  .dash-motion-page .node {
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative; z-index: 1; flex-shrink: 0;
    }
  .dash-motion-page .node--done {
      background: var(--motion-green);
      box-shadow: 0 0 0 4px rgba(39,181,119,0.15);
    }
  .dash-motion-page .node--active {
      background: var(--motion-blue);
      box-shadow: 0 0 0 5px rgba(16,120,190,0.18), 0 0 0 9px rgba(16,120,190,0.06);
    }
  .dash-motion-page .node--todo {
      background: var(--motion-card);
      border: 2px solid var(--motion-border);
    }
    /* Ripple rings that expand out */
  .dash-motion-page .node-ripple {
      position: absolute; inset: -4px; border-radius: 50%;
      border: 2px solid var(--motion-green);
      opacity: 0; pointer-events: none;
    }

    /* Check icon that pops in */
  .dash-motion-page .node-check {
      opacity: 0; transform: scale(0.4);
      transition: none;
    }

  .dash-motion-page .stage__label {
      margin-top: 10px; text-align: center;
      font-family: var(--font-body); font-size: 12px; font-weight: 700;
      color: var(--motion-text); line-height: 1.3;
    }
  .dash-motion-page .stage__label--muted { color: var(--motion-muted); font-weight: 400; }
  .dash-motion-page .stage__pct {
      margin-top: 4px; font-family: var(--font-title);
      font-size: 14px; font-weight: 700; text-align: center;
    }
  .dash-motion-page .stage__pct--green { color: var(--motion-green); }
  .dash-motion-page .stage__pct--blue  { color: var(--motion-blue); }
  .dash-motion-page .stage__pct--muted { color: var(--motion-muted); }

  .dash-motion-page .trigger-row { display: flex; gap: 12px; flex-wrap: wrap; }
  .dash-motion-page .trigger-btn {
      padding: 9px 20px; border-radius: 22px; border: none; cursor: pointer;
      font-family: var(--font-body); font-size: 13px; font-weight: 700;
      transition: opacity 0.15s, transform 0.15s;
    }
  .dash-motion-page .trigger-btn:hover { opacity: 0.85; transform: translateY(-1px); }
  .dash-motion-page .trigger-btn--blue  { background: var(--motion-blue);  color: #fff; }
  .dash-motion-page .trigger-btn--green { background: var(--motion-green); color: #fff; }
  .dash-motion-page .trigger-btn--ghost { background: none; color: var(--motion-blue); border: 1.5px solid var(--motion-border); }

  .dash-motion-page .caption {
      font-size: 12px; color: var(--motion-muted); line-height: 1.6; margin-top: 4px;
    }


    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       ANIMATION 2 â€” SUMMIT FLASH
       Stage complete: landscape rises, flag plants,
       light rays fan out, card glows.
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

  .dash-motion-page .summit-card {
      background: var(--motion-card); border: 0.5px solid var(--motion-border);
      border-radius: var(--motion-r); box-shadow: var(--shadow-card);
      position: relative; overflow: hidden;
      min-height: 320px;
    }

    /* Base landscape â€” always visible */
  .dash-motion-page .summit-landscape {
      position: absolute; bottom: 0; left: 0; right: 0;
      height: 180px; pointer-events: none;
    }

    /* Sky overlay that tints to gold on trigger */
  .dash-motion-page .summit-sky {
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
      pointer-events: none; z-index: 1;
      transition: none;
    }

    /* Sun burst rays */
  .dash-motion-page .summit-rays {
      position: absolute; bottom: 60px; left: 50%;
      transform: translateX(-50%);
      width: 400px; height: 400px;
      pointer-events: none; z-index: 2;
      opacity: 0;
    }

    /* Glow ring */
  .dash-motion-page .summit-glow {
      position: absolute; bottom: 52px; left: 50%;
      transform: translateX(-50%);
      width: 80px; height: 80px; border-radius: 50%;
      background: radial-gradient(circle, rgba(245,200,66,0.55) 0%, rgba(245,200,66,0) 70%);
      pointer-events: none; z-index: 3;
      opacity: 0; transform: translateX(-50%) scale(0.5);
    }

    /* Flag + pole */
  .dash-motion-page .summit-flag-wrap {
      position: absolute; bottom: 78px; left: 50%;
      transform: translateX(-50%);
      z-index: 4; pointer-events: none;
      opacity: 0; transform: translateX(-50%) translateY(30px);
    }

    /* Card content (sits above everything) */
  .dash-motion-page .summit-content {
      position: relative; z-index: 5;
      padding: 32px 36px 200px;
    }
  .dash-motion-page .summit-eyebrow {
      font-family: var(--font-title); font-size: 9px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.16em; color: var(--motion-green);
      margin-bottom: 8px;
    }
  .dash-motion-page .summit-title {
      font-family: var(--font-title); font-size: 22px; font-weight: 800;
      color: var(--motion-text); margin-bottom: 6px;
    }
  .dash-motion-page .summit-sub {
      font-size: 13px; color: #4a7a95; line-height: 1.6; max-width: 420px;
    }

    /* Completion badge that slides in */
  .dash-motion-page .summit-badge {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 18px; border-radius: 22px;
      background: rgba(39,181,119,0.12); border: 1.5px solid rgba(39,181,119,0.30);
      font-family: var(--font-title); font-size: 12px; font-weight: 700; color: #1a8a55;
      margin-top: 16px;
      opacity: 0; transform: translateY(8px);
    }

    /* Border glow on card */
  .dash-motion-page .summit-card { transition: box-shadow 0.6s ease, border-color 0.6s ease; }
  .dash-motion-page .summit-card.stage-complete {
      box-shadow: 0 0 0 2px rgba(39,181,119,0.40), 0 8px 40px rgba(39,181,119,0.15);
      border-color: rgba(39,181,119,0.35);
    }

    /* â”€â”€ Keyframes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

    /* Path pulse: connector travel */
    @keyframes connectorTravel {
      0%   { transform: scaleX(0); }
      100% { transform: scaleX(1); }
    }
    /* Dot ride along the connector */
    @keyframes dotRide {
      0%   { right: 100%; opacity: 1; transform: translateY(-50%) scale(1); }
      90%  { right: -5px;  opacity: 1; transform: translateY(-50%) scale(1); }
      100% { right: -5px;  opacity: 0; transform: translateY(-50%) scale(0); }
    }
    /* Node pop */
    @keyframes nodePop {
      0%   { transform: scale(1); }
      40%  { transform: scale(1.28); }
      65%  { transform: scale(0.92); }
      100% { transform: scale(1); }
    }
    /* Check appear */
    @keyframes checkIn {
      0%   { opacity: 0; transform: scale(0.3) rotate(-20deg); }
      60%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
      100% { opacity: 1; transform: scale(1) rotate(0deg); }
    }
    /* Ripple ring */
    @keyframes rippleOut {
      0%   { transform: scale(1); opacity: 0.7; }
      100% { transform: scale(2.4); opacity: 0; }
    }
    /* Counter bump */
    @keyframes pctBump {
      0%   { transform: scale(1); }
      50%  { transform: scale(1.25); }
      100% { transform: scale(1); }
    }

    /* Summit: rays fan */
    @keyframes raysFan {
      0%   { opacity: 0; transform: translateX(-50%) scale(0.4) rotate(0deg); }
      30%  { opacity: 0.85; }
      70%  { opacity: 0.6; transform: translateX(-50%) scale(1.2) rotate(12deg); }
      100% { opacity: 0; transform: translateX(-50%) scale(1.5) rotate(18deg); }
    }
    /* Glow pulse */
    @keyframes glowPulse {
      0%   { opacity: 0; transform: translateX(-50%) scale(0.3); }
      40%  { opacity: 1;  transform: translateX(-50%) scale(1.2); }
      70%  { opacity: 0.7; transform: translateX(-50%) scale(1); }
      100% { opacity: 0;  transform: translateX(-50%) scale(1.5); }
    }
    /* Flag plant */
    @keyframes flagPlant {
      0%   { opacity: 0; transform: translateX(-50%) translateY(40px) scale(0.7); }
      60%  { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1.05); }
      80%  { transform: translateX(-50%) translateY(3px) scale(0.97); }
      100% { opacity: 1; transform: translateX(-50%) translateY(0px) scale(1); }
    }
    /* Hills rise */
    @keyframes hillsRise {
      0%   { transform: translateY(0); }
      50%  { transform: translateY(-12px); }
      100% { transform: translateY(-6px); }
    }
    /* Badge slide in */
    @keyframes badgeIn {
      0%   { opacity: 0; transform: translateY(12px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    /* Sky warm */
    @keyframes skyWarm {
      0%   { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%); }
      30%  { background: linear-gradient(180deg, rgba(255,218,80,0.18) 0%, rgba(255,200,60,0.08) 60%, rgba(255,255,255,0) 100%); }
      70%  { background: linear-gradient(180deg, rgba(255,218,80,0.10) 0%, rgba(255,200,60,0.04) 60%, rgba(255,255,255,0) 100%); }
      100% { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%); }
    }

    /* â”€â”€ Active classes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  .dash-motion-page .animate-connector .connector-fill {
      animation: connectorTravel 0.55s cubic-bezier(0.4,0,0.2,1) forwards;
    }
  .dash-motion-page .animate-connector .connector-dot {
      animation: dotRide 0.55s cubic-bezier(0.4,0,0.2,1) forwards;
      transform: translateY(-50%) scale(1); opacity: 1;
    }
  .dash-motion-page .animate-node { animation: nodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
  .dash-motion-page .animate-check { animation: checkIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; }
  .dash-motion-page .animate-ripple { animation: rippleOut 0.7s ease-out forwards; }
  .dash-motion-page .animate-pct    { animation: pctBump 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }

  .dash-motion-page .summit-fire .summit-sky   { animation: skyWarm  2.2s ease-out forwards; }
  .dash-motion-page .summit-fire .summit-rays  { animation: raysFan  2.0s ease-out forwards; }
  .dash-motion-page .summit-fire .summit-glow  { animation: glowPulse 1.6s ease-out forwards; }
  .dash-motion-page .summit-fire .summit-flag-wrap { animation: flagPlant 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.4s forwards; }
  .dash-motion-page .summit-fire .summit-hills { animation: hillsRise 1.2s cubic-bezier(0.34,1.56,0.64,1) forwards; }
  .dash-motion-page .summit-fire .summit-badge { animation: badgeIn 0.5s ease-out 1.0s forwards; }


    /* Toast animations */
    #dashToast.toast--in {
      animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
      pointer-events: all;
    }
    #dashToast.toast--out {
      animation: toastOut 0.35s ease-in forwards;
      pointer-events: none;
    }
    @keyframes toastIn {
      from { opacity:0; transform:translateX(-50%) translateY(20px) scale(0.94); }
      to   { opacity:1; transform:translateX(-50%) translateY(0)     scale(1); }
    }
    @keyframes toastOut {
      from { opacity:1; transform:translateX(-50%) translateY(0)     scale(1); }
      to   { opacity:0; transform:translateX(-50%) translateY(14px)  scale(0.96); }
    }

    /* Cinematic overlay */
    #cinematicOverlay.overlay--open {
      opacity:1 !important; visibility:visible !important; pointer-events:all !important;
    }
    #cinematicOverlay.overlay--closing {
      opacity:0 !important; visibility:hidden !important; pointer-events:none !important;
    }
    #cinematicCard {
      animation: cardRise 0.6s cubic-bezier(0.34,1.46,0.64,1) 0.15s both;
    }
    @keyframes cardRise {
      from { opacity:0; transform:translateY(32px) scale(0.94); }
      to   { opacity:1; transform:translateY(0)     scale(1); }
    }

    /* ── Loading banner (boat / sea / clouds) ───────── */
    #hikerWalkOverlay {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9200;
      height: auto;
      max-height: min(42vh, 320px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s cubic-bezier(0.34,1.4,0.64,1);
      transform: translateY(100%);
      pointer-events: none;
      overflow: hidden;
      /* Transparent SVG sky blends into page blue */
      background: var(--color-page-bg, #eaf4fb);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    #hikerWalkOverlay.hw--open {
      opacity:1 !important; visibility:visible !important; pointer-events:all !important;
      transform: translateY(0%) !important;
    }
    #hikerWalkOverlay.hw--closing {
      opacity:0 !important; visibility:hidden !important;
      transform: translateY(100%) !important;
      transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease !important;
    }
    #hikerWalkScrim {
      position: fixed;
      inset: 0;
      z-index: 10080;
      background: color-mix(in srgb, var(--color-text-primary, #0d2d45) 55%, transparent);
      /* No backdrop-filter — blur + animated SVG forces full-app recomposite every frame */
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    #hikerWalkScrim.hw-scrim--open {
      opacity: 1;
      visibility: visible;
      pointer-events: all;
    }
    /* PDF / PowerPoint wait: message above, scene pinned to bottom (Design Studio loading) */
    #hikerWalkOverlay.hw--blocking {
      z-index: 10090 !important;
      top: 0;
      bottom: 0;
      height: 100%;
      max-height: none;
      justify-content: center;
      align-items: center;
      padding: 0 24px 0;
      box-sizing: border-box;
      transform: none !important;
      transition: opacity 0.45s ease, visibility 0.45s ease !important;
    }
    /* Report export: keep sidebar + sticky topbar visible — veil the content column only */
    #hikerWalkOverlay.hw--blocking.hw--over-shell {
      left: var(--sidebar-width, 220px);
      top: var(--topbar-height, 56px);
      height: auto;
      z-index: 45 !important;
    }
    body:has(.pinnacle-sidebar--collapsed) #hikerWalkOverlay.hw--blocking.hw--over-shell,
    body:has(.dash-sidebar--collapsed) #hikerWalkOverlay.hw--blocking.hw--over-shell {
      left: var(--sidebar-collapsed-width, 56px);
    }
    @media (max-width: 900px) {
      #hikerWalkOverlay.hw--blocking.hw--over-shell {
        left: 0;
      }
    }
    #hikerWalkOverlay.hw--blocking.hw--closing {
      transform: none !important;
    }
    #hikerWalkOverlay.hw--blocking .dash-hiker-walk__pill {
      position: relative;
      top: auto;
      right: auto;
      margin: 0 auto;
      max-width: min(420px, 100%);
      z-index: 2;
    }
    #hikerWalkOverlay.hw--blocking .dash-hiker-walk__scene {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
    }
    .dash-hiker-walk__pill {
      position: absolute;
      top: 18px;
      right: 32px;
      z-index: 2;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 40px;
      padding: 12px 22px 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 8px 32px rgba(16, 120, 190, 0.16), 0 2px 8px rgba(0, 0, 0, 0.05);
      border: 0.5px solid rgba(16, 120, 190, 0.22);
      font-family: 'Lato', sans-serif;
    }
    .dash-hiker-walk__title {
      font-family: 'Montserrat', sans-serif;
      font-size: 13px;
      font-weight: 800;
      color: #0d2d45;
    }
    .dash-hiker-walk__subtitle {
      font-size: 11.5px;
      color: #4a7a95;
      margin-top: 1px;
    }
    .dash-hiker-walk__scene {
      position: relative;
      width: 100%;
      flex-shrink: 0;
      contain: layout paint style;
      isolation: isolate;
      transform: translateZ(0);
    }
    .dash-hiker-walk__loading {
      width: 100%;
      max-width: 1440px;
      margin: 0 auto;
      display: block;
    }
    .dash-hiker-walk__art {
      width: 100%;
      height: auto;
      display: block;
      transform: translateZ(0);
      backface-visibility: hidden;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
    }
    /* Compositor-only drift while the SVG is frozen for capture — keeps motion without SMIL cost. */
    #hikerWalkOverlay.hw--blocking .dash-hiker-walk__art {
      animation: hwSceneDrift 16s ease-in-out infinite alternate;
      will-change: transform;
    }
    @keyframes hwSceneDrift {
      from { transform: translate3d(0, 0, 0) scale(1.03); }
      to { transform: translate3d(-2%, 0, 0) scale(1.07); }
    }
    @media (prefers-reduced-motion: reduce) {
      #hikerWalkOverlay.hw--blocking .dash-hiker-walk__art {
        animation: none;
        transform: translateZ(0);
      }
    }
    #hikerWalkOverlay.hw--blocking .dash-hiker-walk__loading {
      /* Full-bleed band, but cap width so ultrawide monitors do not rasterise a 3k-px SVG */
      max-width: min(100%, 1680px);
    }
    #hikerWalkOverlay.hw--blocking.hw--over-shell .dash-hiker-walk__loading {
      max-width: min(100%, 1440px);
    }
    .hw-pill-icon {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      flex-shrink: 0;
      background: linear-gradient(135deg, #27b577, #5cc3dd);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hw-pill-spinner {
      display: none;
      width: 14px;
      height: 14px;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: #fff;
      border-radius: 50%;
      animation: hwPillSpin 0.7s linear infinite;
    }
    #hikerWalkOverlay.hw--blocking .hw-pill-check { display: none; }
    #hikerWalkOverlay.hw--blocking .hw-pill-spinner { display: block; }
    @keyframes hwPillSpin {
      to { transform: rotate(360deg); }
    }
    .dash-hiker-walk__copy {
      min-width: 0;
    }
    .dash-hiker-walk__cancel {
      flex-shrink: 0;
      margin-left: 4px;
      border: 1px solid rgba(16, 120, 190, 0.28);
      background: #fff;
      color: #0d2d45;
      font-family: 'Lato', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
      border-radius: 999px;
      padding: 6px 12px;
      cursor: pointer;
    }
    .dash-hiker-walk__cancel:hover {
      background: #e8f8f0;
    }
    .dash-hiker-walk__cancel:focus-visible {
      outline: 2px solid #1078be;
      outline-offset: 2px;
    }
    .dash-hiker-walk__cancel:disabled {
      opacity: 0.65;
      cursor: wait;
    }
    /* Landing → Pinnacle: sit in the content column so the sidebar stays visible */
    #hikerWalkOverlay.hw--over-shell {
      left: var(--sidebar-width, 220px);
      z-index: 40;
    }
    #hikerWalkOverlay.hw--over-shell.hw--open:not(.hw--blocking) {
      pointer-events: none !important;
    }
    #hikerWalkOverlay.hw--blocking.hw--over-shell.hw--open {
      pointer-events: all !important;
    }
    body:has(.pinnacle-sidebar--collapsed) #hikerWalkOverlay.hw--over-shell,
    body:has(.dash-sidebar--collapsed) #hikerWalkOverlay.hw--over-shell {
      left: var(--sidebar-collapsed-width, 56px);
    }
    @media (max-width: 900px) {
      #hikerWalkOverlay.hw--over-shell {
        left: 0;
      }
    }
    #hikerWalkOverlay.hw--quiet #hikerWalkPill {
      display: none !important;
    }

    /* â”€â”€ Hiker summit overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    #hikerSummitOverlay.hs--open {
      opacity:1 !important; visibility:visible !important; pointer-events:all !important;
    }
    #hikerSummitOverlay.hs--closing {
      opacity:0 !important; visibility:hidden !important; pointer-events:none !important;
    }

    /* Stars twinkle */
    @keyframes starTwinkle {
      0%,100% { opacity:0.85; }
      50%      { opacity:0.35; }
    }
    #starsLayer { animation: starTwinkle 3s ease-in-out infinite; }

    /* Hiker rises into frame */
    @keyframes hikerRise {
      from { transform:translateX(-50%) translateY(40px); opacity:0; }
      to   { transform:translateX(-50%) translateY(0px);  opacity:1; }
    }
    #hikerSummitFigure { animation: hikerRise 0.7s cubic-bezier(0.34,1.4,0.64,1) 0.3s both; }

    /* Flagpole plants downward */
    @keyframes polePlant {
      0%   { transform: scaleY(0); transform-origin: bottom; }
      100% { transform: scaleY(1); transform-origin: bottom; }
    }
  .dash-motion-page .hs-flagpole { animation: polePlant 0.45s cubic-bezier(0.34,1.56,0.64,1) 0.9s both; }

    /* Flag unfurls */
    @keyframes flagUnfurl {
      0%   { transform: scaleX(0); opacity:0; }
      60%  { transform: scaleX(1.1); opacity:1; }
      100% { transform: scaleX(1); opacity:1; }
    }
  .dash-motion-page .hs-flag { animation: flagUnfurl 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.2s both; }

    /* Flag wave */
    @keyframes flagWave {
      0%,100% { transform: scaleX(1) skewY(0deg); }
      50%      { transform: scaleX(0.96) skewY(2deg); }
    }
  .dash-motion-page .hs-flag.hs-flag--waving { animation: flagWave 1.8s ease-in-out infinite; }

    /* Card entrance */
    @keyframes summitCardIn {
      from { opacity:0; transform:translateY(28px) scale(0.95); }
      to   { opacity:1; transform:translateY(0)     scale(1); }
    }
    #hikerSummitCard { animation: summitCardIn 0.5s cubic-bezier(0.34,1.4,0.64,1) 0.2s both; }

    /* Aurora pulse */
    @keyframes auroraPulse {
      0%,100% { opacity:1; }
      50%      { opacity:0.55; }
    }

/* ── Landing → Pinnacle mapping handoff (#pinnacleEntryHandoff in App.razor) ── */
.pinnacle-entry-handoff {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.pinnacle-entry-handoff.is-open {
    display: flex;
}

.pinnacle-entry-handoff.is-open.is-over-shell {
    left: var(--sidebar-width, 220px);
    top: 0;
    /* Content column only: leave reporting header + hub title clear. */
    align-items: center;
    justify-content: center;
    padding-top: 0;
    /* Sit below typical disclosure chrome (context bar + breadcrumb + title). */
    clip-path: inset(11.5rem 0 0 0);
}

body:has(.pinnacle-sidebar--collapsed) .pinnacle-entry-handoff.is-open.is-over-shell,
body:has(.dash-sidebar--collapsed) .pinnacle-entry-handoff.is-open.is-over-shell {
    left: var(--sidebar-collapsed-width, 56px);
}

@media (max-width: 900px) {
    .pinnacle-entry-handoff.is-open.is-over-shell {
        left: 0;
    }
}

.pinnacle-entry-handoff__loader {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 20px 22px;
    border-radius: 18px;
    background: var(--color-card-bg);
    border: 0.5px solid var(--color-card-border, rgba(16, 120, 190, 0.12));
    box-shadow:
        0 4px 24px rgba(16, 120, 190, 0.08),
        0 1px 4px rgba(16, 120, 190, 0.04);
}

.pinnacle-entry-handoff__crop {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    z-index: 2;
    transform-origin: bottom center;
    animation: pinnacle-entry-handoff-sway 1.8s ease-in-out infinite;
}

.pinnacle-entry-handoff__figure {
    position: absolute !important;
    display: block !important;
    width: 288.9px !important;
    height: 162.6px !important;
    max-width: none !important;
    max-height: none !important;
    left: -58.6px;
    top: -3.6px;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.pinnacle-entry-handoff__text {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-brand-blue);
    margin-top: 2px;
    display: flex;
    align-items: baseline;
    text-align: center;
}

.pinnacle-entry-handoff__dots span {
    opacity: 0;
    animation: pinnacle-entry-handoff-dot 1.4s ease-in-out infinite;
}

.pinnacle-entry-handoff__dots span:nth-child(1) { animation-delay: 0s; }
.pinnacle-entry-handoff__dots span:nth-child(2) { animation-delay: 0.2s; }
.pinnacle-entry-handoff__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pinnacle-entry-handoff-sway {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pinnacle-entry-handoff-dot {
    0%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* ── Production trail path pulse (DashJourneyStage / DashProcessPath) ── */
@keyframes dash-trail-connector-travel {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes dash-trail-dot-ride {
  0%   { right: 100%; opacity: 1; transform: translateY(-50%) scale(1); }
  90%  { right: -5px; opacity: 1; transform: translateY(-50%) scale(1); }
  100% { right: -5px; opacity: 0; transform: translateY(-50%) scale(0.6); }
}

@keyframes dash-trail-node-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.28); }
  65%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes dash-trail-check-in {
  0%   { opacity: 0; transform: scale(0.3) rotate(-20deg); }
  60%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes dash-trail-ripple-out {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes dash-trail-pct-bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.dash-trail-connector.animate-connector .dash-trail-connector__fill {
  animation: dash-trail-connector-travel 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: var(--color-brand-green, #27b577);
}

.dash-trail-connector.animate-connector .dash-trail-connector__dot {
  animation: dash-trail-dot-ride 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: var(--color-brand-green, #27b577);
}

.dash-trail-node.animate-node {
  animation: dash-trail-node-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dash-trail-node.animate-node.dash-journey-stage__node--done,
.dash-trail-node.animate-node.dash-process-path__node--done {
  background: var(--color-brand-green, #27b577);
  border: none;
  box-shadow: 0 0 0 4px rgba(39, 181, 119, 0.15);
}

.dash-trail-node__check.animate-check {
  animation: dash-trail-check-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: static;
}

.dash-trail-node__ripple.animate-ripple {
  animation: dash-trail-ripple-out 0.7s ease-out forwards;
}

[data-dash-trail-pct].animate-pct {
  animation: dash-trail-pct-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  color: var(--color-brand-green, #27b577);
}

@media (prefers-reduced-motion: reduce) {
  .dash-motion-page .animate-connector .connector-fill,
  .dash-motion-page .animate-connector .connector-dot,
  .dash-motion-page .animate-node, .dash-motion-page .animate-check,
  .dash-motion-page .animate-ripple, .dash-motion-page .animate-pct,
  .dash-motion-page .summit-fire .summit-sky, .dash-motion-page .summit-fire .summit-rays,
  .dash-motion-page .summit-fire .summit-glow, .dash-motion-page .summit-fire .summit-flag-wrap,
  .dash-motion-page .summit-fire .summit-hills, .dash-motion-page .summit-fire .summit-badge,
  #dashToast.toast--in, #dashToast.toast--out, #cinematicCard,
  #hikerWalkOverlay.hw--open, #hikerWalkOverlay.hw--blocking .dash-hiker-walk__art,
  #hikerSummitFigure, .hs-flagpole, .hs-flag, #hikerSummitCard, #starsLayer,
  #hikerWalkScrim, .hw-pill-spinner,
  .pinnacle-entry-handoff__crop, .pinnacle-entry-handoff__dots span,
  .dash-trail-connector.animate-connector .dash-trail-connector__fill,
  .dash-trail-connector.animate-connector .dash-trail-connector__dot,
  .dash-trail-node.animate-node,
  .dash-trail-node__check.animate-check,
  .dash-trail-node__ripple.animate-ripple,
  [data-dash-trail-pct].animate-pct {
    animation: none !important; transition: none !important;
  }

  .pinnacle-entry-handoff__dots span {
    opacity: 1;
  }

  .dash-summit-flash,
  .dash-summit-flash .summit-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Production summit flash: same card as the gallery, then it fades so work can continue. */
.dash-summit-flash {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 28, 40, 0.42);
  transition: opacity 0.65s ease;
}

.dash-summit-flash.is-fading {
  opacity: 0;
  pointer-events: none;
}

.dash-summit-flash .dash-motion-page {
  display: block;
  width: min(720px, 100%);
  gap: 0;
}

.dash-summit-flash .summit-card {
  min-height: 280px;
  background: var(--color-card-bg, #fff);
}

.dash-summit-flash:not(.is-settled) .summit-card {
  animation: dash-summit-card-in 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.dash-summit-flash.is-settled .summit-flag-wrap {
  opacity: 1;
  transform: translateX(-50%);
}

.dash-summit-flash.is-settled .summit-badge {
  opacity: 1;
  transform: none;
}

@keyframes dash-summit-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
