/* ============================================================
   MATINSHAPE — Premium hero ("the calm machine"), light base
   Loaded by index.html after styles.css + enhance.css.

   Every rule is scoped under .mshero and every custom token is
   prefixed --ms- so nothing leaks into the shared design system.
   Reuses from the site: var(--ink/--ink-soft/--ink-mute/--bg-warm),
   var(--font-*), var(--ease-luxe), var(--nav-h), .btn-gold,
   .btn-ghost, .gold-word, .hh-beam, .hh-trustline.

   EDITING GUIDE
   · Colors ......... .mshero token block below
   · Module cards ... index.html, "MODULE 01" … "MODULE 06"
   · Core logo ...... index.html, "SWAP LOGO" comment
   ============================================================ */

.mshero {
  /* hero-only tokens */
  --ms-glass:       rgba(255, 255, 255, .62);  /* card glass fill        */
  --ms-glass-solid: rgba(255, 255, 255, .94);  /* no-backdrop fallback   */
  --ms-line:        rgba(28, 25, 23, .1);      /* resting borders        */
  --ms-line-hot:    rgba(198, 161, 91, .6);    /* excited borders        */
  --ms-gold:        #C6A15B;
  --ms-gold-bright: #E4CD97;
  --ms-gold-deep:   #A9853F;
  --ms-gold-text:   #A16207;                   /* gold that reads on white  */
  --ms-ok:          #10B981;                   /* success green (LEDs)      */
  --ms-ok-text:     #047857;                   /* green that reads on white */
  --ms-beat:        2s;                        /* shared system heartbeat   */

  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + clamp(24px, 4.5vh, 44px)) 24px clamp(44px, 6vh, 64px);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(860px 520px at 84% -8%, rgba(198,161,91,.14), transparent 62%),
    radial-gradient(680px 480px at -10% 70%, rgba(198,161,91,.08), transparent 58%),
    linear-gradient(180deg, #FFFFFF, var(--bg-warm));
}

/* ------------------------------------------------------------
   Atmosphere — bloom · grid · hexfield · vignette
   ------------------------------------------------------------ */
.mshero .ms-bloom {
  position: absolute; z-index: 0; pointer-events: none;
  width: 1100px; height: 1100px; border-radius: 50%;
  left: 58%; top: 46%; transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(198,161,91,.06) 0%, rgba(198,161,91,.022) 34%, rgba(198,161,91,0) 62%);
}
.mshero .ms-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(28,25,23,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,25,23,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}
.mshero .ms-hex {
  position: absolute; z-index: 0; pointer-events: none;
  fill: none; stroke: var(--ms-gold-deep); stroke-width: 1;
  opacity: .035;
}
.mshero .ms-hex-1 { width: 340px; left: -90px;  top: 8%;      animation: ms-hex-drift 120s ease-in-out infinite alternate; }
.mshero .ms-hex-2 { width: 240px; right: -70px; top: 58%;     animation: ms-hex-drift 150s ease-in-out infinite alternate-reverse; }
.mshero .ms-hex-3 { width: 150px; left: 34%;    bottom: -60px; animation: ms-hex-drift 100s ease-in-out infinite alternate; }
@keyframes ms-hex-drift {
  from { transform: rotate(0deg)  translateY(0); }
  to   { transform: rotate(38deg) translateY(-46px); }
}
.mshero .ms-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 118% 105% at 50% 42%, transparent 60%, rgba(28,25,23,.04) 100%);
}

/* ------------------------------------------------------------
   Layout + copy column
   ------------------------------------------------------------ */
.mshero .ms-inner {
  position: relative; z-index: 2;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(30px, 4vw, 60px);
}
.mshero .ms-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ms-gold-text);
}
.mshero .ms-eyebrow .led { width: 6px; height: 6px; }
.mshero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 18px 0 0;
  max-width: 12ch;
}
.mshero h1 .line {
  display: block; overflow: hidden;
  padding-bottom: .12em; margin-bottom: -.12em;  /* keep descenders unclipped */
}
.mshero h1 .line > span { display: block; }
.mshero .ms-sub {
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.75;
  color: var(--ink-mute);
  max-width: 47ch;
}
.mshero .ms-ctas {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 38px;
}

/* ------------------------------------------------------------
   System stage — 600 × 600 system + 56px status row.
   Desktop scales the fixed stage; tablet/mobile reflow it.
   ------------------------------------------------------------ */
.mshero .ms-syscol { position: relative; min-width: 0; z-index: 2; }
.mshero .ms-fit    { position: relative; margin: 0 auto; perspective: 1200px; }
.mshero .ms-stage {
  position: relative;
  width: 600px; height: 656px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* — pipes / rings SVG underlay — */
.mshero .pipes { position: absolute; inset: 0 0 56px 0; width: 600px; height: 600px; z-index: 1; pointer-events: none; overflow: visible; }
.mshero .ringset { opacity: 0; transition: opacity 1.6s var(--ease-luxe) .45s; }
.mshero.is-live .ringset { opacity: 1; }
.mshero .ring-a, .mshero .ring-b { transform-box: view-box; transform-origin: 300px 300px; }
.mshero .ring-a { animation: ms-rot 44s linear infinite; }
.mshero .ring-b { animation: ms-rot-rev 76s linear infinite; }
@keyframes ms-rot     { to { transform: rotate(360deg); } }
@keyframes ms-rot-rev { to { transform: rotate(-360deg); } }
.mshero .ring-line-a { fill: none; stroke: rgba(161,98,7,.3);  stroke-width: 1; stroke-dasharray: 2 10; }
.mshero .ring-line-b { fill: none; stroke: rgba(161,98,7,.17); stroke-width: 1; stroke-dasharray: 1.5 16; }
.mshero .sat   { fill: var(--ms-gold-deep); }
.mshero .sat-2 { fill: rgba(161,98,7,.5); }
.mshero .gem   { fill: var(--ms-gold); }
.mshero .cast {
  fill: none; stroke: rgba(161,98,7,.4); stroke-width: 1.1;
  transform-box: fill-box; transform-origin: center;
  opacity: 0; animation: ms-cast 4.5s ease-out infinite;
}
.mshero .cast-2 { animation-delay: 2.25s; }
@keyframes ms-cast {
  0%       { transform: scale(.9); opacity: 0; }
  10%      { opacity: .5; }
  70%,100% { transform: scale(2.3); opacity: 0; }
}

/* — data pipes — */
.mshero .pipe { opacity: 0; transition: opacity .9s var(--ease-luxe); }
.mshero.is-live .pipe { opacity: 1; }
.mshero.is-live .pipe-1 { transition-delay: 1.05s; }
.mshero.is-live .pipe-2 { transition-delay: 1.13s; }
.mshero.is-live .pipe-3 { transition-delay: 1.21s; }
.mshero.is-live .pipe-4 { transition-delay: 1.29s; }
.mshero.is-live .pipe-5 { transition-delay: 1.37s; }
.mshero.is-live .pipe-6 { transition-delay: 1.45s; }
.mshero .wire-glow { fill: none; stroke: var(--ms-gold); stroke-width: 6; stroke-linecap: round; opacity: .09; transition: opacity .35s; }
.mshero .wire {
  fill: none; stroke: rgba(161,98,7,.45); stroke-width: 1.3;
  stroke-linecap: round; stroke-dasharray: 3 7;
  transition: stroke .35s;
}
.mshero .pipe.hot .wire      { stroke: rgba(161,98,7,.9); }
.mshero .pipe.hot .wire-glow { opacity: .2; }
/* traveling packets — hidden if offset-path unsupported */
.mshero .pkt, .mshero .burst { display: none; }
@supports (offset-path: path("M0 0 L10 10")) {
  .mshero .pkt {
    display: block; fill: var(--ms-gold-deep); opacity: 0;
    filter: drop-shadow(0 0 5px rgba(198,161,91,.9));
    animation: ms-pkt-run var(--dur, 3s) linear var(--wait, 2s) infinite;
  }
  .mshero .burst {
    display: block; fill: var(--ms-gold-text); opacity: 0;
    filter: drop-shadow(0 0 6px rgba(198,161,91,1));
    animation: ms-pkt-run 1.15s linear infinite;
    visibility: hidden;
  }
  .mshero .pipe.hot .burst { visibility: visible; }
}
@keyframes ms-pkt-run {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ------------------------------------------------------------
   The living core
   ------------------------------------------------------------ */
.mshero .core {
  position: absolute; z-index: 2;
  left: 300px; top: 300px;
  width: 0; height: 0;               /* children center on this point */
}
.mshero .core-glow {
  position: absolute; left: 50%; top: 50%;
  width: 230px; height: 230px; margin: -115px 0 0 -115px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,161,91,.3) 0%, rgba(198,161,91,.1) 42%, transparent 70%);
  animation: ms-breathe 4.5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes ms-breathe {
  0%, 100% { transform: scale(.92); opacity: .65; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.mshero .core-particles { position: absolute; left: 0; top: 0; }
.mshero .core-particles i {
  position: absolute; left: 0; top: 0;
  width: var(--s, 3px); height: var(--s, 3px);
  margin: calc(var(--s, 3px) / -2) 0 0 calc(var(--s, 3px) / -2);
  border-radius: 50%;
  background: var(--ms-gold-deep);
  opacity: 0;
  animation: ms-particle var(--t, 4s) linear var(--wait, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes ms-particle {
  0%   { transform: translate(0, 0) scale(.4); opacity: 0; }
  14%  { opacity: .9; }
  100% { transform: translate(var(--dx, 60px), var(--dy, -60px)) scale(1); opacity: 0; }
}
.mshero .ms-orb-breathe {
  position: absolute; left: 50%; top: 50%;
  width: 116px; height: 116px; margin: -58px 0 0 -58px;
  animation: ms-orb-breathe 4.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes ms-orb-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
.mshero .ms-orb {
  position: relative; width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #4A3B22 0%, #262014 44%, #100D09 100%);
  border: 1px solid rgba(228,205,151,.5);
  box-shadow:
    0 0 34px rgba(198,161,91,.4),
    0 26px 52px -18px rgba(28,25,23,.45),
    inset 0 0 26px rgba(198,161,91,.28),
    inset 0 2px 6px rgba(228,205,151,.35),
    inset 0 -8px 18px rgba(0,0,0,.55);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mshero .ms-orb::before {          /* rotating energy arc on the rim */
  content: ''; position: absolute; inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(228,205,151,.8) 81%, transparent 89%);
  -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 83%, #000 97%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 80%, #000 83%, #000 97%, transparent 100%);
  animation: ms-rot 6s linear infinite;
  will-change: transform;
}
.mshero .ms-orb::after {           /* scan-line sweep, every 4s */
  content: ''; position: absolute; left: -10%; top: 50%;
  width: 120%; height: 12px; margin-top: -6px;
  background: linear-gradient(rgba(228,205,151,0), rgba(228,205,151,.3), rgba(228,205,151,0));
  transform: translateY(-70px);
  opacity: 0;
  animation: ms-scan 4s ease-in-out infinite;
}
@keyframes ms-scan {
  0%       { transform: translateY(-70px); opacity: 0; }
  6%       { opacity: .9; }
  30%      { transform: translateY(70px);  opacity: .9; }
  36%,100% { transform: translateY(70px);  opacity: 0; }
}
.mshero .ms-orb svg { width: 46px; height: 46px; position: relative; }
.mshero .core.kick .ms-orb-breathe { animation: ms-kick .6s var(--ease-luxe); }
@keyframes ms-kick {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------------
   Module cards — active system monitors
   ------------------------------------------------------------ */
.mshero .mods { display: contents; }
.mshero .module {
  position: absolute; z-index: 3;
  width: 190px; height: 96px;
  padding: 12px 14px 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 14px;
  background: var(--ms-glass-solid);
  border: 1px solid var(--ms-line);
  box-shadow: 0 14px 34px -18px rgba(28,25,23,.22), 0 2px 6px rgba(28,25,23,.04);
  cursor: pointer;
  transition: transform .45s var(--ease-luxe), border-color .45s, box-shadow .45s;
  will-change: transform;
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .mshero .module { background: var(--ms-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.mshero .module:hover, .mshero .module.hot {
  transform: translateY(-4px);
  border-color: var(--ms-line-hot);
  box-shadow: 0 20px 44px -16px rgba(28,25,23,.3), 0 0 28px -4px rgba(198,161,91,.3);
}
.mshero .module.hot { border-color: rgba(161,98,7,.75); box-shadow: 0 20px 44px -16px rgba(28,25,23,.32), 0 0 34px -2px rgba(198,161,91,.45); }
/* positions — 600×600 design space */
.mshero .m1 { left: 40px;  top: 90px;  }
.mshero .m2 { left: 370px; top: 90px;  }
.mshero .m3 { left: 10px;  top: 252px; }
.mshero .m4 { left: 400px; top: 252px; }
.mshero .m5 { left: 40px;  top: 414px; }
.mshero .m6 { left: 370px; top: 414px; }

.mshero .m-head { display: flex; align-items: center; gap: 8px; }
.mshero .led {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ms-ok);
  box-shadow: 0 0 6px rgba(16,185,129,.8);
  animation: ms-led-pulse var(--ms-beat) ease-in-out infinite;
  flex: none;
}
@keyframes ms-led-pulse {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1); }
}
.mshero .m-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink);
}
.mshero .m-ico { margin-left: auto; display: flex; color: var(--ms-gold-deep); opacity: .9; transition: color .3s; }
.mshero .module:hover .m-ico, .mshero .module.hot .m-ico { color: var(--ms-gold-text); }
.mshero .m-viz { position: relative; height: 26px; }
.mshero .m-foot {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); white-space: nowrap;
}
.mshero .m-foot b { font-weight: 600; color: var(--ms-ok-text); }
.mshero .m-foot b.gold { color: var(--ms-gold-text); }

/* — viz 01 · waveform — */
.mshero .viz-wave { display: flex; align-items: center; gap: 6px; height: 100%; }
.mshero .viz-wave i {
  width: 4px; border-radius: 2px; height: 22px;
  background: var(--ms-gold);
  transform: scaleY(.3); transform-origin: center;
  animation: ms-eq .95s ease-in-out var(--wd, 0s) infinite;
  will-change: transform;
}
.mshero .viz-wave i:nth-child(even) { background: var(--ms-gold-deep); }
@keyframes ms-eq {
  0%, 100% { transform: scaleY(.25); }
  50%      { transform: scaleY(1); }
}
/* — viz 02 · kanban — */
.mshero .viz-kanban { display: flex; gap: 8px; height: 100%; align-items: center; position: relative; }
.mshero .viz-kanban span {
  flex: 1; height: 20px; border-radius: 4px;
  background: rgba(28,25,23,.045);
  border: 1px solid rgba(28,25,23,.08);
  position: relative;
}
.mshero .viz-kanban span::before, .mshero .viz-kanban span::after {  /* tiny card hints */
  content: ''; position: absolute; left: 5px; right: 14px; height: 2px;
  border-radius: 1px; background: rgba(28,25,23,.15);
}
.mshero .viz-kanban span::before { top: 5px; }
.mshero .viz-kanban span::after  { top: 11px; right: 22px; }
.mshero .viz-kanban em {
  position: absolute; left: 0; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--ms-gold);
  box-shadow: 0 0 8px rgba(198,161,91,1);
  animation: ms-kanban-hop 3.2s var(--ease-luxe) infinite;
  will-change: transform, opacity;
}
@keyframes ms-kanban-hop {
  0%, 10%  { transform: translateX(var(--hop1, 22px)); opacity: 1; }
  30%, 42% { transform: translateX(var(--hop2, 78px)); }
  62%, 74% { transform: translateX(var(--hop3, 134px)); opacity: 1; }
  88%      { transform: translateX(var(--hop3, 134px)) scale(1.6); opacity: 0; }
  100%     { transform: translateX(var(--hop1, 22px)); opacity: 0; }
}
/* — viz 03 · handoff — */
.mshero .viz-handoff { display: flex; align-items: center; gap: 8px; height: 100%; position: relative; }
.mshero .viz-handoff .node {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 6px; font-weight: 600; letter-spacing: .05em;
}
.mshero .viz-handoff .node-ai    { background: rgba(198,161,91,.18); border: 1px solid rgba(169,133,63,.6); color: #8F6D2E; }
.mshero .viz-handoff .node-human { background: rgba(28,25,23,.05); border: 1px solid rgba(28,25,23,.28); color: var(--ink-soft); position: relative; }
.mshero .viz-handoff .node-human::after {       /* ping ripple */
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--ms-gold);
  animation: ms-ping 2.2s ease-out infinite;
}
@keyframes ms-ping {
  0%       { transform: scale(.7); opacity: .9; }
  70%, 100%{ transform: scale(2.1); opacity: 0; }
}
.mshero .viz-handoff .lane { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(161,98,7,.45) 0 4px, transparent 4px 9px); position: relative; }
.mshero .viz-handoff .lane i {
  position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--ms-gold-deep);
  animation: ms-lane-run 3s var(--ease-luxe) infinite;
  will-change: transform, opacity;
}
@keyframes ms-lane-run {
  0%, 8%   { transform: translateX(0); opacity: 0; }
  16%      { opacity: 1; }
  72%      { transform: translateX(var(--lane, 92px)); opacity: 1; }
  84%, 100%{ transform: translateX(var(--lane, 92px)); opacity: 0; }
}
/* — viz 04 · dashboard bars — */
.mshero .viz-bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; padding-bottom: 1px; position: relative; }
.mshero .viz-bars::after { content: ''; position: absolute; left: 0; width: 94px; bottom: 0; height: 1px; background: rgba(28,25,23,.16); }
.mshero .viz-bars i {
  width: 8px; border-radius: 2px 2px 0 0; height: 24px;
  background: linear-gradient(180deg, var(--ms-gold-bright), var(--ms-gold-deep));
  transform: scaleY(.35); transform-origin: bottom;
  animation: ms-kpi 2.4s ease-in-out var(--wd, 0s) infinite;
  will-change: transform;
}
@keyframes ms-kpi {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1); }
}
/* — viz 05 · booking calendar — */
.mshero .viz-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-content: center; height: 100%; }
.mshero .viz-cal i {
  height: 10px; border-radius: 2.5px;
  background: rgba(28,25,23,.045);
  border: 1px solid rgba(28,25,23,.08);
}
.mshero .viz-cal i.on {
  background: var(--ms-gold); border-color: var(--ms-gold-deep);
  box-shadow: 0 0 8px rgba(198,161,91,.7);
  animation: ms-slot var(--ms-beat) ease-in-out infinite;
}
@keyframes ms-slot {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50%      { opacity: 1;   transform: scale(1); }
}
/* — viz 06 · follow-up timeline — */
.mshero .viz-line { position: relative; height: 100%; display: flex; align-items: center; }
.mshero .viz-line .track { width: 100%; height: 1px; background: repeating-linear-gradient(90deg, rgba(161,98,7,.4) 0 3px, transparent 3px 8px); }
.mshero .viz-line .tick {
  position: absolute; top: 50%;
  width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: rgba(198,161,91,.16);
  border: 1px solid rgba(161,98,7,.5);
  animation: ms-tick 3.6s ease-in-out var(--wd, 0s) infinite;
  will-change: transform, opacity;
}
.mshero .viz-line .tick::after {
  content: ''; position: absolute; left: 3px; top: 3.5px;
  width: 5px; height: 2.5px;
  border-left: 1.4px solid var(--ms-gold-text);
  border-bottom: 1.4px solid var(--ms-gold-text);
  transform: rotate(-45deg);
}
.mshero .viz-line .t1 { left: 4px; }
.mshero .viz-line .t2 { left: calc(50% - 6px); }
.mshero .viz-line .t3 { right: 8px; }
@keyframes ms-tick {
  0%, 6%    { transform: scale(0); opacity: 0; }
  16%, 86%  { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(1); opacity: 0; }
}

/* ------------------------------------------------------------
   Status terminal
   ------------------------------------------------------------ */
.mshero .statusbar {
  position: absolute; z-index: 3;
  left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(28,25,23,.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -14px rgba(28,25,23,.2);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
}
.mshero .statusbar .led { width: 6px; height: 6px; }
.mshero .status-line { display: inline-flex; align-items: center; color: var(--ms-ok-text); animation: ms-glitch 11s step-end infinite; }
.mshero .cursor {
  display: inline-block; width: 6px; height: 12px; margin-left: 6px;
  background: var(--ms-ok-text);
  animation: ms-blink 1.1s steps(2, start) infinite;
}
@keyframes ms-blink { to { visibility: hidden; } }
@keyframes ms-glitch {                    /* rare terminal flicker */
  0%, 96.2%, 98%, 100% { transform: none; opacity: 1; }
  96.5% { transform: translateX(1.5px);  opacity: .4; }
  96.9% { transform: translateX(-1px) skewX(8deg); opacity: .85; }
  97.3% { transform: translateX(.5px);   opacity: .55; }
  97.7% { transform: none; opacity: 1; }
}
.mshero .status-meta { display: inline-flex; gap: 16px; color: var(--ink-mute); }
.mshero .status-meta b { font-weight: 500; color: var(--ink-soft); }

/* ------------------------------------------------------------
   Entrance choreography
   Pre-hidden states exist only once JS tags the section .ms-js
   (scripts run behind the preloader); .is-live releases them.
   ------------------------------------------------------------ */
.mshero.ms-js .anim {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-luxe), transform .9s var(--ease-luxe);
  transition-delay: var(--d, 0s);
}
.mshero.ms-js h1 .anim { transform: translateY(115%); }
.mshero.ms-js .core-entry {
  opacity: 0; transform: scale(.55);
  transition: opacity .9s var(--ease-luxe) .12s, transform 1.1s var(--ease-luxe) .12s;
}
.mshero.ms-js .module {
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(.86);
  transition: opacity .8s var(--ease-luxe), transform 1s var(--ease-luxe),
              border-color .45s, box-shadow .45s;
  transition-delay: calc(.5s + var(--i, 0) * .1s), calc(.5s + var(--i, 0) * .1s), 0s, 0s;
}
.mshero.ms-js .statusbar {
  opacity: 0; transform: translateX(-50%) translateY(14px);
  transition: opacity .8s var(--ease-luxe) 1.75s, transform .8s var(--ease-luxe) 1.75s;
}
.mshero.is-live .anim { opacity: 1; transform: none; }
.mshero.is-live h1 .anim { transform: none; }  /* must outrank .ms-js h1 .anim */
.mshero.is-live .core-entry { opacity: 1; transform: scale(1); }
.mshero.is-live .module { opacity: 1; transform: none; }
.mshero.is-live .statusbar { opacity: 1; transform: translateX(-50%) translateY(0); }
/* after entrance, kill stagger delays so hover feels instant */
.mshero.is-settled .anim, .mshero.is-settled .module { transition-delay: 0s; }

/* ------------------------------------------------------------
   Responsive
   Desktop ≥1024 orbital · Tablet 640–1023 2×3 grid · Mobile swipe
   ------------------------------------------------------------ */
.mshero .ms-flow { display: none; }
@media (max-width: 1023px) {
  .mshero { padding-top: calc(var(--nav-h) + 34px); }
  .mshero .ms-inner { grid-template-columns: 1fr; text-align: center; gap: 52px; }
  .mshero .ms-copy { display: flex; flex-direction: column; align-items: center; }
  .mshero h1 { margin-inline: auto; }
  .mshero .ms-sub { margin-inline: auto; }
  .mshero .ms-ctas { justify-content: center; }
  .mshero .hh-trustline { justify-content: center; }
  .mshero .ms-fit { perspective: none; height: auto !important; width: 100% !important; }
  .mshero .ms-stage {
    width: 100%; max-width: 560px; height: auto;
    margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    transform: none !important;
  }
  .mshero .pipes { display: none; }
  .mshero .core { position: static; width: 156px; height: 156px; flex: none; }
  .mshero .core-glow { width: 190px; height: 190px; margin: -95px 0 0 -95px; left: 78px; top: 78px; }
  .mshero .core-particles { left: 78px; top: 78px; }
  .mshero .ms-orb-breathe { left: 78px; top: 78px; }
  .mshero .ms-flow { display: block; position: relative; width: 2px; height: 44px; margin: -8px 0;
    background: linear-gradient(rgba(161,98,7,0), rgba(161,98,7,.45), rgba(161,98,7,0)); }
  .mshero .ms-flow i {
    position: absolute; left: 50%; top: 0;
    width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: var(--ms-gold-deep);
    animation: ms-flow-dot 2.2s linear infinite;
  }
  @keyframes ms-flow-dot {
    0%   { transform: translateY(-2px); opacity: 0; }
    18%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { transform: translateY(42px); opacity: 0; }
  }
  .mshero .mods {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px; width: 100%;
  }
  .mshero .module { position: static; width: auto; height: auto; min-height: 96px; }
  /* wider cards → longer viz travel */
  .mshero .viz-kanban em { --hop1: 38px; --hop2: 120px; --hop3: 202px; }
  .mshero .viz-handoff .lane i { --lane: 168px; }
  .mshero.ms-js .module { transform: translateY(18px) scale(.97); }
  .mshero.is-live .module { transform: none; }
  .mshero .statusbar { position: static; transform: none; margin-top: 4px; }
  .mshero.ms-js .statusbar { transform: translateY(14px); }
  .mshero.is-live .statusbar { transform: none; }
}
@media (max-width: 639px) {
  .mshero .ms-flow { display: none; }
  .mshero .mods {
    display: flex; gap: 12px;
    width: calc(100% + 48px); margin-inline: -24px;
    padding: 6px 24px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  .mshero .mods::-webkit-scrollbar { display: none; }
  .mshero .module { flex: 0 0 232px; scroll-snap-align: center; min-height: 100px; }
  .mshero .viz-kanban em { --hop1: 30px; --hop2: 98px; --hop3: 166px; }
  .mshero .viz-handoff .lane i { --lane: 128px; }
  .mshero .status-meta { display: none; }
  .mshero .statusbar { gap: 12px; padding: 9px 16px; letter-spacing: .16em; }
  .mshero .core { width: 132px; height: 132px; }
  .mshero .core-glow { left: 66px; top: 66px; }
  .mshero .core-particles { left: 66px; top: 66px; }
  .mshero .ms-orb-breathe { left: 66px; top: 66px; width: 104px; height: 104px; margin: -52px 0 0 -52px; }
}

/* ------------------------------------------------------------
   Reduced motion — everything visible, nothing moves
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .mshero *, .mshero *::before, .mshero *::after { animation: none !important; transition: none !important; }
  .mshero.ms-js .anim, .mshero.ms-js .module, .mshero.ms-js .core-entry,
  .mshero.ms-js .statusbar, .mshero .pipe, .mshero .ringset { opacity: 1 !important; transform: none !important; }
  .mshero.ms-js .statusbar { transform: translateX(-50%) !important; }
  @media (max-width: 1023px) { .mshero.ms-js .statusbar { transform: none !important; } }
  .mshero .pkt, .mshero .burst, .mshero .core-particles,
  .mshero .cast, .mshero .cursor, .mshero .ms-flow i { display: none !important; }
  .mshero .ms-orb::after { display: none; }
}
