:root {
  --bar: 22px;              --screen: #10161a;        --accent-on-dark: #f08c55;--on-dark-2: rgba(244, 242, 237, 0.78);
}

.label .en { font-size: 14px; color: var(--ink-2); }
.fig .s { font-size: 14px; color: var(--ink-2); }
.places span { font-size: 14px; color: var(--ink-2); }
.tbl thead th { font-size: 14px; }
.fx-step { font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .places span { font-size: 13px; } }

.wf, .fx-media[data-frame="web"] { position: relative; overflow: hidden; padding-top: var(--bar); background: var(--screen); }
.wf::before, .fx-media[data-frame="web"]::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--bar); background: #2b353b;
}
.wf::after, .fx-media[data-frame="web"]::after {
  content: ""; position: absolute; z-index: 2; left: 12px; top: calc(var(--bar) / 2 - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: #6d7980; box-shadow: 11px 0 0 #6d7980, 22px 0 0 #6d7980;
}
.wf > img, .wf > video, .wf > .scene,
.fx-media[data-frame="web"] > img, .fx-media[data-frame="web"] > .scene {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--bar); width: 100%; height: calc(100% - var(--bar));
}
.wf > img { object-fit: cover; }
.fx-media[data-frame="web"] > img { object-fit: contain; }
.fx-media[data-frame="dark"] { background: #000; }
.fx-media[data-frame="phone"] { background: var(--screen); }
.dev-phone {
  position: absolute; left: 50%; top: 50%; height: 90%; aspect-ratio: var(--ar, 444 / 960); transform: translate(-50%, -50%);
  border: 7px solid #05080a; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #3d484e;
}
.dev-phone > video, .dev-phone > img { width: 100%; height: 100%; object-fit: cover; }
.fx-media[data-frame="wallpad"] { background: var(--paper-3); }
.dev-wallpad {
  position: absolute; left: 50%; top: 50%; height: 84%; aspect-ratio: var(--ar, 16 / 9); transform: translate(-50%, -50%);
  border: 12px solid #0b0f12; border-radius: 14px; overflow: hidden; background: #000;
}
.dev-wallpad > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.014); } .scene { position: relative; overflow: hidden; background: var(--screen); }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--sp, 50% 0%); }
.scene [data-at] { transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
.scene.live [data-at]:not(.on) { opacity: 0; transform: translateY(6px); }

.nl-in { display: flex; align-items: center; gap: 10px; min-width: 0; background: var(--paper); color: var(--ink); font-weight: 600; line-height: 1.3; }
.nl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nl-typed { min-width: 0; white-space: nowrap; overflow: hidden; }
.nl-caret { flex: none; width: 2px; height: 1.15em; margin-left: -8px; background: var(--accent); display: none; }
.scene.live .nl-caret { display: block; animation: nl-blink 1s steps(2, start) infinite; }
@keyframes nl-blink { to { visibility: hidden; } }
.nl-out { background: var(--paper); color: var(--ink); font-weight: 600; line-height: 1.4; transition: opacity 240ms var(--ease); }
.nl-out li { display: flex; gap: 8px; align-items: baseline; }
.nl-out b { flex: none; color: var(--accent); }
.scene.live[data-step="0"] .nl-out.pop { opacity: 0; }

.hud .nl-in {
  position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(84%, 600px); height: 46px; padding: 0 16px; font-size: 15px;
  border: 1px solid #1f2a30; border-radius: 6px;
}
.hud .nl-in::after { content: "↵"; margin-left: auto; padding-left: 12px; color: var(--ink-3); font-weight: 500; }
.hud .nl-out {
  position: absolute; z-index: 2; right: 14px; top: 14px; display: grid; gap: 4px;
  padding: 10px 14px 11px; font-size: 14px; border-left: 3px solid var(--accent);
}

.tri { --cut-pad: 22px; }
.cut video { position: absolute; left: var(--rx); width: var(--rw); top: var(--ry, 0); height: var(--rh, 100%); object-fit: cover; object-position: var(--op, 50% 50%); max-width: none; }
.cut-3 { --rx: 71%; --rw: 29%; }
.cut-3 .cut-in { background: #0c2a63; }
.cut-3 img { transform: scale(1.03); } .tri .scene { position: absolute; inset: 0; background: none; overflow: visible; }
.nl-card, .cut-chip { position: absolute; z-index: 2; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.nl-card { left: var(--cut-pad); top: var(--cut-pad); width: min(330px, calc(30% - 30px)); }
.nl-card .nl-in { padding: 10px 12px; font-size: 15px; border-bottom: 1px solid var(--rule); }
.nl-card .nl-out { padding: 8px 12px 10px; font-size: 14px; }
.cut-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.cut-chip b { color: var(--accent); }
.cut-2 .cut-chip { left: calc(37% + 26px); top: var(--cut-pad); }
.cut-3 .cut-chip { right: var(--cut-pad); top: var(--cut-pad); }
.cyc .cy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.cyc[data-step="2"] .cy-dot { background: var(--accent); }
.cyc > [data-at]:not(.on) { display: none; }
.cyc.live > [data-at].on { animation: chip-in 300ms var(--ease); }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tri .vid-toggle.motion { right: 14px; bottom: 14px; z-index: 3; }
@media (max-width: 1024px) {
  .nl-card .nl-in { font-size: 13px; padding: 8px 10px; }
  .nl-card .nl-out { font-size: 13px; padding: 6px 10px 8px; }
  .cut-chip { font-size: 12px; padding: 5px 10px; }
  .tri { --cut-pad: 16px; }
}
@media (max-width: 560px) {
  .cut video { left: 0; width: 100%; top: var(--ry); height: var(--rh); }
  .nl-card { left: 12px; right: 12px; top: 62px; width: auto; display: flex; align-items: center; box-shadow: 3px 3px 0 var(--ink); }
  .nl-card .nl-in { flex: 1; border-bottom: 0; padding: 6px 8px; font-size: 13px; }
  .nl-card .nl-out { padding: 6px 8px 6px 0; font-size: 13px; }
  .nl-card .lg { display: none; }
  .cut-chip { box-shadow: 3px 3px 0 var(--ink); }
  .cut-2 .cut-chip { left: 12px; top: calc(37% + 16px); }
  .cut-3 .cut-chip { left: 12px; right: auto; top: calc(70% + 16px); }
  .tri .vid-toggle.motion { left: 12px; right: auto; bottom: 12px; height: 30px; font-size: 12px; }
}

@media (min-width: 821px) { .panel .shot { aspect-ratio: 4 / 3; } }
.panel .shot.wf > img { object-position: 45% 50%; }
.panel .shot.on-black { background: #000; }
.panel .shot.on-black > img { object-fit: contain; }
.panel .shot > video { object-position: 72% 50%; }

.s-hero .media.wf { padding-top: var(--bar); }
.s-hero .media .scene-bg { object-fit: cover; }
.sync-media { background: #000; }
.sync { position: absolute; inset: 0; background: #000; display: grid; place-items: center; }
.sync-stage { position: relative; width: 100%; aspect-ratio: 1600 / 533; }
.sync-stage > img { width: 100%; height: 100%; }
.sync-cap { position: absolute; left: 18px; top: 14px; font-size: 14px; font-weight: 600; color: var(--on-dark-2); }
.sync-lb { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); font-size: 14px; font-weight: 600; color: var(--on-dark-2); white-space: nowrap; }
.sync-chip, .sync-ok { position: absolute; transform: translate(-50%, -50%); padding: 5px 11px; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; border-radius: 4px; }
.sync-chip { background: var(--accent); color: #fff; }
.sync-ok { background: var(--paper); color: var(--ink); border: 2px solid var(--accent); }
.sync-ok b { color: var(--accent); }
.scene.live .sync-chip:not(.on), .scene.live .sync-ok:not(.on) { opacity: 0; transform: translate(-50%, -30%); }
@media (max-width: 820px) {
  .hud .nl-in { left: 10px; right: 84px; bottom: 10px; width: auto; transform: none; height: 36px; padding: 0 10px; font-size: 12.5px; gap: 8px; }
  .hud .nl-in::after { display: none; }
  .hud .nl-out { right: 10px; top: 10px; padding: 6px 10px 7px; font-size: 12px; gap: 2px; }
  .sync-chip, .sync-ok { font-size: 11px; padding: 3px 7px; }
  .sync-cap, .sync-lb { font-size: 12px; }
  .sync-cap { left: 12px; top: 10px; }
  .sync-lb { top: calc(100% + 4px); }
}

.sec.dark {
  background: #1f2a30; border-top: 0;
  --ink: #f4f2ed; --ink-2: var(--on-dark-2); --ink-3: rgba(244, 242, 237, 0.68);
  --rule: rgba(244, 242, 237, 0.2); --rule-strong: rgba(244, 242, 237, 0.62);
  --paper-2: rgba(244, 242, 237, 0.08); --paper-3: rgba(244, 242, 237, 0.16);
  --accent: var(--accent-on-dark);
  color: var(--ink);
}
.sec.dark .ox .mk.o { color: #1f2a30; }
.sec.dark + .sec, .band + .sec { border-top: 0; }

.band { background: #1f2a30; color: #f4f2ed; padding: clamp(40px, 5vw, 72px) 0; }
.band-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.band h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
.band-tabs { margin-top: 28px; border-top: 1px solid rgba(244, 242, 237, 0.62); }
.band-tabs [role="tab"] {
  position: relative; display: block; width: 100%; padding: 16px 12px 16px 18px; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid rgba(244, 242, 237, 0.2); color: rgba(244, 242, 237, 0.7);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.band-tabs [role="tab"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--accent-on-dark); transform: scaleY(0); transition: transform 220ms var(--ease); }
.band-tabs [role="tab"]:hover { color: #f4f2ed; }
.band-tabs [aria-selected="true"] { color: #f4f2ed; background: rgba(244, 242, 237, 0.06); }
.band-tabs [aria-selected="true"]::before { transform: none; }
.band-tabs b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.band-tabs span { display: block; margin-top: 2px; font-size: 15px; }
.band :focus-visible { outline-color: var(--accent-on-dark); }
.band-stage { justify-self: end; width: min(100%, calc((var(--fit) - 2 * clamp(40px, 5vw, 72px) - 8px) * 16 / 9)); }
.band-panel[hidden] { display: none; }
.band-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.band-media > video { width: 100%; height: 100%; object-fit: cover; }
.js .band-panel:not([hidden]) { animation: note-in 260ms var(--ease); }
@media (max-width: 820px) {
  .band-grid { grid-template-columns: 1fr; gap: 20px; }
  .band-tabs { display: flex; margin-top: 16px; }
  .band-tabs [role="tab"] { flex: 1; padding: 12px 6px 12px 10px; border-bottom: 0; }
  .band-tabs [role="tab"] + [role="tab"] { border-left: 1px solid rgba(244, 242, 237, 0.2); }
  .band-tabs [role="tab"]::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 3px; transform: scaleX(0); }
  .band-tabs [aria-selected="true"]::before { transform: none; }
  .band-tabs b { font-size: 16px; }
  .band-tabs span { display: none; }
  .band-stage { justify-self: stretch; width: 100%; }
}

.fx-peek { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .scene [data-at] { transition: none; }
}
