:root {
  color-scheme: dark;
  --cyan: #9de8fb;
  --gold: #ffce7d;
  --border: #488397;
  --panel: #081822f5;
  font: 1rem/1.45 system-ui, sans-serif;
  color: #edf6fa;
  background: #050e17;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, .plan-pin:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
#engineering-experience {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 100svh;
  max-width: 104rem;
  margin: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.cinematic {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 36rem;
  min-height: max(32rem, calc(100svh - 8rem));
  padding-inline: clamp(1rem, 4vw, 4rem);
}
.hero-art, .hero-shade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: center 48%; }
.hero-shade {
  background: linear-gradient(180deg,#030c16e8,transparent 37%,transparent 60%,#030c16b8 86%,#030c16 100%);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .85rem;
  border-bottom: 1px solid #b5e6f24a;
}
.brand { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.brand span { display: block; color: var(--cyan); font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.top-return, .hotspot, .mode-dock > *, .room-dock > *, .sheet-button, .blueprint-tools button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .45rem .7rem;
  font-size: .875rem;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: var(--panel);
  text-align: center;
}
.scene-title {
  justify-self: start;
  max-width: 29rem;
  margin-top: clamp(.75rem, 4vh, 3rem);
  background: linear-gradient(105deg,#071521fa,#071521b8 82%,#0715218c);
  border-left: 2px solid var(--cyan);
  padding: .75rem clamp(.75rem, 3vw, 1.5rem);
}
.eyebrow { color: var(--gold); margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; }
.scene-title h1 { margin: .1rem 0 .15rem; font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1.05; }
.scene-title > p:last-child { margin: .4rem 0 0; color: #d4e9f3; }
.system-hotspots { grid-row: 4; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.hotspot.selected, .mode-dock .active, .room-dock [aria-current], .sheet-button.active {
  border-color: var(--gold);
  color: var(--gold);
  background: #272117;
}
.system-caption {
  grid-row: 5;
  justify-self: start;
  display: flex;
  gap: .75rem;
  padding: .65rem .85rem;
  max-width: 38rem;
  margin-bottom: .85rem;
  background: var(--panel);
  border-left: 2px solid var(--gold);
}
.caption-id { color: var(--gold); font-size: .8rem; white-space: nowrap; }
.system-caption h2, .blueprint-info h2 { margin: 0 0 .2rem; font-size: 1rem; line-height: 1.3; }
.system-caption p, .blueprint-info p { margin: 0; color: #d4e9f3; }
.mode-dock, .room-dock {
  display: grid;
  gap: .35rem;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: .45rem clamp(.65rem,4vw,4rem);
  background: #050f18;
}
.room-dock { grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 0; }
.mode-dock span { color: var(--cyan); font-size: 1rem; }
.mode-dock b { font-weight: 650; }
.blueprint { display: grid; gap: .65rem; padding: .8rem clamp(.65rem, 3vw, 2rem); }
.blueprint-backdrop { display: none; }
.blueprint-header { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.blueprint-header h1 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); }
.sheet-picker, .blueprint-tools { display: flex; gap: .35rem; }
.blueprint-tools { justify-content: flex-end; }
.blueprint-tools button { min-width: 44px; }
.plan-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  min-height: min(52dvh, 34rem);
  border: 1px solid var(--border);
  background: #112b3b;
  cursor: grab;
}
.plan-stage.dragging { cursor: grabbing; }
.plan-canvas { position: relative; width: min(100%, calc(52dvh * 1.5)); aspect-ratio: 3/2; }
.plan-canvas img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.plan-hotspots { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-pin { cursor: pointer; }
.plan-pin circle { fill: #081822eb; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.plan-pin text { fill: #fff; text-anchor: middle; font: 700 32px system-ui, sans-serif; pointer-events: none; }
.plan-pin.selected circle { fill: #51340dea; stroke: var(--gold); }
.blueprint-info { padding: .6rem .85rem; background: var(--panel); border-left: 2px solid var(--gold); }
.sheet-note { color: #c0d3dd; margin: 0; font-size: .875rem; }
@media (max-width: 460px) {
  .mode-dock span { display: none; }
  .mode-dock > *, .room-dock > * { padding-inline: .25rem; }
}

.sheet-notes {
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  background: var(--panel);
}
.sheet-notes strong { color: #edf6fa; }
.sheet-notes summary {
  display: list-item;
  width: fit-content;
  align-content: center;
  min-height: 44px;
  color: var(--cyan);
  cursor: pointer;
}
.sheet-notes summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sheet-notes ul { margin: 0 0 .25rem; padding-inline-start: 1.25rem; color: #d4e9f3; }
.sheet-notes li + li { margin-top: .4rem; }
.plan-pin text { dominant-baseline: central; }
