/* Progressive visual layer. The scene renderer and negotiation stay independent. */
:root {
  --experience-surface: #101510;
  --experience-raised: #182018;
  --experience-veil: #080d0bea;
  --experience-text: var(--paper);
  --experience-muted: #c8cbbd;
  --experience-border: #72705c;
  --experience-shadow: #00000038;
  --experience-clear: transparent;
  --experience-radius: 24px;
}

.section-heading > div,
.experience-stage > *,
.brand-options .field,
.industry-context > div {
  min-width: 0;
}

.worlds-section .section-heading {
  margin-bottom: 32px;
}

.worlds-foot {
  align-items: start;
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 4px 0;
}

.worlds-foot > span:first-child {
  align-items: baseline;
}

.worlds-foot > span:last-child {
  text-align: right;
}

.experience-section {
  padding-top: 58px;
  padding-bottom: 80px;
}

.experience-section .section-heading {
  align-items: start;
  margin-bottom: 22px;
}

.experience-section .section-heading .eyebrow {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 2px;
}

.experience-section h2 {
  font-size: clamp(36px, 4.25vw, 64px);
  max-width: 850px;
  text-wrap: balance;
}

.demo-badge {
  border-color: var(--experience-border);
  border-radius: var(--experience-radius);
  color: var(--experience-text);
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 12px;
}

.experience-intro {
  max-width: 750px;
  color: var(--experience-muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.connection-status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: -16px 0 28px;
  color: var(--experience-muted);
  font-size: 12px;
  line-height: 1.6;
}

.connection-status::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.experience-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  padding: 20px 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.experience-guide li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--experience-muted);
}

.experience-guide li > span:first-child {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
}

.experience-stage {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  align-items: stretch;
  border: 0;
  border-radius: var(--experience-radius);
  background: var(--experience-clear);
  box-shadow: none;
}

.scene-column {
  min-height: 790px;
  background: var(--experience-surface);
}

.scene-toolbar {
  top: 24px;
  left: 24px;
  right: 24px;
  align-items: start;
}

.view-switch {
  min-width: 0;
  background: var(--experience-clear);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.view-switch button {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--experience-text);
  font-size: 13px;
}

.view-switch button[aria-pressed="true"] {
  color: var(--gold);
  background: var(--experience-clear);
  text-decoration: underline;
  text-underline-offset: 7px;
}

.view-switch button:focus-visible {
  outline-offset: -3px;
}

.view-switch button[aria-pressed="true"]:focus-visible {
  outline-color: var(--gold);
}

.icon-button,
.rotate-controls button {
  flex: none;
  width: 46px;
  height: 46px;
  border-color: var(--experience-border);
  background: var(--experience-veil);
  color: var(--experience-text);
  box-shadow: 0 3px 15px var(--experience-shadow);
}

.icon-button:hover,
.rotate-controls button:hover {
  background: var(--experience-raised);
  border-color: var(--gold);
}

.rotate-controls {
  top: 88px;
  right: 24px;
  bottom: auto;
  flex-direction: column;
  gap: 9px;
}

.scene-label {
  left: 28px;
  bottom: 94px;
  max-width: calc(100% - 56px);
  padding: 18px 0;
  background: var(--experience-clear);
  box-shadow: none;
}

.scene-label .eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
}

.scene-label strong {
  font-size: clamp(25px, 2.3vw, 36px);
  line-height: 1.3;
  letter-spacing: 1.5px;
}

.scene-label > span:last-child {
  color: var(--experience-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 42ch;
}

.scene-bottom {
  align-items: center;
  min-height: 70px;
  padding: 18px 28px;
  color: var(--experience-muted);
  background: var(--experience-veil);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.scene-bottom > span:first-child {
  max-width: 40ch;
}

.scene-mark {
  font-size: 13px;
}

.scene-fallback {
  background: var(--experience-surface);
}

.scene-fallback > img {
  opacity: 0.56;
}

.scene-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(var(--experience-clear) 30%, var(--experience-veil));
}

.scene-fallback > div {
  z-index: 1;
  max-width: 330px;
  margin: 0 24px 70px;
  padding: 24px;
  color: var(--experience-text);
  background: var(--experience-veil);
  border: 1px solid var(--experience-border);
}

#fallback-icon > img {
  width: 68px;
  height: 80px;
  margin: 0 auto 20px;
}

.scene-fallback p {
  background: var(--experience-clear);
  padding: 0;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.scene-fallback small {
  color: var(--experience-muted);
  display: block;
  font-size: 13px;
  line-height: 1.6;
}

.deal-panel {
  padding: 28px;
  background: var(--experience-clear);
  border: 0;
}

.deal-topline .eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.sample-label {
  border-color: var(--experience-border);
  font-size: 12px;
  padding: 4px 6px;
}

.deal-panel h3 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}

.product-facts {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-facts > div {
  gap: 14px;
  padding: 2px 0;
}

.product-facts dt,
.product-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-facts dt {
  color: var(--experience-muted);
}

.asking-line {
  gap: 12px;
  margin-bottom: 20px;
}

.asking-line > span {
  color: var(--experience-muted);
  font-size: 12px;
  max-width: 14ch;
}

.asking-line strong {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.seller-line strong {
  font-size: 13px;
  line-height: 1.5;
}

.seller-line small {
  font-size: 12px;
  line-height: 1.5;
}

.seller-response {
  font-size: 14px;
  line-height: 1.65;
  padding: 15px;
  color: var(--experience-text);
  background: var(--experience-raised);
  border-color: var(--line);
  margin-top: 16px;
}

.deal-panel label,
.brand-form label {
  color: var(--experience-muted);
  font-size: 13px;
}

.deal-panel .full-width {
  font-size: 14px;
  min-height: 50px;
  gap: 18px;
}

.deal-panel .button-outline {
  border-color: var(--experience-border);
}

.offer-label span {
  font-size: 12px;
}

.money-input {
  border-color: var(--experience-border);
}

.money-input:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.money-input input {
  min-height: 52px;
  font-size: 26px;
}

.form-error {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.session-actions {
  gap: 16px;
  flex-wrap: wrap;
}

.session-actions button {
  min-height: 44px;
  font-size: 12px;
  color: var(--experience-muted);
}

.demo-note {
  font-size: 12px;
  color: var(--experience-muted);
  line-height: 1.7;
}

.history-details {
  font-size: 13px;
}

.history-details summary {
  min-height: 48px;
  padding: 14px 0;
}

.history-details ol {
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--experience-surface);
  padding: 0 8px 0 0;
}

.history-details ol:empty {
  display: none;
}

.history-details ol:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.history-details li {
  gap: 12px;
  font-size: 12px;
  padding: 11px 0;
}

.history-details li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-details li strong {
  flex: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.industry-context {
  gap: 50px;
  padding-top: 30px;
}

.industry-context .eyebrow {
  font-size: 12px;
}

.industry-context p {
  color: var(--experience-muted);
  font-size: 16px;
}

.industry-context li {
  color: var(--experience-muted);
  font-size: 13px;
}

.brand-preview strong,
.brand-preview > span,
.brand-copy h2,
.questions summary,
.questions details p {
  overflow-wrap: anywhere;
}

.brand-form input[type="text"] {
  min-width: 0;
  font-size: 16px;
}

.film-section {
  padding-top: 0;
  padding-bottom: 75px;
}

.film-section .section-heading {
  padding-top: 45px;
  border-top: 1px solid var(--line);
}

.film-section h2 {
  max-width: 750px;
  font-size: clamp(35px, 3.6vw, 54px);
  text-wrap: balance;
}

.film-player {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--experience-border);
  border-radius: var(--experience-radius);
  background: var(--experience-surface);
}

.film-player video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--experience-surface);
}

.film-player video:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -5px;
}

.film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100% - 40px);
  min-height: 86px;
  padding: 18px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--experience-veil);
  color: var(--experience-text);
  box-shadow: none;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}

.film-play:hover {
  border-color: var(--gold);
  background: var(--experience-surface);
}

.film-play:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.film-play-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

.film-duration {
  padding-left: 16px;
  border-left: 1px solid var(--experience-border);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: var(--experience-muted);
}

.film-alternative {
  margin: 18px 0 0;
  font-size: 14px;
}

.film-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 15px;
}

.film-caption p {
  margin: 0;
  color: var(--experience-muted);
  font-size: 12px;
  line-height: 1.6;
}

.film-caption p:first-child {
  color: var(--experience-text);
}

@media (min-width: 1600px) {
  .experience-stage {
    grid-template-columns: minmax(0, 1fr) 400px;
  }

  .scene-column {
    min-height: 840px;
  }

  .deal-panel {
    padding: 32px;
  }
}

@media (max-width: 1150px) {

  .experience-stage {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .deal-panel {
    padding: 24px;
  }

  .scene-label {
    left: 20px;
    max-width: calc(100% - 40px);
  }

  .scene-bottom {
    padding: 18px 20px;
  }

  .scene-bottom .scene-mark {
    display: none;
  }
}

@media (max-width: 950px) {
  .experience-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-column {
    min-height: 0;
    height: clamp(470px, 66vw, 650px);
  }

  .deal-panel {
    border-left: 0;
    border-top: 1px solid var(--experience-border);
    padding: 30px;
  }

  .deal-panel h3 {
    font-size: 36px;
    max-width: 28ch;
  }

  .product-facts {
    max-width: 600px;
  }

  .product-facts > div {
    padding: 4px 0;
  }

  .asking-line > span {
    max-width: none;
  }

  .asking-line strong {
    font-size: 30px;
  }

  .scene-bottom .scene-mark {
    display: block;
  }

  .experience-guide {
    justify-content: space-between;
    gap: 15px 25px;
  }
}

@media (max-width: 650px) {
  .worlds-section .section-heading {
    margin-bottom: 22px;
  }

  .worlds-foot {
    flex-direction: column;
    gap: 8px;
  }

  .worlds-foot > span:last-child {
    display: block;
    text-align: left;
    font-size: 12px;
  }

  .experience-section {
    padding-top: 38px;
    padding-bottom: 50px;
  }

  .experience-section .section-heading {
    display: block;
  }

  .experience-section h2 {
    max-width: 100%;
    font-size: clamp(35px, 8vw, 48px);
    line-height: 1.15;
  }

  .experience-section .section-heading .eyebrow {
    font-size: 12px;
  }

  .demo-badge {
    max-width: none;
    margin-top: 20px;
    font-size: 12px;
  }

  .experience-intro {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .connection-status {
    margin-top: -10px;
    margin-bottom: 24px;
  }

  .experience-guide {
    display: grid;
    gap: 10px;
    padding: 18px 0;
  }

  .experience-guide li {
    font-size: 13px;
  }

  .scene-column {
    height: clamp(460px, 120vw, 560px);
  }

  .scene-toolbar {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 9px;
  }

  .view-switch button {
    font-size: 12px;
    padding: 9px 11px;
    min-height: 42px;
  }

  .icon-button,
  .rotate-controls button {
    width: 44px;
    height: 44px;
  }

  .rotate-controls {
    top: 83px;
    right: 14px;
    bottom: auto;
  }

  .scene-label {
    left: 15px;
    max-width: calc(100% - 30px);
    bottom: 92px;
    padding: 14px 16px;
  }

  .scene-label strong {
    font-size: 25px;
    letter-spacing: 1px;
  }

  .scene-label .eyebrow {
    font-size: 12px;
  }

  .scene-label > span:last-child {
    font-size: 12px;
  }

  .scene-bottom {
    min-height: 76px;
    padding: 16px;
    font-size: 12px;
    line-height: 1.55;
  }

  .scene-bottom .scene-mark {
    display: none;
  }

  .scene-fallback > div {
    max-width: 230px;
    margin-bottom: 100px;
    padding: 18px;
  }

  .scene-fallback svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .scene-fallback p {
    font-size: 15px;
  }

  .scene-fallback small {
    font-size: 12px;
  }

  .deal-panel {
    padding: 24px 20px;
  }

  .deal-panel h3 {
    font-size: 31px;
  }

  .deal-topline {
    gap: 10px;
  }

  .deal-topline .eyebrow {
    font-size: 9px;
  }

  .product-facts {
    font-size: 13px;
  }

  .asking-line > span {
    max-width: 13ch;
  }

  .asking-line strong {
    font-size: clamp(23px, 6vw, 29px);
  }

  .session-actions {
    gap: 10px;
  }

  .session-actions button {
    font-size: 12px;
  }

  .industry-context {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .industry-context .eyebrow {
    font-size: 12px;
  }

  .industry-context p {
    font-size: 15px;
  }

  .brand-form {
    padding: 22px 20px;
  }

  .brand-options {
    gap: 10px;
  }

  .film-section {
    padding-top: 0;
    padding-bottom: 50px;
  }

  .film-section .section-heading {
    padding-top: 30px;
  }

  .film-player video {
    aspect-ratio: 4 / 3;
  }

  .film-play {
    gap: 12px;
    min-height: 72px;
    max-width: calc(100% - 30px);
    width: max-content;
    padding: 14px 16px;
    font-size: 13px;
    white-space: normal;
  }

  .film-play-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .film-duration {
    display: none;
  }

  .film-caption {
    display: grid;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
}

@media (forced-colors: active) {
}

/* Brand controls: a value is a label and never wraps. Each field claims the room its
   control needs (world name, or swatch + six-digit hex + chevron); when the row
   cannot hold both they stack, full width. */
.brand-options {
  flex-wrap: wrap;
}

.brand-options .field,
.brand-options .field:first-child {
  flex: 1 1 230px;
}

.brand-options .color-field {
  width: auto;
  flex: 1 1 190px;
  min-width: 190px;
}

.brand-options .ls-ui-select-button .ls-ui-value,
.ls-ui-color-button .ls-ui-value {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* Shared actions follow the rounded, outlined control language. */
.button { border-radius: 999px; }
.button-gold { border: 2px solid var(--gold); color: var(--gold); background: var(--experience-clear); }
.button-gold:hover { color: var(--paper); border-color: var(--paper); background: var(--experience-clear); }
.button-outline { border-width: 2px; }
.brand-configurator, .brand-preview { border-radius: var(--experience-radius); }
