/* ===========================================================================
   SHOSOFT, one section for the whole site (2026-10-27)

   Wayne asked for one way of presenting ShoSoft, the same message and the
   same design wherever it appears, with more character than a flat
   screenshot. The markup is written by scripts/sync-shosoft-section.mjs into
   home, /services and /exhibitor-services; js/shosoft-section.js runs the
   tabs. Production's dark ShoSoft band (services 1.0): a gold label, the
   serif headline with the gold italic accent, then three real ShoSoft
   screens on demo data, each laid over a real Magic Box photo of what it
   runs (a stage set before doors for Planning, a show crowd for Ticketing,
   an exhibit hall for Exhibitors). Motion is the app's own, 200ms in, 150ms out.
   =========================================================================== */
.mbs{
  background:var(--ink);color:var(--cream);
  padding-block:clamp(72px,7.5vw,112px);
  overflow:hidden;
}
/* /services: production's cream breathing room above the band */
div + .mbs{margin-top:clamp(96px,11vw,148px)}
.mbs-grid{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  column-gap:clamp(40px,5.5vw,96px);
  align-items:center;
}
.mbs-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.mbs .mbs-kicker{display:block;margin:0 0 20px;font-size:12.5px;letter-spacing:.16em}
/* the same label on the services pages, past services-group.css's sheet eyebrows */
#main .mbs .mbs-kicker.eyebrow.eyebrow--on-dark{font-size:12.5px;letter-spacing:.16em}
@media (min-width:901px){
  /* the one label: same size, tracking and gap as every section's */
  .mbs .mbs-kicker{margin-bottom:18px}
  #main .mbs .mbs-kicker.eyebrow.eyebrow--on-dark{font-size:11px;letter-spacing:.32em}
}
.mbs-title{
  font-family:var(--serif);font-weight:400;font-size:clamp(38px,3.8vw,56px);
  line-height:1.06;letter-spacing:-.01em;color:var(--cream);margin:0 0 20px;
  max-width:13ch;
}
.mbs-title em{font-style:italic;color:var(--yellow)}
.mbs-lead{
  font-family:var(--serif);font-size:clamp(17.5px,1.35vw,19.5px);line-height:1.55;
  color:rgba(255,250,240,.86);max-width:44ch;margin:0;
}

/* the three things it runs, each a tab for its scene */
.mbs-tabs{width:100%;margin-top:30px;border-top:1px solid rgba(255,250,240,.14)}
.mbs-tab{
  position:relative;display:grid;gap:5px;width:100%;
  padding:15px 0 16px;margin:0;border:0;border-bottom:1px solid rgba(255,250,240,.14);
  background:none;text-align:left;cursor:pointer;color:var(--cream);
  -webkit-tap-highlight-color:transparent;
}
.mbs-tab-k{font-family:var(--label);font-weight:700;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,250,240,.5);transition:color .2s cubic-bezier(.2,0,0,1)}
.mbs-tab-t{font-family:var(--serif);font-size:18px;line-height:1.35;color:rgba(255,250,240,.56);transition:color .2s cubic-bezier(.2,0,0,1)}
.mbs-tab:hover .mbs-tab-k,.mbs-tab:hover .mbs-tab-t{color:rgba(255,250,240,.86)}
.mbs-tab[aria-selected="true"] .mbs-tab-k{color:var(--yellow)}
.mbs-tab[aria-selected="true"] .mbs-tab-t{color:var(--cream)}
.mbs-tab:focus-visible{outline:2px solid var(--yellow);outline-offset:3px;border-radius:2px}
.mbs-tab-bar{position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--yellow);transform:scaleX(0);transform-origin:0 50%}
.mbs-tab[aria-selected="true"] .mbs-tab-bar{transform:none}
.mbs.is-auto .mbs-tab[aria-selected="true"] .mbs-tab-bar{animation:mbs-fill var(--mbs-dwell,6s) linear both}
@keyframes mbs-fill{from{transform:scaleX(0)}to{transform:none}}
.mbs-caption{display:none}
.mbs .mbs-btn{margin-top:32px}

/* the stage: a real Magic Box photo of what the screen runs, the app
   window floating over its lower right */
.mbs-stage{
  position:relative;margin:0;aspect-ratio:5/4;
  border-radius:22px;overflow:hidden;isolation:isolate;
  background:#1b2024;
  box-shadow:0 0 0 1px rgba(255,250,240,.1),0 60px 120px -50px rgba(0,0,0,.75);
}
.mbs-scene{
  position:absolute;inset:0;margin:0;
  opacity:0;visibility:hidden;
  transition:opacity 150ms cubic-bezier(.2,0,0,1),visibility 0s linear 150ms;
}
.mbs-scene.is-on{opacity:1;visibility:visible;transition:opacity 200ms cubic-bezier(.2,0,0,1) 150ms,visibility 0s}
.mbs-photo{
  position:absolute;inset:0;width:100%;height:100%;max-width:none;
  object-fit:cover;object-position:30% 40%;
  filter:brightness(.8) saturate(1.05);
}
.mbs-scene[data-scene="2"] .mbs-photo{object-position:18% 50%}
.mbs-screen{
  position:absolute;right:5%;bottom:6%;
  width:76%;max-width:none;height:auto;
  border-radius:12px;background:#fff;
  box-shadow:0 0 0 1px rgba(20,24,28,.18),0 40px 80px -24px rgba(0,0,0,.6),0 12px 24px -12px rgba(0,0,0,.4);
  transform:translateY(10px);
  transition:transform 400ms cubic-bezier(.2,0,0,1) 150ms;
}
.mbs-scene.is-on .mbs-screen{transform:none}

/* Tablet and phone. One column: the words, the scene, the three tabs as one
   compact row with the line under the active one, the button last. */
@media (max-width:900px){
  .mbs-grid{grid-template-columns:minmax(0,1fr);row-gap:0}
  .mbs-copy{display:contents}
  .mbs-kicker{order:1}
  .mbs-title{order:2;font-size:clamp(36px,9.5vw,48px)}
  .mbs-lead{order:3;font-size:18px}
  .mbs-stage{order:4;margin-top:32px;aspect-ratio:4/3;border-radius:18px}
  .mbs-tabs{order:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;margin-top:20px;border-top:0}
  .mbs-tab{padding:14px 0 15px;justify-items:start} /* a 44 px tap target (was 41) */
  .mbs-tab-k{font-size:12px;letter-spacing:.14em}
  .mbs-tab-t{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .mbs-caption{order:6;display:block;font-family:var(--serif);font-size:18px;line-height:1.35;color:var(--cream);margin:12px 0 0;min-height:2.7em}
  .mbs .mbs-btn{order:7;margin-top:24px;justify-self:start}
}
@media (max-width:760px){
  .mbs-screen{right:4%;bottom:5%;width:84%;border-radius:9px}
}
@media (max-width:480px){
  .mbs-stage{aspect-ratio:1/1}
  .mbs-screen{width:88%;border-radius:8px}
  .mbs .mbs-btn{white-space:normal;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .mbs-scene,.mbs-scene.is-on,.mbs-screen,.mbs-tab-k,.mbs-tab-t{transition:none}
  .mbs-screen{transform:none}
}

/* Phone pass 2 (2026-11-03, Wayne note 21: the right context, the layout needs
   tweaking). /services and /exhibitor-services only, 700px and under. The app
   window was a 315px thumbnail of a 1000px screen with nothing readable in it.
   It now runs at about 60 percent scale, rising off the corner of the photo,
   so a person can read it. The three tabs are a real control under the scene
   at the thumb, not three grey labels, and the button closes at full width. */
@media (max-width:700px), (max-height:500px) and (orientation:landscape) and (max-width:950px){
  .svc-sheet div + .mbs{margin-top:56px}
  .svc-sheet .mbs{padding-block:56px 60px}
  .svc-sheet .mbs .mbs-kicker{margin-bottom:14px}
  .svc-sheet .mbs-title{font-size:clamp(31px,9.2vw,36px);line-height:1.08;margin-bottom:14px;max-width:none}
  .svc-sheet .mbs-lead{font-size:17px;line-height:1.5}
  .svc-sheet .mbs-stage{margin-top:24px;aspect-ratio:1/1;border-radius:16px}
  .svc-sheet .mbs-photo{filter:brightness(.72) saturate(1.05)}
  .svc-sheet .mbs-screen{
    left:6%;right:auto;top:24%;bottom:auto;width:152%;
    border-radius:10px 0 0 0;
  }
  .svc-sheet .mbs-tabs{
    gap:4px;margin-top:10px;padding:4px;border-radius:12px;
    background:rgba(255,250,240,.09);
  }
  .svc-sheet .mbs-tab{
    min-height:44px;padding:0;border:0;border-radius:9px;
    justify-items:center;align-content:center;overflow:hidden;
    transition:background-color .2s cubic-bezier(.2,0,0,1);
  }
  .svc-sheet .mbs-tab-k{font-size:11.5px;letter-spacing:.1em;color:rgba(255,250,240,.82)}
  .svc-sheet .mbs-tab[aria-selected="true"]{background:var(--yellow)}
  .svc-sheet .mbs-tab[aria-selected="true"] .mbs-tab-k{color:var(--ink)}
  .svc-sheet .mbs-tab-bar{bottom:0;background:rgba(36,42,47,.5)}
  .svc-sheet .mbs-caption{margin-top:14px;font-size:17px}
  .svc-sheet .mbs .mbs-btn{justify-self:stretch;justify-content:center;margin-top:18px;min-height:48px}
}
/* landscape phones: the scene fits the screen height */
@media (max-height:500px) and (orientation:landscape) and (max-width:950px){
  .svc-sheet .mbs-stage{aspect-ratio:auto;height:280px}
  .svc-sheet .mbs-screen{top:14%;width:96%}
}
