/* Leo Commander motion tour (reel.js). Silent canvas player. No inline styles (CSP). */
.reel { position: relative; max-width: 1080px; margin: 0 auto; background: #0b1f45; color: #fff; border-radius: 20px; overflow: hidden; outline: none; box-shadow: 0 2px 4px rgba(13, 27, 46, .08), 0 30px 70px rgba(13, 27, 46, .22); }
.reel:focus-visible { box-shadow: 0 0 0 4px rgba(31, 95, 224, .4), 0 30px 70px rgba(13, 27, 46, .22); }
.reel-stage { position: relative; height: 0; padding-top: 56.25%; background: #0b1f45; overflow: hidden; }
.reel-canvas { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); display: block; cursor: pointer; }

/* Play pill over the frame (hidden while playing) */
.reel-cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border: 0; border-radius: 999px; background: #f2a93b; color: #1d1300; font: 700 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Arial, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s, visibility .2s, background .15s; }
.reel-cta:hover { background: #ffb84e; }
.reel-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.reel-cta svg { width: 28px; height: 28px; flex: none; }
.reel-cta-len { font: 650 12px/1 "Inter Variable", Inter, -apple-system, sans-serif; opacity: .72; }
.reel.is-playing .reel-cta { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); }

/* Transport bar */
.reel-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #081834; border-top: 1px solid rgba(255, 255, 255, .08); }
.reel-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #dce6fb; cursor: pointer; transition: background .15s, color .15s; }
.reel-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.reel-btn[hidden] { display: none; }
.reel-btn svg { width: 18px; height: 18px; display: block; }
.reel-btn:focus-visible, .reel-seg:focus-visible { outline: 2px solid #f2a93b; outline-offset: 2px; }
.reel-play { width: 42px; height: 42px; background: #f2a93b; color: #1d1300; }
.reel-play:hover { background: #ffb84e; color: #1d1300; }
.reel-play .i-pause, .reel.is-playing .reel-play .i-play { display: none; }
.reel.is-playing .reel-play .i-pause { display: block; }
.reel-loop[aria-pressed="true"] { color: #f2a93b; }
.reel-loop[aria-pressed="false"] { color: #7f8fb0; }
.reel-fs .i-exit, .reel.is-fs .reel-fs .i-enter { display: none; }
.reel.is-fs .reel-fs .i-exit { display: block; }
.reel-time, .reel-dur { flex: none; min-width: 70px; font: 600 13px/1 "Inter Variable", Inter, -apple-system, sans-serif; font-variant-numeric: tabular-nums; color: #c9d6f2; }
.reel-time { padding-left: 4px; }
.reel-dur { color: #7f8fb0; text-align: right; padding-right: 4px; }
.reel-track { flex: 1 1 auto; min-width: 0; display: flex; gap: 3px; height: 34px; }
.reel-seg { position: relative; flex: 3 1 0; min-width: 0; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0 6px; border: 0; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .07); color: #8fa3cc; font: 650 10px/1 "Inter Variable", Inter, -apple-system, sans-serif; letter-spacing: .05em; text-transform: uppercase; text-align: left; white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.reel-seg:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.reel-w2 { flex-grow: 2; }
.reel-w25 { flex-grow: 2.5; }
.reel-w3 { flex-grow: 3; }
.reel-seg b, .reel-seg span { position: relative; z-index: 1; font-weight: 650; }
.reel-seg span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.reel-fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #1f5fe0; transform: scaleX(0); transform-origin: 0 50%; }
.reel-seg.is-on { color: #fff; box-shadow: inset 0 -2px 0 #f2a93b; }

/* Scene cards */
.reel-cards { list-style: none; max-width: 1080px; margin: 18px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.reel-cards li { display: flex; min-width: 0; }
.reel-card { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; padding: 14px 16px 18px; overflow: hidden; text-align: left; font: inherit; color: var(--ink, #0d1b2e); background: #fff; border: 1px solid var(--line, #e2e8f1); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.reel-card:hover { border-color: #c5d0e0; transform: translateY(-1px); }
.reel-card:focus-visible { outline: 3px solid rgba(31, 95, 224, .45); outline-offset: 2px; }
.reel-card-top { display: flex; justify-content: space-between; gap: 8px; font: 650 11.5px/1.2 "Inter Variable", Inter, -apple-system, sans-serif; letter-spacing: .08em; color: var(--ink-3, #66748a); }
.reel-card strong { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.reel-card-d { font-size: 14px; line-height: 1.45; color: var(--ink-2, #3b4a60); }
.reel-card-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #f2a93b; transform: scaleX(0); transform-origin: 0 50%; }
.reel-card.is-on { border-color: #1f5fe0; box-shadow: 0 0 0 1px #1f5fe0, 0 10px 26px rgba(31, 95, 224, .14); }
.reel-card.is-on .reel-card-top { color: #1f5fe0; }

/* Text alternative for screen readers */
.reel-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Full screen: the stage fills the screen, the canvas stays 16:9 (sized by reel.js) */
.reel:fullscreen { max-width: none; width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; background: #050e22; }
.reel:fullscreen .reel-stage { flex: 1 1 auto; min-height: 0; height: auto; padding-top: 0; background: #050e22; }
.reel:-webkit-full-screen { max-width: none; width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; background: #050e22; }
.reel:-webkit-full-screen .reel-stage { flex: 1 1 auto; min-height: 0; height: auto; padding-top: 0; background: #050e22; }

@media (max-width: 900px) {
  .reel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-seg { justify-content: center; padding: 0; }
  .reel-seg span { display: none; }
}
@media (max-width: 640px) {
  .reel { border-radius: 14px; }
  .reel-bar { flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; }
  .reel-track { order: 9; flex-basis: 100%; height: 28px; }
  .reel-time { margin-right: auto; }
  .reel-dur { display: none; }
  .reel-cta { bottom: 10px; padding: 6px 14px 6px 6px; font-size: 13px; gap: 8px; }
  .reel-cta svg { width: 24px; height: 24px; }
  .reel-cards { gap: 8px; margin-top: 14px; }
  .reel-card { padding: 12px 12px 14px; gap: 4px; }
  .reel-card strong { font-size: 15px; }
  .reel-card-d { font-size: 13px; line-height: 1.4; }
  .reel-card-top { font-size: 10.5px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-cta, .reel-btn, .reel-seg, .reel-card { transition: none; }
}
