:root {
  --page-background: #07090d;
  --canvas-background: #11151d;
  --guide-line: rgba(255, 255, 255, 0.74);
  --guide-label-background: rgba(0, 0, 0, 0.74);
  --safe-area-line: rgba(255, 255, 255, 0.42);
  --control-background: rgba(14, 18, 25, 0.92);
  --control-border: rgba(255, 255, 255, 0.22);
  --text-primary: #f7f8fb;
  --text-secondary: rgba(247, 248, 251, 0.72);
  --agenda-background: #213a56;
  --main-background: #18283b;
  --info-background: #263f35;
  --banner-background: #49322b;
  --accent: #f2ca52;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button {
  font: inherit;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 48%),
    var(--page-background);
}

#wall-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 7680px;
  height: 4320px;
  transform-origin: top left;
  display: grid;
  grid-template-columns: repeat(4, 1920px);
  grid-template-rows: repeat(4, 1080px);
  background: var(--canvas-background);
  overflow: hidden;
  isolation: isolate;
}

.wall-region {
  position: relative;
  overflow: hidden;
  padding: 120px;
}

.region-agenda {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--agenda-background);
}

.region-main {
  grid-column: 2 / 5;
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.11), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 50%),
    var(--main-background);
}

.region-info {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 50%),
    var(--info-background);
}

.region-banner {
  grid-column: 2 / 5;
  grid-row: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--banner-background);
}

.region-safe-area {
  position: absolute;
  inset: 5%;
  z-index: 8;
  pointer-events: none;
  border: 8px dashed var(--safe-area-line);
  opacity: 1;
}

body.safe-areas-hidden .region-safe-area {
  opacity: 0;
}

.region-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 100px;
}

.region-kicker,
.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.region-heading h1 {
  margin: 0;
  font-size: 142px;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.agenda-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 42px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
  min-height: 285px;
  padding: 50px 54px;
  border-left: 16px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.17);
}

.agenda-item.is-current {
  border-left-color: var(--accent);
  background: rgba(0, 0, 0, 0.29);
}

.agenda-item time {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.05;
}

.agenda-item h2 {
  margin: 0 0 18px;
  font-size: 72px;
  line-height: 1.02;
}

.agenda-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 48px;
}

.main-placeholder h2,
.banner-placeholder h2 {
  margin: 0;
  font-size: 198px;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.main-placeholder > p:last-of-type,
.banner-placeholder > p:last-of-type {
  margin: 46px 0 0;
  color: var(--text-secondary);
  font-size: 70px;
}

.resolution-bars {
  width: 3000px;
  height: 240px;
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.36);
}

.resolution-bars span:nth-child(1) { background: #d9d9d9; }
.resolution-bars span:nth-child(2) { background: #b2b2b2; }
.resolution-bars span:nth-child(3) { background: #898989; }
.resolution-bars span:nth-child(4) { background: #5c5c5c; }
.resolution-bars span:nth-child(5) { background: #2e2e2e; }

.wall-clock {
  display: block;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 228px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.wall-date {
  margin: 44px 0 0;
  color: var(--text-secondary);
  font-size: 62px;
  font-weight: 650;
}

.venue-info {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 8px solid rgba(255, 255, 255, 0.18);
}

.venue-info p {
  margin: 14px 0;
  color: var(--text-secondary);
  font-size: 46px;
}

.venue-info strong {
  color: var(--text-primary);
}

.tv-grid {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1920px);
  grid-template-rows: repeat(4, 1080px);
  pointer-events: none;
  opacity: 1;
}

body.guides-hidden .tv-grid {
  opacity: 0;
}

.tv-cell {
  position: relative;
  border: 9px solid var(--guide-line);
}

.tv-cell span {
  position: absolute;
  left: 44px;
  top: 44px;
  min-width: 190px;
  padding: 20px 28px;
  border-radius: 18px;
  background: var(--guide-label-background);
  color: white;
  font-size: 58px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
}

.diagnostics,
.controls {
  position: fixed;
  z-index: 100;
  border: 1px solid var(--control-border);
  background: var(--control-background);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.diagnostics {
  left: 18px;
  top: 18px;
  display: grid;
  gap: 5px;
  min-width: 270px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
}

body.diagnostics-hidden .diagnostics {
  display: none;
}

.controls {
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
}

.controls button {
  appearance: none;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.controls button:hover,
.controls button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.controls button[aria-pressed="false"] {
  opacity: 0.62;
}

@media (max-width: 800px) {
  .controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-wrap: wrap;
  }

  .diagnostics {
    left: 10px;
    top: 10px;
  }
}


/* Phase Two: Vimeo playback layers */

.video-region {
  padding: 0;
  background: #000;
}

.video-stack,
.vimeo-layer {
  position: absolute;
  inset: 0;
}

.video-stack {
  overflow: hidden;
  background: #000;
}

.vimeo-layer {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: #000;
  transition-property: opacity;
  transition-duration: var(--video-transition-duration, 1200ms);
  transition-timing-function: ease-in-out;
}

.vimeo-layer.is-active {
  z-index: 2;
  opacity: 1;
}

.vimeo-layer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-status {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 28px;
  padding: 180px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    #10151d;
  opacity: 1;
  transition: opacity 400ms ease;
}

.video-status.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-status strong {
  color: var(--accent);
  font-size: 84px;
  letter-spacing: 0.12em;
}

.video-status span {
  color: var(--text-secondary);
  font-size: 64px;
}

.region-banner .video-status strong {
  font-size: 64px;
}

.region-banner .video-status span {
  font-size: 48px;
}

body.is-fullscreen .controls {
  opacity: 0;
  pointer-events: none;
}

.controls {
  transition: opacity 180ms ease;
}

@media (max-width: 1200px) {
  .controls {
    max-width: calc(100vw - 20px);
  }
}


/* Phase Three: data-driven agenda */

.region-agenda {
  padding: 0;
  color: #11151a;
  background: #f4f4f2;
}

.agenda-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-rows: 235px 733px 112px 2160px;
  background: #f4f4f2;
}

.agenda-brand {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px 54px 34px;
  background: #ffffff;
  border-bottom: 6px solid #d1d3d4;
}

.agenda-brand-kicker {
  margin: 0 0 2px;
  color: #34414a;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.agenda-brand h1 {
  margin: 0;
  color: #26323a;
  font-size: 88px;
  line-height: 0.9;
  letter-spacing: 0.025em;
}

.agenda-day-label {
  max-width: 610px;
  margin: 0;
  color: #59636a;
  font-size: 40px;
  font-weight: 760;
  line-height: 1.08;
  text-align: right;
  text-transform: uppercase;
}

.agenda-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #ffffff;
  overflow: hidden;
}

.agenda-rail span,
.agenda-rail small {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.agenda-rail span {
  font-size: 70px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.agenda-rail small {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.agenda-rail-now {
  grid-column: 1;
  grid-row: 1 / 4;
  padding-top: 210px;
  background: #9caf8e;
}

.agenda-rail-upcoming {
  grid-column: 1;
  grid-row: 4;
  background: #365d3c;
}

.agenda-current {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 28px;
  min-height: 0;
  padding: 40px 48px 44px;
  background: #ffffff;
  overflow: hidden;
}

.agenda-current.has-overlap {
  padding-top: 30px;
  padding-bottom: 30px;
}

.exhibit-status {
  grid-column: 1 / 3;
  grid-row: 3;
  display: flex;
  align-items: center;
  padding: 0 54px 0 265px;
  color: #ffffff;
  background: #d86b35;
  font-size: 52px;
  font-weight: 880;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.exhibit-status.is-open {
  background: #3f7d49;
}

.exhibit-status.is-hidden {
  visibility: hidden;
}

.agenda-upcoming {
  grid-column: 2;
  grid-row: 4;
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 0;
  padding: 34px 48px 80px;
  background: #efefed;
  overflow: hidden;
}

.agenda-card {
  position: relative;
  padding: 0 0 30px;
  border-bottom: 5px solid #9ca1a4;
}

.agenda-card:last-child {
  border-bottom: 0;
}

.agenda-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  color: #394248;
  font-size: 39px;
  font-weight: 620;
  line-height: 1.08;
}

.agenda-card-meta time {
  font-variant-numeric: tabular-nums;
}

.agenda-location {
  padding-left: 18px;
  border-left: 4px solid #7d858a;
}

.agenda-industry-dot {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.34);
}

.agenda-card h2 {
  margin: 0;
  color: #080a0c;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.agenda-card-description {
  margin: 14px 0 0;
  color: #171b1f;
  font-size: 39px;
  font-weight: 560;
  line-height: 1.08;
}

.agenda-card-speakers {
  margin: 16px 0 0;
  color: #30373c;
  font-size: 32px;
  font-weight: 520;
  line-height: 1.16;
}

.agenda-current .agenda-card {
  padding-bottom: 26px;
  border-bottom-color: #515b62;
}

.agenda-current .agenda-card h2 {
  font-size: 68px;
}

.agenda-current .agenda-card-description {
  font-size: 44px;
}

.agenda-current.has-overlap .agenda-card h2 {
  font-size: 54px;
}

.agenda-current.has-overlap .agenda-card-description {
  font-size: 36px;
}

.agenda-current.has-overlap .agenda-card-speakers {
  font-size: 29px;
}

.agenda-empty {
  margin: 0;
  padding: 30px 0;
  color: #525b61;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
}


/* v0.3.1: fixed TV1 / TV2–3 agenda geometry */

.agenda-shell.has-no-exhibit {
  grid-template-rows: 235px 845px 0 2160px;
}

.agenda-current.is-empty,
.agenda-upcoming.is-empty {
  place-content: center;
}

.agenda-current.is-empty .agenda-empty,
.agenda-upcoming.is-empty .agenda-empty {
  max-width: 1180px;
  padding: 0;
  text-align: center;
}


/* v0.3.2: shared baseline typography and measured On Now fitting */

.agenda-current {
  display: block;
}

.agenda-current-content {
  display: grid;
  align-content: start;
  gap: 22px;
  width: 100%;
  transform: scale(1);
  transform-origin: top left;
}

.agenda-current.is-empty .agenda-current-content {
  height: 100%;
  place-content: center;
}

.agenda-current .agenda-card {
  padding-bottom: 30px;
  border-bottom-color: #515b62;
}

/* On Now begins with exactly the same type scale as Coming Up. */

.agenda-current .agenda-card-meta,
.agenda-upcoming .agenda-card-meta {
  font-size: 39px;
  line-height: 1.08;
}

.agenda-current .agenda-card h2,
.agenda-upcoming .agenda-card h2 {
  font-size: 58px;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.agenda-current .agenda-card-description,
.agenda-upcoming .agenda-card-description {
  font-size: 39px;
  line-height: 1.08;
}

.agenda-current .agenda-card-speakers,
.agenda-upcoming .agenda-card-speakers {
  font-size: 32px;
  line-height: 1.16;
}

/* Override the earlier overlap/count typography rules. */

.agenda-current.has-overlap .agenda-card h2 {
  font-size: 58px;
}

.agenda-current.has-overlap .agenda-card-description {
  font-size: 39px;
}

.agenda-current.has-overlap .agenda-card-speakers {
  font-size: 32px;
}


/* v0.4.0: data-driven bottom-left utility tile */

.region-info {
  display: block;
  padding: 0;
  color: #ffffff;
  background: #111820;
}

.utility-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 470px 610px;
  background: #111820;
}

.utility-clock-panel {
  grid-column: 1 / 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 47% 53%;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 56px 72px 42px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 55%),
    #586168;
  border-bottom: 8px solid rgba(255, 255, 255, 0.24);
}

.utility-date-block {
  min-width: 0;
}

.utility-day {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 56px;
  font-weight: 720;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.utility-date {
  margin: 0;
  max-width: 720px;
  font-size: 74px;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.utility-clock {
  display: block;
  justify-self: end;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 186px;
  font-weight: 850;
  line-height: 0.86;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.utility-message {
  grid-column: 1 / 3;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 34px;
  font-weight: 620;
  line-height: 1.1;
  text-align: center;
}

.utility-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.utility-wifi {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 34% 66%;
  align-items: center;
  gap: 20px;
  padding: 62px 44px 56px 48px;
  background:
    radial-gradient(circle at 23% 50%, rgba(255, 255, 255, 0.08), transparent 34%),
    #1c282e;
  border-right: 8px solid rgba(255, 255, 255, 0.18);
}

.utility-app {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 32px;
  padding: 54px 50px 54px 58px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 55%),
    #6e7d69;
}

.utility-copy {
  min-width: 0;
}

.utility-card-heading {
  margin: 0 0 28px;
  color: #ffffff;
  font-size: 52px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.045em;
}

.utility-details {
  margin: 0;
}

.utility-details div {
  margin: 0 0 24px;
}

.utility-details dt {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-details dd {
  margin: 0;
  color: #ffffff;
  font-size: 43px;
  font-weight: 820;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.utility-note,
.utility-app-text,
.utility-app-url {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 28px;
  font-weight: 560;
  line-height: 1.14;
}

.utility-app-text {
  margin-bottom: 22px;
  font-size: 31px;
}

.utility-app-url {
  color: #ffffff;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.utility-qr {
  display: block;
  width: 280px;
  height: 280px;
  object-fit: contain;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}


.utility-wifi-icon {
  display: block;
  width: 250px;
  height: 250px;
  justify-self: center;
  object-fit: contain;
}

.utility-wifi.has-no-icon {
  grid-template-columns: 1fr;
  padding-left: 72px;
  padding-right: 72px;
}

.utility-wifi.has-no-icon .utility-copy {
  width: 100%;
}

.utility-card.is-hidden,
.utility-message.is-hidden,
.utility-details div.is-hidden,
.utility-card-heading.is-hidden,
.utility-note.is-hidden,
.utility-app-text.is-hidden,
.utility-app-url.is-hidden,
.utility-qr.is-hidden,
.utility-wifi-icon.is-hidden {
  display: none;
}

.utility-shell:has(.utility-wifi.is-hidden) .utility-app:not(.is-hidden) {
  grid-column: 1 / 3;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding-left: 160px;
  padding-right: 160px;
}

.utility-shell:has(.utility-app.is-hidden) .utility-wifi:not(.is-hidden) {
  grid-column: 1 / 3;
  grid-template-columns: 420px minmax(0, 1fr);
  padding-left: 180px;
  padding-right: 180px;
  border-right: 0;
}
