/* The website's live pieces that remain (launch.js): the hero film's pause button and the signature, one ippon read (home,
   _sig-live.html), with the Aka and Shiro tags the app showcase reuses (_app-live.html). */
/* ---------- the hero film (playbook #3): poster as the page's first picture, the film over it once it plays, a pause button (WCAG 2.2.2) */
.hx-media .hx-poster, .hx-media .hx-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-film { opacity: 0; transition: opacity .4s; } .hx-film.on { opacity: 1; }
.hx-pp { position: absolute; right: 20px; top: 20px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #07090e99; color: #fff; cursor: pointer; box-shadow: inset 0 0 0 1px #ffffff40; }
.hx-pp[hidden] { display: none; }
.hx-pp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hx-pp .pl { display: none; fill: currentColor; stroke: none; } .hx-pp.paused .pl { display: block; } .hx-pp.paused .pa { display: none; }
.hx-pp:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the Aka and Shiro tags over the film (the signature, the app showcase) */

.lp-tag { position: absolute; left: 0; top: 0; z-index: 2; display: grid; justify-items: center; translate: -50% -100%; will-change: transform; opacity: 0; transition: opacity .4s; }

.lp-tag b { display: block; padding: 5px 11px 6px; border-radius: 999px; font: 650 clamp(14px, 1.5cqi, 15px)/1 var(--sans); letter-spacing: 0; box-shadow: 0 4px 16px #0006; }
.lp-tag i { width: 2px; height: clamp(14px, 3cqi, 30px); border-radius: 1px; }
.lp-tag.aka b { background: var(--aka); color: #fff; } .lp-tag.aka i { background: linear-gradient(var(--aka), #c8373b00); }
.lp-tag.shiro b { background: #fff; color: #07090e; } .lp-tag.shiro i { background: linear-gradient(#fff, #ffffff00); }

/* ---------- the signature: one ippon, read (home, after the hero; /ippon-lab) */
.sig { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 28px; align-items: start; color: #fff; font-family: var(--sans); }
.sig-main { display: grid; gap: 12px; }
.sig-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #07090e; box-shadow: 0 0 0 1px #ffffff1a, 0 30px 80px #0008; container-type: inline-size; transform-origin: 0 0; transition: transform .8s cubic-bezier(.32,.72,0,1), border-radius .8s; cursor: pointer; z-index: 3; }
.sig-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sig-mk { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.sig.s-mark .sig-mk, .sig.s-mark .sig-tag { opacity: 1; }

.sig-tag { opacity: 0; }
.sig-st { position: absolute; right: 14px; top: 14px; z-index: 2; display: none; padding: 6px 12px; border-radius: 999px; background: #07090eb3; font-size: 14px; }
.sig.paused .sig-st { display: block; } .sig.paused .sig-st::before { content: "Paused · tap to play"; }
.sig-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sig-rail button { position: relative; display: grid; gap: 2px; min-height: 52px; padding: 10px 12px; border: 0; border-radius: 12px; background: #ffffff0d; color: #ffffff8c; text-align: left; font: inherit; cursor: pointer; transition: background .3s, color .3s; }
.sig-rail button::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.sig-rail b { font: 650 15px var(--display); } .sig-rail span { font-size: 14px; font-variant-numeric: tabular-nums; }
.sig-rail button.done { color: #fff; } .sig-rail button.done::before { transform: none; }
.sig-rail button.on { background: #ffffff1f; color: #fff; } .sig-rail button[data-p="hit"].done::before { background: var(--aka); }
.sig-rail button:focus-visible, .sig-stage:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sig-panel { display: grid; gap: 18px; align-content: start; }

.sig-parts, .sig-rec { grid-area: 1 / 1; transition: opacity .4s, translate .5s cubic-bezier(.32,.72,0,1); }
.sig-parts { list-style: none; margin: 0; padding: 0; }
.sig-parts li { display: grid; padding: 10px 0 10px 14px; border-left: 2px solid #ffffff1f; color: #ffffff59; transition: color .3s, border-color .3s; }
.sig-parts b { font: 650 16px var(--display); } .sig-parts span { font-size: 14px; }
.sig-parts li.done { color: #fff; border-color: #fff; } .sig-parts li[data-p="hit"].done { border-color: var(--aka); }
.sig-rec { opacity: 0; translate: 0 14px; pointer-events: none; display: grid; gap: 12px; align-content: start; }
.sig.s-rec .sig-parts { opacity: 0; translate: 0 -10px; } .sig.s-rec .sig-rec { opacity: 1; translate: 0 0; pointer-events: auto; }

.sig-row { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff1f; }
.sig-slot { aspect-ratio: 16 / 10; border-radius: 8px; background: #ffffff0d; }
.sig-row b { display: block; font: 650 16px var(--display); } .sig-row small { font-size: 14px; color: #ffffffa6; }

.sig-to { margin: 0; font-size: 14px; line-height: 1.45; color: #ffffffa6; }

@media (max-width: 900px) {
  .sig { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sig-stage { border-radius: 14px; }
  .sig-rail { gap: 4px; } .sig-rail button { padding: 8px 6px; min-height: 48px; } .sig-rail b { font-size: 14px; } .sig-rail span { font-size: 14px; }
  .sig-parts { display: none; }   .sig-rec { grid-area: 1 / 1; visibility: hidden; } .sig.s-rec .sig-rec { visibility: visible; }
  .sig-panel { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sig-stage, .sig-parts, .sig-rec { transition: none; } }
.sig .lp-tag.off { opacity: 0 !important; transition: opacity .15s; }

.sig-fly { position: absolute; left: 0; top: 0; z-index: 4; height: auto; aspect-ratio: 16 / 10; border-radius: 8px; box-shadow: 0 20px 50px #0009; opacity: 0; pointer-events: none; transition: transform .8s cubic-bezier(.32,.72,0,1), width .8s cubic-bezier(.32,.72,0,1), opacity .3s; }
.sig-fly.on { opacity: 1; }
.sig.dim .sig-v { opacity: .4; transition: opacity .5s; } .sig.dim .sig-mk, .sig.dim .sig-tag { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { .sig-fly { transition: none; } }
/* the strike at contact: one clean line along it, and a quick light on the frame (owner 11-23: no shape drawn on a head) */
.sig-ln { stroke: #fff; stroke-width: 5px; stroke-linecap: round; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)) drop-shadow(0 0 8px rgba(0,0,0,.45)); opacity: 0; }  /* reads on a white wall and on dark bogu */
.sig-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: soft-light; }
.sig.s-hit .sig-flash { animation: sigflash .5s cubic-bezier(.32,.72,0,1); }
@keyframes sigflash { 0% { opacity: 0; } 15% { opacity: .55; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sig.s-hit .sig-flash { animation: none; } }

@media (max-width: 700px) { .sig-rail { grid-template-columns: repeat(5, minmax(min-content, 1fr)); } .sig-rail b { font-size: 14px; letter-spacing: -0.01em; } .sig-rail button { padding: 8px 6px; } }
/* the signature, simplified: one line, then the record row */
.sig-panel { align-content: center; gap: 22px; }
.sig-line { margin: 0; font: 750 clamp(30px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -0.03em; color: #fff; }
/* owner 11-22 (iPhone): text is never dim, not even as a start state; the line and the row read as a still at any moment.
   Motion is emphasis only: "Ippon." turns aka when the shinpan give it, the row's edge lights when the still lands in it */
.sig-line b { font-weight: inherit; } .sig-line span { transition: color .4s; } .sig.s-c2 .sig-line span { color: var(--aka); }
.sig-rec { visibility: visible !important; opacity: 1; }
.sig-row { transition: box-shadow .5s; } .sig.s-rec .sig-row { box-shadow: inset 0 0 0 2px var(--aka); }
.sig-slot { overflow: hidden; } .sig-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sig-to { margin: 0; font-size: 15px; color: #ffffffa6; }
.sig-row b { font-size: 17px; } .sig-row small { font-size: 14px; }

.sig-panel > .sig-rec { grid-area: auto; translate: none; }

/* review pass (RV, 11-22): text 14 */
.lp-tag b { font-size: 14px !important; }
