/* Five-step hero transformation visual; scoped to the right-side panel only. */
#home .transform-wrap { min-width: 0; padding: 15px 0 34px 10px; }
#home .transform-card {
  position: relative;
  padding: 15px;
  overflow: visible;
  border: 1px solid rgba(45,212,191,.28);
  border-radius: 19px;
  color: #EAF6F8;
  background: linear-gradient(145deg,rgba(8,25,45,.97),rgba(14,42,63,.96));
  box-shadow: 0 25px 62px rgba(0,0,0,.32), 0 0 32px rgba(45,212,191,.11), inset 0 1px rgba(255,255,255,.055);
}
#home .transform-top { margin: 0 0 10px; }
#home .transform-label { color: #E6F4F5; font-size: 12px; letter-spacing: .02em; font-weight: 800; }
#home .transform-top-right { display: flex; align-items: center; gap: 9px; }
#home .transform-brand-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid rgba(45,212,191,.28); border-radius: 20px; color: #BDF8F0; background: rgba(45,212,191,.08); font-size: 8px; font-weight: 800; white-space: nowrap; }
#home .transform-brand-pill i { width: 5px; height: 5px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 7px rgba(45,212,191,.8); }
#home .window-controls i { background: #5D7A8D; }
#home .window-controls i:first-child { background: #F28D82; }
#home .window-controls i:nth-child(2) { background: #E8C56F; }
#home .window-controls i:last-child { background: #62C79C; }
#home .transform-stepbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid rgba(196,229,235,.12);
  border-radius: 11px;
  background: rgba(4,15,29,.52);
}
#home .transform-stepbar button {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #91A9BA;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#home .transform-stepbar button:hover { color: #E8FFFC; background: rgba(45,212,191,.08); }
#home .transform-stepbar button[aria-pressed="true"] {
  border-color: rgba(45,212,191,.4);
  color: #EDFFFC;
  background: linear-gradient(135deg,rgba(20,184,166,.2),rgba(45,212,191,.09));
  box-shadow: 0 0 14px rgba(45,212,191,.14), inset 0 0 0 1px rgba(45,212,191,.06);
}
#home .transform-stepbar > i { flex: 0 0 auto; color: #2DD4BF; font-size: 10px; font-style: normal; opacity: .7; }
#home .step-number { color: #2DD4BF; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
#home .story-screen {
  position: relative;
  padding: 7px 7px 11px;
  border: 1px solid rgba(121,158,177,.44);
  border-bottom-color: rgba(45,212,191,.62);
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(145deg,#0A1725,#101F30);
  box-shadow: 0 0 25px rgba(45,212,191,.1), inset 0 0 0 2px rgba(255,255,255,.018);
}
#home .story-screen::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 43%;
  width: 14%;
  height: 2px;
  border-radius: 4px;
  background: rgba(150,193,205,.38);
}
#home .story-stage {
  position: relative;
  height: 342px;
  overflow: hidden;
  border: 1px solid rgba(111,147,166,.2);
  border-radius: 9px;
  background: radial-gradient(circle at 50% 20%,rgba(37,94,111,.16),transparent 54%),linear-gradient(145deg,#0B1928,#102235);
}
#home .story-scene { position: absolute; inset: 0; display: none; min-width: 0; min-height: 0; }
#hero-transform-card[data-step="raw"] .raw-clean-scene,
#hero-transform-card[data-step="clean"] .raw-clean-scene { display: flex; animation: heroSceneEnter .42s ease both; }
#hero-transform-card[data-step="analyse"] .analyse-scene { display: flex; animation: heroSceneEnter .45s ease both; }
#hero-transform-card[data-step="dashboard"] .dashboard-scene,
#hero-transform-card[data-step="decision"] .dashboard-scene { display: flex; animation: heroSceneEnter .45s ease both; }
#home .raw-clean-scene { flex-direction: column; gap: 8px; padding: 12px 13px 10px; }
#home .scene-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
#home .scene-heading > div { display: grid; gap: 2px; min-width: 0; }
#home .scene-kicker { color: #83DCD3; font-size: 8px; font-weight: 850; letter-spacing: .12em; line-height: 1.2; }
#home .scene-heading b { color: #EFF8FB; font-size: 12px; line-height: 1.25; }
#home .scene-kicker .clean-kicker,
#home .scene-heading .clean-heading { display: none; }
#home .scene-heading .clean-status { display: none; }
#hero-transform-card[data-step="clean"] .scene-kicker .raw-kicker,
#hero-transform-card[data-step="clean"] .scene-heading .raw-heading { display: none; }
#hero-transform-card[data-step="clean"] .scene-kicker .clean-kicker,
#hero-transform-card[data-step="clean"] .scene-heading .clean-heading { display: inline; }
#hero-transform-card[data-step="clean"] .scene-heading .clean-status { display: inline; }
#home .raw-tag { padding: 4px 8px; color: #F5B1A8; border: 1px solid rgba(241,131,118,.32); border-radius: 20px; background: rgba(197,78,68,.16); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
#hero-transform-card[data-step="clean"] .raw-tag { color: #86E9C0; border-color: rgba(84,204,153,.38); background: rgba(48,147,108,.16); }
#home .source-files { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; width: min(100%,440px); margin: 0 auto; }
#home .source-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid rgba(113,159,176,.22);
  border-radius: 8px;
  color: #D6E6EB;
  background: rgba(255,255,255,.045);
  font-size: 9px;
  font-weight: 750;
  animation: none;
}
#hero-transform-card.is-entering-raw .source-file { animation: fileDrop .7s cubic-bezier(.2,.7,.2,1) calc(var(--drop-order,0) * 90ms) both; }
#home .source-file svg { width: 15px; height: 18px; flex: 0 0 15px; }
#hero-transform-card[data-step="clean"] .source-files { opacity: .36; filter: saturate(.45); transition: opacity .3s ease; }
#home .data-table-stack { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid rgba(169,193,203,.22); border-radius: 8px; background: #F8FBFC; }
#home .story-stage .messy-table { position: absolute; inset: 0; width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; color: #485B6A; background: #F9FCFD; font: 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; }
#home .story-stage .messy-table th,
#home .story-stage .messy-table td { height: 25px; padding: 4px 8px; overflow: hidden; border: 1px solid #E5ECEF; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
#home .story-stage .messy-table th { color: #516577; background: #EAF0F3; font-size: 8px; font-weight: 900; }
#home .story-stage .messy-table th:nth-child(1), #home .story-stage .messy-table td:nth-child(1) { width: 24%; }
#home .story-stage .messy-table th:nth-child(2), #home .story-stage .messy-table td:nth-child(2) { width: 24%; }
#home .story-stage .messy-table th:nth-child(3), #home .story-stage .messy-table td:nth-child(3) { width: 26%; }
#home .story-stage .messy-table th:nth-child(4), #home .story-stage .messy-table td:nth-child(4) { width: 26%; }
#home .story-stage .raw-table .problem-cell { color: #9B524D; background: #FFF0EE; animation: problemBlink 1.6s ease-in-out infinite; }
#home .story-stage .raw-table .wrong { color: #A7433C; background: #FFE4E0; font-weight: 850; }
#home .story-stage .raw-table .blank::after { content: "—"; color: #DA8A7E; }
#home .story-stage .raw-table .duplicate-row { background: #FFF1EF; }
#home .story-stage .clean-table { display: none; color: #355A50; }
#home .story-stage .clean-table th { color: #3C665A; background: #E4F7F0; }
#home .story-stage .clean-table td { background: #F0FBF6; }
#hero-transform-card[data-step="clean"] .raw-table { animation: rawTableFade .55s .38s ease forwards; }
#hero-transform-card[data-step="clean"] .raw-table .duplicate-row { animation: duplicateFade .48s .22s ease forwards; }
#hero-transform-card[data-step="clean"] .clean-table { display: table; animation: cleanTableIn .55s .62s ease both; }
#home .scan-line { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: none; height: 2px; background: #5FFFE9; box-shadow: 0 0 8px #2DD4BF,0 0 20px rgba(45,212,191,.7); pointer-events: none; }
#hero-transform-card[data-step="clean"] .scan-line { display: block; animation: scanSweep 1.25s ease-in-out both; }
#home .clean-counter { display: none; align-self: flex-end; align-items: center; gap: 6px; margin-top: -2px; color: #98EDC8; font-size: 10px; font-weight: 850; }
#home .clean-counter > span { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #063A32; background: #70E1B0; font-size: 11px; }
#hero-transform-card[data-step="clean"] .clean-counter { display: flex; animation: counterPop .42s 1.35s both; }
#home .analyse-scene { align-items: center; justify-content: center; }
#home .analyse-copy { position: absolute; top: 22px; left: 25px; z-index: 2; display: grid; gap: 5px; }
#home .analyse-copy b { color: #EFF8FB; font: 800 17px/1.2 "Plus Jakarta Sans",Inter,sans-serif; }
#home .analyse-copy > span { color: #9AB4C1; font-size: 10px; }
#home .particle-flow { position: absolute; inset: 30px 3% 8px 2%; width: 96%; height: calc(100% - 38px); overflow: visible; }
#home .particle-path { fill: none; stroke: rgba(45,212,191,.22); stroke-width: 2; stroke-dasharray: 4 8; }
#home .soch-hub { position: absolute; top: 48%; left: 69%; display: grid; width: 105px; height: 105px; place-content: center; justify-items: center; border: 1px solid rgba(78,237,218,.66); border-radius: 50%; color: #F2FFFD; background: radial-gradient(circle,#1D4856 0%,#0C2639 68%); box-shadow: 0 0 23px rgba(45,212,191,.29),inset 0 0 24px rgba(45,212,191,.12); transform: translate(-50%,-50%); }
#home .hub-halo { position: absolute; inset: -17px; border: 1px solid rgba(45,212,191,.23); border-radius: 50%; box-shadow: 0 0 0 10px rgba(45,212,191,.035); animation: hubPulse 2s ease-in-out infinite; }
#home .hub-ring { position: absolute; inset: -6px; border: 1px solid rgba(45,212,191,.46); border-radius: 50%; animation: hubPulse 1.7s ease-in-out infinite reverse; }
#home .soch-hub b { font: 900 19px/1 "Plus Jakarta Sans",Inter,sans-serif; letter-spacing: .04em; }
#home .soch-hub small { margin-top: 4px; color: #9CE9DE; font-size: 10px; font-weight: 700; }
#home .analyse-foot { position: absolute; right: 18px; bottom: 16px; color: #93AFBC; font-size: 9px; }
#home .dashboard-scene { padding: 0; }
#home #sales-dashboard { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; padding: 8px 9px 6px; overflow: hidden; border: 0; border-radius: 7px; background: linear-gradient(150deg,#FFFFFF,#F5FAFC); }
#home #sales-dashboard .dash-head { flex: 0 0 17px; margin: 0 0 4px; }
#home #sales-dashboard .dash-toolbar { flex: 0 0 24px; margin: 0 0 4px; }
#home #sales-dashboard .dash-kpis { flex: 0 0 43px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 0 0 5px; }
#home #sales-dashboard .dash-kpi { padding: 5px 6px; }
#home #sales-dashboard .dash-kpi small { font-size: 7px; }
#home #sales-dashboard .dash-kpi strong { font-size: 12px; }
#home #sales-dashboard .dash-kpi em { font-size: 6.5px; }
#home #sales-dashboard .dash-main-chart { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 90px; padding: 5px 7px 3px; }
#home #sales-dashboard .dash-chart-head b { font-size: 8px; }
#home #sales-dashboard .dash-chart-head small { font-size: 7px; }
#home #sales-dashboard .dash-chart-value { flex: 0 0 15px; margin-top: 2px; }
#home #sales-dashboard .dash-chart-value strong { font-size: 10px; }
#home #sales-dashboard .dash-chart-value span { font-size: 6px; }
#home #sales-dashboard .hero-chart { flex: 1 1 auto; width: 100%; height: auto; min-height: 53px; margin: 0; }
#home #sales-dashboard .dash-bottom { display: grid; flex: 0 0 101px; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: 5px; min-height: 0; margin: 5px 0 0; }
#home #sales-dashboard .dash-region-box,
#home #sales-dashboard .dash-product-box { display: flex; flex-direction: column; min-height: 0; padding: 5px 6px; }
#home #sales-dashboard .dash-region-box .dash-chart-head,
#home #sales-dashboard .dash-product-box .dash-chart-head { flex: 0 0 11px; }
#home #sales-dashboard .region-bars { flex: 1 1 auto; height: auto; min-height: 36px; margin: 1px 0 0; }
#home #sales-dashboard .region-bar { gap: 2px; }
#home #sales-dashboard .region-bar span { font-size: 6.5px; }
#home #sales-dashboard .region-detail { display: flex; align-items: center; gap: 4px; min-width: 0; padding-top: 2px; border-top: 1px solid #EFF3F5; }
#home #sales-dashboard .dash-region-detail { flex: 0 0 17px; flex-direction: row; justify-content: flex-start; gap: 4px; min-height: 0; overflow: hidden; padding: 0; }
#home #sales-dashboard .dash-region-detail small,
#home #sales-dashboard .dash-region-detail span { color: #8192A0; font-size: 5.5px; white-space: nowrap; }
#home #sales-dashboard .dash-region-detail strong { flex: 0 0 auto; margin: 0; color: #18334C; font-size: 7.5px; }
#home #sales-dashboard .dash-region-detail em { flex: 0 0 auto; margin: 0; font-size: 6px; }
#home #sales-dashboard .region-detail-line { flex: 1 1 auto; width: auto; min-width: 18px; height: 3px; margin: 0; }
#home #sales-dashboard .dash-product-box .dash-chart-head small { font-size: 6px; }
#home #sales-dashboard .product-mix-content { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-around; gap: 3px; min-height: 0; }
#home #sales-dashboard .dash-product-donut { display: block; flex: 0 0 76px; width: 76px; height: 76px; overflow: visible; }
#home #sales-dashboard .dash-product-donut circle { fill: none; stroke-width: 9; }
#home #sales-dashboard .dash-product-donut .donut-track { stroke: #E8EFF1; }
#home #sales-dashboard .dash-product-donut .donut-segment { stroke-linecap: butt; transition: stroke-dasharray .85s cubic-bezier(.2,.7,.2,1); }
#home #sales-dashboard .dash-product-donut text { fill: #75899A; font-size: 5px; font-weight: 800; letter-spacing: .08em; }
#home #sales-dashboard .dash-product-donut .donut-total { fill: #203A51; font-size: 7px; }
#home #sales-dashboard .mix-legend { display: grid; grid-template-columns: 1fr; gap: 3px; min-width: 0; color: #596D7D; font-size: 6px; line-height: 1.1; }
#home #sales-dashboard .mix-legend span { display: flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
#home #sales-dashboard .mix-legend i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--mix); }
#home #sales-dashboard .mix-legend b { margin-left: auto; color: #344C60; }
#home #sales-dashboard .dash-footnote { flex: 0 0 9px; margin: 3px 0 0; font-size: 6px; }
#home #sales-dashboard.is-building .dash-kpi { animation: dashboardKpiIn .55s cubic-bezier(.2,.7,.2,1) both; }
#home #sales-dashboard.is-building .dash-kpi:nth-child(2) { animation-delay: .1s; }
#home #sales-dashboard.is-building .dash-kpi:nth-child(3) { animation-delay: .2s; }
#home #sales-dashboard.is-building .dash-kpi:nth-child(4) { animation-delay: .3s; }
#home #sales-dashboard.is-building .region-bar i { transform: scaleY(.05); transform-origin: center bottom; animation: regionColumnGrow .65s cubic-bezier(.2,.7,.2,1) both; }
#home #sales-dashboard.is-building .region-bar:nth-child(2) i { animation-delay: .08s; }
#home #sales-dashboard.is-building .region-bar:nth-child(3) i { animation-delay: .16s; }
#home #sales-dashboard.is-building .region-bar:nth-child(4) i { animation-delay: .24s; }
#home #sales-dashboard .dash-product-donut .donut-segment { stroke-dashoffset: 0; }
#home #sales-dashboard.is-building #dash-area { animation: heroAreaReveal .95s .12s ease both; }
#home .decision-card {
  position: absolute;
  z-index: 6;
  right: 12px;
  bottom: 12px;
  display: none;
  align-items: center;
  gap: 9px;
  width: min(245px,46%);
  min-height: 71px;
  padding: 9px 11px;
  border: 1px solid rgba(45,212,191,.55);
  border-radius: 12px;
  color: #17354A;
  background: rgba(250,255,254,.97);
  box-shadow: 0 12px 32px rgba(0,0,0,.23),0 0 22px rgba(45,212,191,.22);
  pointer-events: none;
}
#hero-transform-card[data-step="decision"] .decision-card { display: flex; animation: decisionPop .48s cubic-bezier(.2,.7,.2,1) both; }
#home .decision-card > svg { width: 25px; height: 25px; flex: 0 0 25px; color: #0F9D8E; }
#home .decision-card > div { display: grid; gap: 3px; }
#home .decision-card small { color: #0B887C; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
#home .decision-card b { color: #122F43; font-size: 10px; line-height: 1.2; }
#home .decision-card span { color: #506678; font-size: 8px; line-height: 1.2; }
#home .hero-stamp { right: -7px; bottom: 3px; z-index: 3; animation: stampFloat 3.4s ease-in-out infinite; }
#home .hero-stamp span { color: #0F766E; }
#home .static-mode-title { display: none; }
#home .static-transition-arrow { display: none; }
#home .transform-card[data-paused="true"] *,
#home .transform-card[data-paused="true"] *::before,
#home .transform-card[data-paused="true"] *::after { animation-play-state: paused !important; }

@keyframes heroSceneEnter { from { opacity: 0; transform: translateY(7px) scale(.992); } to { opacity: 1; transform: none; } }
@keyframes fileDrop { 0% { opacity: 0; transform: translateY(-14px) rotate(-3deg); } 75% { opacity: 1; transform: translateY(2px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes problemBlink { 0%,100% { background-color: #FFF0EE; } 50% { background-color: #FFDCD7; } }
@keyframes rawTableFade { to { opacity: 0; filter: blur(1px); transform: translateY(-3px); } }
@keyframes duplicateFade { to { opacity: 0; height: 0; color: transparent; background: transparent; } }
@keyframes cleanTableIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes scanSweep { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes counterPop { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hubPulse { 0%,100% { transform: scale(.96); opacity: .58; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes dashboardKpiIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes regionColumnGrow { from { transform: scaleY(.04); } to { transform: scaleY(1); } }
@keyframes decisionPop { 0% { opacity: 0; transform: translateY(9px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes stampFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes heroAreaReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

@media (max-width: 780px) {
  #home .transform-wrap { padding: 8px 4px 30px; }
  #home .transform-card { padding: 12px; }
  #home .transform-stepbar { justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  #home .transform-stepbar::-webkit-scrollbar { display: none; }
  #home .transform-stepbar button { flex: 0 0 auto; min-width: 67px; gap: 4px; padding: 4px 6px; font-size: 9px; }
  #home .transform-stepbar > i { font-size: 9px; }
  #home .story-stage { height: 370px; }
  #home .raw-clean-scene { padding: 10px; gap: 7px; }
  #home .source-files { gap: 5px; }
  #home .source-file { min-height: 29px; padding: 3px 5px; }
  #home .story-stage .messy-table { font-size: 8px; }
  #home .story-stage .messy-table th,
  #home .story-stage .messy-table td { height: 23px; padding: 3px 5px; }
  #home #sales-dashboard { padding: 7px; }
  #home #sales-dashboard .dash-kpis { flex-basis: 72px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #home #sales-dashboard .dash-main-chart { min-height: 84px; }
  #home #sales-dashboard .dash-bottom { flex-basis: 107px; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); }
  #home #sales-dashboard .dash-product-donut { flex-basis: 62px; width: 62px; height: 62px; }
  #home #sales-dashboard .mix-legend { font-size: 5.5px; }
  #home #sales-dashboard .dash-region-detail small,
  #home #sales-dashboard .dash-region-detail span { font-size: 5px; }
  #home .decision-card { right: 8px; bottom: 8px; width: min(225px,53%); min-height: 65px; padding: 7px 8px; }
  #home .decision-card b { font-size: 9px; }
  #home .decision-card span { font-size: 7px; }
  #home .analyse-copy { left: 15px; top: 18px; right: 12px; }
  #home .analyse-copy b { max-width: 300px; font-size: 15px; }
  #home .soch-hub { left: 67%; width: 92px; height: 92px; }
  #home .analyse-foot { left: 14px; right: 14px; text-align: center; }
}
@media (max-width: 520px) {
  #home .transform-wrap { padding: 5px 0 31px; }
  #home .transform-card { padding: 10px; border-radius: 16px; }
  #home .transform-label { font-size: 11px; }
  #home .story-screen { padding: 5px 5px 9px; }
  #home .story-stage { height: 385px; }
  #home .raw-clean-scene { gap: 6px; padding: 9px 7px; }
  #home .scene-heading b { font-size: 10px; }
  #home .scene-kicker { font-size: 7px; }
  #home .source-files { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  #home .source-file { flex-direction: column; gap: 1px; min-height: 42px; padding: 3px 2px; font-size: 8px; }
  #home .source-file svg { width: 13px; height: 16px; flex-basis: 13px; }
  #home .story-stage .messy-table { font-size: 7px; }
  #home .story-stage .messy-table th { font-size: 7px; }
  #home .story-stage .messy-table th,
  #home .story-stage .messy-table td { height: 22px; padding: 3px 3px; }
  #home .story-stage .raw-table tbody tr:nth-child(n+5) { display: none; }
  #home #sales-dashboard .dash-toolbar > div:first-child b { font-size: 9px; }
  #home #sales-dashboard .dash-toolbar > div:first-child small { font-size: 5.5px; }
  #home #sales-dashboard .period-controls button { padding: 4px 5px; font-size: 6.5px; }
  #home #sales-dashboard .dash-kpi { padding: 4px; }
  #home #sales-dashboard .dash-kpi strong { font-size: 11px; }
  #home #sales-dashboard .dash-kpi small { font-size: 6.5px; }
  #home #sales-dashboard .dash-kpi em { font-size: 5.5px; }
  #home #sales-dashboard .dash-bottom { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
  #home #sales-dashboard .dash-chart-head b { font-size: 7px; }
  #home #sales-dashboard .dash-chart-head small { font-size: 5.5px; }
  #home #sales-dashboard .region-bar span { font-size: 5.5px; }
  #home #sales-dashboard .region-detail-line { min-width: 10px; }
  #home #sales-dashboard .dash-region-detail em { font-size: 5.5px; }
  #home #sales-dashboard .dash-footnote { font-size: 5px; }
  #home .decision-card { width: 57%; }
  #home .decision-card > svg { width: 19px; height: 19px; flex-basis: 19px; }
}

@media (max-width: 420px) {
  #home .transform-stepbar button { min-width: 62px; gap: 3px; font-size: 8px; }
  #home .step-number { font-size: 7px; }
  #home #sales-dashboard .dash-kpi strong { font-size: 10px; }
  #home #sales-dashboard .dash-product-donut { flex-basis: 54px; width: 54px; height: 54px; }
  #home #sales-dashboard .mix-legend { font-size: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  #home .transform-card *, #home .transform-card *::before, #home .transform-card *::after,
  #home .hero-stamp { animation: none !important; transition: none !important; }
  #home .source-file { opacity: 1; transform: none; }
  #home .story-stage .raw-table .problem-cell { animation: none; }
  #home .story-stage .messy-table { opacity: 1 !important; filter: none !important; transform: none !important; }
  #home .scan-line, #home .clean-counter, #home .decision-card { animation: none !important; }
  #home .soch-hub .hub-halo, #home .soch-hub .hub-ring { animation: none !important; }
}

#hero-transform-card[data-motion="static"] .transform-stepbar { display: none; }
#hero-transform-card[data-motion="static"] .static-mode-title { display: block; margin: 0 0 7px; color: #BCEFE8; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
#hero-transform-card[data-motion="static"] .static-mode-title span { padding: 0 8px; color: #2DD4BF; font-size: 15px; }
#hero-transform-card[data-motion="static"] .story-stage { display: grid; grid-template-columns: minmax(0,.9fr) 24px minmax(0,1.1fr); align-items: stretch; height: auto; min-height: 342px; overflow: visible; background: transparent; border: 0; }
#hero-transform-card[data-motion="static"] .story-scene { position: relative; inset: auto; display: flex; grid-row: 1; min-height: 342px; border: 1px solid rgba(111,147,166,.2); border-radius: 8px; background: #0D1D2B; animation: none; }
#hero-transform-card[data-motion="static"] .raw-clean-scene { grid-column: 1; }
#hero-transform-card[data-motion="static"] .analyse-scene,
#hero-transform-card[data-motion="static"] .decision-card { display: none !important; }
#hero-transform-card[data-motion="static"] .clean-table,
#hero-transform-card[data-motion="static"] .scan-line,
#hero-transform-card[data-motion="static"] .clean-counter { display: none !important; }
#hero-transform-card[data-motion="static"] .raw-table { display: table !important; opacity: 1 !important; }
#hero-transform-card[data-motion="static"] .source-file { animation: none; }
#hero-transform-card[data-motion="static"] .dashboard-scene { grid-column: 3; }
#hero-transform-card[data-motion="static"] .dashboard-window { min-height: 342px; }
#hero-transform-card[data-motion="static"] .static-transition-arrow { display: grid; grid-column: 2; grid-row: 1; align-self: center; justify-self: center; color: #2DD4BF; font-size: 22px; font-weight: 800; }
#hero-transform-card[data-motion="static"] .story-screen { padding: 7px; }
#hero-transform-card[data-motion="static"] .story-screen::after { display: none; }
@media (max-width: 780px) {
  #hero-transform-card[data-motion="static"] .story-stage { grid-template-columns: minmax(0,1fr); gap: 8px; min-height: 0; }
  #hero-transform-card[data-motion="static"] .story-scene { grid-column: 1; grid-row: auto; min-height: 0; }
  #hero-transform-card[data-motion="static"] .raw-clean-scene { min-height: 230px; }
  #hero-transform-card[data-motion="static"] .static-transition-arrow { grid-column: 1; grid-row: 2; transform: rotate(90deg); }
  #hero-transform-card[data-motion="static"] .dashboard-scene { grid-row: 3; }
  #hero-transform-card[data-motion="static"] .dashboard-window { min-height: 360px; }
}
