/* Drex360 landing page
   Palette is taken from the facility floor: graphite steel, concrete, and the
   three safety colours used on the hotspots (yellow = equipment, blue = training,
   green = egress). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
}

@property --reveal {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

:root {
  --graphite: #1d262b;
  --graphite-2: #26323a;
  --graphite-3: #33424b;
  --concrete: #dfe2de;
  --paper: #f5f6f3;
  --steel: #56656c;
  --tape: #f2b705;
  --tape-deep: #c99600;
  --info: #2f62d0;
  --egress: #12804a;
  --egress-bright: #2fd47f;
  --ink-on-dark: #eef0ec;
  --muted-on-dark: #b3bec3;
  --focus: #9cc2ff;

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --max: 1360px;
  --radius: 6px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--graphite);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--tape);
  color: var(--graphite);
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 650;
  font-stretch: 92%;
  font-size: 1.0625rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tape); color: var(--graphite); }
.btn-primary:hover { background: #ffc917; }
.btn-ghost { color: var(--ink-on-dark); border-color: rgba(238, 240, 236, .38); }
.btn-ghost:hover { border-color: var(--ink-on-dark); background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--graphite); color: var(--paper); }
.btn-dark:hover { background: var(--graphite-3); }
.btn-lg { min-height: 60px; padding: 1rem 1.75rem; font-size: 1.1875rem; }
.btn-small { min-height: 40px; padding: .5rem .9rem; font-size: .9375rem; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: 1.1rem .4rem;
  color: var(--ink-on-dark);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name {
  font-weight: 760;
  font-stretch: 78%;
  font-size: 1.5rem;
  letter-spacing: .005em;
}
.brand-by {
  color: var(--muted-on-dark);
  font-size: .9375rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(238, 240, 236, .22);
}

/* ---------- hero ---------- */
.hero {
  color: var(--ink-on-dark);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 2.6vw, 2rem);
}
.hero-title {
  font-weight: 780;
  font-stretch: 68%;
  font-size: clamp(2.6rem, 1.3rem + 4.2vw, 5rem);
  line-height: .93;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.hero-lede p {
  color: var(--muted-on-dark);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}

/* ---------- demo ---------- */
.demo {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  scroll-margin-top: .75rem;
}
.demo:focus { outline: none; }

.demo-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  min-height: 48px;
  padding: .55rem 1rem;
  background: var(--graphite-2);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: .9375rem;
}
.demo-badge {
  background: var(--tape);
  color: var(--graphite);
  font-weight: 700;
  font-size: .8125rem;
  line-height: 1;
  padding: .32rem .55rem;
  border-radius: 3px;
}
.demo-name { font-weight: 650; }
.demo-note { color: var(--muted-on-dark); }
.demo-status {
  margin-left: auto;
  color: var(--muted-on-dark);
  font-size: .875rem;
  min-height: 1.2em;
}

.stage-wrap { position: relative; }
.viewport {
  position: relative;
  background: #0f1518;
  overflow: hidden;
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.layer-scan,
.layer-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layer-photo img { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }

.stage[data-phase="scanning"] { animation: reveal 2.6s cubic-bezier(.5, .05, .3, 1) forwards; }
.stage[data-phase="ready"],
html:not(.js) .stage { --reveal: 100%; }
@keyframes reveal { from { --reveal: 0%; } to { --reveal: 100%; } }

.scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  margin-left: -1px;
  background: #fffbe6;
  box-shadow: 0 0 10px 2px rgba(242, 183, 5, .9), 0 0 40px 8px rgba(242, 183, 5, .35);
  opacity: 0;
  pointer-events: none;
}
.scanline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1px;
  width: clamp(60px, 10vw, 160px);
  background: linear-gradient(90deg, rgba(242, 183, 5, 0), rgba(242, 183, 5, .16));
}
.stage[data-phase="scanning"] .scanline { opacity: 1; }
.stage[data-phase="ready"] .scanline { opacity: 0; transition: opacity .4s; }

/* ---------- hotspots ---------- */
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  --c: var(--tape);
  --c-ink: var(--graphite);
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: scale(.6);
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.hotspot[data-kind="training"] { --c: var(--info); --c-ink: #fff; }
.hotspot[data-kind="egress"] { --c: var(--egress); --c-ink: #fff; }

.stage[data-phase="ready"] .hotspot {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  transition-delay: calc(var(--i) * 120ms);
}
.hotspot-dot {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease-out);
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--c);
  opacity: 0;
}
.stage[data-phase="ready"]:not(.is-explored) .hotspot::after {
  animation: ping 2.4s var(--ease-out) infinite;
  animation-delay: calc(.6s + var(--i) * .3s);
}
@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(2.3); opacity: 0; }
}
.hotspot-label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: .3rem .6rem .32rem;
  border-radius: 4px;
  background: rgba(20, 27, 31, .86);
  color: #fff;
  font-size: .875rem;
  font-weight: 620;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.hotspot-label small {
  display: block;
  font-size: .75rem;
  font-weight: 450;
  color: #c9d1d5;
}
.hotspot[data-label="left"] .hotspot-label { left: auto; right: 42px; text-align: right; }
.hotspot:hover .hotspot-dot,
.hotspot:focus-visible .hotspot-dot { transform: scale(1.15); }
.hotspot:focus-visible { outline-offset: 0; border-radius: 50%; }
.hotspot[aria-expanded="true"] .hotspot-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px var(--c), 0 2px 12px rgba(0, 0, 0, .5);
}
.hotspot[aria-expanded="true"] .hotspot-label { background: var(--c); color: var(--c-ink); }
.hotspot[aria-expanded="true"] .hotspot-label small { color: inherit; opacity: .85; }
.stage.has-open .hotspot:not([aria-expanded="true"]) { opacity: .55; }
.stage.has-open .hotspot:not([aria-expanded="true"]):hover,
.stage.has-open .hotspot:not([aria-expanded="true"]):focus-visible { opacity: 1; }

/* route + pins */
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.route, .route-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.route-glow { stroke: rgba(5, 30, 15, .55); stroke-width: 11px; }
.route { stroke: var(--egress-bright); stroke-width: 5px; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stage.show-route .route-glow { opacity: 1; transition: opacity .3s; }
.stage.show-route .route {
  opacity: 1;
  animation: draw 1.3s var(--ease-out) forwards, march 1.1s linear 1.3s infinite;
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes march {
  from { stroke-dasharray: .018 .012; stroke-dashoffset: .03; }
  to { stroke-dasharray: .018 .012; stroke-dashoffset: 0; }
}

.you-are-here,
.step-pin {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.you-are-here {
  transform: translate(-50%, -135%);
  background: #fff;
  color: var(--graphite);
  font-size: .8125rem;
  font-weight: 650;
  padding: .25rem .55rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.you-are-here::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom: 0;
  border-top-color: #fff;
}
.step-pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font-weight: 750;
  font-size: 1rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 98, 208, .35), 0 3px 10px rgba(0, 0, 0, .45);
  transition: left .5s var(--ease-out), top .5s var(--ease-out);
}

/* ---------- details panel ---------- */
.panel {
  position: absolute;
  top: 14px;
  right: 14px;
  max-height: calc(100% - 28px);
  width: min(380px, 42%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  color: var(--graphite);
}
.panel[data-side="left"] { right: auto; left: 14px; }
.panel-inner {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 6px solid var(--kind, var(--tape));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  padding: 1.25rem 1.25rem 1.4rem;
  animation: panel-in .32s var(--ease-out);
}
.panel[data-kind="training"] { --kind: var(--info); }
.panel[data-kind="egress"] { --kind: var(--egress); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
}
.panel-close svg { width: 18px; height: 18px; }
.panel-close:hover { background: rgba(29, 38, 43, .08); color: var(--graphite); }

.p-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  font-weight: 620;
  color: var(--steel);
  margin-bottom: .35rem;
}
.p-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kind, var(--tape));
}
.p-title {
  font-size: 1.375rem;
  font-weight: 750;
  font-stretch: 84%;
  line-height: 1.12;
  padding-right: 2.25rem;
  margin-bottom: .6rem;
}
.p-title:focus { outline: none; }
.p-intro { color: var(--steel); font-size: .9688rem; margin-bottom: 1rem; }
.p-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 620;
  color: #0d6b3c;
  background: #e1f3e8;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.p-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #18a058; }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1rem;
  margin: 0 0 1.1rem;
  font-size: .9375rem;
}
.facts dt { color: var(--steel); }
.facts dd { margin: 0; font-weight: 560; }

.p-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.record {
  border: 1px solid rgba(29, 38, 43, .14);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  background: #fff;
  font-size: .9375rem;
  margin-bottom: 1.1rem;
}
.record-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-weight: 650;
  margin-bottom: .35rem;
}
.record-head span:last-child { color: var(--steel); font-weight: 500; }
.record p { margin-bottom: .45rem; }
.record-meta { color: var(--steel); font-size: .875rem; }
.record-result { color: #0d6b3c; font-weight: 620; font-size: .875rem; }

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.files li {
  font-size: .875rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(29, 38, 43, .07);
  color: var(--graphite);
}
.p-footnote { margin-top: .9rem; font-size: .8125rem; color: var(--steel); }

/* training stepper */
.walk-progress {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), 1fr);
  gap: 4px;
  margin: .25rem 0 .9rem;
}
.walk-progress span { height: 4px; border-radius: 2px; background: rgba(29, 38, 43, .14); transition: background-color .3s; }
.walk-progress span.is-done { background: var(--info); }
.walk-count { font-size: .875rem; color: var(--steel); margin-bottom: .2rem; }
.walk-step-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .35rem; }
.walk-step-title:focus { outline: none; }
.walk-text { font-size: 1rem; margin-bottom: 1.1rem; min-height: 4.6em; }
.walk-nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.walk-nav .btn-step {
  background: var(--info);
  color: #fff;
}
.walk-nav .btn-step:hover { background: #2552b5; }
.btn-outline { border-color: rgba(29, 38, 43, .3); color: var(--graphite); background: transparent; }
.btn-outline:hover { border-color: var(--graphite); }
.btn-outline[disabled] { opacity: .4; cursor: default; }

/* egress */
.assembly {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: .9rem;
  align-items: center;
  padding: .8rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: #e6f3eb;
  font-size: .9375rem;
}
.assembly svg { width: 112px; height: auto; }
.assembly strong { display: block; font-size: 1rem; }
.assembly p { color: #2d4a3a; }

/* ---------- below the stage ---------- */
.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--graphite-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.demo-hint { color: var(--muted-on-dark); font-size: .9375rem; }
.jump { display: flex; gap: .5rem; flex-wrap: wrap; }
.jump button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1.5px solid rgba(238, 240, 236, .25);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-on-dark);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.jump button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--tape)); }
.jump button[data-kind="training"] { --c: #6f98ff; }
.jump button[data-kind="egress"] { --c: var(--egress-bright); }
.jump button[aria-pressed="true"] { border-color: var(--ink-on-dark); background: rgba(255, 255, 255, .08); }

/* live tour embed */
.tour-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo.is-embed .jump,
.demo.is-embed .demo-hint { display: none; }

/* ---------- how it works ---------- */
.how {
  background: var(--concrete);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-title {
  font-weight: 760;
  font-stretch: 74%;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.008em;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: var(--tape);
  color: var(--graphite);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.375rem;
  position: relative;
  z-index: 1;
}
/* floor-tape line linking the steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 56px;
  right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem) + 12px);
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--tape-deep) 0 18px, transparent 18px 28px);
}
.step-figure {
  position: relative;
  margin: 0 0 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #c9cdc9;
  aspect-ratio: 3 / 2;
}
.step-figure img { width: 100%; height: 100%; object-fit: cover; }
.step-tag {
  position: absolute;
  right: 6%;
  top: 28%;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--paper);
  color: var(--graphite);
  border-top: 4px solid var(--tape);
  border-radius: 4px;
  padding: .35rem .6rem;
  font-size: .8125rem;
  font-weight: 650;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.step-tag-dot { width: 9px; height: 9px; border-radius: 50%; background: #18a058; }
.step h3 {
  font-size: 1.3125rem;
  font-weight: 720;
  font-stretch: 90%;
  line-height: 1.2;
  margin-bottom: .4rem;
}
.step p { color: #3d4a51; max-width: 44ch; }

/* ---------- audiences ---------- */
.audiences {
  background: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.aud {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.aud-tabs { display: flex; flex-direction: column; gap: .25rem; }
.aud-tabs [role="tab"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .7rem 1rem;
  text-align: left;
  border: 0;
  border-left: 4px solid rgba(29, 38, 43, .14);
  background: transparent;
  font-size: 1.0625rem;
  font-weight: 560;
  color: var(--steel);
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: color .15s, border-color .15s, background-color .15s;
}
.aud-tabs [role="tab"]:hover { color: var(--graphite); background: rgba(29, 38, 43, .04); }
.aud-tabs [role="tab"][aria-selected="true"] {
  color: var(--graphite);
  font-weight: 700;
  border-left-color: var(--graphite);
  background: #fff;
}
.aud-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
}
.aud-panel[hidden] { display: none; }
.aud-panel:focus-visible { outline-offset: 6px; }
.aud-panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: #d7dad6;
}
.aud-copy h3 {
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  font-weight: 740;
  font-stretch: 82%;
  line-height: 1.08;
  margin-bottom: .75rem;
  text-wrap: balance;
}
.aud-copy p { color: #3d4a51; max-width: 46ch; }

/* ---------- request ---------- */
.request {
  background: var(--tape);
  color: var(--graphite);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  --focus: var(--graphite);
  scroll-margin-top: 0;
}
.request-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
}
.request-title {
  font-weight: 800;
  font-stretch: 66%;
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.request-copy p { font-size: 1.125rem; max-width: 40ch; margin-bottom: 1.4rem; }
.request-copy .request-alt { font-size: 1rem; margin: 1rem 0 0; }
.request-alt a { color: inherit; font-weight: 650; }

/* ---------- booking popup ---------- */
html.has-dialog { overflow: hidden; }
.booking {
  width: min(980px, 100% - 2rem);
  height: min(860px, 100% - 2rem);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.booking[open] { display: flex; flex-direction: column; animation: booking-in .28s var(--ease-out); }
.booking::backdrop { background: rgba(15, 21, 24, .72); backdrop-filter: blur(3px); }
@keyframes booking-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .85rem .85rem 1.25rem;
  border-top: 6px solid var(--tape);
  border-bottom: 1px solid rgba(29, 38, 43, .12);
}
.booking-title { font-size: 1.25rem; font-weight: 740; font-stretch: 84%; line-height: 1.15; }
.booking-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
}
.booking-close svg { width: 20px; height: 20px; }
.booking-close:hover { background: rgba(29, 38, 43, .08); color: var(--graphite); }
.booking-body { position: relative; flex: 1 1 auto; min-height: 0; background: #fff; }
.booking-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.booking-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--steel);
  font-size: 1rem;
}
.booking.is-loaded .booking-loading { display: none; }
.booking-foot {
  padding: .7rem 1.25rem calc(.7rem + env(safe-area-inset-bottom));
  font-size: .9375rem;
  color: var(--steel);
  border-top: 1px solid rgba(29, 38, 43, .12);
}
.booking-foot a { color: var(--graphite); font-weight: 650; }
.booking.is-slow .booking-foot { background: #fff4cc; color: var(--graphite); }
@media (max-width: 600px) {
  .booking { width: 100%; height: 100%; border-radius: 0; }
}

/* ---------- walkthrough video ---------- */
.tour {
  background: var(--graphite);
  color: var(--ink-on-dark);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.tour-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.tour-head .section-title { margin-bottom: 0; }
.tour-lede { color: var(--muted-on-dark); max-width: 46ch; }

.tour-stage { position: relative; }
.tour-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f1518;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.tour-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tour-note {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: .3rem .6rem;
  border-radius: 4px;
  background: rgba(20, 27, 31, .78);
  color: #dfe5e8;
  font-size: .8125rem;
  pointer-events: none;
}
.tour-note:empty { display: none; }
.tour-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 56px;
  padding: .8rem 1.4rem .8rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--tape);
  color: var(--graphite);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.tour-bigplay svg { width: 26px; height: 26px; }

.tour-pins { position: absolute; inset: 0; pointer-events: none; }
.tour-pin {
  --c: var(--tape);
  --c-ink: var(--graphite);
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.tour-pin.is-live { opacity: 1; transform: none; }
.tour-pin[data-kind="training"] { --c: var(--info); --c-ink: #fff; }
.tour-pin[data-kind="egress"] { --c: var(--egress); --c-ink: #fff; }
.tour-pin .hotspot-dot { inset: 12px; }
.tour-pin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--c);
  opacity: 0;
}
.tour-pin.is-live::after { animation: ping 2s var(--ease-out) infinite; }
.tour-pin .hotspot-label { left: 42px; }
.tour-pin[data-label="left"] .hotspot-label { left: auto; right: 42px; text-align: right; }
.tour-pin[aria-expanded="true"] .hotspot-dot { transform: scale(1.2); box-shadow: 0 0 0 4px var(--c), 0 2px 12px rgba(0, 0, 0, .5); }
.tour-pin[aria-expanded="true"] .hotspot-label { background: var(--c); color: var(--c-ink); }
.tour-pin[aria-expanded="true"] .hotspot-label small { color: inherit; opacity: .85; }
.tour-pin:focus-visible { outline-offset: 0; border-radius: 50%; }

.tour-card {
  position: absolute;
  top: 14px;
  right: 14px;
  width: min(360px, 40%);
  max-height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  z-index: 3;
  color: var(--graphite);
}
.tour-card[data-side="left"] { right: auto; left: 14px; }
.tour-card[data-kind="training"] { --kind: var(--info); }
.tour-card[data-kind="egress"] { --kind: var(--egress); }
.tour-card-inner {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 6px solid var(--kind, var(--tape));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  padding: 1.1rem 1.15rem 1.2rem;
  animation: panel-in .3s var(--ease-out);
}
.tour-card .facts { margin-bottom: .9rem; }
.tour-card .files { margin-bottom: 1rem; }
.tour-card-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.tour-controls {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem .9rem;
  background: var(--graphite-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.tour-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--tape);
  color: var(--graphite);
  cursor: pointer;
}
.tour-btn svg { width: 22px; height: 22px; }
.tour-btn .i-pause { display: none; }
.tour-player.is-playing .tour-btn .i-play { display: none; }
.tour-player.is-playing .tour-btn .i-pause { display: block; }
.tour-scrub { position: relative; flex: 1 1 auto; height: 44px; display: flex; align-items: center; }
.tour-scrub input[type="range"] {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.tour-scrub input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tape) var(--p, 0%), rgba(238, 240, 236, .2) var(--p, 0%));
}
.tour-scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(238, 240, 236, .2); }
.tour-scrub input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--tape); }
.tour-scrub input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.tour-scrub input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; }
.tour-marks { position: absolute; left: 9px; right: 9px; top: 50%; height: 0; pointer-events: none; z-index: 2; }
.tour-marks span {
  position: absolute;
  top: -7px;
  width: 4px;
  height: 14px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--c, var(--tape));
  box-shadow: 0 0 0 2px var(--graphite-2);
}
.tour-marks span[data-kind="training"] { --c: #6f98ff; }
.tour-marks span[data-kind="egress"] { --c: var(--egress-bright); }
.tour-time { flex: none; min-width: 5.5em; text-align: right; color: var(--muted-on-dark); font-size: .9375rem; }

.tour-stops {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.tour-stops button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem .65rem;
  width: 100%;
  min-height: 56px;
  padding: .7rem .9rem;
  text-align: left;
  border: 1.5px solid rgba(238, 240, 236, .16);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-on-dark);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.tour-stops button:hover { border-color: rgba(238, 240, 236, .45); }
.tour-stops button.is-current { border-color: var(--c, var(--tape)); background: rgba(255, 255, 255, .05); }
.tour-stops .stop-dot { grid-row: span 2; align-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--tape)); }
.tour-stops button[data-kind="training"] { --c: #6f98ff; }
.tour-stops button[data-kind="egress"] { --c: var(--egress-bright); }
.tour-stops .stop-label { font-weight: 650; }
.tour-stops .stop-meta { color: var(--muted-on-dark); font-size: .875rem; }

/* ---------- footer ---------- */
.site-footer {
  color: var(--muted-on-dark);
  font-size: .875rem;
  padding-block: 2rem 2.5rem;
}
.footer-inner { display: grid; gap: .35rem; }

/* ---------- responsive ---------- */
@media (max-width: 959px) {
  .hero-intro { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .demo { width: 100%; }
  .demo-bar, .demo-foot { border-radius: 0; }
  .demo-bar { padding-inline: var(--gutter); }
  .demo-foot { padding-inline: var(--gutter); flex-direction: column; align-items: stretch; gap: .6rem; }
  .demo-note { width: 100%; font-size: .875rem; }
  .demo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .viewport::-webkit-scrollbar { display: none; }
  .stage {
    width: auto;
    height: max(min(38svh, 520px), 56.25vw);
    min-height: 240px;
  }
  .demo.is-embed .stage { width: 100%; height: auto; min-height: 0; }

  .panel,
  .panel[data-side="left"] {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: min(48svh, 520px);
    z-index: 50;
  }
  .panel-inner {
    max-height: min(48svh, 520px);
    border-radius: 14px 14px 0 0;
    padding: 1.1rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .4);
    animation-name: sheet-in;
  }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .step:not(:last-child)::after { display: none; }

  .aud { grid-template-columns: 1fr; }
  .aud-tabs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    gap: .5rem;
  }
  .aud-tabs::-webkit-scrollbar { display: none; }
  .aud-tabs [role="tab"] {
    width: auto;
    flex: none;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid rgba(29, 38, 43, .14);
    border-radius: 4px 4px 0 0;
    min-height: 48px;
    padding: .6rem .9rem;
    font-size: 1rem;
  }
  .aud-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--graphite); }
  .aud-panel { grid-template-columns: 1fr; }

  .request-inner { grid-template-columns: 1fr; align-items: start; }

  .tour-head { grid-template-columns: 1fr; }
  .tour .wrap { width: 100%; }
  .tour-head, .tour-stops { padding-inline: var(--gutter); }
  .tour-frame, .tour-controls { border-radius: 0; }
  .tour-card,
  .tour-card[data-side="left"] {
    position: static;
    width: auto;
    max-height: none;
    padding: .75rem var(--gutter) 0;
    background: var(--graphite-2);
  }
  .tour-card-inner { animation-name: sheet-in; }
  .tour-stops { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
}

@media (max-width: 600px) {
  .hotspot-label { display: none; }
  .tour-time { display: none; }
}
@media (max-width: 520px) {
  .brand-by { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .aud-panel { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .stage[data-phase] { --reveal: 100%; }
  .scanline { display: none; }
  .stage.show-route .route { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .tour-pin.is-live::after { animation: none; }
}

@media (forced-colors: active) {
  .hotspot-dot { forced-color-adjust: none; }
  .btn { border-color: ButtonText; }
}
