/* The worlds form one immersive, visitor-directed editorial chapter. */
/* Readable before enhancement, including a controller load/init failure. */
#worlds .world-selector[hidden],
#worlds .world-detail[hidden] { display: none !important; }
#worlds:not(.world-explorer-ready) .world-stage { display: grid; gap: 20px; }
#worlds:not(.world-explorer-ready) .world-panel { min-height: 650px; }
#worlds:not(.world-explorer-ready) .world-stage-art { transform: none; will-change: auto; }
#worlds .world-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #ffffff38;
  border-bottom: 1px solid #ffffff38;
  margin: 40px 0 24px;
}
#worlds .world-selector button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 88px;
  padding: 24px 28px;
  border: 0;
  border-right: 1px solid #ffffff28;
  background: transparent;
  color: #a9aea8;
  text-align: left;
  font: 500 clamp(14px, 1.35vw, 21px)/1.3 var(--sans, Arial, sans-serif);
  letter-spacing: -.025em;
  cursor: pointer;
  transition: color .2s, background .2s;
}
#worlds .world-selector button:last-child { border-right: 0; }
#worlds .world-selector button::after {
  content: '';
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 28px;
  right: 28px;
  transform: scaleX(0);
  transform-origin: left;
  background: #e6ddc9;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
#worlds .world-selector button[aria-pressed="true"] { color: #f4f0e8; background: #ffffff07; }
#worlds .world-selector button[aria-pressed="true"]::after { transform: scaleX(1); }
#worlds .world-selector button:hover { background: #ffffff09; color: #fff; }
#worlds .world-selector button:focus-visible,
#worlds .world-detail:focus-visible { outline: 2px solid #e0cdaa; outline-offset: 5px; z-index: 5; }
#worlds .world-selector button > span:first-child { flex: 0 0 auto; }
#worlds .world-selector small,
#worlds .world-selector .world-choice-number { font-size: 11px; letter-spacing: .06em; color: #c4b79c; }
#worlds .world-stage {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  overflow: hidden;
  background: #181b1a;
  border: 1px solid #ffffff24;
  --world-depth-x: 0px;
  --world-depth-y: 0px;
}
#worlds .world-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  min-height: inherit;
  padding: clamp(30px, 4vw, 64px);
  color: #f4f0e8;
  overflow: hidden;
  background: #171b19;
}
#worlds .world-panel[hidden] { display: none !important; }
#worlds .world-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #080d0cc9, #080d0c40 56%, #080d0c0a),
    linear-gradient(0deg, #080d0cea, #080d0c18 65%, #080d0c59);
}
#worlds .world-panel::after {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 8%;
  font: 300 clamp(120px, 18vw, 280px)/.8 var(--sans, Arial, sans-serif);
  letter-spacing: -.085em;
  color: #f4f0e812;
  pointer-events: none;
}
#worlds [data-world-panel="entertainment"]::after { content: '01'; }
#worlds [data-world-panel="commerce"]::after { content: '02'; }
#worlds [data-world-panel="technology"]::after { content: '03'; }
#worlds .world-stage-art {
  position: absolute;
  inset: -45px -18px;
  display: block;
  width: calc(100% + 36px);
  height: calc(100% + 90px);
  max-width: none;
  z-index: 0;
  object-fit: cover;
  object-position: center;
  transform: translate3d(var(--world-depth-x), var(--world-depth-y), 0);
  will-change: transform;
}
#worlds .world-panel-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
  z-index: 3;
  margin-bottom: auto;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #dddcd3;
}
#worlds .world-panel-meta > :last-child { text-align: right; }
#worlds .world-panel-copy { position: relative; z-index: 3; max-width: 600px; padding-top: 80px; }
#worlds .world-panel-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(48px, 5.8vw, 89px);
  line-height: .99;
  font-weight: 400;
  letter-spacing: -.06em;
  text-wrap: balance;
}
#worlds .world-panel-copy h3 em { font-family: var(--serif, Georgia, serif); font-weight: 400; letter-spacing: -.035em; }
#worlds .world-panel-copy p { margin: 0; max-width: 450px; font-size: 16px; line-height: 1.8; color: #e0e1da; text-wrap: pretty; }
#worlds .world-detail {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 48px;
  max-width: 100%;
  margin-top: 24px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #d4d5cb8c;
  border-radius: 0;
  background: transparent;
  color: #f4f0e8;
  font: 500 12px/1.5 var(--sans, Arial, sans-serif);
  text-align: left;
  cursor: pointer;
}
#worlds .world-detail .ui-icon { width: 20px; height: 20px; flex: 0 0 20px; }
#worlds .world-detail:hover { border-color: #fff; }
#worlds .world-panel.is-entering { z-index: 2; animation: world-enter .45s cubic-bezier(.2,.7,.2,1) both; }
#worlds .world-panel.is-leaving { position: absolute; inset: 0; z-index: 1; animation: world-leave .45s ease both; pointer-events: none; }
@keyframes world-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes world-leave { from { opacity: 1; } to { opacity: 0; } }
.page-motion-paused #worlds .world-stage-art { transform: none; will-change: auto; }
.page-motion-paused #worlds .world-panel { animation: none; }
@media (max-width: 1000px) {
  #worlds .world-selector button { padding: 22px 20px; min-height: 80px; }
  #worlds .world-selector button::after { left: 20px; right: 20px; }
  #worlds .world-stage { min-height: 650px; }
  #worlds .world-panel-copy h3 { font-size: clamp(48px, 7.7vw, 76px); }
}
@media (max-width: 700px) {
  #worlds .world-selector { margin: 28px 0 16px; }
  #worlds .world-selector button { min-height: 76px; padding: 14px 8px; gap: 7px; flex-direction: column; align-items: flex-start; justify-content: center; font-size: clamp(10px, 3vw, 16px); line-height: 1.35; letter-spacing: -.025em; }
  #worlds .world-selector button::after { left: 8px; right: 8px; }
  #worlds .world-selector small, #worlds .world-selector .world-choice-number { font-size: 9px; }
  #worlds .world-stage { min-height: 620px; margin-inline: calc(-1 * var(--pad, 22px)); border-left: 0; border-right: 0; }
  #worlds .world-panel { padding: 26px var(--pad, 22px) 32px; }
  #worlds .world-panel::before { background: linear-gradient(0deg, #080d0cf7, #080d0cb5 45%, #080d0c10 85%, #080d0c54); }
  #worlds .world-stage-art { object-position: 58% center; }
  #worlds .world-panel-meta { font-size: 9px; gap: 15px; letter-spacing: .06em; }
  #worlds .world-panel-copy { padding-top: 120px; width: 100%; }
  #worlds .world-panel-copy h3 { font-size: clamp(43px, 11.3vw, 70px); line-height: 1.02; margin-bottom: 18px; }
  #worlds .world-panel-copy p { font-size: 14px; line-height: 1.8; max-width: 450px; }
  #worlds .world-detail { margin-top: 20px; gap: 30px; font-size: 12px; }
  #worlds .world-panel::after { bottom: 28px; right: 20px; font-size: 140px; color: #f4f0e809; }
}
@media (max-width: 360px) {
  #worlds .world-selector button { font-size: 10px; }
  #worlds .world-panel-copy h3 { font-size: 39px; }
  #worlds .world-panel-meta { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #worlds .world-stage-art { transform: none; will-change: auto; }
  #worlds .world-panel { animation: none; }
  #worlds .world-selector button, #worlds .world-selector button::after { transition: none; }
  body.motion-opt-in:not(.page-motion-paused) #worlds .world-stage-art { transform: translate3d(var(--world-depth-x), var(--world-depth-y), 0); }
  body.motion-opt-in:not(.page-motion-paused) #worlds .world-panel.is-entering { animation: world-enter .45s cubic-bezier(.2,.7,.2,1) both !important; }
  body.motion-opt-in:not(.page-motion-paused) #worlds .world-panel.is-leaving { animation: world-leave .45s ease both !important; }
}
