/* ════════════════════════════════════════════════════════════
   POSTER — 1080×1920 portrait digital signage · v2
   Bender AI curates the rotating mode panels:
   every panel = MAP (top) + TENANTS (bottom) + insight rail.
   ════════════════════════════════════════════════════════════ */

.poster-canvas {
  position: relative;
  width: 1080px;
  height: 1920px;
  font-family: var(--font-sans);
  overflow: hidden;
  isolation: isolate;
}

/* ——— Chrome (top + bottom) ——— */
.poster-top, .poster-bottom {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 10;
  padding: 32px 48px;
}
.poster-top { top: 0; justify-content: space-between; align-items: center; }
.poster-bottom { bottom: 0; flex-direction: column; gap: 18px; }

.poster-top-l, .poster-top-r { display: flex; align-items: center; gap: 14px; }
.poster-top-c { font-size: 16px; opacity: 0.7; }

.dot { width: 10px; height: 10px; border-radius: 50%; }
.sickla-wordmark { display: block; }
.venue-name {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 22px;
  font-weight: 600;
}
.clock { font-size: 22px; font-variant-numeric: tabular-nums; }
.weather { opacity: 0.65; font-size: 16px; }

.poster-progress { display: flex; gap: 8px; }
.prog-track { flex: 1; height: 3px; overflow: hidden; }
.prog-fill { height: 100%; transition: width 0.05s linear; }

.poster-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
}
.panel-label { font-weight: 500; }
.version-pill {
  font-size: 13px;
  opacity: 0.55;
  letter-spacing: 0.10em;
}

/* ——— Stage + panel transitions ——— */
.poster-stage { position: absolute; inset: 0; }
.panel-slot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.panel-slot.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel {
  position: absolute;
  inset: 0;
  padding: 120px 64px 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   BENDER ATTRIBUTION TAG
   ════════════════════════════════════════════════════════════ */
.bender-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bender-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  animation: bender-pulse 2.4s ease-in-out infinite;
}
.bender-pulse::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.18;
  animation: bender-pulse-ring 2.4s ease-out infinite;
}
@keyframes bender-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes bender-pulse-ring {
  0% { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}
.bender-tag-label { font-weight: 500; }
.bender-tag-sep { opacity: 0.6; }
.bender-tag-why { font-weight: 400; }

/* ════════════════════════════════════════════════════════════
   MODE PANEL — the core layout used by every curation mode
   Vertical stack:
     1. mode-head (Bender attribution + title)        ~14%
     2. mode-map (floor plan with highlights)          ~50%
     3. mode-below (tenants + insight rail)            ~36%
   ════════════════════════════════════════════════════════════ */
.mode-panel {
  padding: 116px 64px 180px;
  gap: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* — Head — */
.mode-head { }
.mode-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: pretty;
}
.mode-title em { font-style: italic; }
.mode-mode-prefix {
  font-style: normal;
  font-size: 0.62em;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
  vertical-align: 0.18em;
}

/* — Map — */
.mode-map {
  border: 1px solid;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.map-svg, .dir-map-svg { width: 100%; height: 100%; display: block; }

/* — Below — tenants + rail — */
.mode-below {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: stretch;
  min-height: 0;
}

/* ═══ Tenants list ═══ */
.mode-tenants { display: flex; flex-direction: column; min-height: 0; }
.tenants-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.tenants-list { display: flex; flex-direction: column; }
.tenant-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 36px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid;
}
.tenant-row:last-child { border-bottom: none; }
.tenant-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 3px;
  text-align: center;
  font-weight: 500;
  width: fit-content;
}
.tenant-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.tenant-cat {
  font-family: var(--font-sans);
  font-size: 18px;
  text-align: right;
}
.tenant-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: right;
}

/* ═══ Insight rail ═══ */
.mode-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.insight-card {
  border: 1px solid;
  border-radius: 4px;
  padding: 22px 22px 24px;
  flex-shrink: 0;
}
.insight-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.insight-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-style: italic;
  text-wrap: pretty;
}
.insight-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.36;
  text-wrap: pretty;
}

/* ═══ Concierge module — AI identity + insight + QR + scan CTA ═══ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes concierge-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.02); }
}
.concierge {
  position: relative;
  border: 1px solid;
  border-radius: 6px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1 1 auto;
  overflow: hidden;
  isolation: isolate;
}
.concierge-alive::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  border: 1px solid var(--c-accent);
  opacity: 0;
  animation: concierge-breathe 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.concierge-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: concierge-breathe 4.2s ease-in-out infinite;
}
.concierge > *:not(.concierge-glow) {
  position: relative;
  z-index: 1;
}

.concierge-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ai-sigil {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-sigil-halo { position: absolute; inset: 0; }
.ai-sigil-mark {
  position: relative;
  display: block;
  object-fit: contain;
  animation: concierge-breathe 3.6s ease-in-out infinite;
}
.concierge-id-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.concierge-id-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
}
.concierge-id-mvg { font-weight: 600; }
.concierge-id-bar {
  width: 1px;
  height: 14px;
  display: inline-block;
  opacity: 0.6;
}
.concierge-id-name {
  font-weight: 700;
  letter-spacing: 0.26em;
}
.concierge-id-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  display: flex;
  gap: 8px;
  align-items: center;
}
.concierge-id-live {
  font-weight: 500;
  letter-spacing: 0.22em;
  position: relative;
  padding-left: 14px;
}
.concierge-id-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 1.8s ease-in-out infinite;
}

.concierge-insight {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.concierge-insight-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-style: italic;
  text-wrap: pretty;
}
.concierge-insight-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.4;
  text-wrap: pretty;
}
.concierge-why {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

.concierge-qr-block {
  border-top: 1px solid;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.concierge-qr {
  width: 200px;
  height: 200px;
  padding: 12px;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: center;
}
.concierge-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  align-items: center;
}
.concierge-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.concierge-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.concierge-cta-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}
.concierge-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-align: center;
}
.concierge-arrow-glyph {
  font-size: 18px;
  line-height: 1;
  animation: pulse 2.4s ease-in-out infinite;
}

/* ═══ Rail cards (QR / stat / campaign / service) ═══ */
.rail-card {
  border: 1px solid;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.rail-card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.rail-card-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.36;
  text-wrap: pretty;
}

.qr-card { gap: 14px; }
.qr-thumb {
  width: 100%;
  aspect-ratio: 1;
  padding: 14px;
  flex-shrink: 0;
  max-height: 180px;
  align-self: flex-start;
  width: 180px;
}

.stat-card .stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01";
}
.stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
}

/* ════════════════════════════════════════════════════════════
   IDLE / WELCOME PANEL — also map + tenants
   ════════════════════════════════════════════════════════════ */
.idle-panel {
  padding: 120px 64px 180px;
  gap: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.idle-head { }
.idle-eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.20em;
  margin-bottom: 18px;
}
.idle-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 96px;
  line-height: 0.96;
  letter-spacing: -0.030em;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.idle-sub {
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: 1.30;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 760px;
}
.idle-tenants {
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════════════════════
   ERROR PANEL
   ════════════════════════════════════════════════════════════ */
.err-panel {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 200px 96px;
}
.err-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 280px;
  line-height: 1;
  font-style: italic;
  margin-bottom: 32px;
}
.err-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 92px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 820px;
}
.err-sub {
  font-family: var(--font-sans);
  font-size: 30px;
  line-height: 1.4;
  max-width: 700px;
}
.err-meta {
  margin-top: auto;
  padding-top: 32px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.10em;
}

/* ════════════════════════════════════════════════════════════
   Host scaler
   ════════════════════════════════════════════════════════════ */
html, body {
  margin: 0;
  background: #0c0c0c;
  height: 100%;
  font-family: "Jost", "Futura PT", system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
}
.stage-frame {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
.stage-scaler {
  width: 1080px;
  height: 1920px;
  transform-origin: center center;
  position: relative;
}

#root { width: 100%; height: 100%; }
