:root {
  color-scheme: dark;
  --navy: #07152b;
  --navy-soft: #102744;
  --gold: #efc273;
  --ivory: #fff9ee;
  --motion: 820ms;
  --ease: cubic-bezier(.22, .78, .24, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--navy); }

body { overflow: hidden; color: var(--ivory); }

button { font: inherit; }

.experience {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #07152b;
}

.backgrounds, .scene, .scene::after { position: absolute; inset: 0; }

.backgrounds { z-index: -3; background: #0a1c32; }

.scene {
  opacity: 0;
  background-image: var(--scene);
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(.88);
  transform: scale(1.055);
  transition: opacity 520ms ease;
}

.scene::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 9, 19, .8) 0%, rgba(2, 9, 19, .58) 27%, rgba(2, 9, 19, .17) 58%, rgba(2, 9, 19, .34) 100%),
    linear-gradient(180deg, rgba(2, 8, 17, .28), rgba(2, 8, 17, .12) 58%, rgba(2, 8, 17, .72));
}

.scene.is-active { opacity: 1; }

.topbar {
  height: 88px;
  padding: 0 clamp(22px, 4vw, 74px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  background: rgba(5, 17, 36, .95);
  border-bottom: 1px solid rgba(239, 194, 115, .14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
  position: relative;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 16px; font: 500 clamp(1.45rem, 2.2vw, 2rem)/1 Georgia, serif; }

.brand-mark { width: 42px; height: 46px; display: flex; align-items: center; justify-content: space-between; }
.brand-mark i { display: block; width: 3px; border-radius: 4px; background: linear-gradient(#4ba3ff, var(--gold)); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 16px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 31px; }
.brand-mark i:nth-child(3) { height: 45px; }

.nav-preview { display: flex; gap: clamp(24px, 3vw, 48px); color: rgba(255,255,255,.83); font-family: Georgia, serif; font-size: 1rem; }

.demo-button {
  justify-self: end;
  min-width: 185px;
  padding: 14px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: transparent;
  cursor: default;
}

.hero-copy {
  position: absolute;
  z-index: 8;
  left: clamp(28px, 4vw, 74px);
  top: clamp(122px, 17vh, 178px);
  width: min(34vw, 470px);
  pointer-events: none;
  text-shadow: 0 3px 24px rgba(0,0,0,.56);
}

.eyebrow { margin: 0 0 18px; color: var(--gold); letter-spacing: .22em; font-size: .78rem; font-weight: 700; }

h1 { margin: 0; font: 500 clamp(2.5rem, 4.45vw, 4.9rem)/.96 Georgia, serif; letter-spacing: -.035em; }
h1 em { color: var(--gold); font-weight: 400; }

.instruction { max-width: 300px; margin: 26px 0 0; color: rgba(255,255,255,.7); font-size: .94rem; line-height: 1.5; }

.carousel-region { position: absolute; inset: 88px 0 0; z-index: 5; }

.carousel {
  position: absolute;
  inset: 0;
  outline: none;
  touch-action: pan-y;
}

.carousel:focus-visible::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(239,194,115,.72);
  border-radius: 22px;
  pointer-events: none;
}

.track {
  position: absolute;
  width: min(65vw, 980px);
  height: 30vh;
  right: 3.2vw;
  bottom: 8.5vh;
  border: 2px solid rgba(255, 213, 139, .82);
  border-top-color: transparent;
  border-radius: 50%;
  transform: perspective(700px) rotateX(62deg);
  box-shadow: 0 14px 34px rgba(239, 194, 115, .19), inset 0 -3px 12px rgba(239, 194, 115, .22);
}

.kiosk {
  --x: 64vw;
  --y: 46%;
  --scale: 1;
  --opacity: 1;
  --light: .7;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 170px;
  height: 500px;
  padding: 0;
  color: white;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: var(--opacity);
  filter: brightness(var(--light)) drop-shadow(0 24px 26px rgba(0,0,0,.4));
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center bottom;
  transition:
    left var(--motion) var(--ease),
    top var(--motion) var(--ease),
    transform var(--motion) var(--ease),
    opacity var(--motion) ease,
    filter var(--motion) ease;
}

.kiosk[data-slot="0"] { --x: 64%; --y: 46%; --scale: 1.06; --opacity: 1; --light: 1.05; z-index: 8; }
.kiosk[data-slot="1"] { --x: 76%; --y: 50%; --scale: .79; --opacity: .92; --light: .86; z-index: 7; }
.kiosk[data-slot="2"] { --x: 87%; --y: 54%; --scale: .62; --opacity: .79; --light: .7; z-index: 5; }
.kiosk[data-slot="3"] { --x: 38%; --y: 55%; --scale: .58; --opacity: .73; --light: .66; z-index: 4; }
.kiosk[data-slot="4"] { --x: 45.5%; --y: 53%; --scale: .67; --opacity: .82; --light: .73; z-index: 5; }
.kiosk[data-slot="5"] { --x: 54%; --y: 50%; --scale: .8; --opacity: .92; --light: .86; z-index: 7; }

.kiosk:focus-visible .kiosk-shell { outline: 3px solid var(--gold); outline-offset: 6px; }

.kiosk-shell {
  position: relative;
  display: block;
  width: 170px;
  height: 330px;
  padding: 10px 9px 25px;
  overflow: hidden;
  border: 2px solid #303844;
  border-radius: 7px;
  background: linear-gradient(135deg, #252b34, #080b10 55%, #313944);
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px rgba(239,194,115,.36);
}

.camera { position: absolute; z-index: 2; top: 3px; left: 50%; width: 8px; height: 8px; border: 2px solid #58616b; border-radius: 50%; background: #020305; transform: translateX(-50%); }

.screen { display: block; width: 100%; height: 100%; border-radius: 2px; background-color: #0b1830; background-repeat: no-repeat; background-position: center 22%; background-size: cover; box-shadow: inset 0 0 22px rgba(0,0,0,.28); }

.portrait-artif { background-image: url('assets/artif.jpg'); background-position: center 22%; }
.portrait-hospitality { background-image: url('assets/claudia-pizzeria.png'); background-position: center 18%; }
.portrait-awards { background-image: url('assets/claudia-awards.png'); background-position: center 16%; }
.portrait-corporate { background-image: url('assets/avatar-corporate-v3.png'); background-position: center 17%; }
.portrait-exhibitors { background-image: url('assets/avatar-exhibitors-v3.png'); background-position: center 17%; }
.portrait-medical { background-image: url('assets/avatar-medical-v3.png'); background-position: center 15%; }

.speaker { position: absolute; bottom: 8px; left: 12px; right: 12px; display: flex; justify-content: center; gap: 8px; }
.speaker i { width: 3px; height: 3px; border-radius: 50%; background: #555e67; }

.stem { display: block; width: 34px; height: 111px; margin: 0 auto; background: linear-gradient(90deg, #0b0e13, #313943 48%, #07090d); border-inline: 1px solid rgba(239,194,115,.3); }

.base { position: relative; display: block; width: 142px; height: 18px; margin: 0 auto; border: 1px solid rgba(239,194,115,.52); border-radius: 4px 4px 8px 8px; background: linear-gradient(#343b44, #07090c); box-shadow: 0 8px 15px rgba(0,0,0,.38); }
.base i { position: absolute; bottom: -8px; width: 14px; height: 14px; border: 3px solid #15191e; border-radius: 50%; background: #020304; }
.base i:first-child { left: 18px; } .base i:last-child { right: 18px; }

.service-label {
  display: block;
  width: 210px;
  margin: 19px 0 0 -20px;
  color: rgba(255,255,255,.85);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 10px #000;
  transition: color var(--motion) ease, transform var(--motion) var(--ease);
}

.kiosk[aria-selected="true"] .service-label { color: var(--gold); transform: translateY(3px) scale(1.06); }

.active-caption {
  position: absolute;
  z-index: 12;
  left: 64%;
  bottom: 3.1vh;
  width: min(520px, 44vw);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}

.active-dot { display: block; width: 17px; height: 17px; margin: 0 auto 12px; border: 3px solid white; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(239,194,115,.25), 0 0 22px var(--gold); }
.active-caption strong { display: block; font: 500 clamp(1.35rem, 2vw, 2rem)/1.1 Georgia, serif; }
.active-caption > span:last-child { display: block; margin-top: 7px; color: rgba(255,255,255,.68); font-size: .84rem; }

.choice-row { display: none; }

.detail-view {
  --detail-scene: none;
  --detail-avatar: none;
  position: fixed;
  z-index: 50;
  inset: 0;
  min-height: 100svh;
  overflow: auto;
  color: var(--ivory);
  background: var(--navy);
  animation: detail-in 480ms var(--ease) both;
}

.detail-view[hidden] { display: none; }

.detail-background {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: var(--detail-scene);
  background-position: center;
  background-size: cover;
  filter: saturate(.88);
  transform: scale(1.02);
}

.detail-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 24, .36), rgba(3, 11, 24, .68) 58%, rgba(3, 11, 24, .93)),
    linear-gradient(180deg, rgba(2, 8, 17, .25), rgba(2, 8, 17, .7));
  backdrop-filter: blur(4px);
}

.detail-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 88px;
  padding: 0 clamp(22px, 4vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(5, 17, 36, .94);
  border-bottom: 1px solid rgba(239, 194, 115, .18);
}

.detail-back {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid rgba(239, 194, 115, .8);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5, 17, 36, .65);
  cursor: pointer;
}

.detail-back:hover,
.detail-back:focus-visible { color: #091426; background: var(--gold); outline: none; }

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, .95fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
  width: min(1280px, calc(100% - 64px));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 0;
}

.detail-stage {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  place-items: center;
  height: calc(100svh - 88px);
  min-height: 0;
  padding: 0;
}

.detail-kiosk {
  width: auto;
  height: 95%;
  max-width: 100%;
  aspect-ratio: 300 / 699;
  display: flex;
  flex-direction: column;
  justify-content: center;
  filter: drop-shadow(0 35px 36px rgba(0, 0, 0, .52));
  animation: kiosk-arrive 640ms 100ms var(--ease) both;
}

.detail-shell {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 555;
  padding: 5.67% 5% 12.67%;
  overflow: hidden;
  border: clamp(1px, .26vmin, 3px) solid #343d48;
  border-radius: 4.34%;
  background: linear-gradient(135deg, #252b34, #080b10 55%, #313944);
  box-shadow: inset 0 0 0 2px #000, 0 0 0 1px rgba(239, 194, 115, .5), 0 0 54px rgba(239, 194, 115, .14);
}

.detail-camera {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #626d78;
  border-radius: 50%;
  background: #020305;
  transform: translateX(-50%);
}

.detail-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #0b1830;
  box-shadow: inset 0 0 30px rgba(0,0,0,.34);
}

.detail-avatar {
  position: absolute;
  inset: 0;
  background-image: var(--detail-avatar);
  background-position: center 17%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 300ms ease, transform 300ms ease;
}

.detail-video { width: 100%; height: 100%; object-fit: cover; background: #020812; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: rgba(4, 16, 33, .72);
  backdrop-filter: blur(9px);
}

.video-placeholder[hidden] { display: none; }
.video-placeholder strong { font: 500 1.35rem/1.1 Georgia, serif; }
.video-placeholder span:last-child { color: rgba(255,255,255,.72); font-size: .9rem; }
.placeholder-play { color: var(--gold); font-size: 2.25rem; }
.detail-screen.is-awaiting-video .detail-avatar { filter: blur(5px) brightness(.55); transform: scale(1.04); }

.detail-speaker {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  gap: 13px;
}

.detail-speaker i { width: 5px; height: 5px; border-radius: 50%; background: #5f6973; }
.detail-stem { display: block; width: 18.67%; height: auto; aspect-ratio: 56 / 105; margin: 0 auto; border-inline: 1px solid rgba(239,194,115,.35); background: linear-gradient(90deg, #0b0e13, #313943 48%, #07090d); }
.detail-base { position: relative; display: block; width: 82.67%; height: auto; aspect-ratio: 248 / 27; margin: 0 auto; border: 1px solid rgba(239,194,115,.6); border-radius: 6px 6px 12px 12px; background: linear-gradient(#343b44, #07090c); box-shadow: 0 11px 20px rgba(0,0,0,.42); }
.detail-base i { position: absolute; bottom: -11px; width: 20px; height: 20px; border: 4px solid #15191e; border-radius: 50%; background: #020304; }
.detail-base i:first-child { left: 30px; }
.detail-base i:last-child { right: 30px; }

.detail-copy {
  max-width: 540px;
  margin: 38px 0 42px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(239, 194, 115, .22);
  border-radius: 28px;
  background: rgba(5, 17, 36, .78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
  animation: copy-arrive 560ms 120ms var(--ease) both;
}

.detail-copy h2 { margin: 0; color: var(--ivory); font: 500 clamp(2.5rem, 4.5vw, 4.8rem)/.98 Georgia, serif; letter-spacing: -.035em; }
.detail-intro { margin: 24px 0 28px; color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.65; }
.detail-copy h3 { margin: 0 0 13px; color: var(--gold); font-size: .86rem; letter-spacing: .13em; text-transform: uppercase; }
.detail-capabilities { margin: 0 0 30px; padding: 0; list-style: none; }
.detail-capabilities li { position: relative; margin: 11px 0; padding-left: 24px; color: rgba(255,255,255,.86); font-size: 1rem; line-height: 1.45; }
.detail-capabilities li::before { content: ""; position: absolute; top: .55em; left: 0; width: 9px; height: 9px; border: 2px solid var(--gold); border-radius: 50%; }

.detail-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.detail-model > div {
  padding: 16px;
  border: 1px solid rgba(239, 194, 115, .2);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}

.detail-model h3 { margin-bottom: 8px; font-size: .72rem; }
.detail-model p { margin: 0; color: rgba(255,255,255,.72); font-size: .86rem; line-height: 1.45; }
.detail-principle { margin: 0 0 20px; padding-left: 14px; border-left: 2px solid var(--gold); color: rgba(255,255,255,.68); font-size: .82rem; line-height: 1.45; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.play-demo {
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #091426;
  background: linear-gradient(135deg, #ffe6a8, var(--gold));
  box-shadow: 0 11px 28px rgba(239, 194, 115, .18);
  cursor: pointer;
  font-weight: 750;
}

.play-demo span { margin-right: 9px; }
.play-demo:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(239, 194, 115, .27); }
.play-demo:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.download-brief {
  min-height: 54px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(239,194,115,.75);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5,17,36,.45);
  font-weight: 700;
  text-decoration: none;
}
.download-brief:hover { color: #091426; background: var(--gold); }
.download-brief:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.video-note { margin: 13px 0 0; color: rgba(255,255,255,.56); font-size: .82rem; }

@keyframes detail-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kiosk-arrive { from { opacity: 0; transform: translateX(-55px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes copy-arrive { from { opacity: 0; transform: translateX(45px); } to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .nav-preview { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero-copy { top: 124px; width: 38vw; }
  .kiosk { width: 150px; }
  .kiosk-shell { width: 150px; height: 292px; }
  .stem { height: 96px; }
  .kiosk[data-slot="0"] { --x: 66%; }
  .kiosk[data-slot="1"] { --x: 79%; }
  .kiosk[data-slot="2"] { --x: 90%; }
  .kiosk[data-slot="3"] { --x: 42%; }
  .kiosk[data-slot="4"] { --x: 49%; }
  .kiosk[data-slot="5"] { --x: 56%; }
  .track { width: 65vw; }
  .active-caption { left: 66%; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .experience { min-height: 780px; }
  .topbar { height: 72px; padding-inline: 18px; }
  .brand { font-size: 1.32rem; gap: 10px; }
  .brand-mark { transform: scale(.78); transform-origin: left center; width: 34px; }
  .demo-button { display: none; }
  .hero-copy { top: 98px; left: 22px; width: calc(100% - 44px); text-align: center; }
  .eyebrow { margin-bottom: 10px; }
  h1 { font-size: clamp(2rem, 9.5vw, 3.15rem); line-height: .98; }
  .instruction { margin: 14px auto 0; }
  .carousel-region { inset: 72px 0 0; }
  .track { width: 92vw; height: 22vh; right: 4vw; bottom: 15vh; }
  .kiosk { width: 132px; height: 400px; }
  .kiosk-shell { width: 132px; height: 258px; }
  .stem { height: 75px; }
  .base { width: 112px; }
  .service-label { display: none; }
  .kiosk[data-slot="0"] { --x: 50%; --y: 58%; --scale: .93; }
  .kiosk[data-slot="1"] { --x: 76%; --y: 61%; --scale: .54; }
  .kiosk[data-slot="2"] { --x: 91%; --y: 64%; --scale: .4; }
  .kiosk[data-slot="3"] { --x: 9%; --y: 64%; --scale: .4; }
  .kiosk[data-slot="4"] { --x: 24%; --y: 61%; --scale: .54; }
  .kiosk[data-slot="5"] { --x: 36%; --y: 60%; --scale: .66; }
  .active-caption { left: 50%; bottom: 10vh; width: calc(100% - 36px); }
  .active-caption > span:last-child { display: none; }
  .choice-row { position: absolute; z-index: 15; left: 12px; right: 12px; bottom: 18px; display: flex; gap: 7px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .choice-row::-webkit-scrollbar { display: none; }
  .choice { flex: 0 0 auto; min-height: 40px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: rgba(255,255,255,.78); background: rgba(4,15,31,.7); }
  .choice.is-active { color: #091426; border-color: var(--gold); background: var(--gold); }
}

@media (max-width: 880px) {
  .detail-topbar { height: 72px; padding-inline: 18px; }
  .detail-back { min-height: 42px; padding: 9px 14px; font-size: .85rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 34px; width: min(100% - 32px, 620px); min-height: auto; padding: 0 0 56px; }
  .detail-stage { position: relative; top: auto; height: calc(100svh - 72px); min-height: 0; padding: 0; }
  .detail-kiosk { width: auto; height: 95%; max-width: 92vw; }
  .detail-shell { width: 100%; height: auto; padding: 5.67% 5% 12.67%; border-radius: 4.34%; }
  .detail-stem { width: 18.67%; height: auto; }
  .detail-base { width: 82.67%; height: auto; }
  .detail-copy { max-width: none; margin: 0; padding: 30px 26px; }
  .detail-copy h2 { font-size: clamp(2.3rem, 11vw, 4rem); }
  .detail-model { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 180ms; }
  .kiosk, .scene { transition-timing-function: ease; }
  .detail-view, .detail-kiosk, .detail-copy { animation-duration: 1ms; }
}
