:root {
  --bg: #000;
  --fg: #fff;
  --muted: #888;
  --border: #333;
  color-scheme: dark;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
}

#topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, #000c 75%, #0004 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, #000c 75%, #0004 90%, transparent 100%);
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.where {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  position: relative;
  justify-content: center;
  min-height: 85svh;
  padding: 12vw 6vw;
  overflow: hidden;
}

.hero h1,
.hero .motto {
  position: relative;
  z-index: 1;
}

h1 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(3.8rem, 18.5vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.motto {
  max-width: 20rem;
  margin-top: 0.85rem;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.where {
  padding: clamp(1.5rem, 4vw, 3rem) 8vw clamp(5rem, 10vw, 8rem);
  text-align: left;
}

.where-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 34rem);
  min-width: 0;
  container-type: inline-size;
}

.where h2,
.walls h2,
.scan h2,
.command-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  color: #ededed;
  font-size: clamp(1rem, 9.5cqi, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.phone-map {
  --device-radius: 2.4rem;
  position: relative;
  isolation: isolate;
  width: min(84%, 18rem);
  justify-self: center;
  margin: clamp(2.5rem, 7vw, 4rem) 0 1.75rem;
}

.phone-map::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.5rem -1rem;
  background: radial-gradient(ellipse at 50% 35%, #ffffff10, transparent 70%);
  pointer-events: none;
}

.phone-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 9 / 11.5;
  padding: 5px 5px 0;
  border: 1px solid #5b5b5b;
  border-bottom: 0;
  border-radius: var(--device-radius) var(--device-radius) 0 0;
  background: linear-gradient(125deg, #606060, #242424 14%, #101010 48%, #3d3d3d 76%, #222);
  box-shadow: inset 0 0 0 1px #ffffff1a, 0 18px 40px #0008;
  container-type: inline-size;
  -webkit-mask-image: linear-gradient(#000 76%, #000b 88%, transparent 100%);
  mask-image: linear-gradient(#000 76%, #000b 88%, transparent 100%);
}

.phone-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: calc(var(--device-radius) - 6px) calc(var(--device-radius) - 6px) 0 0;
  background: #05070a;
}

.device-button {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #242424, #686868, #252525);
  box-shadow: inset 0 1px 0 #ffffff33;
}

.device-volume-up { left: -2px; top: 34%; height: 12%; }
.device-volume-down { left: -2px; top: 49%; height: 12%; }
.device-power { right: -2px; top: 41%; height: 19%; }

.map-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 8cqw 5cqw 3cqw;
  color: #a1a3a3;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 2.55cqw;
  letter-spacing: 0.14em;
}

.map-link,
.map-track {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
}

.map-link i {
  width: 1.5cqw;
  height: 1.5cqw;
  border-radius: 50%;
  background: #47ff51;
  box-shadow: 0 0 6px #47ff5188;
}

.map-track b {
  border: 1px solid #303234;
  padding: 0.45cqw 1cqw;
  font-weight: 400;
}

#crew-map {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #05070a;
}

.where-copy p {
  margin: 0;
  color: #929292;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.where-copy strong {
  color: #ededed;
  font-weight: 400;
}

.where-features,
.scan-features,
.command-features {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: 0.9rem;
  line-height: 1.8;
}

.where-features h3,
.scan-features h3,
.command-features h3 {
  margin-bottom: 0.4rem;
  color: #929292;
  font-size: inherit;
  font-weight: 400;
}

.where-features ul,
.scan-features ul,
.command-features ul {
  list-style: none;
  color: #ededed;
}

.walls {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) 8vw clamp(5rem, 10vw, 8rem);
}

.walls-inner { width: min(100%, 34rem); min-width: 0; container-type: inline-size; }

.walls h2 span { display: block; white-space: nowrap; }

.technology-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: clamp(3rem, 9vw, 5rem);
}

.technology-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  min-height: 15rem;
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 0.7rem;
  background: #030303;
}

.technology-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #030303 0%, #030303e6 26%, #03030380 48%, transparent 72%);
  pointer-events: none;
}

.technology-art {
  position: absolute;
  z-index: 0;
  top: -9%;
  right: -12%;
  width: 78%;
  height: 130%;
  overflow: visible;
  pointer-events: none;
}

.technology-card-copy {
  position: relative;
  z-index: 2;
  width: 55%;
}

.technology-card h3 {
  margin-bottom: 0.55rem;
  color: #ededed;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.technology-card p {
  max-width: 24ch;
  color: #999;
  font-size: clamp(0.875rem, 2.7vw, 1.05rem);
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 24rem) {
  .technology-card-copy { width: 65%; }
  .technology-art { right: -18%; }
}

.scan {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) 8vw clamp(5rem, 10vw, 8rem);
}

.scan-inner {
  width: min(100%, 34rem);
  min-width: 0;
  container-type: inline-size;
}

.scan-frame {
  position: relative;
  margin: clamp(1.75rem, 5vw, 2.75rem) 0 0;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 0.7rem;
  background: #060606;
  box-shadow: inset 0 1px 0 #ffffff05;
}

.scan-toolbar,
.scan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(0.85rem, 3vw, 1.25rem);
  color: #929292;
  font: 400 clamp(0.55rem, 1.7vw, 0.65rem) "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.025em;
}

.scan-toolbar { border-bottom: 1px solid #ffffff0b; }
.scan-mode { color: #d0d0d0; letter-spacing: 0.08em; }

.scan-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 50% 50%, #141414, #060606 74%);
}

.scan-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse, #0008, transparent 72%);
  mask-image: radial-gradient(ellipse, #0008, transparent 72%);
  pointer-events: none;
}

.scan-footer { border-top: 1px solid #ffffff0b; }

#scan-rotation {
  flex-shrink: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #0b0b0b;
  color: #bcbcbc;
  font: inherit;
  cursor: pointer;
}

#scan-rotation:hover { background: #171717; color: #fff; }
#scan-rotation:focus-visible { outline: 1px solid #ccc; outline-offset: 3px; }

#scan-view {
  position: absolute;
  inset: 0;
}

#scan-view {
  display: block;
  width: 100%;
  height: 100%;
}

.scan p {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: #929292;
  font-size: clamp(1.2rem, 4vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.scan p strong { color: #ededed; font-weight: 400; }

.site-footer {
  padding: 0 8vw 2rem;
  color: #929292;
}

.footer-inner {
  width: min(100%, 34rem);
  margin-inline: auto;
  padding-top: 2rem;
  border-top: 1px solid #262626;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 2rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline: 1px solid #ccc; outline-offset: 5px; border-radius: 2px; }

.site-footer .footer-wordmark {
  color: #ededed;
  font: 700 2rem / 1 "Pixelify Sans", sans-serif;
  letter-spacing: 0.02em;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer nav ul {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  color: #777;
  font-size: 0.7rem;
}

.footer-bottom small { font-size: inherit; }
.footer-bottom a span { margin-left: 0.4rem; }

#where-title, #uwb-title, #scan-title, #command-title { scroll-margin-top: 2rem; }

@media (max-width: 28rem) {
  .footer-top { flex-direction: column; }
  .site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}

.command-section {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) 8vw clamp(5rem, 10vw, 8rem);
}
.command-inner { width: min(100%, 34rem); min-width: 0; container-type: inline-size; }
.command-preview {
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
  overflow: hidden;
  border: 1px solid #2d2d2d;
  border-radius: 0.7rem;
  background: #0b0b0b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: #999;
}
.command-bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid #242424; }
.command-brand { color: #eee; font-weight: 500; font-size: 0.875rem; }
.command-brand small { display: block; margin-top: 0.35rem; color: #777; font-size: 0.65rem; font-weight: 400; }
.command-demo { color: #777; font-size: 0.65rem; }
.command-workspace { display: grid; grid-template-columns: 7.3rem minmax(0, 1fr); }
.command-sidebar { padding: 1rem 0.5rem; border-right: 1px solid #242424; }
.command-sidebar-label { display: flex; justify-content: space-between; padding: 0 0.5rem; margin-bottom: 0.8rem; font-size: 0.65rem; color: #888; }
.command-sidebar-label > span { color: #666; }
.command-preview button { font: inherit; cursor: pointer; }
.command-unit { width: 100%; display: block; margin-top: 0.35rem; padding: 0.7rem 0.5rem; text-align: left; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #aaa; }
.command-unit > span { white-space: nowrap; }
.command-unit small { display: block; margin-top: 0.3rem; color: #777; font-size: 0.6rem; }
.command-unit[aria-pressed="true"] { border-color: #353535; background: #1b1b1b; color: #eee; }
.command-unit:hover { background: #171717; }
.command-preview button:focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }
.command-room { display: grid; gap: 0.45rem; padding: 1rem 0.5rem 0; margin-top: 1rem; border-top: 1px solid #222; font-size: 0.6rem; }
.command-room strong { font-weight: 400; color: #bbb; }
.command-room small { font-size: inherit; color: #777; }
.command-map { min-width: 0; background: #101010; }
.command-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.7rem 0.8rem; font-size: 0.65rem; }
#command-paths { padding: 0.3rem 0.6rem; border: 1px solid #444; border-radius: 4px; background: #252525; color: #ddd; font-size: 0.6rem; }
#command-paths[aria-pressed="false"] { border-color: #303030; color: #999; background: #151515; }
.command-plan { display: block; width: 100%; height: auto; }
.command-floor { fill: #191919; stroke: none; }
.command-walls { fill: none; stroke: #555; stroke-width: 2; stroke-linejoin: round; }
.command-path-lines { fill: none; stroke: #999; stroke-width: 1.2; stroke-dasharray: 3 5; opacity: 0.6; }
.command-path-lines[hidden] { display: none; }
.command-marker { fill: #999; }
.command-marker .person-halo { fill: transparent; stroke: transparent; }
.command-marker .person-dot { stroke: #101010; stroke-width: 2; }
.command-marker.is-selected { fill: #eee; }
.command-marker.is-selected .person-halo { fill: #ffffff0a; stroke: #ffffff38; stroke-width: 1; }
.command-marker text { font-size: 12px; text-anchor: middle; }
.command-map-caption { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.8rem; color: #777; font-size: 0.6rem; }
.command-inspector { padding: 1rem 1.1rem; border-top: 1px solid #242424; }
#command-selected { color: #ddd; font-size: 0.75rem; }
.command-inspector dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.85rem; }
.command-inspector dt { color: #777; font-size: 0.6rem; }
.command-inspector dd { margin-top: 0.4rem; color: #ccc; font-size: clamp(0.7rem, 2.6cqi, 0.9rem); font-variant-numeric: tabular-nums; }
.command-inspector dd span { font-size: 0.65rem; color: #888; }
.command-copy { margin-top: 1.5rem; color: #929292; font-size: clamp(1.2rem, 4vw, 1.85rem); line-height: 1.4; letter-spacing: -0.035em; text-wrap: pretty; }
.command-copy strong { color: #ededed; font-weight: 400; }
@container (max-width: 25rem) {
  .command-workspace { grid-template-columns: minmax(0, 1fr); }
  .command-sidebar { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; border-right: 0; border-bottom: 1px solid #242424; }
  .command-sidebar-label { margin: 0; padding: 0; }
  .command-sidebar-label > span, .command-room { display: none; }
  .command-unit { margin: 0; padding: 0.5rem; }
}
