/* The Standing Story (web/standing.js), Nov 2026. It replaces the small band-change card (.band-move in deck.css,
   now unused). A full screen in the family of the Promotion, Jail and Storm stories: the port's Mayor, big, is the
   picture behind and the data lies over it. On landscape she fills the left and the data sits on the right over a
   shade that deepens toward it; on upright screens she fills the whole screen and the data rises over her lower half.
   The colour of the new band (--heat, from standingHeat) tints the shade, the headline and the lit band. */

body.in-standing { overflow: hidden; }
body.in-standing #app { visibility: hidden; }

.st-screen { position: fixed; inset: 0; z-index: 890; box-sizing: border-box; overflow: hidden; color: var(--deck-ivory);
  background: var(--deck-night); font-family: var(--sans); animation: st-in .6s ease-out both; }
@keyframes st-in { from { opacity: 0; } to { opacity: 1; } }

/* the Mayor, the whole picture, as the background */
.st-bg { position: absolute; inset: 0; }
.st-bg img, .st-bg video { position: absolute; inset: 0 auto 0 0; width: 62%; height: 100%; object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
  animation: st-mayor 1.1s ease-out both; }
@keyframes st-mayor { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.st-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0, transparent 30%, color-mix(in srgb, var(--deck-night) 72%, transparent) 56%, var(--deck-night) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--deck-night) 70%, transparent) 0, transparent 28%);
  box-shadow: inset 0 0 10rem color-mix(in srgb, var(--heat) 32%, transparent); }
.st-screen.nopic .st-shade { background: radial-gradient(circle at 25% 40%, color-mix(in srgb, var(--heat) 22%, var(--deck-night)), var(--deck-night) 70%); }

/* her name plate, at the foot of her picture */
.st-plate { position: absolute; z-index: 2; left: max(1.2rem, env(safe-area-inset-left)); bottom: max(1.2rem, env(safe-area-inset-bottom)); margin: 0;
  padding: .55rem 1rem .6rem; border-left: 3px solid var(--heat); background: color-mix(in srgb, var(--deck-night) 78%, transparent); }
.st-plate b { display: block; font: 400 clamp(1.1rem, 2.2vw, 1.7rem)/1.15 var(--serif); color: #fff6e3; text-shadow: 0 2px 3px #000; }
.st-plate span { display: block; margin-top: .1rem; font: .95rem var(--special); letter-spacing: .08em; color: var(--brass-hi); }

/* the data over it */
.st-data { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: min(46%, 40rem); box-sizing: border-box; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: .55rem;
  padding: max(1.4rem, env(safe-area-inset-top)) max(1.8rem, env(safe-area-inset-right)) max(1.4rem, env(safe-area-inset-bottom)) 1rem; }
.st-data > * { animation: st-up .6s ease-out both; }
.st-data > :nth-child(2) { animation-delay: .15s; } .st-data > :nth-child(3) { animation-delay: .3s; } .st-data > :nth-child(4) { animation-delay: .45s; }
.st-data > :nth-child(5) { animation-delay: .6s; } .st-data > :nth-child(n+6) { animation-delay: .8s; }
@keyframes st-up { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: none; } }
.st-eyebrow { margin: 0; font: 1.05rem var(--special); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); text-shadow: 0 1px 3px #000; }
.st-data h2 { margin: 0; font: 400 clamp(2.2rem, 5.2vw, 4.2rem)/1.04 "Ceremony Title", var(--title, Georgia), Georgia, serif; text-wrap: balance;
  color: var(--heat); filter: brightness(1.25);
  text-shadow: 0 2px 0 var(--deck-night), 0 0 2rem color-mix(in srgb, var(--heat) 45%, transparent); }
.st-now { margin: .2rem 0 0; font: italic 1.1rem var(--sans); color: var(--muted); }
.st-word { display: flex; align-items: baseline; gap: .9rem; margin: 0; }
.st-word strong { font: 400 clamp(1.8rem, 3.6vw, 3rem)/1.1 var(--serif); color: #fff6e3; text-shadow: 0 2px 3px #000; }
.st-word em { font: normal 1.25rem var(--special); letter-spacing: .08em; color: var(--heat); filter: brightness(1.3); }

/* the five bands, a pin that slides from the old one to the new */
.st-ladder { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin: .5rem 0 .2rem; padding: 0 0 .9rem; list-style: none; }
.st-ladder li { display: grid; gap: .3rem; justify-items: center; text-align: center; opacity: .55; transition: opacity .6s; }
.st-ladder li i { display: block; width: 100%; height: .7rem; border-radius: 2px; background: color-mix(in srgb, var(--heat) 40%, var(--deck-night)); border: 1px solid var(--edge-hi); }
.st-ladder li span { font: .78rem var(--special); letter-spacing: .06em; text-transform: uppercase; color: var(--deck-ivory); }
.st-ladder li.was { opacity: .8; }
.st-ladder li.now { opacity: 1; }
.st-ladder li.now i { background: var(--heat); box-shadow: 0 0 1.1rem color-mix(in srgb, var(--heat) 70%, transparent); }
.st-pin { position: absolute; left: var(--from); bottom: 0; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; transition: left 1.3s cubic-bezier(.3, .8, .2, 1) .4s; }
.st-pin::before { content: ""; position: absolute; inset: .1rem .15rem 0; background: var(--brass-hi); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.st-pin.down::before { background: #ff8b6b; }
.st-pin.up::before { background: #9fe6a8; }
.st-screen.go .st-pin { left: var(--to); }
.st-was { margin: 0; font: .95rem var(--special); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-why { margin: .3rem 0 0; font: 400 clamp(1.15rem, 1.9vw, 1.5rem)/1.3 var(--serif); color: #fff6e3; text-shadow: 0 1px 3px #000; }
.st-effect { margin: 0; max-width: 46ch; font: 1.05rem/1.45 var(--sans); color: var(--deck-ivory); text-shadow: 0 1px 3px #000; }
.st-others { margin: .3rem 0 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
.st-others li { padding: .3rem .6rem; border-left: 3px solid var(--heat); background: color-mix(in srgb, var(--deck-night) 70%, transparent); font-size: .98rem; }
.st-ok { align-self: flex-start; margin-top: .9rem; min-width: 12rem; font-size: 1.15rem; padding: .7rem 1.6rem; }
.st-ok:disabled { opacity: .5; }

/* upright screens: she fills the whole screen, the data rises over her lower half */
@media (orientation: portrait), (max-width: 760px) {
  .st-bg img, .st-bg video { inset: 0; width: 100%; -webkit-mask-image: none; mask-image: none; object-position: 50% 8%; }
  .st-shade { background: linear-gradient(0deg, var(--deck-night) 0, color-mix(in srgb, var(--deck-night) 88%, transparent) 40%, transparent 72%); }
  .st-plate { top: max(.8rem, env(safe-area-inset-top)); bottom: auto; }
  .st-data { top: auto; left: 0; width: auto; max-height: 68%; justify-content: flex-end; padding: 1rem 1.2rem max(1.2rem, env(safe-area-inset-bottom)); }
  .st-ok { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .st-screen, .st-bg img, .st-bg video, .st-data > * { animation: none; }
  .st-pin { transition: none; }
}
