/* Legroom — the building directory.
 *
 * The drive is a building; this site is its directory board. Black board,
 * enamel floor bands in the app's own kind colours, signage lettering for
 * floors and headings, a reading face for everything else, and tabular
 * figures wherever a size appears. Light comes only from the board. */

:root {
  --board: #121418;
  --board-2: #171a1f;
  --plate: #1c2026;
  --plate-2: #232830;
  --app: #1c1d20;
  --app-pane: #1f2023;
  --ink: #eef1f4;
  --ink-2: rgba(238, 241, 244, 0.74);
  --ink-3: rgba(238, 241, 244, 0.56);
  --line: rgba(238, 241, 244, 0.1);
  --line-2: rgba(238, 241, 244, 0.18);

  /* The app's kind palette: floors of the building. */
  --video: #3d85f5;
  --image: #f58c33;
  --audio: #e8579c;
  --document: #946bed;
  --archive: #e65454;
  --developer: #33b86e;
  --apps: #21add6;
  --cache: #21a89e;
  --model: #e6b829;
  --system: #7378bf;
  --other: #78808f;
  --accent: #3b82f5;
  --ok: #40c778;

  --sign: "Overpass", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --read: "Atkinson Hyperlegible", "Segoe UI Variable Text", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --lift-w: 76px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 400 17px/1.6 var(--read);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(59, 130, 245, 0.45);
  color: #fff;
}

input,
textarea {
  caret-color: var(--accent);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-thumb {
  background: rgba(238, 241, 244, 0.16);
  border: 3px solid var(--board);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(238, 241, 244, 0.28);
}
::-webkit-scrollbar-track {
  background: var(--board);
}

.no-lift {
  --lift-w: 0px;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--board);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 12px;
}

/* ---- signage type ------------------------------------------------------------ */

.sign {
  font-family: var(--sign);
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  font-family: var(--sign);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.1vw, 4.4rem);
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  color: var(--ink-2);
  max-width: 34rem;
}

/* ---- buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  border: 0;
  font: 800 1.02rem/1 var(--sign);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
}
.btn svg {
  flex: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--board);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover {
  background: rgba(238, 241, 244, 0.06);
}
.btn[aria-disabled="true"] {
  background: var(--plate-2);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: not-allowed;
  transform: none;
}
.btn small {
  font: 400 0.82rem/1 var(--read);
  opacity: 0.72;
  letter-spacing: 0;
}

/* ---- top bar ----------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
  padding-right: calc(var(--gutter) + var(--lift-w));
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 1.35rem/1 var(--sign);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark img {
  width: 34px;
  height: 34px;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}
.topbar nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
}
.topbar nav a:not(.btn):hover {
  color: var(--ink);
}
.topbar .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* ---- the lift ---------------------------------------------------------------- */

.lift {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  background: #0c0e11;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px rgba(0, 0, 0, 0.9);
}
.lift-display {
  position: relative;
  width: 42px;
  height: 50px;
  border-radius: 8px;
  background: #050607;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lift-arrow {
  height: 14px;
  margin-top: 4px;
  color: var(--model);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.lift-arrow.down {
  transform: rotate(180deg);
}
.lift-arrow.idle {
  opacity: 0.25;
}
.lift-strip-window {
  height: 28px;
  overflow: hidden;
}
.lift-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--ease);
}
.lift-strip span {
  height: 28px;
  line-height: 28px;
  text-align: center;
  font: 900 1.45rem/28px var(--sign);
  color: var(--model);
}
.lift ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lift a {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font: 800 0.9rem/1 var(--sign);
  color: var(--ink-2);
  text-decoration: none;
  background: #1a1d22;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: color 0.2s, box-shadow 0.3s var(--ease), background 0.2s;
}
.lift a:hover {
  color: var(--ink);
  background: #22262c;
}
.lift a[aria-current="true"] {
  color: #0c0e11;
  background: var(--floor, var(--ink));
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3px var(--floor, var(--ink));
}
.lift a .tip {
  position: absolute;
  right: 46px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--board);
  font: 700 0.8rem/1 var(--read);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.lift a:hover .tip,
.lift a:focus-visible .tip {
  opacity: 1;
  transform: none;
}

/* ---- hero: the directory board -------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(20px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 110px);
  padding-right: calc(var(--gutter) + var(--lift-w));
  min-height: min(calc(100vh - 90px), 900px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-copy h1 span {
  display: block;
  color: var(--ink-3);
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-facts svg {
  color: var(--ok);
  flex: none;
}
.bare {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board {
  position: relative;
  background: linear-gradient(180deg, #181b20, #121418 70%);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.board-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.board-head .drive {
  font: 900 2.4rem/1 var(--sign);
  letter-spacing: -0.04em;
}
.board-head .title.cap {
  color: var(--ink);
}
.board-head .title {
  font: 800 1rem/1.2 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.board-head .example {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.board-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
}

/* The elevation: floor heights are bytes, and nothing else. */
.elevation {
  position: relative;
  height: 430px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 6px 6px 3px 3px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(238, 241, 244, 0.05) 0 2px, transparent 2px 9px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.elevation .storey {
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--share) * 100%);
  background: var(--c);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.55);
  transition: height 1.1s var(--ease), filter 0.3s;
}
.elevation .storey.vacant {
  background: transparent;
}
.elevation .reclaim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--r) * 100%);
  background: repeating-linear-gradient(135deg, rgba(18, 20, 24, 0.85) 0 3px, rgba(18, 20, 24, 0.25) 3px 7px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 0.6s var(--ease), height 1.1s var(--ease);
}
.board.show-reclaim .elevation .reclaim {
  opacity: 1;
}
.board.after .elevation .reclaim {
  height: 0;
  opacity: 0;
}
.elevation .storey.dimmed {
  filter: saturate(0.25) brightness(0.55);
}
.ground {
  height: 8px;
  margin-top: 4px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 10px);
  opacity: 0.6;
  border-radius: 2px;
}

.directory {
  display: flex;
  flex-direction: column;
}
.directory li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 4px;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease), background 0.2s;
  cursor: default;
}
.directory li:hover {
  background: rgba(238, 241, 244, 0.04);
}
.directory .band {
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 4px;
  background: var(--c);
  color: #0c0e11;
  font: 900 0.8rem/1 var(--sign);
}
.directory li.vacant .band {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
  color: var(--ink-2);
}
.directory .name {
  font: 700 1rem/1.2 var(--sign);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.directory .name small {
  font: 400 0.82rem var(--read);
  color: var(--ink-3);
  margin-left: 6px;
}
.directory .size {
  font: 700 1rem/1 var(--sign);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 82px;
}
.directory .size .was {
  display: block;
  font: 400 0.74rem/1.3 var(--read);
  color: var(--ink-3);
  text-decoration: line-through;
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease);
}
.board.after .directory .size .was {
  height: 1.1em;
}
.directory li.dim {
  opacity: 0.35;
}

.balance {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--ink-2);
  font: 800 1.05rem/1 var(--sign);
}
.balance .eq {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 0.92rem;
}
.balance .total {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.balance .cap-word {
  font: 700 0.92rem/1 var(--read);
  color: var(--ink-2);
}
.balance .check {
  color: var(--ok);
  display: inline-flex;
}
.balance .check path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.6s var(--ease) 0.2s;
}
.board.balanced .balance .check path {
  stroke-dashoffset: 0;
}

/* "You are here": where the building stops and the free space begins. */
.here-line {
  position: absolute;
  left: -8px;
  right: -8px;
  top: 0;
  border-top: 2px dashed var(--model);
  transition: top 1.1s var(--ease), opacity 0.5s;
  pointer-events: none;
}
.here-line::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--model);
  box-shadow: 0 0 0 3px var(--board);
}
.here-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px 2px;
  border-radius: 5px;
  background: var(--model);
  color: #0c0e11;
  font: 800 0.7rem/1.2 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.board-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #0c0e11;
  box-shadow: inset 0 0 0 1px var(--line);
}
.toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 7px;
  font: 700 0.88rem/1 var(--sign);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.2s;
}
.toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--board);
}
.board-note {
  font-size: 0.86rem;
  color: var(--ink-2);
}
.board-note b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---- floors ------------------------------------------------------------------ */

.floor {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(70px, 10vw, 140px) var(--gutter);
  padding-right: calc(var(--gutter) + var(--lift-w));
  border-top: 1px solid var(--line);
}

/* The floor band: an enamel field running the floor's height, its number
   set large like a lift-lobby sign. */
.floor-band {
  align-self: stretch;
  position: relative;
  border-radius: 12px;
  background: var(--floor);
  color: #0c0e11;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 0 20px;
  min-height: 320px;
  transition: filter 0.6s var(--ease);
}
.floor-band .level {
  font: 900 4.6rem/0.9 var(--sign);
  letter-spacing: -0.05em;
  text-align: center;
}
.floor-band .picto {
  align-self: center;
  margin-top: 16px;
  margin-bottom: auto;
}
.floor-band .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  font: 800 0.9rem/1 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.floor-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.floor-copy p {
  color: var(--ink-2);
  max-width: 34rem;
}
.facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-2);
}
.facts li b {
  color: var(--ink);
  font-weight: 700;
}
.facts svg {
  margin-top: 4px;
  color: var(--floor);
}

/* One floor lit at a time; the rest of the building waits in the dark. */
.floor:not(.lit) .screen {
  filter: saturate(0.35) brightness(0.62);
}
.floor:not(.lit) .floor-band {
  filter: saturate(0.5) brightness(0.7);
}
.screen {
  transition: filter 0.8s var(--ease);
}

/* ---- the app window ----------------------------------------------------------- */

.window {
  position: relative;
  border-radius: 12px;
  background: var(--app);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
  font: 400 13px/1.4 "Segoe UI Variable Text", "Segoe UI", var(--read);
  color: #f0f1f3;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  color: rgba(240, 241, 243, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.titlebar img {
  width: 16px;
  height: 16px;
}
.titlebar .caps {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.titlebar .caps i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(240, 241, 243, 0.45);
  border-radius: 1px;
}
.titlebar .caps i:first-child {
  border-width: 0 0 1px;
  border-radius: 0;
  height: 6px;
}
.pane {
  background: var(--app-pane);
  padding: 18px 20px 20px;
  min-height: 380px;
}
.pane .h4 {
  margin: 0 0 4px;
  font: 600 15px/1.3 "Segoe UI Variable Display", "Segoe UI", sans-serif;
}
.pane .sub {
  font-size: 12px;
  color: rgba(240, 241, 243, 0.62);
}
.card {
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t);
  background: color-mix(in srgb, var(--t) 15%, transparent);
  white-space: nowrap;
}
.tick {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  border: 1.5px solid rgba(240, 241, 243, 0.42);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.25s var(--ease), border-color 0.25s;
}
.tick svg {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.tick.on {
  background: var(--accent);
  border-color: var(--accent);
}
.tick.on svg {
  opacity: 1;
  transform: none;
}
.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.065);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.w-btn.primary {
  background: #2563eb;
  border-color: rgba(255, 255, 255, 0.14);
}
.w-btn.pressed {
  transform: scale(0.95);
  background: #1d4fc4;
}

/* scan */
.scan {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 26px 0 8px;
  text-align: center;
}
.ring {
  position: relative;
  width: 132px;
  height: 132px;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring .track {
  stroke: rgba(255, 255, 255, 0.1);
}
.ring .arc {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.12s linear;
}
.ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 22px/1 "Segoe UI Variable Display", "Segoe UI", sans-serif;
}
.scan .what {
  font: 600 17px/1.3 "Segoe UI Variable Display", "Segoe UI", sans-serif;
}
.scan .count {
  font-size: 14px;
  color: rgba(240, 241, 243, 0.66);
  font-variant-numeric: tabular-nums;
}
.scan-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.scan-modes .card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.4s var(--ease), background 0.4s;
}
.scan-modes .card.on {
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.scan-modes b {
  font-size: 13px;
}
.scan-modes span {
  font-size: 12px;
  color: rgba(240, 241, 243, 0.66);
}

/* overview */
.recon-bar {
  display: flex;
  gap: 1px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0 10px;
  background: rgba(255, 255, 255, 0.04);
}
.recon-bar span {
  width: 0;
  transition: width 1s var(--ease);
}
.recon-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  font-size: 12px;
}
.recon-legend div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.recon-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.recon-legend .n {
  margin-left: auto;
  color: rgba(240, 241, 243, 0.64);
  font-variant-numeric: tabular-nums;
}
.findings {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.finding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.3s, opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.finding.on {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.finding .grow {
  flex: 1;
  min-width: 0;
}
.finding .label {
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.finding .where {
  font-size: 12px;
  color: rgba(240, 241, 243, 0.6);
}
.finding .size {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* storage map */
.map {
  position: relative;
  height: 330px;
  border-radius: 8px;
  overflow: hidden;
  background: #16171b;
  margin-top: 10px;
}
.map .tile {
  position: absolute;
  overflow: hidden;
  color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.5);
  transition: left 0.9s var(--ease), top 0.9s var(--ease), width 0.9s var(--ease), height 0.9s var(--ease),
    background-color 0.7s, opacity 0.5s;
}
.map .tile .t {
  position: absolute;
  left: 6px;
  top: 4px;
  right: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map .tile .t small {
  display: block;
  opacity: 0.78;
  font-size: 12px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(240, 241, 243, 0.62);
}
.crumbs b {
  color: #f0f1f3;
  font-weight: 600;
}
.mode-chips {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.mode-chips span {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(240, 241, 243, 0.62);
  transition: background 0.3s, color 0.3s;
}
.mode-chips span.on {
  background: #2563eb;
  color: #fff;
}
.map-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* search */
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 13px;
}
.field .typed {
  white-space: pre;
}
.field .caret {
  width: 1.5px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.field .scope {
  margin-left: auto;
  font-size: 12px;
  color: rgba(240, 241, 243, 0.62);
}
.results {
  margin-top: 10px;
  border-radius: 10px;
  background: #2a2b2f;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.results-head {
  display: flex;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}
.results-head .dim {
  color: rgba(240, 241, 243, 0.62);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.row .grow {
  flex: 1;
  min-width: 0;
}
.row .grow b {
  font-weight: 600;
  display: block;
}
.row .grow span {
  font-size: 12px;
  color: rgba(240, 241, 243, 0.56);
}
.row .size {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: right;
}
.row .bar {
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 60%, transparent);
  margin-top: 3px;
}
.ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: none;
  background: var(--t);
  opacity: 0.85;
}
.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.filters span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 241, 243, 0.75);
  transition: background 0.3s, color 0.3s;
}
.filters span.on {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: #fff;
}
.filters em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: rgba(240, 241, 243, 0.56);
}

/* cleanup */
.queue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #2a2b2f;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  font-size: 13px;
}
.queue b {
  flex: 1;
}
.sheet {
  margin-top: 12px;
  border-radius: 14px;
  background: #2a2b2f;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  transform-origin: 50% 100%;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.sheet.closed {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}
.sheet .h5 {
  margin: 0 0 2px;
  font: 600 15px/1.3 "Segoe UI Variable Display", "Segoe UI", sans-serif;
}
.sheet .sec {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 241, 243, 0.6);
}
.sheet .row {
  padding: 5px 0;
}
.sheet .reason {
  color: #f37a77;
  font-size: 12px;
}
.sheet .foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.stamp {
  position: absolute;
  right: 34px;
  bottom: 74px;
  padding: 10px 16px;
  border: 3px solid var(--ok);
  border-radius: 10px;
  color: var(--ok);
  font: 900 15px/1.15 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  background: rgba(18, 20, 24, 0.88);
  transform: rotate(-7deg) scale(1.6);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.15s;
  pointer-events: none;
}
.stamp small {
  display: block;
  font: 600 12px/1.3 var(--read);
  letter-spacing: 0.02em;
  text-transform: none;
}
.stamp.landed {
  opacity: 1;
  transform: rotate(-7deg) scale(1);
}

/* apps */
.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), background 0.3s;
}
.app-row.busy {
  background: color-mix(in srgb, #fa9e33 10%, transparent);
}
.app-row.gone {
  opacity: 0;
  transform: translateX(28px);
}
.app-row .glyph {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font: 800 13px/1 var(--sign);
  color: #0c0e11;
  background: var(--t);
}
.app-row .grow {
  flex: 1;
  min-width: 0;
}
.app-row .grow b {
  font-weight: 600;
}
.app-row .grow span {
  display: block;
  font-size: 12px;
  color: rgba(240, 241, 243, 0.6);
}
.app-row .size {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 70px;
}
.app-row .size small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: rgba(240, 241, 243, 0.5);
}
.app-row .w-btn {
  width: 96px;
}
.leftover {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}
.leftover .cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 241, 243, 0.6);
  padding: 0 10px 4px;
}

/* monitor */
.mon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mon-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mon-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.mon-head .v {
  margin-left: auto;
  font: 600 18px/1 "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.spark {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
}
.cores {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  height: 26px;
}
.cores i {
  position: relative;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cores i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h, 10%);
  background: var(--accent);
  transition: height 0.6s var(--ease);
}
.mem-bar {
  display: flex;
  height: 9px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.mem-bar span {
  transition: width 0.8s var(--ease);
}
.procs {
  margin-top: 10px;
}
.procs .p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 72px;
  gap: 10px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  transition: transform 0.5s var(--ease);
}
.procs .p.head {
  font-size: 12px;
  font-weight: 600;
  color: rgba(240, 241, 243, 0.6);
}
.procs .p span:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.procs .p .hot {
  border-radius: 4px;
  padding: 0 4px;
  background: color-mix(in srgb, #fa9e33 calc(var(--heat, 0) * 40%), transparent);
}

/* ---- ground floor: the way out ------------------------------------------------- */

.exit {
  padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(60px, 8vw, 100px);
  padding-right: calc(var(--gutter) + var(--lift-w));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.exit .floor-band {
  --floor: var(--ink);
  min-height: 0;
}
.exit {
  position: relative;
  overflow: hidden;
}
.exit > .plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(238, 241, 244, 0.07);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 56%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 0 56%, #000 78%);
}
.exit > :not(.plan) {
  position: relative;
}
.exit-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: 16px;
  background: var(--plate);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.door.recommended {
  background: linear-gradient(180deg, #1f242c, #1a1e24);
  box-shadow: 0 0 0 1px rgba(238, 241, 244, 0.28), 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.door .door-sign {
  display: flex;
  align-items: center;
  gap: 12px;
}
.door-picto {
  color: var(--ok);
  flex: none;
}
.door .door-sign .ext {
  font: 900 2rem/1 var(--sign);
  letter-spacing: -0.04em;
}
.door .badge {
  margin-left: auto;
  font: 800 0.74rem/1 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--ok);
  color: #0c0e11;
}
.door p {
  color: var(--ink-2);
}
.door ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.door ul li {
  display: flex;
  gap: 10px;
}
.door ul svg {
  margin-top: 5px;
  flex: none;
  color: var(--ok);
}
.door .btn {
  margin-top: auto;
  align-self: flex-start;
}
.door .pending {
  font-size: 0.86rem;
  color: var(--ink-3);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 28px var(--gutter) 40px;
  padding-right: calc(var(--gutter) + var(--lift-w));
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-3);
}
.footer a {
  color: var(--ink-2);
}
.footer .wordmark {
  font-size: 1.05rem;
  color: var(--ink);
}
.footer .wordmark img {
  width: 24px;
  height: 24px;
}

/* ---- download page ----------------------------------------------------------- */

.dl-hero {
  padding: clamp(24px, 5vw, 70px) var(--gutter) clamp(40px, 6vw, 80px);
  padding-right: calc(var(--gutter) + var(--lift-w));
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.dl-hero .floor-band {
  --floor: var(--ink);
  min-height: 260px;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.dl-meta b {
  color: var(--ink);
}
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 14px;
  background: var(--board-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step .n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a1d22;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 900 1.05rem/1 var(--sign);
  color: var(--model);
}
.step p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.smartscreen {
  border-radius: 10px;
  overflow: hidden;
  background: #1b4f9c;
  color: #fff;
  font: 400 12px/1.4 "Segoe UI", var(--read);
  padding: 14px 16px;
}
.smartscreen b {
  display: block;
  font: 600 16px/1.2 "Segoe UI", var(--read);
  margin-bottom: 6px;
}
.smartscreen .row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.smartscreen u {
  text-underline-offset: 2px;
  outline: 2px solid var(--model);
  outline-offset: 2px;
  border-radius: 2px;
}
.smartscreen .run {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  outline: 2px solid var(--model);
  outline-offset: 2px;
}
.section {
  padding: clamp(50px, 7vw, 90px) var(--gutter);
  padding-right: calc(var(--gutter) + var(--lift-w));
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.specs div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.specs dt {
  font: 800 0.95rem/1.5 var(--sign);
}
.specs dd {
  margin: 0;
  color: var(--ink-2);
}

/* ---- responsive --------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .floor {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .floor .screen {
    grid-column: 1 / -1;
  }
  .floor-band .level {
    font-size: 3.4rem;
  }
}

@media (max-width: 760px) {
  :root {
    --lift-w: 0px;
  }
  body {
    font-size: 16px;
  }
  .topbar nav a.hide-sm {
    display: none;
  }
  .lift {
    top: auto;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    width: auto;
    flex-direction: row;
    padding: 8px 10px;
    gap: 10px;
  }
  .lift-display {
    width: 34px;
    height: 34px;
    flex-direction: row;
    justify-content: center;
  }
  .lift-arrow {
    display: none;
  }
  .lift-strip-window {
    height: 28px;
    margin-top: 3px;
  }
  .lift ol {
    flex-direction: row;
    gap: 4px;
  }
  .lift a {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .lift a .tip {
    display: none;
  }
  .board {
    padding: 18px 16px 16px;
  }
  .board-body {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }
  .directory li {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .directory .name {
    white-space: normal;
    font-size: 0.94rem;
  }
  .directory .name small {
    display: none;
  }
  .directory .size {
    min-width: 0;
    font-size: 0.94rem;
  }
  .here-pill {
    margin-left: 6px;
  }
  .elevation {
    height: 420px;
  }
  .board-head .drive {
    font-size: 1.8rem;
  }
  .board-head {
    flex-wrap: wrap;
  }
  .board-head .example {
    margin-left: 0;
    order: 3;
  }
  .floor,
  .exit,
  .dl-hero {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 28px;
    align-items: start;
    padding-bottom: clamp(70px, 14vw, 120px);
  }
  .floor .screen {
    grid-column: 1 / -1;
  }
  .floor-band,
  .exit .floor-band,
  .dl-hero .floor-band {
    align-self: start;
    min-height: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }
  .floor-band .level {
    font-size: 2.3rem;
  }
  .floor-band .picto,
  .floor-band .label {
    display: none;
  }
  .floor-copy,
  .exit-inner {
    display: contents;
  }
  .floor-copy > h2,
  .exit-inner > h1,
  .exit-inner > h2 {
    grid-column: 2;
    align-self: center;
  }
  .floor-copy > :not(h2),
  .exit-inner > :not(h1):not(h2) {
    grid-column: 1 / -1;
  }
  .doors,
  .steps,
  .specs {
    grid-template-columns: 1fr;
  }
  .specs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .scan-modes,
  .mon-grid,
  .recon-legend {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pane {
    padding: 14px;
  }
  .map {
    height: 260px;
  }
  .app-row .w-btn {
    width: auto;
    padding: 0 10px;
  }
  .footer {
    padding-bottom: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
