/* SaveAs For Biz — Bright Aircraft Cockpit UI */
:root {
  --ivory: #e6e3dc;
  --ivory-2: #f2efe8;
  --aluminum: #c9cbc8;
  --warm-gray: #8d8c85;
  --sky: #85b9e6;
  --graphite: #2c2f33;
  --ink: #1c1d1f;
  --amber: #d48a1a;
  --orange: #e07a3a;
  --cyan: #2f8fa3;
  --glass: rgba(246, 244, 238, 0.86);
  --glass-edge: rgba(255, 255, 255, 0.62);
  --font-d: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-b: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-m: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-b);
  color: var(--ink);
  background: #9ec6e8;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

#cesiumContainer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
  background: #6fa8d4;
}
body.is-cesium-ready #cesiumContainer {
  opacity: 1;
}
#cesiumContainer .cesium-viewer,
#cesiumContainer .cesium-viewer-cesiumWidgetContainer,
#cesiumContainer .cesium-widget,
#cesiumContainer canvas {
  width: 100% !important;
  height: 100% !important;
}
#cesiumContainer .cesium-viewer-bottom,
#cesiumContainer .cesium-viewer-toolbar,
#cesiumContainer .cesium-viewer-animationContainer,
#cesiumContainer .cesium-viewer-timelineContainer,
#cesiumContainer .cesium-viewer-fullscreenContainer,
#cesiumContainer .cesium-viewer-vrContainer,
#cesiumContainer .cesium-performanceDisplay-defaultContainer,
#cesiumContainer .cesium-viewer-infoBoxContainer,
#cesiumContainer .cesium-viewer-selectionIndicatorContainer,
#cesiumContainer .cesium-credit-lightboxOverlay {
  display: none !important;
}
/* keep only our dedicated credit host — avoid mid-windshield credit chrome */
.cesium-credit-host .cesium-credit-logoContainer,
.cesium-credit-host .cesium-credit-textContainer {
  display: inline-block !important;
}
.cesium-credit-host {
  position: fixed;
  left: 8px;
  bottom: 28px;
  z-index: 25;
  pointer-events: auto;
  max-width: 46vw;
  opacity: 0.75;
  transform: scale(0.85);
  transform-origin: left bottom;
}
/* keep legal credits; hide non-credit chrome only */
#cesiumContainer .cesium-viewer-toolbar,
#cesiumContainer .cesium-viewer-animationContainer,
#cesiumContainer .cesium-viewer-timelineContainer,
#cesiumContainer .cesium-viewer-fullscreenContainer,
#cesiumContainer .cesium-viewer-vrContainer,
#cesiumContainer .cesium-performanceDisplay-defaultContainer {
  display: none !important;
}
#webgl {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}
#webgl::before {
  display: none;
}
#webgl canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: transparent;
  pointer-events: auto;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 40%, rgba(8, 14, 22, 0.45) 100%),
    linear-gradient(90deg, rgba(6, 10, 16, 0.28), transparent 30%, transparent 70%, rgba(6, 10, 16, 0.22));
}
.glass-glare {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.06), transparent 30%, transparent 65%, rgba(255,255,255,0.03));
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.flight-ui {
  position: fixed;
  z-index: 10;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  width: min(24vw, 320px);
  min-width: 250px;
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 18px 50px rgba(40, 50, 65, 0.12), inset 0 1px 0 rgba(255,255,255,0.45);
  backdrop-filter: blur(10px) saturate(1.05);
  transform: perspective(900px) rotateY(6deg);
  transform-origin: left center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.flight-ui.is-tilted {
  transform: perspective(900px) rotateY(6deg) translate3d(var(--ui-x, 0), var(--ui-y, 0), 0);
}

.ui-brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.95rem;
}
.ui-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
}
.ui-brand strong {
  display: block;
  font-family: var(--font-m);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #141618;
  font-weight: 700;
}
.ui-brand em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.m-route-btn { display: none; }
.ui-actions-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.look-snaps {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(28,29,31,0.1);
}
.snap-btn {
  width: 2rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.snap-btn.is-on {
  background: rgba(212,138,26,0.22);
  color: #8a5a12;
}
.snap-btn:active { transform: translateY(1px); }
.dock-inquire {
  flex: 1 1 auto;
  min-height: 2rem !important;
  height: 2rem;
  margin: 0 !important;
  padding: 0 0.85rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.ui-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.ui-meta div {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.5);
}
.ui-meta span {
  display: block;
  font-family: var(--font-m);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
}
.ui-meta b {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.ui-label {
  margin: 0 0 0.45rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--warm-gray);
}

.route {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}
.route-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}
.route-item em {
  font-style: normal;
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--warm-gray);
}
.route-item span {
  color: #141618;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.35;
}
.route-item:hover { background: rgba(255,255,255,0.5); }
.route-item.is-active {
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 0 0 1px rgba(212,138,26,0.35);
}
.route-item.is-active em { color: var(--amber); }
.route-item:active { transform: translateY(1px); }

.view-hint {
  position: fixed;
  z-index: 7;
  left: 50%;
  bottom: max(3.6rem, calc(3.2rem + env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.55);
  color: rgba(245, 242, 235, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.view-hint.is-on { opacity: 1; }

.gauges {
  display: none;
}

.float-gauges {
  position: fixed;
  z-index: 40;
  left: max(0.55rem, env(safe-area-inset-left));
  bottom: max(3.2rem, calc(env(safe-area-inset-bottom) + 2.8rem));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.32rem;
  padding: 0.42rem 0.5rem;
  border-radius: 10px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  color: #f3efe7;
  width: 7.6rem;
  max-width: 7.6rem;
  min-width: 7.6rem;
  box-sizing: border-box;
}
.float-gauges .fg-body {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
}
.fg-progress {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: none;
  padding: 0.28rem 0 0.36rem;
  margin: 0;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}
.fg-progress:hover .fg-progress-track {
  background: rgba(255, 255, 255, 0.22);
}
.fg-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  width: 100%;
  pointer-events: none;
}
.fg-progress-meta span {
  font-family: var(--font-m);
  font-size: 0.38rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}
.fg-progress-meta b {
  margin: 0;
  font-family: var(--font-m);
  font-size: 0.58rem;
  font-weight: 500;
  color: #f0c45a;
  font-variant-numeric: tabular-nums;
}
.fg-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  position: relative;
  pointer-events: auto;
}
.fg-progress-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #f0c45a, #ffe29a);
  border-radius: inherit;
  will-change: transform;
  pointer-events: none;
}

.float-gauges .fg-meters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
}
.float-gauges .fg-meters > div,
.float-gauges .fg-leg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
  width: 100%;
}
.float-gauges .fg-route {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding-left: 0;
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.28rem;
  min-width: 0;
  width: 100%;
}
.float-gauges span {
  font-family: var(--font-m);
  font-size: 0.4rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}
.float-gauges b {
  margin-top: 0.08rem;
  font-family: var(--font-m);
  font-size: 0.78rem;
  font-weight: 500;
  color: #f0c45a;
  font-variant-numeric: tabular-nums;
}
.float-gauges .fg-route b {
  font-size: 0.58rem;
  color: #e8eef5;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.float-gauges .fg-time b {
  color: #f0c45a;
}

.ui-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f4ee;
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s;
}
.ui-action:hover { background: #33363b; }
.ui-action:active { transform: translateY(2px); }
.ui-action.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(28,29,31,0.2);
  margin-top: 0.45rem;
}
#viewReset {
  /* handled by .snap-btn.is-on */
}

.stage {
  position: fixed;
  z-index: 8;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: 3.2rem;
  /* mobile: full-bleed between insets; desktop pins width in min-width:981px */
  left: auto;
  width: auto;
  max-width: none;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  padding-top: 0;
}
.stage > * { pointer-events: auto; }

.hero-card,
.project-card,
.system-card,
.contact-card {
  width: min(100%, 420px);
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 18px;
  background: rgba(246, 244, 238, 0.9);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: 0 18px 48px rgba(20, 32, 48, 0.22);
  backdrop-filter: blur(16px) saturate(1.15);
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: auto;
  align-self: flex-start;
}
.is-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none !important;
  position: absolute !important;
  visibility: hidden;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-m);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--amber);
}
h1, h2 {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.35rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); }
.lede {
  margin: 0.85rem 0 0;
  color: #4d4e50;
  font-size: 1.2rem;
  line-height: 1.65;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.chips span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.82rem;
  color: #3f4042;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  width: min(100%, 920px);
  max-height: calc(100vh - 4.2rem);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.2rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.project-tags span {
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(47,143,163,0.1);
  color: var(--cyan);
}
.link-out {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(28,29,31,0.25);
}
.link-out:hover { color: var(--amber); border-color: var(--amber); }

/* ── Film reel (cinematic stills) ─────────────────────────── */
.film-reel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.film-scene {
  display: grid;
  grid-template-columns: minmax(118px, 34%) 1fr;
  gap: 0.7rem;
  align-items: stretch;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.42);
  animation: filmIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
@keyframes filmIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.film-still {
  position: relative;
  min-height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #12161c;
  isolation: isolate;
}
.film-still img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: kenBurns 14s ease-in-out infinite alternate;
  transform-origin: center center;
}
.film-still.is-contain {
  background: #0e1218;
}
.film-still.is-contain img {
  object-fit: contain;
  padding: 0.55rem;
  animation: logoFloat 8s ease-in-out infinite alternate;
}
@keyframes logoFloat {
  from { transform: scale(0.96); }
  to { transform: scale(1.04); }
}
@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}
.film-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.15rem 0.2rem 0.15rem 0;
}
.film-caption em {
  font-style: normal;
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.film-caption h3 {
  margin: 0.28rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.film-caption p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3f4246;
}
.film-link {
  margin-top: 0.45rem;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(28,29,31,0.22);
}
.film-link:hover { color: var(--amber); border-color: var(--amber); }

/* Virtual cinematic stills when no photo */
.film-virtual {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(133,185,230,0.35), transparent 55%),
    radial-gradient(100% 80% at 90% 80%, rgba(212,160,74,0.28), transparent 50%),
    linear-gradient(160deg, #15202b, #0c1016 60%, #1a2430);
}
.fv-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.fv-orb {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  animation: orbDrift 7s ease-in-out infinite alternate;
}
.fv-orb:nth-child(1) {
  left: -8%; top: -12%;
  background: radial-gradient(circle, #85b9e6, transparent 70%);
}
.fv-orb:nth-child(2) {
  right: -10%; bottom: -18%;
  background: radial-gradient(circle, #d4a04a, transparent 70%);
  animation-delay: -2.2s;
}
.fv-orb:nth-child(3) {
  left: 35%; top: 40%;
  width: 28%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
  animation-delay: -4s;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12%, -8%) scale(1.15); }
}
.fv-panel {
  position: absolute;
  inset: 18% 14%;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
  animation: panelPulse 4.5s ease-in-out infinite;
}
@keyframes panelPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}
.fv-scan {
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(133,185,230,0.22), transparent);
  animation: scanY 3.6s linear infinite;
}
@keyframes scanY {
  from { top: -30%; }
  to { top: 110%; }
}
.fv-label {
  position: absolute;
  left: 0.55rem;
  bottom: 0.45rem;
  margin: 0;
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.72);
}

.film-virtual[data-kind="food"] {
  background: linear-gradient(150deg, #2a1510, #4a2218 45%, #1a100c);
}
.film-virtual[data-kind="food"] .fv-orb:nth-child(1) {
  background: radial-gradient(circle, #e07a3a, transparent 70%);
}
.film-virtual[data-kind="coupang"],
.film-virtual[data-kind="listing"],
.film-virtual[data-kind="strategy"],
.film-virtual[data-kind="ops"] {
  background: linear-gradient(155deg, #1a1208, #2c1c0c 50%, #0e0a06);
}
.film-virtual[data-kind="coupang"] .fv-orb:nth-child(1),
.film-virtual[data-kind="listing"] .fv-orb:nth-child(1) {
  background: radial-gradient(circle, #f0a000, transparent 70%);
}
.film-virtual[data-kind="mobile"] {
  background: linear-gradient(160deg, #0d1a24, #122836 55%, #081018);
}
.film-virtual[data-kind="convert"],
.film-virtual[data-kind="plan"],
.film-virtual[data-kind="store"] {
  background: linear-gradient(155deg, #142018, #1e3024 50%, #0c1410);
}
.film-virtual[data-kind="oem"],
.film-virtual[data-kind="factory"],
.film-virtual[data-kind="ship"] {
  background: linear-gradient(155deg, #16141a, #24202c 50%, #0c0b10);
}

.display-bezel {
  height: 100%;
  min-height: 260px;
  border-radius: 16px;
  background: linear-gradient(180deg, #d9d7d1, #bdbbb4);
  padding: 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 20px rgba(0,0,0,0.08);
}
.display-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0.35rem 0.45rem;
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #5b5a55;
}
.display-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d9e6f;
  box-shadow: 0 0 0 3px rgba(61,158,111,0.2);
}
.display-screen {
  position: relative;
  height: calc(100% - 1.4rem);
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.display-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mb-switches {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}
.mb-switches button {
  min-height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a3f48, #23272e);
  color: #cfcbc4;
  font-family: var(--font-m);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 0 #101215;
}
.mb-switches button.on {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #101215;
  color: #f0c45a;
}

.sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}
.sys-grid article {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
}
.sys-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 500;
}
.sys-grid p { margin: 0; color: #4d4e50; font-size: 0.9rem; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.2rem;
}
.contact-actions .ui-action { width: auto; padding: 0 1.3rem; }

.hud-bottom {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(28,29,31,0.55);
  pointer-events: none;
}

.boot {
  --boot-pad-x: clamp(1.2rem, 4vw, 2.75rem);
  --boot-pad-y: clamp(1.1rem, 3.5vh, 2.4rem);
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding:
    max(var(--boot-pad-y), env(safe-area-inset-top))
    max(var(--boot-pad-x), env(safe-area-inset-right))
    max(var(--boot-pad-y), env(safe-area-inset-bottom))
    max(var(--boot-pad-x), env(safe-area-inset-left));
  background:
    radial-gradient(90% 70% at 12% 8%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    radial-gradient(120% 90% at 80% 100%, #5f8fb8 0%, transparent 50%),
    linear-gradient(165deg, #d7ebf8 0%, #8eb8e0 42%, #4e7fa8 100%);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.boot-inner {
  width: min(100%, 72rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.35rem, 4vh, 2.4rem);
  box-sizing: border-box;
}

.boot-copy {
  width: min(100%, 96vw);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  container-type: inline-size;
  container-name: bootcopy;
  overflow: visible;
}

@keyframes bootRise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bootStrokeIn {
  from { opacity: 0; transform: translateY(1.4rem) scale(0.94); letter-spacing: 0.06em; }
  to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: -0.055em; }
}
@keyframes bootFillIn {
  from { opacity: 0; transform: translateY(1.8rem); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes bootPulseBar {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.boot-mark {
  margin: 0 0 clamp(0.7rem, 1.8vh, 1.2rem);
  font-family: var(--font-m);
  font-size: clamp(0.78rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(8, 14, 22, 0.55);
  text-transform: uppercase;
  animation: bootRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/*
  Cinema scale: fit longest line (~YOUR BUSINESS.) inside the copy box.
  ~14 glyphs * ~0.58em ≈ 8.1em → size ≈ 100cqi / 8.15
  Also capped by viewport height so two lines + ko + loader stay on screen.
*/
.boot-en {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 0;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: min(12.2cqi, 18vh, 9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #071018;
  text-align: center;
  overflow: visible;
}
.boot-en .boot-line {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  overflow: visible;
}
.boot-en .boot-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: clamp(1.6px, 0.09em, 3.2px) #071018;
  paint-order: stroke fill;
  animation: bootStrokeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
.boot-en .boot-solid {
  margin-top: 0.01em;
  color: #071018;
  -webkit-text-fill-color: #071018;
  -webkit-text-stroke: 0;
  animation: bootFillIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.boot-ko {
  margin: clamp(0.9rem, 2.2vh, 1.5rem) auto 0;
  max-width: 28em;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: rgba(7, 16, 24, 0.72);
  word-break: keep-all;
  text-align: center;
  animation: bootRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}
.boot-load {
  width: min(100%, 32rem);
  margin: 0 auto;
  box-sizing: border-box;
  animation: bootRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}
.boot-load-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-m);
  letter-spacing: 0.14em;
  min-width: 0;
}
.boot-load-row span {
  font-size: 0.82rem;
  color: rgba(7, 16, 24, 0.55);
  animation: bootPulseBar 1.6s ease-in-out infinite;
}
.boot-load-row b {
  font-size: 0.95rem;
  font-weight: 600;
  color: #071018;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.boot-load-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.18);
  overflow: hidden;
}
.boot-load-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: #071018;
  border-radius: inherit;
  will-change: transform;
  transition: transform 0.12s linear;
}
body.is-ready .boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* WIP: skip boot while iterating UI — flip to false / remove when shipping */
body.wip-skip-boot .boot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (max-width: 720px) {
  .boot-inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    gap: clamp(1.1rem, 3.5vh, 1.8rem);
  }
  .boot-copy {
    width: 100%;
    padding-inline: 0.6rem;
    box-sizing: border-box;
  }
  .boot-mark {
    letter-spacing: 0.18em;
    font-size: clamp(0.72rem, 3.4vw, 0.88rem);
  }
  /* keep nowrap; size from container so lines never leave the screen */
  .boot-en {
    font-size: min(11.6cqi, 14.5vh, 3.4rem);
    letter-spacing: -0.05em;
    line-height: 1.0;
  }
  .boot-en .boot-line { white-space: nowrap; }
  .boot-en .boot-outline { -webkit-text-stroke: clamp(1.3px, 0.085em, 2px) #071018; }
  .boot-ko {
    font-size: clamp(1.1rem, 4.4vw, 1.3rem);
    max-width: 100%;
  }
  .boot-load { width: min(100%, 19rem); }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .boot-en { font-size: min(12cqi, 16vh, 6.5rem); }
  .boot-ko { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
}
@supports not (font-size: 1cqi) {
  .boot-en { font-size: min(10.5vw, 18vh, 9rem); }
  @media (max-width: 720px) {
    .boot-en { font-size: min(9.2vw, 14.5vh, 3.4rem); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-mark,
  .boot-en .boot-outline,
  .boot-en .boot-solid,
  .boot-ko,
  .boot-load,
  .boot-load-row span { animation: none !important; }
}

/* Mobile / tablet: stacked zones — top pickers, middle stage, bottom dock */
@media (max-width: 980px) {
  .flight-ui {
    inset: 0;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    overflow: visible;
    pointer-events: none;
  }
  .flight-ui > * { pointer-events: auto; }

  .ui-brand {
    position: fixed;
    top: max(0.4rem, env(safe-area-inset-top));
    left: max(0.45rem, env(safe-area-inset-left));
    right: max(0.45rem, env(safe-area-inset-right));
    z-index: 30;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    background: rgba(246, 244, 238, 0.92);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
  }
  .ui-brand img { width: 22px; height: 22px; }
  .ui-brand strong { font-size: 0.78rem; }
  .ui-brand em,
  .m-route-btn,
  .ui-meta,
  .ui-label { display: none !important; }

  .route {
    position: fixed;
    top: calc(max(0.4rem, env(safe-area-inset-top)) + 2.55rem);
    left: max(0.45rem, env(safe-area-inset-left));
    right: max(0.45rem, env(safe-area-inset-right));
    z-index: 29;
    display: flex;
    flex-direction: row;
    gap: 0.3rem;
    margin: 0;
    padding: 0.3rem;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 12px;
    background: rgba(246, 244, 238, 0.92);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .route::-webkit-scrollbar { display: none; }
  .route-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 4.4rem;
    max-width: 7.2rem;
    grid-template-columns: auto 1fr;
    gap: 0.25rem;
    padding: 0.35rem 0.4rem;
    background: rgba(255,255,255,0.55);
  }
  .route-item em { font-size: 0.72rem; }
  .route-item span {
    font-size: 0.78rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* active chip expands downward — gauges must re-pin under #routeNav */
  .route-item.is-active {
    max-width: min(11rem, 58vw);
    align-self: stretch;
  }
  .route-item.is-active span {
    -webkit-line-clamp: 3;
    white-space: normal;
  }

  /* Compact one-row play dock: ◀ ● ▶ + 문의 */
  .ui-actions-wrap {
    position: fixed;
    left: max(0.45rem, env(safe-area-inset-left));
    right: max(0.45rem, env(safe-area-inset-right));
    bottom: max(0.35rem, env(safe-area-inset-bottom));
    z-index: 28;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem 0.35rem;
    border-radius: 999px;
    background: rgba(246, 244, 238, 0.94);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    min-height: 0;
  }
  .gauges {
    display: none;
  }
  .float-gauges {
    /* top set in JS from #routeNav bottom — do not hardcode */
    left: max(0.45rem, env(safe-area-inset-left));
    top: calc(max(0.4rem, env(safe-area-inset-top)) + 5.9rem);
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    padding: 0.38rem 0.45rem;
    width: min(7.2rem, 42vw);
    max-width: min(7.2rem, 42vw);
    min-width: 0;
    box-sizing: border-box;
    z-index: 26;
  }
  .float-gauges .fg-body {
    flex-direction: column;
    gap: 0.26rem;
    width: 100%;
  }
  .float-gauges .fg-meters {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.26rem;
  }
  .float-gauges .fg-route {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 0.26rem;
    width: 100%;
    gap: 0.24rem;
    min-width: 0;
  }
  .float-gauges b { font-size: 0.88rem; }
  .float-gauges span { font-size: 0.52rem; }
  .float-gauges .fg-route b { font-size: 0.7rem; }
  .fg-progress { width: 100%; }
  .look-snaps {
    flex: 0 0 auto;
    margin: 0;
    width: auto;
    grid-column: auto;
  }
  .snap-btn {
    width: 2.05rem;
    height: 2.05rem;
    min-height: 0;
    padding: 0;
    font-size: 0.7rem;
    border-radius: 999px;
  }
  .dock-inquire {
    flex: 1 1 auto;
    min-height: 2.05rem !important;
    height: 2.05rem;
    font-size: 0.8rem !important;
  }
  .ui-action {
    min-height: 0;
    font-size: 0.8rem;
    margin: 0;
    border-radius: 999px;
  }
  .ui-action.ghost { margin: 0; }

  .glass-glare { display: none; opacity: 0; }
  .vignette {
    background:
      radial-gradient(ellipse at 50% 45%, transparent 32%, rgba(4, 8, 14, 0.55) 100%),
      linear-gradient(90deg, rgba(4, 8, 14, 0.35), transparent 28%, transparent 72%, rgba(4, 8, 14, 0.3));
  }

  .stage {
    left: max(0.55rem, env(safe-area-inset-left)) !important;
    right: max(0.55rem, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    /* under brand+route; JS also nudges via --stage-top when gauges/route grow */
    top: var(--stage-top, calc(max(0.4rem, env(safe-area-inset-top)) + 5.3rem));
    bottom: calc(3.6rem + env(safe-area-inset-bottom));
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
  }
  .view-hint {
    bottom: calc(3.4rem + env(safe-area-inset-bottom));
    font-size: 0.65rem;
  }
  .hero-card,
  .project-card,
  .system-card,
  .contact-card {
    width: 100%;
    margin-left: 0;
    max-height: min(42vh, 340px);
    overflow: auto;
    padding: 0.55rem 0.65rem 0.6rem;
    border-radius: 12px;
    background: rgba(246, 244, 238, 0.94);
  }
  .hero-card .lede,
  .hero-card .chips,
  .project-card .project-display { display: none; }
  .hero-card .eyebrow,
  .project-card .eyebrow { margin-bottom: 0.3rem; font-size: 0.72rem; }
  h1 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); line-height: 1.22; }
  h2 { font-size: clamp(1.25rem, 4.5vw, 1.55rem); line-height: 1.28; }
  .lede { font-size: 0.95rem; margin: 0.4rem 0 0; -webkit-line-clamp: 3; }
  .project-card {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-height: min(48vh, 420px);
  }
  .project-card .lede {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .film-scene {
    /* overridden by .ar-hud film-scene rules below — do not pin 88px media column */
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 10px;
  }
  .film-still,
  .film-still img { min-height: 72px; }
  .film-caption h3 { font-size: 0.95rem; }
  .film-caption p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .project-tags { margin-top: 0.4rem; }
  .project-tags span { font-size: 0.68rem; padding: 0.28rem 0.45rem; }
  .link-out { margin-top: 0.45rem; font-size: 0.92rem; }
  .sys-grid { grid-template-columns: 1fr 1fr; gap: 0.3rem; }
  .sys-grid article { padding: 0.45rem; }
  .sys-grid h3 { font-size: 0.82rem; }
  .sys-grid p { font-size: 0.88rem; }
  .hud-bottom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card, .project-card, .system-card, .contact-card, .flight-ui {
    transition: none;
  }
  .film-scene,
  .film-still img,
  .fv-orb,
  .fv-panel,
  .fv-scan {
    animation: none !important;
  }
}

.hud-credit { opacity: 0.55; font-size: 0.68rem; letter-spacing: 0.02em; }

@media (min-width: 981px) and (max-width: 1200px) {
  .stage {
    left: auto !important;
    right: max(0.85rem, env(safe-area-inset-right)) !important;
    width: min(60vw, 720px) !important;
    max-width: 720px !important;
  }
  .system-card, .contact-card, .hero-card {
    width: min(100%, 400px);
  }
  .project-card.ar-hud {
    width: 100% !important;
  }
}


/* MFD project screens — clipped to measured black DU rects (screen-space) */
#mfdClipLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.mfd-clip {
  position: absolute;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: none;
  border: none;
  transform-origin: center center;
  background: #101820;
}
.mfd-clip-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
body:not(.is-cockpit-ready) #mfdClipLayer {
  display: none;
}

#mfdClipLayer{display:none!important}


/* ═══ STORY HUD PATCH ═══════════════════════════════════════ */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.boot-svg-defs{position:absolute;width:0;height:0;overflow:hidden}

.boot-en{
  font-family:"Bebas Neue","Arial Narrow",Impact,sans-serif !important;
  font-weight:400 !important;
  letter-spacing:.05em !important;
  font-size:min(14.5cqi,20vh,9.8rem) !important;
  line-height:.9 !important;
}
.boot-en .boot-outline{
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  -webkit-text-stroke:0 !important;
  display:block;width:100%;
  transform:skewX(-9deg);
  animation:bootStrokeIn .5s cubic-bezier(.16,1,.3,1) .04s both !important;
}
.boot-outline-svg{display:block;width:100%;height:auto;overflow:visible}
.boot-outline-svg text{
  fill:#071018;
  font-family:"Bebas Neue","Arial Narrow",Impact,sans-serif;
  font-size:112px;
  letter-spacing:.07em;
}
.boot-en .boot-solid{
  margin-top:.04em;
  font-family:"Bebas Neue","Arial Narrow",Impact,sans-serif !important;
  font-weight:400 !important;
  letter-spacing:.04em !important;
  color:#071018 !important;
  -webkit-text-fill-color:#071018 !important;
  -webkit-text-stroke:0 !important;
  transform:skewX(-9deg);
  animation:bootFillIn .55s cubic-bezier(.16,1,.3,1) .1s both !important;
}
@keyframes bootStrokeIn{
  from{opacity:0;transform:skewX(-9deg) translateX(-2.4rem) scale(.9);filter:blur(2px)}
  to{opacity:1;transform:skewX(-9deg) translateX(0) scale(1);filter:blur(0)}
}
@keyframes bootFillIn{
  from{opacity:0;transform:skewX(-9deg) translateX(1.8rem);filter:blur(3px)}
  to{opacity:1;transform:skewX(-9deg) translateX(0);filter:blur(0)}
}

@media (min-width: 981px) {
  .flight-ui{
    background:rgba(246,244,238,.9) !important;
    border:1px solid rgba(255,255,255,.7) !important;
    box-shadow:0 18px 50px rgba(40,50,65,.18), inset 0 1px 0 rgba(255,255,255,.6) !important;
  }
}
.ui-meta span,.ui-label,.route-item em{color:#3a3d42 !important;font-weight:600}
.route-item span{color:#141618 !important;font-weight:700 !important}
.route-item.is-active span{color:#0b0c0d !important}
.ui-meta b{color:#141618 !important}
.ui-action,.snap-btn{color:#1a1c1f !important;font-weight:650}
.dock-inquire{color:#1a1c1f !important;border:1px solid rgba(28,29,31,.18) !important;background:rgba(255,255,255,.55) !important}

.float-gauges{
  background:rgba(10,12,16,.82) !important;
  border:1px solid rgba(255,255,255,.22) !important;
}
.float-gauges span{color:rgba(255,255,255,.78) !important}
.float-gauges b{color:#fff !important}

.ar-hud{
  position:relative;isolation:isolate;
  background:#0c1826 linear-gradient(155deg,rgba(10,22,34,.96),rgba(14,28,42,.94)) !important;
  border:1px solid rgba(120,210,255,.45) !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.3),0 24px 64px rgba(0,12,24,.45),inset 0 1px 0 rgba(180,230,255,.22) !important;
  color:#e8eef5 !important;
  backdrop-filter:blur(18px) saturate(1.25) !important;
  /* clip was cutting RESULT #4 mid-card into orphan PC/MO boxes */
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  animation:arPanelIn .7s cubic-bezier(.16,1,.3,1) both;
}
#projectCard.ar-hud:not(.is-hidden),
#heroCard.ar-hud:not(.is-hidden),
#systemCard.ar-hud:not(.is-hidden),
#contactCard.ar-hud:not(.is-hidden){
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
.ar-hud::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    linear-gradient(180deg,transparent,rgba(100,200,255,.05),transparent),
    repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(120,200,255,.03) 3px);
  animation:arScan 5.5s linear infinite;
}
.ar-hud::after{display:none !important} /* drop decorative inner corner border */
.ar-hud>*{position:relative;z-index:1}
.ar-hud .eyebrow{color:#7ed0ff !important}
.ar-hud h1,.ar-hud h2,.ar-hud h3{color:#f3f7fb !important}
.ar-hud .lede,.ar-hud p{color:rgba(220,230,240,.92) !important}
.ar-hud .chips span,.ar-hud .project-tags span{
  background:rgba(80,170,220,.18) !important;
  border:none !important;
  color:#b8e4ff !important;
}
.ar-hud .link-out{color:#9fdfff !important;border-color:rgba(159,223,255,.45) !important}
.project-card.ar-hud{
  width:100% !important;
  max-width:none;
  min-width:0;
  max-height:calc(100vh - 3.8rem);
  overflow-x:hidden;
  overflow-y:auto;
  padding:1.1rem 1.15rem 1.2rem !important;
  margin:0 !important;
  flex:1 1 auto;
  align-self:stretch;
  box-sizing:border-box;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  inset:auto !important;
  transform:none !important;
}
#projectCard:not(.is-hidden){
  position:relative !important;
  visibility:visible !important;
  opacity:1 !important;
  transform:none !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
}
.film-rail{
  position:sticky;top:0;z-index:3;padding:.25rem 0 .35rem;
  background:linear-gradient(180deg,rgba(10,22,34,.96),rgba(10,22,34,.82));
}
@keyframes arPanelIn{
  from{opacity:0;transform:translateY(18px);filter:blur(4px)}
  to{opacity:1;transform:none;filter:blur(0)}
}
@keyframes arScan{from{background-position:0 0,0 0}to{background-position:0 0,0 48px}}

.film-reel{display:grid !important;gap:.7rem !important;margin-top:.35rem;min-width:0}
.film-rail{display:flex;gap:.35rem;margin:.45rem 0 .1rem;flex-wrap:wrap}
.film-rail button{
  font-family:var(--font-m),ui-monospace,monospace;font-size:.58rem;letter-spacing:.1em;
  padding:.28rem .5rem;border-radius:999px;border:1px solid rgba(120,210,255,.28);
  background:rgba(20,40,60,.55);color:rgba(200,225,245,.75);cursor:pointer;
}
.film-rail button.is-on{color:#071018;background:#7ed0ff;border-color:#7ed0ff;box-shadow:0 0 16px rgba(126,208,255,.45)}

.film-scene{
  display:grid !important;grid-template-columns:1fr !important;
  gap:.65rem !important;align-items:stretch;padding:.7rem .75rem !important;border-radius:12px !important;
  background:rgba(8,18,30,.96) !important;border:none !important;
  opacity:1;transform:none;filter:none;
  transition:opacity .35s,box-shadow .3s,filter .35s;
  /* do NOT use animation-fill that ends at opacity:.4 — that kept live cards translucent forever */
}
.film-scene.is-live{
  opacity:1 !important;transform:none !important;filter:none !important;
  background:rgba(8,20,34,.98) !important;
  box-shadow:0 0 0 1px rgba(140,230,255,.28),0 12px 32px rgba(0,20,40,.35);
  position:relative;z-index:2;
}
.film-scene.is-live .device-duo,
.film-scene.is-live .film-still,
.film-scene.is-live .gallery-still,
.film-scene.is-live .device-mo{
  max-height:none !important;min-height:0;
}
.film-scene.is-done{
  opacity:1 !important;filter:none !important;transform:none !important;
  background:rgba(8,18,30,.96) !important;
}
/* inactive: caption strip only — never clip device-duo to a half-height 2-col crop */
.film-scene:not(.is-live){
  opacity:1 !important;transform:none !important;filter:none !important;
  background:rgba(8,18,30,.96) !important;
  box-shadow:none;
  position:relative;z-index:1;
  padding:.55rem .75rem !important;
}
.film-scene:not(.is-live) .film-hslide--media,
.film-scene:not(.is-live) .device-duo,
.film-scene:not(.is-live) .film-still,
.film-scene:not(.is-live) .gallery-still{
  display:none !important;
}
.film-scene:not(.is-live) .film-htrack{
  display:block !important;
  overflow:visible !important;
}
.film-scene:not(.is-live) .film-caption p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.film-scene:not(.is-live) .film-caption{opacity:.72}
.film-scene:not(.is-live) .color-row,
.film-scene:not(.is-live) .film-link{display:none}

/* PC default: vertical stack inside each beat */
.film-htrack{
  display:flex;
  flex-direction:column;
  gap:.65rem;
  min-width:0;
  width:100%;
}
.film-hslide{min-width:0;width:100%}

.device-duo{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(78px,.55fr);
  gap:.55rem;
  align-items:end;
  width:100%;
  min-width:0;
}
.device-pc,.device-mo{
  position:relative;border:none;background:transparent;
  min-width:0;
}
.device-pc{
  display:flex;flex-direction:column;border-radius:10px;overflow:hidden;
  background:#0a121c;box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.device-chrome{
  display:flex;align-items:center;gap:.28rem;padding:.32rem .45rem;
  background:linear-gradient(180deg,#1a2430,#121a24);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.device-chrome i{
  width:7px;height:7px;border-radius:50%;display:block;background:#ff5f57;
  box-shadow:12px 0 0 #febc2e,24px 0 0 #28c840;
}
.device-chrome b{
  flex:1;margin-left:2rem;min-width:0;
  font-family:var(--font-m),ui-monospace,monospace;font-size:.48rem;font-weight:500;
  letter-spacing:.04em;color:rgba(180,210,230,.7);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:rgba(0,0,0,.28);border-radius:4px;padding:.14rem .35rem;
}
.device-pc .device-screen{
  aspect-ratio:16/10;background:#060c14;overflow:hidden;
}
.device-mo{
  justify-self:end;width:100%;max-width:118px;
  border-radius:14px;overflow:hidden;background:#050a10;
  box-shadow:0 10px 24px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.1);
  padding:8px 6px 10px;
}
.device-notch{
  width:36%;height:5px;margin:0 auto 6px;border-radius:999px;background:rgba(0,0,0,.65);
}
.device-mo .device-screen{
  aspect-ratio:9/16;border-radius:8px;overflow:hidden;background:#060c14;
}
.device-screen img{
  width:100%;height:100%;object-fit:cover;object-position:top center;display:block;
}
.device-pc::after,.device-mo::after{display:none}
.device-pc.is-broken .device-screen,.device-mo.is-broken .device-screen,.fv-fallback{
  display:grid;place-items:center;min-height:100%;background:linear-gradient(145deg,#0a1622,#132536);
  color:rgba(160,210,240,.7);font-family:var(--font-m),ui-monospace,monospace;font-size:.62rem;letter-spacing:.14em;
}
.film-still,.gallery-still{
  position:relative;min-height:130px;border-radius:8px;overflow:hidden;background:#060c14;
}
.film-still.is-contain{background:#0a121c}
.film-still.is-contain img{object-fit:contain;padding:.55rem;object-position:center}
.film-still img,.gallery-still img{
  width:100%;height:100%;object-fit:cover;object-position:top center;display:block;
}
.gallery-still img{animation:kenBurns 11s ease-in-out infinite alternate}
.film-caption{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;padding:.05rem .1rem 0}
.beat-phase{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;font-family:var(--font-m),ui-monospace,monospace;font-size:.62rem;letter-spacing:.14em;color:#7ed0ff;text-transform:uppercase}
.beat-phase b{color:#f0a84a;font-weight:700}
.beat-weeks{
  display:inline-block;margin-left:.1rem;padding:.12rem .35rem;border-radius:999px;
  background:rgba(240,168,74,.18);color:#ffd59a;font-size:.58rem;letter-spacing:.06em;border:none;
}
.film-caption em{font-style:normal;font-family:var(--font-m),ui-monospace,monospace;font-size:.6rem;letter-spacing:.12em;color:rgba(180,220,245,.75);margin-top:.22rem}
.film-caption h3{margin:.28rem 0 0;font-size:clamp(1.05rem,1.7vw,1.35rem);color:#f3f7fb !important;line-height:1.2}
.film-caption p{margin:.35rem 0 0;font-size:.86rem;line-height:1.45;color:rgba(210,222,235,.92) !important}
.film-link{margin-top:.45rem;width:fit-content;font-size:.8rem;font-weight:600;color:#9fdfff;border-bottom:1px solid rgba(159,223,255,.4)}

.color-row{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.45rem}
.color-swatch{width:1.55rem;height:1.55rem;border-radius:6px;border:1px solid rgba(255,255,255,.35);box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}

@media (min-width:981px){
  .stage{
    left:auto !important;
    right:0.75rem !important;
    /* ~1.5× prior 34vw/520 */
    width:min(51vw, 780px) !important;
    max-width:780px !important;
    justify-content:flex-end !important;
    align-items:stretch !important;
    overflow:visible;
  }
  .project-card.ar-hud{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
    position:relative !important;
    left:0 !important;
    right:0 !important;
    padding:1.25rem 1.3rem 1.35rem !important;
  }
  /* PC: gauges stay left; never cover the right story dock */
  body.is-project-open .float-gauges{
    max-width:7.2rem;
    right:auto;
  }
  body.is-project-open .stage{
    z-index:28;
  }
  .film-htrack{
    flex-direction:column;
    overflow:visible;
    scroll-snap-type:none;
  }
  .film-hslide{flex:none;width:100%}
}
@media (max-width:980px){
  .cesium-credit-host{
    left:auto !important;
    right:max(0.4rem, env(safe-area-inset-right));
    bottom:calc(3.4rem + env(safe-area-inset-bottom));
    max-width:36vw;
    transform:scale(0.65);
    transform-origin:right bottom;
    z-index:20;
    opacity:0.45;
  }
  .stage{
    left:max(0.55rem, env(safe-area-inset-left)) !important;
    right:max(0.55rem, env(safe-area-inset-right)) !important;
    width:auto !important;
    max-width:none !important;
    z-index:27 !important;
    overflow-x:hidden;
    bottom:calc(3.6rem + env(safe-area-inset-bottom)) !important;
  }
  /* project open: keep gauges from covering the story panel */
  body.is-project-open .float-gauges{
    display:none !important;
  }
  .project-card.ar-hud{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    max-height:min(58vh, 520px) !important;
    padding:0.7rem 0.75rem 0.8rem !important;
    background:#0c1826 linear-gradient(155deg,rgba(10,22,34,.97),rgba(14,28,42,.95)) !important;
    overflow-x:hidden;
    overflow-y:auto;
  }
  .film-scene{
    grid-template-columns:1fr !important;
    padding:.55rem .5rem !important;
    transform:none !important;
    overflow:visible;
  }
  .film-scene:not(.is-live){opacity:1 !important;filter:none !important;transform:none !important}
  /* mobile live beat: media | caption as horizontal snaps; 01 above 02 vertically */
  .film-scene.is-live .film-htrack{
    display:flex !important;
    flex-direction:row !important;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    gap:0;
    scrollbar-width:none;
  }
  .film-scene.is-live .film-htrack::-webkit-scrollbar{display:none}
  .film-scene.is-live .film-hslide{
    flex:0 0 100%;
    width:100%;
    max-width:100%;
    scroll-snap-align:start;
    scroll-snap-stop:always;
    box-sizing:border-box;
    padding-right:.15rem;
  }
  /* PC / MO also swipe sideways inside media slide */
  .film-scene.is-live .device-duo{
    display:flex !important;
    flex-direction:row !important;
    grid-template-columns:none !important;
    gap:0;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    align-items:stretch;
  }
  .film-scene.is-live .device-duo::-webkit-scrollbar{display:none}
  .film-scene.is-live .device-pc,
  .film-scene.is-live .device-mo{
    flex:0 0 100% !important;
    width:100% !important;
    max-width:none !important;
    justify-self:stretch;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
  .device-chrome{padding:.22rem .35rem}
  .device-chrome b{margin-left:1.6rem;font-size:.42rem}
  .device-mo{padding:6px 5px 8px}
  .device-pc .device-screen{aspect-ratio:16/10}
  .film-caption h3{font-size:1.05rem}
  .film-caption p{font-size:.8rem;-webkit-line-clamp:unset;display:block;overflow:visible}
  .project-card .lede{
    -webkit-line-clamp:4 !important;
    overflow:hidden;
  }
  .film-rail{gap:.28rem;flex-wrap:wrap}
  .film-rail button{font-size:.52rem;padding:.24rem .42rem}
  .boot-en{font-size:min(13cqi,15vh,3.7rem) !important}
  .boot-en .boot-outline,.boot-en .boot-solid{transform:skewX(-5deg)}
  .ui-brand strong,.route-item span{color:#121417 !important}
}
@media (prefers-reduced-motion:reduce){
  .ar-hud,.film-scene,.boot-en .boot-outline,.boot-en .boot-solid,.gallery-still img,.ar-hud::before{animation:none !important}
}
