:root {
  color-scheme: dark;
  --ink: #f6f4ef;
  --muted: rgba(246, 244, 239, .66);
  --line: rgba(255, 255, 255, .25);
  --accent: #e60012;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-move: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: #090b0e; }
body { color: var(--ink); font-family: Inter, Arial, sans-serif; }
button, a { color: inherit; font: inherit; }
button { border: 0; }

.experience { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; background: #090b0e; }
.media-stage, .media, .media-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.media { object-fit: cover; background: #090b0e; }
.media-loop { z-index: -4; }
.media-flight { z-index: -3; opacity: 0; }
.media-flight.is-active { opacity: 1; }
.media-shade {
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 5, 8, .38) 0%, rgba(3, 5, 8, .08) 58%, rgba(3, 5, 8, .22) 100%), linear-gradient(0deg, rgba(3, 5, 8, .46), transparent 44%);
}

.interface-layer {
  opacity: 1;
  transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out);
  transition-delay: var(--interface-delay, 0ms);
}
.experience.is-flying .interface-layer { opacity: 0; pointer-events: none; transition-duration: 140ms, 190ms; transition-delay: 0ms; }
.experience.is-flying .topbar { transform: translateY(-24px); }
.experience.is-flying .booth-copy { transform: translateX(-32px); }
.experience.is-flying .booth-editorial { transform: translateY(24px); }
.experience.is-flying .route-map { transform: translateX(28px); }
.experience.is-flying .edge-controls { transform: translateY(24px); }

@media (prefers-reduced-motion: no-preference) {
  @starting-style {
    .topbar { opacity: 0; transform: translateY(-24px); }
    .booth-copy { opacity: 0; transform: translateX(-32px); }
    .booth-editorial { opacity: 0; transform: translateY(24px); }
    .booth-menu { opacity: 0; transform: translate(32px, -50%); }
    .route-map { opacity: 0; transform: translateX(28px); }
    .edge-controls { opacity: 0; transform: translateY(24px); }
  }
}

.event-mark, .event-meta, .plain-control, .booth-copy, .booth-editorial, .booth-menu, .route-map, .edge-controls {
  background: rgba(5, 8, 11, .58);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

.topbar { --interface-delay: 0ms; position: absolute; z-index: 6; top: 0; left: 0; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: clamp(22px, 3vw, 46px); }
.event-mark { display: inline-flex; width: max-content; flex-direction: column; padding: 12px 14px; color: var(--ink); text-decoration: none; font-family: "Space Grotesk", Arial, sans-serif; font-size: 11px; line-height: .9; letter-spacing: .22em; }
.event-mark strong { margin-top: 5px; font-size: clamp(27px, 3vw, 44px); line-height: .8; letter-spacing: -.08em; }
.event-meta { display: flex; gap: 24px; padding: 11px 14px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.plain-control { justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-size: 12px; }
.pause-glyph { width: 12px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.plain-control[aria-pressed="true"] .pause-glyph { border: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); background: currentColor; }

.booth-copy { --interface-delay: 45ms; position: absolute; z-index: 4; top: 122px; left: clamp(24px, 3vw, 48px); width: min(470px, calc(100vw - 48px)); padding: 20px 22px 18px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.booth-copy h1 { margin: 0; max-width: 100%; font-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(46px, 5.2vw, 76px); font-weight: 600; line-height: .84; letter-spacing: -.075em; text-wrap: balance; }
.booth-summary { max-width: 370px; margin: 13px 0 9px; color: rgba(255,255,255,.82); font-size: clamp(13px, 1.1vw, 16px); line-height: 1.45; }
.visit-button { display: inline-flex; align-items: center; gap: 20px; padding: 9px 14px 7px 0; background: transparent; border-bottom: 1px solid var(--accent); cursor: pointer; font-size: 13px; font-weight: 600; }
.visit-button svg, .edge-controls svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.visit-button svg { transition: transform 140ms var(--ease-out); }
.visit-button:hover svg, .visit-button:focus-visible svg { transform: translateX(5px); }

.booth-editorial { --interface-delay: 90ms; position: absolute; z-index: 4; top: clamp(350px, 27vh, 410px); bottom: clamp(76px, 8vh, 112px); left: clamp(24px, 3vw, 48px); width: min(980px, calc(100vw - 390px)); height: auto; padding: 20px 22px 22px; overflow: hidden; }
.editorial-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 34px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.editorial-topline > p { margin: 0; color: var(--ink); font-family: "Space Grotesk", Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.editorial-tabs { display: flex; align-items: center; gap: 17px; }
.editorial-tabs button { position: relative; padding: 2px 0 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; transition: color 140ms var(--ease-out); }
.editorial-tabs button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--accent); opacity: 0; transform: scaleX(.35); transform-origin: left; transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
.editorial-tabs button:hover, .editorial-tabs button:focus-visible, .editorial-tabs button[aria-selected="true"] { color: var(--ink); }
.editorial-tabs button[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }
.editorial-grid { display: grid; grid-template-columns: minmax(310px, .8fr) 1.2fr; gap: 22px; height: calc(100% - 34px); padding-top: 18px; }
.editorial-copy { display: flex; min-width: 0; flex-direction: column; }
.editorial-kicker { margin: 0 0 9px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.editorial-copy h2 { margin: 0; font-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(28px, 2.4vw, 38px); font-weight: 600; line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.editorial-copy > p:not(.editorial-kicker) { margin: 14px 0 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.52; }
.editorial-copy > .editorial-detail { margin-top: 9px; color: rgba(255,255,255,.58); }
.editorial-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.editorial-meta div { min-width: 0; }
.editorial-meta dt { margin-bottom: 4px; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.editorial-meta dd { margin: 0; font-size: 11px; font-weight: 600; }
.editorial-meta a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.editorial-meta a:hover, .editorial-meta a:focus-visible { color: var(--accent); }
.editorial-media { position: relative; min-width: 0; overflow: hidden; background: rgba(255,255,255,.05); }
.editorial-photo { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 1; transform: none; transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; }
.editorial-photo-secondary { top: 0; right: 0; bottom: 52%; left: 64%; opacity: 0; transform: translateX(18px); border-bottom: 2px solid rgba(5,8,11,.9); border-left: 4px solid rgba(5,8,11,.9); }
.editorial-photo-tertiary { top: 52%; right: 0; bottom: 0; left: 64%; opacity: 0; transform: translateX(18px); border-top: 2px solid rgba(5,8,11,.9); border-left: 4px solid rgba(5,8,11,.9); }
.booth-editorial[data-view="photos"] .editorial-photo-primary { right: 36%; border-right: 2px solid rgba(5,8,11,.9); }
.booth-editorial[data-view="photos"] .editorial-photo-secondary,
.booth-editorial[data-view="photos"] .editorial-photo-tertiary { opacity: 1; transform: none; }
.editorial-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease-out); }
.booth-editorial[data-view="video"] .editorial-photo { opacity: 0; }
.booth-editorial[data-view="video"] .editorial-media iframe { opacity: 1; pointer-events: auto; }
.editorial-media iframe[hidden] { display: none; }
.media-counter { position: absolute; right: 9px; bottom: 8px; padding: 5px 7px; background: rgba(5,8,11,.72); color: var(--ink); font-size: 9px; letter-spacing: .1em; opacity: 0; transition: opacity 140ms var(--ease-out); }
.booth-editorial[data-view="photos"] .media-counter { opacity: 1; }

.booth-menu { --interface-delay: 135ms; position: absolute; z-index: 6; right: clamp(24px, 3vw, 48px); top: 50%; width: min(300px, 25vw); padding: 17px 18px 16px; transform: translateY(-50%); }
.experience.is-flying .booth-menu { transform: translate(32px, -50%); }
.menu-label, .route-help { margin: 0 0 14px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.booth-buttons { border-top: 1px solid var(--line); }
.booth-button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; background: transparent; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; opacity: .65; transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
.booth-button:hover, .booth-button:focus-visible, .booth-button[aria-current="true"] { opacity: 1; transform: translateX(-5px); }
.booth-button[aria-current="true"] { color: var(--ink); }
.booth-button .index { color: var(--accent); font-size: 10px; }
.booth-button .hall { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.route-map { --interface-delay: 180ms; position: absolute; z-index: 5; right: clamp(24px, 3vw, 48px); bottom: 34px; width: 270px; height: 116px; padding: 8px 10px; }
.route-map canvas { display: block; width: 100%; height: 88px; cursor: default; }
.route-help { position: absolute; right: 0; bottom: 0; margin: 0; }

.edge-controls { --interface-delay: 180ms; position: absolute; z-index: 5; left: clamp(24px, 3vw, 48px); bottom: 26px; display: flex; align-items: center; gap: 14px; padding: 8px; }
.edge-controls button { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(0,0,0,.24); border: 1px solid var(--line); cursor: pointer; transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.edge-controls button:hover, .edge-controls button:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.edge-controls p { display: flex; align-items: center; gap: 9px; margin: 0; font-family: "Space Grotesk", Arial, sans-serif; font-size: 12px; }
.fraction-rule { display: block; width: 30px; height: 1px; background: var(--line); }

.flight-status { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; text-align: center; transform: translateY(16px); transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); }
.flight-status span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.flight-status strong { margin-top: 7px; font-family: "Space Grotesk", Arial, sans-serif; font-size: clamp(36px, 6vw, 82px); line-height: .9; letter-spacing: -.06em; }
.experience.is-flying .flight-status { opacity: 1; transform: none; }
.noscript-copy { position: absolute; z-index: 20; inset: auto 24px 24px; display: flex; gap: 12px; padding: 16px; background: #090b0e; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 840px) {
  .topbar { grid-template-columns: 1fr auto; padding: 22px; }
  .event-meta { display: none; }
  .booth-menu { top: auto; right: 20px; bottom: 20px; left: 20px; width: auto; transform: none; }
  .experience.is-flying .booth-menu { transform: translateY(24px); }
  .menu-label { display: none; }
  .booth-buttons { display: flex; gap: 5px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .booth-buttons::-webkit-scrollbar { display: none; }
  .booth-button { flex: 0 0 auto; display: block; width: auto; min-width: 92px; padding: 11px 12px; border: 1px solid var(--line); background: rgba(0,0,0,.24); }
  .booth-button .index { margin-right: 8px; }
  .booth-button .hall { display: none; }
  .booth-button:hover, .booth-button:focus-visible, .booth-button[aria-current="true"] { transform: none; background: rgba(0,0,0,.64); border-color: var(--accent); }
  .booth-copy { top: 92px; right: 16px; left: 16px; width: auto; padding: 14px 16px; }
  .booth-copy h1 { font-size: clamp(40px, 12vw, 58px); }
  .booth-summary { margin: 10px 0 0; font-size: 12px; }
  .visit-button { display: none; }
  .booth-editorial { top: auto; right: 16px; bottom: 112px; left: 16px; width: auto; height: min(410px, calc(100svh - 330px)); min-height: 350px; padding: 14px; }
  .editorial-topline { gap: 8px; }
  .editorial-tabs { gap: 10px; }
  .editorial-topline > p { font-size: 15px; font-weight: 650; letter-spacing: .08em; }
  .editorial-tabs button { font-size: 9px; }
  .editorial-grid { grid-template-columns: 1.08fr .92fr; gap: 12px; padding-top: 14px; }
  .editorial-kicker { margin-bottom: 6px; font-size: 8px; }
  .editorial-copy h2 { font-size: clamp(18px, 5.5vw, 24px); }
  .editorial-copy > p:not(.editorial-kicker) { margin: 9px 0 0; font-size: 10px; line-height: 1.42; }
  .editorial-copy > .editorial-detail { margin-top: 7px; }
  .editorial-meta { grid-template-columns: 1fr; gap: 7px; padding-top: 8px; }
  .editorial-meta dt { font-size: 7px; }
  .editorial-meta dd { font-size: 9px; }
  .booth-editorial[data-view="photos"] .editorial-grid,
  .booth-editorial[data-view="video"] .editorial-grid { grid-template-columns: 1fr; }
  .booth-editorial[data-view="photos"] .editorial-copy,
  .booth-editorial[data-view="video"] .editorial-copy { display: none; }
  .route-map, .edge-controls { display: none; }
  .media-shade { background: linear-gradient(0deg, rgba(3, 5, 8, .45) 0%, rgba(3,5,8,.08) 65%); }
}

@media (max-height: 720px) and (min-width: 841px) {
  .booth-copy { top: 102px; }
  .booth-editorial { top: auto; bottom: 62px; height: 330px; }
  .editorial-copy h2 { font-size: 25px; }
  .editorial-copy > p:not(.editorial-kicker) { margin: 8px 0 10px; }
}

@media (max-width: 840px) and (max-height: 720px) {
  .booth-editorial { bottom: 104px; height: 330px; min-height: 0; }
  .editorial-copy > .editorial-detail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .interface-layer, .media-flight, .flight-status, .visit-button svg, .booth-button, .editorial-photo, .editorial-media iframe, .editorial-tabs button::after, .media-counter { transition-duration: 0s; transition-delay: 0s; }
  .media-loop { display: none; }
  .experience { background-size: cover; background-position: center; }
}
