
:root {
  --bg: #0b0f14;
  --bg-elev-1: #121820;
  --bg-elev-2: #1a222c;
  --bg-elev-3: #232d39;
  --border: #2a3644;
  --border-soft: #1f2832;
  --text: #e7edf3;
  --text-soft: #a8b4c2;
  --text-dim: #6d7a89;
  --critical: #ff4d5e;
  --critical-bg: rgba(255, 77, 94, 0.12);
  --critical-border: rgba(255, 77, 94, 0.4);
  --high: #ff8a3d;
  --high-bg: rgba(255, 138, 61, 0.12);
  --high-border: rgba(255, 138, 61, 0.4);
  --medium: #ffc94d;
  --low: #4dd4a0;
  --low-bg: rgba(77, 212, 160, 0.1);
  --low-border: rgba(77, 212, 160, 0.3);
  --brand: #5b9dff;
  --brand-soft: rgba(91, 157, 255, 0.14);
  --gold: #f7931a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
}
.shell { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.site-name { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.site-name span { color: var(--text-dim); font-weight: 400; margin-inline-start: 6px; font-size: 14px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 4px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); }

h1.page-title { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.page-sub { color: var(--text-soft); font-size: 14px; margin: 0 0 24px; }

.day-entry {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
}
.day-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}
.day-date { font-weight: 700; font-size: 15px; color: var(--text-soft); font-family: 'JetBrains Mono', monospace; }
.day-score { font-weight: 800; font-size: 24px; font-family: 'JetBrains Mono', monospace; }
.day-change { font-weight: 700; font-size: 14px; margin-inline-start: 10px; font-family: 'JetBrains Mono', monospace; }
.day-summary { color: var(--text-soft); line-height: 1.7; margin: 0 0 14px; font-size: 14px; }

table.thr-table { width: 100%; border-collapse: collapse; }
table.thr-table th, table.thr-table td {
  text-align: right; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top;
}
table.thr-table th { color: var(--text-dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
table.thr-table td.score-cell { font-weight: 800; font-size: 16px; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.thr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }

.foot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.7;
}
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--text); }



.hourglass-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hourglass-svg { width: 100%; max-width: 280px; height: auto; display: block; }
.hourglass-stream {
  stroke-dasharray: 2, 5;
  animation: sandFall 0.55s linear infinite;
}
@keyframes sandFall {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -14; }
}
.sand-particle { animation: particleFall 0.9s linear infinite; }
.sand-particle.p2 { animation-delay: 0.3s; }
.sand-particle.p3 { animation-delay: 0.6s; }
@keyframes particleFall {
  0%   { transform: translateY(-6px); opacity: 0; }
  20%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
.sand-mound { animation: moundPulse 4s ease-in-out infinite; transform-origin: 110px 170px; }
@keyframes moundPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Headline + explainer */
.hero-headline {
  text-align: center;
  margin-bottom: 24px;
}
.hero-headline h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--high));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-headline p {
  margin: 0;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-soft);
  max-width: 640px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  line-height: 1.6;
}

.explainer-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}
.explainer-card strong { color: var(--text); }
.explainer-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.explainer-pill {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  border-inline-start: 3px solid;
}
.explainer-pill .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  margin-inline-end: 8px;
}
.explainer-pill.zero { border-color: #4dd4a0; }
.explainer-pill.zero .num { color: #4dd4a0; }
.explainer-pill.hundred { border-color: #ff4d5e; }
.explainer-pill.hundred .num { color: #ff4d5e; }

@media (max-width: 720px) {
  .hero-headline h1 { font-size: 30px; }
}
@media (max-width: 720px) {
  .hero-headline { margin-bottom: 10px; }
  .hero-headline h1 { font-size: 28px; margin-bottom: 8px; }
  .hero-headline p { font-size: 14px; line-height: 1.5; }
}



/* === Fullscreen hero with video centerpiece === */
.hero-fullscreen {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 0 50px;
  position: relative;
  margin-bottom: 24px;
}
.hero-fullscreen .hourglass-video-wrap {
  margin: 0 auto;
  max-width: min(56vh, 480px);
  width: 100%;
  flex: 0 0 auto;
}
.hero-fullscreen .hero-headline { margin: 0; flex: 0 0 auto; }
.hero-fullscreen .hero-headline h1 { font-size: clamp(36px, 6vw, 60px); }
.hero-scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
  user-select: none;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
@media (max-width: 720px) {
  .hero-fullscreen {
    min-height: calc(100vh - 70px);
    gap: 18px;
    padding: 8px 0 40px;
  }
  .hero-fullscreen .hourglass-video-wrap { max-width: min(60vh, 320px); }
  .hero-fullscreen .hero-headline h1 { font-size: 28px; }
}

/* === Gauge endpoints — clearly explain 0 and 100 like a speedometer === */
.gauge-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 0 10px;
}
.gauge-endpoint {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.gauge-endpoint .endp-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 16px;
  margin-inline-end: 8px;
}
.gauge-endpoint.zero {
  background: rgba(77, 212, 160, 0.08);
  border: 1px solid rgba(77, 212, 160, 0.25);
  color: var(--text-soft);
}
.gauge-endpoint.zero .endp-num { color: #4dd4a0; }
.gauge-endpoint.hundred {
  background: rgba(255, 77, 94, 0.08);
  border: 1px solid rgba(255, 77, 94, 0.25);
  color: var(--text-soft);
  text-align: end;
}
.gauge-endpoint.hundred .endp-num { color: #ff4d5e; }

/* === Hero hourglass video + atmospheric backdrop === */
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 30, 50, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 30, 90, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.hourglass-video-wrap {
  position: relative;
  margin: 24px auto 32px;
  max-width: 460px;
  width: 100%;
  aspect-ratio: 540 / 1132;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(247, 147, 26, 0.18),
    0 0 120px rgba(255, 77, 94, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}
.hourglass-video-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(247, 147, 26, 0.5),
    rgba(255, 77, 94, 0.3),
    rgba(91, 60, 130, 0.4),
    rgba(247, 147, 26, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  animation: borderShimmer 8s linear infinite;
  pointer-events: none;
}
@keyframes borderShimmer {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(20deg); }
}
.hourglass-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ambient glow that bleeds beyond the video frame to merge with page atmosphere */
.hourglass-video-wrap::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 30px;
  background: radial-gradient(ellipse at center, rgba(247, 147, 26, 0.12), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 720px) {
  .hourglass-video-wrap { max-width: 320px; margin: 14px auto 20px; }
}


@media (max-width: 720px) {
  .shell { padding: 18px 14px 60px; }
  h1.page-title { font-size: 22px; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { gap: 16px; }
  .day-entry { padding: 16px 18px; }
}


/* ==========================================================================
   AI Progression — Premium Visual Styling
   ========================================================================== */
.prog-page { display: flex; flex-direction: column; gap: 32px; }

.prog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: radial-gradient(ellipse at center, var(--bg-elev-1), var(--bg));
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.prog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(91, 157, 255, 0.06), transparent 60%);
  pointer-events: none;
}
.prog-hero-left { display: flex; justify-content: center; align-items: center; }
.prog-gauge-svg { width: 100%; max-width: 440px; height: auto; }

.prog-hero-right { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }

.prog-status-block {
  padding: 16px 20px;
  border-inline-start: 4px solid;
  background: var(--bg-elev-2);
  border-radius: 10px;
}
.prog-status-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 4px;
}
.prog-status-text { font-size: 18px; font-weight: 700; }

.prog-trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.prog-trend-cell {
  padding: 14px 12px;
  background: var(--bg-elev-2);
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-soft);
}
.prog-trend-cell.distance { background: linear-gradient(135deg, var(--brand-soft), var(--bg-elev-2)); border-color: var(--brand); }
.prog-trend-arrow {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.prog-trend-arrow.up { color: var(--high); }
.prog-trend-arrow.down { color: var(--low); }
.prog-trend-arrow.distance-icon { color: var(--brand); }
.prog-trend-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; }
.prog-trend-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.prog-action-card {
  padding: 18px 22px;
  border: 2px solid;
  border-radius: 12px;
}
.prog-action-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 6px; }
.prog-action-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }

.prog-section { background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; }
.prog-section-header { margin-bottom: 18px; }
.prog-section-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.prog-section-sub { font-size: 13px; color: var(--text-dim); }

.prog-timeline-wrap { background: var(--bg); border-radius: 10px; padding: 18px; }
.prog-timeline-svg { width: 100%; max-width: 100%; height: auto; }
.prog-timeline-empty { color: var(--text-dim); padding: 30px; text-align: center; font-size: 13px; }

.prog-pillars-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.prog-pillar-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.prog-pillar-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.prog-pillar-radial { width: 110px; height: 110px; margin: 0 auto 12px; }
.prog-pillar-name { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.prog-pillar-desc { font-size: 12px; color: var(--text-soft); line-height: 1.55; margin: 0 0 12px; min-height: 56px; }
.prog-pillar-signals-list {
  text-align: right;
  margin: 0;
  padding-inline-start: 18px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.55;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}
.prog-pillar-signals-list li { margin-bottom: 4px; }

.prog-ladder { display: flex; flex-direction: column; gap: 0; position: relative; }
.prog-ladder::before {
  content: '';
  position: absolute;
  inset-inline-start: 26px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}
.prog-ladder-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  position: relative;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.prog-ladder-step.passed { opacity: 0.85; }
.prog-ladder-step.current { opacity: 1; }
.prog-ladder-step.next { opacity: 0.95; }
.prog-ladder-marker {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg-elev-1);
  transition: all 0.3s ease;
}
.prog-ladder-num { color: #0b0f14; font-weight: 800; font-size: 16px; font-family: 'JetBrains Mono', monospace; }
.prog-ladder-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0.4;
  animation: ladderPulse 2s infinite;
}
@keyframes ladderPulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 0; } }
.prog-ladder-body { flex: 1; padding-top: 4px; }
.prog-ladder-label { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.prog-ladder-action { font-size: 13px; color: var(--text-soft); line-height: 1.55; }
.prog-ladder-here { color: var(--brand); font-weight: 700; font-size: 13px; margin-top: 6px; }
.prog-ladder-distance { color: var(--medium); font-size: 12px; font-style: italic; margin-top: 6px; }

.prog-drivers-grid { display: flex; flex-direction: column; gap: 8px; }
.prog-driver-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-inline-start: 4px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.prog-driver-row:hover { text-decoration: none; background: var(--bg-elev-3); transform: translateX(-3px); }
.prog-driver-row.driver-up { border-inline-start-color: var(--high); }
.prog-driver-row.driver-down { border-inline-start-color: var(--low); }
.prog-driver-impact-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
}
.driver-up .prog-driver-impact-pill { background: var(--high-bg); color: var(--high); }
.driver-down .prog-driver-impact-pill { background: var(--low-bg); color: var(--low); }
.prog-driver-text { flex: 1; font-size: 14px; line-height: 1.45; }
.prog-driver-link { color: var(--brand); font-size: 18px; font-weight: 700; }

.prog-watch-list { display: flex; flex-direction: column; gap: 10px; }
.prog-watch-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--critical-bg), var(--bg-elev-2));
  border: 1px solid var(--critical-border);
  border-radius: 10px;
}
.prog-watch-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--critical);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.prog-watch-text { font-size: 14px; line-height: 1.55; color: var(--text); }

@media (max-width: 900px) {
  .prog-hero { grid-template-columns: 1fr; }
  .prog-trend-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   AI Progression — Info buttons + improved layouts
   ========================================================================== */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-inline-start: 8px;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.info-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.1); }
.info-popover {
  display: none;
  margin-top: 10px;
  padding: 14px 18px;
  background: var(--bg-elev-2);
  border: 1px solid var(--brand);
  border-inline-start: 4px solid var(--brand);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}
.info-popover.visible { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.prog-status-row, .prog-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.prog-trend-cell { padding: 16px 14px; }
.prog-trend-cell-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.prog-trend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.prog-trend-arrow { font-size: 20px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin: 0; }
.prog-trend-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px; }
.prog-trend-sub {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.prog-methodology-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Make gauge container fit nicely */
.prog-hero-left {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prog-gauge-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}


/* ==========================================================================
   AI Progression — Animations (live, breathing dashboard)
   ========================================================================== */

/* ----- 1. Gauge needle: swing into place on page load ----- */
.gauge-needle-group {
  transform: rotate(-90deg);
  animation: needleSwing 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  transform-box: fill-box;
}
@keyframes needleSwing {
  0%   { transform: rotate(-90deg); }
  60%  { transform: rotate(calc(var(--needle-angle) + 8deg)); }
  80%  { transform: rotate(calc(var(--needle-angle) - 4deg)); }
  100% { transform: rotate(var(--needle-angle)); }
}

/* ----- 2. Gauge hub pulse: subtle breathing ring ----- */
.gauge-hub-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: hubPulse 2.4s ease-in-out infinite;
}
@keyframes hubPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.35); opacity: 0; }
}

/* ----- 3. Gauge zone arcs: draw in sequentially ----- */
.gauge-zone {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: zoneDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes zoneDraw {
  to { stroke-dashoffset: 0; }
}

/* ----- 4. Big score in the donut hole: glow pulse ----- */
#gaugeBigScore {
  animation: scoreGlow 3s ease-in-out infinite;
}
@keyframes scoreGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(91, 157, 255, 0.3)); }
  50%      { filter: drop-shadow(0 0 14px rgba(91, 157, 255, 0.7)); }
}

/* ----- 5. Hero card: fade up on entry ----- */
.prog-hero {
  animation: fadeInUp 0.7s ease-out 0s both;
}

/* ----- 6. Sections: cascading fade-in ----- */
.prog-section {
  animation: fadeInUp 0.6s ease-out both;
}
.prog-section:nth-of-type(1) { animation-delay: 0.10s; }
.prog-section:nth-of-type(2) { animation-delay: 0.20s; }
.prog-section:nth-of-type(3) { animation-delay: 0.30s; }
.prog-section:nth-of-type(4) { animation-delay: 0.40s; }
.prog-section:nth-of-type(5) { animation-delay: 0.50s; }
.prog-section:nth-of-type(6) { animation-delay: 0.60s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- 7. Pillar cards: cascade with subtle scale ----- */
.prog-pillar-card {
  animation: pillarRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.prog-pillar-card:nth-child(1) { animation-delay: 0.5s; }
.prog-pillar-card:nth-child(2) { animation-delay: 0.6s; }
.prog-pillar-card:nth-child(3) { animation-delay: 0.7s; }
.prog-pillar-card:nth-child(4) { animation-delay: 0.8s; }
@keyframes pillarRise {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- 8. Pillar radial ring: draw the value circle ----- */
.prog-pillar-radial circle:last-of-type {
  animation: radialFill 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.8s both;
}
@keyframes radialFill {
  from { stroke-dashoffset: 314; }
}

/* ----- 9. Trend cells: pop in ----- */
.prog-trend-cell {
  animation: trendPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.prog-trend-cell:nth-child(1) { animation-delay: 0.7s; }
.prog-trend-cell:nth-child(2) { animation-delay: 0.8s; }
.prog-trend-cell:nth-child(3) { animation-delay: 0.9s; }
@keyframes trendPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ----- 10. Status block + Action card: slide from right ----- */
.prog-status-block { animation: slideInRight 0.6s ease-out 0.4s both; }
.prog-action-card  { animation: slideInRight 0.6s ease-out 1.0s both; }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----- 11. Timeline polyline: draw progressively ----- */
.prog-timeline-svg polyline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: timelineDraw 2.5s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
}
@keyframes timelineDraw {
  to { stroke-dashoffset: 0; }
}
.prog-timeline-svg circle {
  opacity: 0;
  animation: timelineDot 0.4s ease-out forwards;
}
.prog-timeline-svg circle:nth-of-type(1) { animation-delay: 0.8s; }
.prog-timeline-svg circle:nth-of-type(2) { animation-delay: 1.2s; }
.prog-timeline-svg circle:nth-of-type(3) { animation-delay: 1.6s; }
.prog-timeline-svg circle:nth-of-type(4) { animation-delay: 2.0s; }
.prog-timeline-svg circle:nth-of-type(5) { animation-delay: 2.4s; }
.prog-timeline-svg circle:nth-of-type(6) { animation-delay: 2.8s; }
@keyframes timelineDot {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* ----- 12. Ladder steps: cascade down ----- */
.prog-ladder-step {
  animation: stepIn 0.5s ease-out both;
}
.prog-ladder-step:nth-child(1) { animation-delay: 0.3s; }
.prog-ladder-step:nth-child(2) { animation-delay: 0.4s; }
.prog-ladder-step:nth-child(3) { animation-delay: 0.5s; }
.prog-ladder-step:nth-child(4) { animation-delay: 0.6s; }
.prog-ladder-step:nth-child(5) { animation-delay: 0.7s; }
.prog-ladder-step:nth-child(6) { animation-delay: 0.8s; }
.prog-ladder-step:nth-child(7) { animation-delay: 0.9s; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Current step on the ladder: continuous breathing pulse on its marker */
.prog-ladder-step.current .prog-ladder-marker {
  animation: currentMarkerPulse 2s ease-in-out infinite;
}
@keyframes currentMarkerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 157, 255, 0.45); }
  50%      { box-shadow: 0 0 0 14px rgba(91, 157, 255, 0); }
}

/* ----- 13. Driver rows: stagger from the side ----- */
.prog-driver-row {
  animation: driverIn 0.4s ease-out both;
}
.prog-driver-row:nth-child(1) { animation-delay: 0.2s; }
.prog-driver-row:nth-child(2) { animation-delay: 0.3s; }
.prog-driver-row:nth-child(3) { animation-delay: 0.4s; }
.prog-driver-row:nth-child(4) { animation-delay: 0.5s; }
.prog-driver-row:nth-child(5) { animation-delay: 0.6s; }
.prog-driver-row:nth-child(6) { animation-delay: 0.7s; }
@keyframes driverIn {
  from { opacity: 0; transform: translateX(15px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----- 14. Watch list items: slide in ----- */
.prog-watch-item {
  animation: watchIn 0.4s ease-out both;
}
.prog-watch-item:nth-child(1) { animation-delay: 0.3s; }
.prog-watch-item:nth-child(2) { animation-delay: 0.4s; }
.prog-watch-item:nth-child(3) { animation-delay: 0.5s; }
.prog-watch-item:nth-child(4) { animation-delay: 0.6s; }
.prog-watch-item:nth-child(5) { animation-delay: 0.7s; }
@keyframes watchIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- 15. AI progression strip (sticky at top): subtle gradient flow ----- */
#ai-progression-strip {
  background-size: 200% 100%;
  animation: stripFlow 8s ease-in-out infinite;
}
@keyframes stripFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ----- 16. Hero ambient glow: slow rotation ----- */
.prog-hero::before {
  animation: heroGlow 12s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { background: radial-gradient(circle at 30% 50%, rgba(91, 157, 255, 0.06), transparent 60%); }
  33%      { background: radial-gradient(circle at 70% 30%, rgba(247, 147, 26, 0.05), transparent 60%); }
  66%      { background: radial-gradient(circle at 50% 70%, rgba(255, 138, 61, 0.05), transparent 60%); }
}

/* ----- 17. Pillar hover: 3D tilt feeling ----- */
.prog-pillar-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.3s ease;
}
.prog-pillar-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(91, 157, 255, 0.15);
}

/* ----- 18. Methodology text: gentle fade ----- */
.prog-methodology-text {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

/* ----- 19. Reduced motion: respect user preference ----- */
@media (prefers-reduced-motion: reduce) {
  .gauge-needle-group,
  .gauge-hub-pulse,
  .gauge-zone,
  #gaugeBigScore,
  .prog-hero,
  .prog-section,
  .prog-pillar-card,
  .prog-pillar-radial circle:last-of-type,
  .prog-trend-cell,
  .prog-status-block,
  .prog-action-card,
  .prog-timeline-svg polyline,
  .prog-timeline-svg circle,
  .prog-ladder-step,
  .prog-ladder-step.current .prog-ladder-marker,
  .prog-driver-row,
  .prog-watch-item,
  #ai-progression-strip,
  .prog-hero::before,
  .prog-methodology-text {
    animation: none !important;
    transition: none !important;
  }
  .gauge-needle-group { transform: rotate(var(--needle-angle)); }
}
