:root, [data-theme="dark"] {
  --bg: #07090d;
  --surface: #0f131b;
  --surface-2: #151b26;
  --surface-3: #1e2636;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f5f7fb;
  --text-muted: #98a3b8;
  --text-dim: #68738b;
  --gold: #e2c285;
  --gold-soft: rgba(226, 194, 133, .14);
  --gold-border: rgba(226, 194, 133, .44);
  --accent: #8b6bff;
  --accent-soft: rgba(139, 107, 255, .16);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, .15);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, .16);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, .16);
  --topbar-bg: rgba(10, 13, 19, .86);
  --stage-bg: radial-gradient(ellipse at 50% 20%, #171d2c, #05070b 74%);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --surface-3: #e5e0d5;
  --border: rgba(18, 21, 28, .09);
  --border-strong: rgba(18, 21, 28, .18);
  --text: #12151c;
  --text-muted: #525c70;
  --text-dim: #7b8499;
  --gold: #9a6e22;
  --gold-soft: rgba(154, 110, 34, .11);
  --gold-border: rgba(154, 110, 34, .42);
  --accent: #5e3ff2;
  --accent-soft: rgba(94, 63, 242, .11);
  --topbar-bg: rgba(246, 244, 239, .9);
  --stage-bg: radial-gradient(ellipse at 50% 20%, #1c2231, #090c12 78%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.55;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.app-shell { display: flex; flex-direction: column; min-height: 100dvh; }

/* Top Bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1360px; margin: 0 auto; height: 62px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ebd099, #b48a45); color: #0a0c10;
  box-shadow: 0 4px 16px rgba(226, 194, 133, .28);
}
.brand-name { font-weight: 800; letter-spacing: .04em; font-size: 13.5px; }
.brand-tag {
  font-size: 11px; font-weight: 650; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  padding: 2px 9px; border-radius: 999px;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 6px 11px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-cta {
  background: linear-gradient(135deg, #ebd099, #c99d52); color: #0a0c10;
  font-weight: 750; font-size: 12.5px; padding: 8px 14px; border-radius: 9px;
  white-space: nowrap; transition: filter .15s, transform .12s;
}
.topbar-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Buttons & Controls */
.segmented {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-2); padding: 3px; border-radius: 10px;
  border: 1px solid var(--border);
}
.seg-btn {
  border: 0; background: transparent; color: var(--text-muted);
  padding: 6px 11px; border-radius: 7px; font-weight: 650; font-size: 12.5px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.audio-ab .seg-btn.active { background: var(--accent); color: #fff; }

.ghost-btn, .icon-btn, .mini-btn, .gold-btn, .gold-btn-inline, .ghost-cta {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 9px; padding: 7px 13px; font-size: 12.5px; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, background .15s, transform .12s, filter .15s;
}
.ghost-btn:hover, .icon-btn:hover, .mini-btn:hover, .ghost-cta:hover {
  background: var(--surface-3); border-color: var(--border-strong);
}
.icon-btn { width: 34px; height: 34px; padding: 0; }
.mini-btn { padding: 4px 9px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.gold-btn, .gold-btn-inline {
  background: linear-gradient(135deg, #ebd099, #c99d52); color: #0a0c10;
  border-color: transparent; font-weight: 750;
}
.gold-btn { width: 100%; padding: 12px 18px; font-size: 13.5px; border-radius: 10px; }
.gold-btn-inline { padding: 11px 20px; font-size: 13.5px; border-radius: 10px; }
.ghost-cta { padding: 11px 18px; font-size: 13.5px; border-radius: 10px; background: var(--surface); }
.gold-btn:hover, .gold-btn-inline:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Hero */
.hero-band {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 16% 0%, rgba(226, 194, 133, .13), transparent 52%),
    radial-gradient(ellipse at 86% 0%, rgba(139, 107, 255, .11), transparent 50%);
}
.hero-inner {
  max-width: 1360px; margin: 0 auto; padding: 34px 24px 26px;
  display: flex; flex-direction: column; gap: 22px;
}
.eyebrow, .eyebrow-sm {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 750; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
}
.hero-title {
  margin: 10px 0 10px; font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em;
}
.hero-desc {
  margin: 0; max-width: 740px; color: var(--text-muted); font-size: 15px; line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.trust-card strong { font-size: 13.5px; color: var(--text); }
.trust-card span { font-size: 12px; color: var(--text-muted); }

/* Main Workspace */
.workspace {
  flex: 1; width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 28px 24px 72px; display: flex; flex-direction: column; gap: 44px;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.section-title { margin: 4px 0 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.025em; }
.section-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.industry-legend { display: flex; align-items: center; gap: 6px; }

/* Portfolio 9:16 Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard {
  position: relative; text-align: left; padding: 0; border-radius: 15px;
  overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--gold-border); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }
.pcard.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 16px 36px rgba(226, 194, 133, .16); }
.pcard-media { position: relative; aspect-ratio: 9 / 12.5; width: 100%; background: #090b10; overflow: hidden; }
.pcard-media video { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; transition: transform .35s ease; }
.pcard:hover .pcard-media video { transform: scale(1.03); }
.pcard-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 34%, rgba(7, 9, 13, .88) 100%);
}
.pcard-top {
  position: absolute; top: 9px; left: 9px; right: 9px;
  display: flex; justify-content: space-between; align-items: center; gap: 4px; z-index: 2;
}
.pcard-top .pill {
  background: rgba(10, 12, 18, .82); color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
}
.pcard-top .pill.gold { color: #f2d59b; border-color: rgba(226, 194, 133, .52); }
.pcard-play {
  position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(15, 19, 27, .82);
  border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  backdrop-filter: blur(8px);
}
.pcard.active .pcard-play { background: var(--gold); color: #0a0c10; border-color: transparent; }
.pcard-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pcard-title {
  font-size: 14px; font-weight: 750; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-meta { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11px; color: var(--text-muted); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.pill.medical { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-border); }
.pill.legal { background: var(--sky-soft); color: var(--sky); border: 1px solid rgba(56, 189, 248, .35); }
.pill.compare { background: var(--accent-soft); color: #c4b5fd; }
[data-theme="light"] .pill.compare { color: var(--accent); }
.pill.spec { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* Cinema Comparison Stage */
.stage {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px;
}
.stage-header, .stage-controls, .transport-row, .scene-strip-head, .lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.stage-header { align-items: flex-start; }
.stage-controls, .transport-row { flex-wrap: wrap; gap: 8px; }
.stage-title-group { min-width: 0; }
.stage-badges, .control-group, .transport-left, .transport-right {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.stage-nav, .scene-nav-btns { display: flex; align-items: center; flex-wrap: nowrap; flex-shrink: 0; gap: 6px; }
.stage-badges { margin-bottom: 7px; }
.stage-header h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stage-subtitle { margin: 5px 0 0; font-size: 13px; color: var(--text-muted); max-width: 900px; }
.toggle-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 11px; border-radius: 9px; font-size: 12px; font-weight: 650;
}
.toggle-chip.active { background: var(--gold-soft); border-color: var(--gold-border); color: var(--gold); }

/* Viewport */
.viewport-wrap {
  min-height: 400px; display: flex; align-items: center; justify-content: center;
  background: var(--stage-bg); border: 1px solid var(--border);
  border-radius: 15px; padding: 18px; overflow: hidden;
}
.player-grid { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; }
.video-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.video-label {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 12px; font-weight: 700; color: #cbd5e1;
}
.lbl-left { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ref { background: #f59e0b; }
.dot.main { background: #e2c285; box-shadow: 0 0 8px rgba(226, 194, 133, .7); }
.audio-pill {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(139, 107, 255, .24); color: #ddd6fe; border: 1px solid rgba(139, 107, 255, .45);
}
.video-frame, .wipe-frame {
  position: relative; height: 60vh; max-height: 580px; min-height: 320px;
  aspect-ratio: 9 / 16; background: #000; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .12);
}
.video-frame { cursor: pointer; }
.video-frame.audio-focus {
  border-color: rgba(226, 194, 133, .65);
  box-shadow: 0 0 0 1px rgba(226, 194, 133, .35), 0 18px 48px rgba(0, 0, 0, .72);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.buffer-ring {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px;
  margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold);
  animation: spin .75s linear infinite; pointer-events: none; z-index: 7;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Safe-Zone & Wipe */
.safezone-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.sz-top {
  position: absolute; top: 0; left: 0; right: 0; height: 11%;
  background: rgba(244, 63, 94, .22); border-bottom: 1.5px dashed rgba(244, 63, 94, .85);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #ffe4e6; font-weight: 700;
}
.sz-right {
  position: absolute; right: 0; bottom: 24%; width: 16%; height: 36%;
  background: rgba(245, 158, 11, .22);
  border-left: 1.5px dashed rgba(245, 158, 11, .85);
  border-top: 1.5px dashed rgba(245, 158, 11, .85);
  display: flex; flex-direction: column; align-items: center; justify-content: space-around;
  font-size: 12px; color: #fef3c7;
}
.sz-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: rgba(244, 63, 94, .24); border-top: 1.5px dashed rgba(244, 63, 94, .85);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; font-size: 10.5px; color: #ffe4e6; font-weight: 700;
}
.wipe-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wipe-frame { user-select: none; touch-action: none; cursor: ew-resize; }
.wipe-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wipe-top-clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.wipe-tag {
  position: absolute; top: 10px; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 750; background: rgba(7, 9, 13, .8);
  backdrop-filter: blur(6px); pointer-events: none; z-index: 4;
}
.wipe-tag.left { left: 10px; color: #fcd34d; }
.wipe-tag.right { right: 10px; color: #f2d59b; }
.wipe-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .9); z-index: 6; pointer-events: none;
}
.wipe-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: #0a0c10; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .65);
}
.wipe-range { width: 260px; accent-color: var(--gold); }

/* Transport & Scenes */
.transport, .scene-strip-wrap {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 13px; padding: 11px 14px;
}
.transport { display: flex; flex-direction: column; gap: 9px; }
.timeline-wrap { position: relative; padding-top: 8px; }
.timeline-markers { position: absolute; top: 0; left: 0; right: 0; height: 10px; pointer-events: none; }
.t-marker.scene {
  position: absolute; top: 1px; transform: translateX(-50%);
  width: 2px; height: 8px; background: var(--gold); opacity: .78;
  pointer-events: auto; cursor: pointer;
}
#seek-bar { width: 100%; accent-color: var(--gold); cursor: pointer; }
.play-btn {
  border: 0; background: var(--gold); color: #0b0d12;
  font-weight: 800; padding: 6px 16px; border-radius: 9px; min-width: 88px;
}
.time-readout {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--text-muted); margin-left: 4px;
}
.speed-group {
  display: inline-flex; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 2px;
}
.speed-btn {
  border: 0; background: transparent; color: var(--text-muted);
  font-size: 11.5px; font-weight: 650; padding: 4px 8px; border-radius: 6px;
}
.speed-btn.active { background: var(--surface-3); color: var(--text); }
.sync-badge {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--green-soft); padding: 4px 9px; border-radius: 999px;
}
.scene-strip-head { margin-bottom: 9px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.scene-strip { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.scene-chip {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--surface);
  border-radius: 9px; padding: 7px 11px; font-size: 12px; text-align: left;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s;
}
.scene-chip:hover { border-color: var(--border-strong); }
.scene-chip.active { background: var(--gold-soft); border-color: var(--gold-border); }
.scene-chip .sc-time { font-family: var(--mono); font-size: 10.5px; color: var(--gold); font-weight: 700; }
.showcase-scene-note {
  margin-top: 10px; padding: 11px 13px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; display: flex; flex-direction: column; gap: 4px;
}

/* Differentiators & 4-Step OS */
.differentiators-section { display: flex; flex-direction: column; gap: 18px; }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.std-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 9px;
}
.std-num { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--gold); }
.std-card h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.std-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

.os-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.os-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.os-title { margin: 5px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.portal-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px;
  background: var(--gold-soft); border: 1px solid var(--gold-border); color: var(--gold);
}
.portal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.os-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.os-steps li {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.step-idx { font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--gold); }
.os-steps strong { font-size: 14.5px; font-weight: 800; }
.os-steps p { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* Contact & Estimate Builder */
.collab-panel {
  background: var(--surface); border: 1px solid var(--gold-border);
  border-radius: 20px; padding: 28px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start;
}
.collab-info h2 { margin: 8px 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.collab-desc { margin: 0 0 18px; font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.contact-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.contact-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.contact-row:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-lbl { font-size: 11.5px; font-weight: 700; color: var(--text-dim); }
.contact-val-group { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contact-email { font-size: 16px; font-weight: 800; color: var(--gold); letter-spacing: -.01em; }
.contact-val { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-val small { color: var(--text-muted); font-weight: 500; }

.brief-box {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2); padding: 18px; border-radius: 16px;
  border: 1px solid var(--border);
}
.brief-group { display: flex; flex-direction: column; gap: 7px; }
.brief-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.brief-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.b-pill {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 650;
  transition: border-color .15s, background .15s, color .15s;
}
.b-pill.active { background: var(--gold-soft); border-color: var(--gold-border); color: var(--gold); }
.brief-preview-wrap { display: flex; flex-direction: column; gap: 6px; }
.brief-preview {
  margin: 0; padding: 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font); font-size: 12.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; color: var(--text);
}
.brief-actions { display: flex; flex-direction: column; gap: 8px; }
.mailto-btn { width: 100%; padding: 10px 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 22px 24px;
}
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted);
}
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-brand strong { color: var(--text); font-size: 13px; letter-spacing: .02em; }
.footer-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-links a { color: var(--gold); font-weight: 650; }

/* Modal & Toast */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .76); backdrop-filter: blur(6px); }
.shortcuts-card {
  position: relative; z-index: 2; width: 400px; max-width: 92vw;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.shortcut-list { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.shortcut-list > div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 12px; }
.shortcut-list dt, .shortcut-list dd { margin: 0; }
kbd {
  background: var(--surface-3); border: 1px solid var(--border-strong);
  border-radius: 5px; padding: 2px 6px; font-family: var(--mono); font-size: 11.5px;
}
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #141925; color: #fff; border: 1px solid var(--gold-border);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 650;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55); z-index: 200; white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav, .brand-tag { display: none; }
  .trust-grid, .portfolio-grid, .os-steps { grid-template-columns: repeat(2, 1fr); }
  .standards-grid, .collab-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar-inner { height: 54px; padding: 0 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { font-size: 12px; letter-spacing: .02em; }
  .icon-btn { width: 30px; height: 30px; }
  .topbar-cta { padding: 6px 10px; font-size: 11.5px; }
  .hero-inner { padding: 20px 14px 18px; gap: 16px; }
  .hero-desc { font-size: 13.5px; }
  .hero-actions { gap: 8px; }
  .gold-btn-inline, .ghost-cta { width: 100%; font-size: 13px; padding: 10px 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-card { padding: 10px 11px; }
  .trust-card strong { font-size: 12px; }
  .trust-card span { font-size: 11px; }
  .workspace { padding: 18px 12px 48px; gap: 28px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .pcard-top .pill { font-size: 9.5px; padding: 2px 6px; }
  .pcard-body { padding: 10px; }
  .pcard-title { font-size: 12.5px; }
  .stage { padding: 12px; border-radius: 15px; }
  .stage-header h2 { font-size: 16.5px; }
  .seg-btn { padding: 5px 8px; font-size: 11px; }
  .viewport-wrap { min-height: 250px; padding: 10px 7px; }
  .player-grid.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-items: start; }
  .player-grid.two-up .video-card { width: 100%; }
  .player-grid.two-up .video-frame { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 9 / 16; }
  .player-grid.single-up .video-frame, .wipe-frame { height: 54vh; min-height: 260px; max-width: 100%; }
  .video-label { font-size: 10.5px; }
  .audio-pill, .sync-badge { display: none; }
  .os-panel { padding: 16px; }
  .os-steps { grid-template-columns: 1fr; }
  .collab-panel { padding: 18px 14px; gap: 18px; }
}
