@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@300;400;500;600;700&display=swap');

:root{
  --bg:#000;
  --blue:#add0e3;
  --gold:#f2c206;
  --peach:#f1a66f;
  --violet:#bb83fe;
  --plum:#2f2140;
  --brown:#3b2719;
  --lav:#c9bdfb;
  --line:rgba(214,210,224,.48);
  --text:#d7d3df;
}

*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;background:#000}
body{
  overflow:hidden;
  display:grid;
  place-items:center;
  color:var(--text);
  font-family:"Antonio","Arial Narrow","Aptos Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif
}
button{font:inherit}

/* One fixed design canvas. Geometry does not change with browser aspect ratio. */
.msd{
  position:relative;
  width:min(100vw,177.7778vh);
  height:min(100vh,56.25vw);
  aspect-ratio:16/9;
  overflow:hidden;
  background:#000;
}

.lcars-shell{position:absolute;inset:0;pointer-events:none;z-index:0}
.cap,.rail,.elbow,.lower-rail,.accent{position:absolute}

/* HEADER */
.cap{
  top:6.46%;
  height:6.46%;
  background:var(--blue)
}
.cap-left{
  left:3.66%;
  width:2.49%;
  border-radius:999px 0 0 999px
}
.cap-right{
  right:3.32%;
  width:2.59%;
  border-radius:0 999px 999px 0
}

.rail{
  top:6.46%;
  height:9.83%;
  background:var(--blue);
  overflow:hidden
}
.rail-top-left{
  left:16.41%;
  width:23.78%;
  border-radius:0 5.2vw 0 0
}
.rail-top-left::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:74.3%;
  height:34.3%;
  background:#000;
  border-radius:0 2.6vw 0 0
}
.rail-top-right{
  left:41.36%;
  right:14.01%;
  border-radius:5.2vw 0 0 0
}
.rail-top-right::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:75.6%;
  height:34.3%;
  background:#000;
  border-radius:2.6vw 0 0 0
}

.identity{
  position:absolute;
  inset:0;
  z-index:6;
  color:var(--gold);
  pointer-events:none
}
.plate,.brand{
  position:absolute;
  top:6.46%;
  height:6.46%;
  display:flex;
  align-items:center;
  margin:0;
  background:#000;
  font-family:"Antonio","Arial Narrow",sans-serif;
  font-weight:500;
  font-size:clamp(44px,5vw,88px);
  line-height:.8;
  letter-spacing:0;
  white-space:nowrap;
  text-transform:uppercase
}
.plate{
  left:6.35%;
  padding:0 .65vw 0 .35vw
}
.brand{
  right:6.05%;
  padding:0 .35vw 0 .65vw
}

/* CENTRAL MSD COLUMNS */
.accent-a,.accent-d{display:none}
.accent-b{
  left:34.08%;
  top:17.98%;
  width:6.10%;
  height:68.73%;
  background:var(--brown);
  opacity:1
}
.accent-c{
  left:41.36%;
  top:17.98%;
  width:10.89%;
  height:68.73%;
  background:transparent;
  opacity:1
}
.accent-c::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:7.63%;
  background:var(--violet)
}
.accent-c::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:10.22%;
  bottom:0;
  background:var(--plum)
}

/* LOWER ELBOWS */
.elbow-right{display:none}
.elbow-left,.elbow-center{
  background:var(--blue);
  overflow:hidden;
  border:0
}
.elbow-left{
  left:21.04%;
  top:88.39%;
  width:19.19%;
  height:8.43%;
  border-radius:0 0 4.2vw 0
}
.elbow-left::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:67.9%;
  height:73.3%;
  background:#000;
  border-radius:0 0 2.5vw 0
}
.elbow-center{
  left:41.41%;
  top:88.39%;
  width:20.21%;
  height:8.43%;
  border-radius:0 0 0 4.2vw
}
.elbow-center::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:46.1%;
  height:73.3%;
  background:#000;
  border-radius:0 0 0 2.5vw
}

/* Bottom rail fragments from the large-shape reference. */
.lower-rail{background:var(--blue)}
.lower-left{
  left:4.83%;
  bottom:3.09%;
  width:14.89%;
  height:2.34%
}
.lower-center{
  left:63.67%;
  bottom:3.18%;
  width:27.15%;
  height:2.06%
}
.lower-center::before{
  content:"";
  position:absolute;
  left:-.35%;
  bottom:365%;
  width:48.2%;
  height:59%;
  background:var(--blue)
}
.lower-right{
  right:3.32%;
  bottom:3.18%;
  width:4.93%;
  height:2.06%
}
.lower-right::before{
  content:"";
  position:absolute;
  right:8%;
  bottom:365%;
  width:354%;
  height:59%;
  background:var(--blue)
}
.lower-right::after{
  content:"";
  position:absolute;
  right:205%;
  bottom:265%;
  width:160%;
  height:59%;
  background:var(--lav)
}

/* VEHICLE */
.hero{
  position:absolute;
  left:9.2%;
  top:19.5%;
  width:68.5%;
  height:55%;
  z-index:3
}
.hero-image{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:saturate(.92) brightness(1.04);
  user-select:none;
  pointer-events:none
}
.hotspot{
  position:absolute;
  border:1px solid transparent;
  border-radius:18px;
  background:transparent;
  cursor:pointer;
  transition:.18s ease
}
.hotspot:hover,.hotspot:focus-visible,.hotspot.active{
  outline:none;
  border-color:var(--gold);
  background:rgba(255,198,26,.035);
  box-shadow:0 0 18px rgba(255,198,26,.18),inset 0 0 22px rgba(255,198,26,.07)
}
.hotspot.cargo{left:5%;top:20%;width:25%;height:54%}
.hotspot.cabin{left:29%;top:18%;width:36%;height:56%}
.hotspot.driveline{left:30%;top:59%;width:45%;height:20%}
.hotspot.engine{right:0;top:31%;width:28%;height:45%}

/* CALLOUTS: individually positioned, color-coded, with curved leader stems. */
.callouts{
  position:absolute;
  right:2.45%;
  top:20.0%;
  width:29%;
  height:55%;
  z-index:5
}
.callouts button{
  --callout:var(--lav);
  --lead:20vw;
  --drop:0;
  position:absolute;
  right:0;
  display:flex;
  align-items:center;
  gap:.55rem;
  border:0;
  padding:0;
  background:transparent;
  color:var(--callout);
  cursor:pointer;
  text-align:left;
  font-weight:400;
  font-size:clamp(10px,1vw,20px);
  line-height:1;
  letter-spacing:.015em;
  white-space:nowrap
}
.callouts button::before{
  content:"";
  position:absolute;
  right:calc(100% + .55rem);
  top:50%;
  width:var(--lead);
  height:var(--drop);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
  border-top-left-radius:1.7vw;
  pointer-events:none
}
.callouts i{
  width:clamp(7px,.7vw,13px);
  height:clamp(7px,.7vw,13px);
  flex:0 0 auto;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 7px currentColor
}
.callouts button:hover,.callouts button.active{filter:brightness(1.22)}

.callouts button:nth-child(1){top:0%;--callout:#c9bdfb;--lead:44vw;--drop:6.6vh}
.callouts button:nth-child(2){top:10.5%;--callout:#9c4f91;--lead:37vw;--drop:7.4vh}
.callouts button:nth-child(3){top:20.5%;--callout:#add0e3;--lead:29vw;--drop:10.8vh}
.callouts button:nth-child(4){top:38.0%;--callout:#86bed6;--lead:23vw;--drop:7.0vh}
.callouts button:nth-child(5){top:44.0%;--callout:#bb83fe;--lead:21vw;--drop:4.2vh}
.callouts button:nth-child(6){top:52.0%;--callout:#f1a66f;--lead:18.5vw;--drop:3.4vh}
.callouts button:nth-child(7){top:66.0%;--callout:#f1a66f;--lead:17vw;--drop:0}
.callouts button:nth-child(8){top:76.0%;--callout:#c9bdfb;--lead:12vw;--drop:0}
.callouts button:nth-child(9){top:95.0%;--callout:#f1a66f;--lead:13.5vw;--drop:0}

/* Temporarily hidden while callout geometry is being tuned. */
.detail-strip,
.mini-panel{display:none}

.footerline{
  position:absolute;
  left:4%;
  right:4%;
  bottom:.7%;
  height:1.7%;
  display:flex;
  align-items:center;
  gap:2.3vw;
  color:#665d6a;
  font-size:clamp(7px,.52vw,10px);
  font-weight:500;
  letter-spacing:.08em
}
.footerline span:last-child{margin-left:auto;color:var(--gold)}
.footerline b{color:var(--blue)}
