/* Platform section (LuminaTwin / LuminaBox) */
.platform {
  border-top: 1px solid var(--line);
}

.viz-title {
  margin: 0 0 1rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viz-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.viz-title-row .viz-title {
  margin: 0;
}

.viz-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.viz-card {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}

.viz-big {
  margin: 0.4rem 0 0;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}

.viz-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.scrub-icons {
  display: flex;
  gap: 1.4rem;
  align-items: flex-end;
  height: 84px;
}

.rk {
  height: 84px;
  fill: var(--sky);
}

.rk.scrubbed {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.6;
  stroke-dasharray: 3 2.5;
}

/* Bars */
.bars {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 4.2rem;
  align-items: center;
  gap: 0.9rem;
}

.bar-lbl {
  color: #d8e6f1;
  font-size: 0.86rem;
  line-height: 1.25;
}

.bar-lbl small {
  display: block;
  color: var(--steel);
  font-size: 0.72rem;
}

.bar-track {
  height: 34px;
}

.bar {
  position: relative;
  width: var(--w);
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--sky);
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.bar.hot {
  background: var(--yellow);
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.bar:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #fff;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
  z-index: 2;
}

.bar-val {
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  text-align: right;
}

/* Architecture */
.arch {
  margin: 1rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow-x: auto;
}

.arch svg {
  width: 100%;
  min-width: 720px;
  height: auto;
}

.arch .node rect:first-child {
  fill: var(--bg-2);
  stroke: var(--line);
}

.arch .node.twin rect:first-child {
  stroke: var(--sky);
}

.arch .node .box {
  fill: var(--panel-2);
  stroke: rgba(65, 183, 227, 0.5);
}

.arch .node.out rect:first-child {
  stroke: var(--yellow);
  stroke-opacity: 0.55;
}

.arch text {
  text-anchor: middle;
  fill: #c6d8e6;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}

.arch .nh {
  fill: var(--sky);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.arch .strong {
  fill: #fff;
  font-weight: 700;
  font-size: 15px;
}

.arch .ns {
  fill: var(--steel);
  font-family: var(--mono);
  font-size: 10.5px;
}

.flow {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  animation: dash 1.2s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -18;
  }
}

.platform .solution {
  margin-top: 1rem;
}

.example {
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--sky);
  border-radius: 0 6px 6px 0;
  background: rgba(65, 183, 227, 0.07);
  color: #c6d8e6 !important;
  font-size: 0.95rem;
}

.example strong {
  color: #fff;
}

/* Compare slider */
.compare-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare .tag {
  position: absolute;
  top: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  background: rgba(6, 18, 31, 0.8);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.compare .tag.l {
  left: 0.6rem;
}

.compare .tag.r {
  right: 0.6rem;
}

.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--yellow);
  pointer-events: none;
}

.handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.compare input[type="range"] {
  width: 100%;
  margin-top: 0.8rem;
  accent-color: var(--yellow);
}

/* Resolution graphic */
.res-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.res-pair svg {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--bg);
}

.res-pair span {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.res-pair b {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.1rem;
}

.res-arrow {
  color: var(--yellow);
  font-size: 1.8rem;
}

.coarse {
  fill: #1b4a6b;
  stroke: var(--sky-soft);
}

.cv {
  stroke: #fff;
  stroke-width: 3;
}

/* Tasking */
.tasking {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.task-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.task-col {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.task-col ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.worker {
  display: inline-block;
  min-width: 3.2rem;
  margin-right: 0.6rem;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.task-state {
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.task-state.ok {
  color: #5fd08a;
  border: 1px solid rgba(95, 208, 138, 0.5);
}

.task-state.hold {
  color: var(--yellow);
  border: 1px solid rgba(255, 223, 60, 0.5);
}

.task-mid {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
  max-width: 150px;
}

.task-mid .warn {
  color: #ff8a7a;
  font-size: 0.8rem;
  font-weight: 700;
}

.task-mid .arrow {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* Hardware */
.chips {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(65, 183, 227, 0.5);
  border-radius: 99px;
  color: var(--sky-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.hw {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.7rem;
}

.hw img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

/* Trace chart */
.trace {
  margin: 0;
}

.trace svg {
  width: 100%;
  height: auto;
  display: block;
}

.trace .axis line {
  stroke: var(--steel);
  stroke-opacity: 0.5;
}

.trace .tick text {
  fill: var(--steel);
  font-family: var(--mono);
  font-size: 10px;
}

.trace .thresh {
  stroke: var(--yellow);
  stroke-dasharray: 5 4;
}

.trace .tl {
  fill: var(--yellow);
  font-family: var(--mono);
  font-size: 10px;
}

.trace .line {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-linejoin: round;
}

.trace .flag circle {
  fill: #ff6b5b;
  stroke: var(--bg);
  stroke-width: 2;
}

.trace .flag text {
  fill: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
}

.trace-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.trace-foot button {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: var(--bg-2);
  font: inherit;
  cursor: pointer;
}

/* Monitor */
.monitor {
  margin: 1rem 0 0;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.monitor h3 {
  font-size: 1.6rem;
}

.monitor p:not(.solution-tag) {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.monitor img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .viz-row,
  .monitor,
  .task-compare {
    grid-template-columns: 1fr;
  }

  .task-mid {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .bar-row {
    grid-template-columns: 1fr 4rem;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hw,
  .res-pair {
    grid-template-columns: 1fr;
  }

  .res-arrow {
    transform: rotate(90deg);
  }
}

/* Rocket CFD video */
.rocket-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  aspect-ratio: 4 / 3;
}

.rocket-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sim-trio .rocket-logo,
.rocket-logo {
  position: absolute;
  aspect-ratio: auto;
  object-fit: contain;
  max-height: none;
  background: none;
  top: 1rem;
  right: 1rem;
  width: min(42%, 240px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

.video-toggle {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: rgba(6, 18, 31, 0.8);
  font-family: var(--mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.sim-trio .rocket-cfd .rocket-frame + figcaption {
  margin-top: 0.7rem;
}

.sim-trio figure.rocket-cfd {
  grid-column: 1 / -1;
}

.sim-trio figure:not(.rocket-cfd) img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 760px) {
  .sim-trio {
    grid-template-columns: 1fr;
  }
}

/* 3D twin */
.twin-ui {
  grid-template-columns: 230px minmax(0, 1fr) 290px;
}

.cesium-box {
  position: relative;
  width: 100%;
  height: clamp(420px, 56vw, 640px);
  background: #06121f;
}

.cesium-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  background: #06121f;
}

.cesium-box .cesium-viewer-bottom {
  font-size: 10px;
}

.console-tag.live {
  color: #5fd08a;
  border-color: rgba(95, 208, 138, 0.5);
}

.map-hint {
  margin: 0;
  padding: 0 1rem 0.8rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.readout-site {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.readout-time {
  margin: 0.15rem 0 0.9rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.spark {
  margin-top: 0.9rem;
}

.spark-title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.spark svg {
  width: 100%;
  height: 52px;
  display: block;
  border-radius: 4px;
  background: var(--bg-2);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .twin-ui {
    grid-template-columns: 1fr;
  }
}

/* ---------- LuminaBox tracking scenarios ---------- */
[hidden] {
  display: none !important;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
}

.tabs-label {
  margin-right: 0.4rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stab {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.stab:hover {
  border-color: var(--sky);
}

.stab.is-active {
  color: var(--bg);
  border-color: var(--yellow);
  background: var(--yellow);
}

.cesium-wrap {
  position: relative;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.lb-card {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: min(250px, calc(100% - 1.6rem));
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(65, 183, 227, 0.55);
  border-radius: 8px;
  background: rgba(6, 18, 31, 0.86);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.lb-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.92rem;
}

.lb-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(65, 183, 227, 0.7);
  animation: pulse 1.8s infinite;
}

.lb-head .lb-dot {
  margin-right: 0;
}

.lb-sub {
  margin: 0.2rem 0 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.lb-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  color: #c6d8e6;
  font-size: 0.74rem;
}

.lb-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lg {
  flex: none;
  display: inline-block;
  width: 18px;
  height: 10px;
}

.lg-asset {
  width: 12px;
  height: 12px;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(65, 183, 227, 0.35);
}

.lg-link {
  height: 0;
  border-top: 2px dashed var(--sky);
}

.lg-bs {
  width: 4px;
  height: 14px;
  margin: 0 7px;
  background: #9fb6c8;
  position: relative;
}

.lg-bs::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red, #ff6b5b);
}

.lb-follow {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: var(--panel);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lb-follow[aria-pressed="true"] {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lb-chip {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  max-width: 55%;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 223, 60, 0.45);
  border-radius: 99px;
  color: var(--yellow);
  background: rgba(6, 18, 31, 0.82);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: right;
}

.phase-row {
  margin: 0;
  padding: 0.6rem 1rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.phase-row button {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--bg-2);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.phase-row li.is-on button {
  color: var(--bg);
  border-color: var(--sky);
  background: var(--sky);
  font-weight: 700;
}

/* LuminaBox feed */
.lb-feed {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.lb-asset {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  margin-bottom: 0.7rem;
}

.lb-asset b {
  color: #fff;
  font-family: var(--mono);
}

.lb-asset small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

.lb-badge {
  padding: 0.12rem 0.5rem;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.lb-badge.ok {
  color: #5fd08a;
  border: 1px solid rgba(95, 208, 138, 0.55);
}

.lb-badge.alert {
  color: var(--yellow);
  border: 1px solid rgba(255, 223, 60, 0.55);
}

.lb-badge.log {
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.55);
}

.kvs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.kv {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-2);
}

.kv span {
  display: block;
  color: var(--steel);
  font-size: 0.66rem;
}

.kv b {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.kv.alert b {
  color: var(--yellow);
}

.lb-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.lb-summary b {
  color: #fff;
  font-family: var(--mono);
}

.lb-summary .alert b {
  color: var(--yellow);
}

.lb-hint {
  margin: 0.6rem 0 0;
  color: var(--steel);
  font-size: 0.72rem;
}

.lb-log {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #c6d8e6;
}

.lb-log time {
  margin-right: 0.45rem;
  color: var(--steel);
  font-family: var(--mono);
}

/* SATCOM + shipping */
.lg-sat {
  height: 0;
  border-top: 2px dashed #b58cff;
}

.lb-badge.sat {
  color: #b58cff;
  border: 1px solid rgba(181, 140, 255, 0.6);
}

.rt {
  margin-bottom: 0.7rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.rt.is-on {
  border-color: var(--yellow);
}

.rt-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.86rem;
}

.rt-head .lb-badge {
  margin-left: auto;
}

.rt-sw {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rt-sub {
  margin: 0.2rem 0 0.45rem;
  color: var(--steel);
  font-size: 0.7rem;
}

.rt-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(140, 185, 220, 0.18);
  overflow: hidden;
}

.rt-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.rt-kv {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: #c6d8e6;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.rt-link {
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.rt-follow {
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: var(--panel);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.rt.is-on .rt-follow {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* Weather downscaling */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.seg button {
  padding: 0.45rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.seg button small {
  display: block;
  margin-top: 0.1rem;
  color: var(--steel);
  font-size: 0.66rem;
  font-weight: 500;
}

.seg button.is-on {
  border-color: var(--yellow);
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.seg-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.wx-grid-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.wx-grid-key > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.wx-grid-key small {
  flex: 1 1 100%;
  color: var(--steel);
  font: inherit;
}

.wind-bin {
  width: 0.75rem;
  height: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.wind-bin.calm { background: #326d96; }
.wind-bin.breeze { background: #41b7e3; }
.wind-bin.strong { background: #ffdf3c; }
.wind-bin.severe { background: #ff6b5b; }

.ds-overlay {
  position: absolute;
  right: 0.8rem;
  bottom: 1.9rem;
  z-index: 3;
  width: min(230px, calc(100% - 1.6rem));
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(65, 183, 227, 0.55);
  border-radius: 8px;
  background: rgba(6, 18, 31, 0.86);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.ds-title {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.ds-bar {
  height: 9px;
  margin: 0.45rem 0 0.25rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #0b1f33 0%, #1b5f8c 25%, #41b7e3 50%, #ffdf3c 75%, #ff6b5b 100%);
}

.ds-scale {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.ds-scale em {
  font-style: normal;
}

.ds-chip {
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(255, 223, 60, 0.45);
  border-radius: 99px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-align: center;
  text-transform: uppercase;
}

.ds-stats {
  margin: 0.9rem 0 0;
  padding: 0.7rem;
  border: 1px solid rgba(65, 183, 227, 0.45);
  border-radius: 8px;
  background: rgba(65, 183, 227, 0.06);
}

.ds-h {
  margin-bottom: 0.4rem;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ds-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.22rem 0;
  font-size: 0.74rem;
}

.ds-row span {
  color: var(--muted);
}

.ds-row b {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: right;
}

#res-group {
  margin-top: 1.4rem;
}

#res-group .side-title:first-child {
  margin-top: 0;
}

.whatif {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.3rem;
}

.whatif label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #c6d8e6;
  font-size: 0.74rem;
}

.whatif output {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.whatif input[type="range"] {
  width: 100%;
  margin: 0 0 0.35rem;
  accent-color: var(--yellow);
}

.whatif input:disabled {
  opacity: 0.45;
}

/* Time-history charts + TEU selector */
.hc {
  margin-top: 0.8rem;
}

.hc-title {
  margin-bottom: 0.25rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.hc-title i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 0.2rem 0 0.35rem;
  border-radius: 50%;
}

.hc-title .lg-a {
  background: #41b7e3;
}

.hc-title .lg-v {
  background: #ffdf3c;
}

.hchart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: var(--bg-2);
}

.hchart[data-scrub] {
  cursor: ew-resize;
}

.hc-grid {
  stroke: rgba(140, 185, 220, 0.14);
  stroke-width: 1;
}

.hc-tick {
  fill: #7d97ac;
  font-family: var(--mono);
  font-size: 8px;
}

.hc-thr {
  font-family: var(--mono);
  font-size: 8px;
}

.hc-band {
  fill: #9fb6c8;
  font-family: var(--mono);
  font-size: 8px;
}

.hc-empty {
  padding: 1.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
}

.tchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.tc {
  min-width: 2.3rem;
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.tc.is-on {
  color: var(--bg);
  border-color: var(--yellow);
  background: var(--yellow);
  font-weight: 700;
}

.sec-h {
  margin: 1rem 0 0.4rem;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dmgs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.dmg {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-left: 3px solid #ff6b5b;
  border-radius: 0 6px 6px 0;
  background: rgba(255, 107, 91, 0.08);
  font-size: 0.74rem;
}

.dmg b {
  color: #fff;
  font-family: var(--mono);
}

.dmg span {
  color: #c6d8e6;
  text-align: right;
}

/* ---------- Architecture: connectivity paths ---------- */
.arch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
}

.at {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  background: var(--bg-2);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.at i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.at-rf i {
  background: #41b7e3;
}

.at-cell i {
  background: #5fd08a;
}

.at-sat i {
  background: #b58cff;
}

.at.is-on {
  color: var(--bg);
  border-color: var(--yellow);
  background: var(--yellow);
}

.arch-scroll {
  overflow-x: auto;
}

.pth {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 6 5;
  opacity: 0.25;
  transition: opacity 0.4s, stroke-width 0.4s;
}

.pth-rf {
  stroke: #41b7e3;
}

.pth-cell {
  stroke: #5fd08a;
}

.pth-sat {
  stroke: #b58cff;
}

.pth-all {
  stroke: #c6d8e6;
  opacity: 0.8;
  stroke-dasharray: none;
}

#arch-svg[data-active="rf"] .pth-rf,
#arch-svg[data-active="cell"] .pth-cell,
#arch-svg[data-active="sat"] .pth-sat {
  opacity: 1;
  stroke-width: 3;
  animation: dash 1.2s linear infinite;
}

.pk {
  opacity: 0;
}

.pk circle {
  fill: #fff;
}

#arch-svg[data-active="rf"] .pk-rf,
#arch-svg[data-active="cell"] .pk-cell,
#arch-svg[data-active="sat"] .pk-sat,
.pk-all {
  opacity: 1;
}

.arch .lnode rect {
  fill: var(--bg-2);
  stroke: var(--line);
  transition: fill 0.4s, stroke 0.4s;
}

.arch .lnode,
.arch .mod {
  cursor: pointer;
}

.arch .lnode:hover rect,
.arch .lnode:focus-visible rect {
  stroke-width: 2;
}

.arch .mod:hover rect,
.arch .mod:focus-visible rect {
  stroke: var(--yellow);
}

#arch-svg[data-active="rf"] .lnode-rf rect {
  stroke: #41b7e3;
  fill: rgba(65, 183, 227, 0.12);
}

#arch-svg[data-active="cell"] .lnode-cell rect {
  stroke: #5fd08a;
  fill: rgba(95, 208, 138, 0.12);
}

#arch-svg[data-active="sat"] .lnode-sat rect {
  stroke: #b58cff;
  fill: rgba(181, 140, 255, 0.14);
}

.arch .ns.use {
  fill: #c6d8e6;
}

.arch .ns.warn {
  fill: #ffb347;
}

.arch .lm {
  stroke: rgba(255, 223, 60, 0.5);
}

.arch-now {
  margin: 0.8rem 0 0;
  color: #fff;
  font-size: 0.9rem;
}

.arch-now b {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Adaptive work tasking ---------- */
.task-head h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.task-head p:not(.solution-tag) {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.task-steps {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.task-steps li {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.task-steps b {
  display: block;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.task-steps span {
  display: block;
  margin-top: 0.25rem;
  color: #c6d8e6;
  font-size: 0.86rem;
}

.task-control {
  margin: 1.3rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.task-ctl-l {
  margin-right: 0.3rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-control button {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  background: var(--bg-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.task-control button.is-on {
  color: var(--bg);
  border-color: var(--yellow);
  background: var(--yellow);
}

.task-control button[data-fc="storm"].is-on {
  border-color: #ff8a7a;
  background: #ff8a7a;
}

.task-wrap {
  overflow-x: auto;
}

.task-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.task-table th {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.task-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(140, 185, 220, 0.1);
  vertical-align: top;
}

.task-table td:first-child {
  color: var(--sky);
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.task-table .t-old {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--steel);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.task-table .t-why {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.task-table tr.changed {
  animation: rowflash 1.4s ease-out;
}

@keyframes rowflash {
  from {
    background: rgba(255, 223, 60, 0.18);
  }
}

.st-chip {
  display: inline-block;
  padding: 0.14rem 0.55rem;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.st-chip.ok {
  color: #5fd08a;
  border: 1px solid rgba(95, 208, 138, 0.5);
}

.st-chip.moved {
  color: var(--yellow);
  border: 1px solid rgba(255, 223, 60, 0.55);
}

.where {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.where.out {
  color: #ffb36b;
  background: rgba(255, 154, 60, 0.12);
}

.where.in {
  color: #7fe9d6;
  background: rgba(62, 224, 198, 0.1);
}

.task-result {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--sky);
  border-radius: 0 6px 6px 0;
  background: rgba(65, 183, 227, 0.07);
  color: #e8f1f8;
  font-size: 0.92rem;
}

.task-result.storm {
  border-left-color: var(--yellow);
}

.task-actions {
  margin-top: 1rem;
}

/* ---------- Model links ---------- */
.see-row {
  margin: 1.1rem 0 0;
}

.see-model {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(65, 183, 227, 0.6);
  border-radius: 99px;
  color: var(--sky);
  background: rgba(65, 183, 227, 0.08);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.see-model:hover {
  background: rgba(65, 183, 227, 0.2);
  transform: translateY(-1px);
}

.seg4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
}

.scenario-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 23, 36, 0.72);
}

.scenario-intro .eyebrow {
  grid-column: 1;
  margin: 0;
  color: var(--sky-soft);
  font-size: 0.68rem;
}

.scenario-intro h2 {
  grid-column: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.scenario-intro > p:not(.eyebrow) {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.scenario-intro .scenario-intro-action {
  color: var(--ink) !important;
}

@media (max-width: 640px) {
  .scenario-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
}

.tchip {
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(65, 183, 227, 0.45);
  border-radius: 99px;
  color: var(--sky-soft);
  font-size: 0.74rem;
  text-decoration: none;
}

.tchip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lg-cell {
  height: 0;
  border-top: 2px dashed #5fd08a;
}

.lb-badge.cell {
  color: #5fd08a;
  border: 1px solid rgba(95, 208, 138, 0.6);
}

@media (max-width: 760px) {
  .task-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Standalone twin page + embedding ---------- */
body.twin-page {
  background: var(--bg-2);
}

.tp-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.tp-brand img {
  width: 150px;
  height: auto;
}

.tp-title {
  display: grid;
  line-height: 1.25;
}

.tp-title b {
  color: #fff;
  font-size: 0.95rem;
}

.tp-title span {
  color: var(--steel);
  font-size: 0.74rem;
}

.tp-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tp-back {
  color: var(--muted);
  font-size: 0.85rem;
}

.copied {
  color: #5fd08a;
  font-size: 0.8rem;
}

.twin-page .twin {
  border: 0;
  background: transparent;
}

.twin-page .twin-inner {
  width: min(1620px, calc(100% - 1.5rem));
  padding: 0.9rem 0 1.5rem;
}

.twin-page .cesium-box {
  height: clamp(440px, calc(100vh - 250px), 900px);
}

.network-controls {
  flex-wrap: wrap;
}

.network-controls select {
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}

.network-controls output {
  flex-basis: 100%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.network-readout {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.network-disclaimer {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.network-signal-chart {
  margin-top: 1rem;
}

.network-signal-chart > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.network-signal-chart output {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.network-signal-chart svg {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 0.35rem;
  overflow: visible;
}

.network-signal-chart svg line {
  stroke: rgba(140, 185, 220, 0.3);
}

.network-signal-chart svg path {
  fill: none;
  stroke: #ffb347;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.network-signal-chart #network-group-path {
  stroke: #cf8cff;
}

.network-signal-chart .network-sensor-area {
  fill: rgba(65, 183, 227, 0.035);
  stroke: rgba(65, 183, 227, 0.16);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.network-activation-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.network-activation-note i {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: #5fd08a;
  box-shadow: 0 0 0 2px rgba(95, 208, 138, 0.2);
}

body.embed .tp-bar {
  display: none;
}

body.embed .twin {
  background: transparent;
}

body.embed .twin-inner {
  width: 100%;
  padding: 0;
}

body.embed .cesium-box {
  height: clamp(400px, calc(100vh - 215px), 760px);
}

.twin-embed {
  position: relative;
}

.twin-embed iframe {
  display: block;
  width: 100%;
  height: clamp(700px, 90vh, 980px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.twin-embed-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.twin-embed-bar .see-model {
  text-decoration: none;
}

.twin-mobile {
  display: none;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.twin-mobile p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ---------- Minimize buttons and small screens ---------- */
.lb-head .lb-min {
  margin-left: auto;
}

.lb-min {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: var(--panel);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.lb-min:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lb-card.is-min {
  width: auto;
  padding: 0.45rem 0.55rem;
}

.lb-card.is-min .lb-sub,
.lb-card.is-min .lb-legend,
.lb-card.is-min .lb-follow {
  display: none;
}

.lb-card.is-min .lb-head {
  gap: 0.6rem;
}

.ds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ds-overlay.is-min {
  width: auto;
}

.ds-overlay.is-min .ds-bar,
.ds-overlay.is-min .ds-scale,
.ds-overlay.is-min .ds-chip {
  display: none;
}

@media (max-width: 1100px) {
  .twin-stage {
    order: -1;
  }
}

@media (max-width: 760px) {
  .twin-embed iframe,
  .twin-embed-bar {
    display: none;
  }

  .twin-mobile {
    display: block;
  }

  .tp-bar {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .tp-title span {
    display: none;
  }

  .tp-actions {
    margin-left: 0;
    width: 100%;
  }

  .lb-chip {
    top: auto;
    bottom: 0.6rem;
    right: 0.6rem;
    max-width: 70%;
    font-size: 0.6rem;
  }

  .twin-page .cesium-box,
  body.embed .cesium-box {
    height: clamp(360px, 62vh, 560px);
  }
}

/* ---------- Humanizing pass: calmer, more editorial, less template ---------- */
h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-heading h2,
.contact h2,
.about h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  line-height: 1.14;
}

.eyebrow,
.solution-tag {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.viz-title {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.hero {
  background: linear-gradient(180deg, #0b2036 0%, var(--bg) 100%);
}

.hero-inner {
  padding: clamp(3rem, 6vw, 5.2rem) 0 clamp(3.2rem, 6vw, 5.2rem);
}

.hero-lede {
  max-width: 34rem;
}

.funder-line {
  margin: 2rem 0 0;
  max-width: 31rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-media {
  margin: 0;
}

.hero-media .rocket-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.hero-media figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.what-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.what-list li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 140px;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.what-list h3 {
  font-size: 1.3rem;
}

.what-list p {
  margin: 0;
  color: var(--muted);
}

.what-list .more {
  justify-self: end;
  color: var(--sky);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.what-list .more:hover {
  color: var(--yellow);
}

.metric-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: #f3f0e8;
  color: #1d2b38;
}

.about-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about h2 {
  color: #12283b;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: #2c3f50;
  font-size: 1.12rem;
  line-height: 1.7;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .what-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .metric-three {
    grid-template-columns: 1fr;
  }
}

/* ---------- Multi-page layout ---------- */
.nav-links a[aria-current="page"] {
  color: #fff;
  box-shadow: 0 2px 0 var(--yellow);
}

.page-head {
  padding: clamp(2.6rem, 5vw, 4.2rem) 0 0.5rem;
  background: linear-gradient(180deg, #0b2036 0%, var(--bg) 100%);
}

.page-head-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.crumb {
  margin: 0 0 0.8rem;
  color: var(--steel);
  font-size: 0.88rem;
}

.crumb a {
  color: var(--sky-soft);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--yellow);
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-lede {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.pg-body {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.pg-body > .section-heading:first-child {
  margin-top: 1rem;
}

.what-list h3 a {
  color: inherit;
  text-decoration: none;
}

.what-list h3 a:hover {
  color: var(--yellow);
}

.next-pages {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.next-pages h2 {
  font-size: 1.5rem;
}

.next-pages ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.next-pages a {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--panel);
}

.next-pages a:hover {
  border-color: var(--sky);
}

.next-pages b {
  display: block;
  color: #fff;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.15rem;
}

.next-pages span {
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.foot-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.foot-nav a:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .site-footer {
    gap: 1rem;
  }
}

/* ---------- Strait of Hormuz controls ---------- */
.hz-ctl {
  padding: 0.7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem 1.4rem;
  border-top: 1px solid var(--line);
}

.hz-group {
  display: grid;
  gap: 0.3rem;
}

.hz-group > span {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hz-contested-note {
  flex: 1 1 100%;
  margin: 0;
  color: var(--steel);
  font-size: 0.72rem;
  line-height: 1.4;
}

.hz-map-layers {
  flex: 1 1 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.65rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.hz-map-layers legend {
  padding: 0 0.4rem 0 0;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.hz-map-layers label {
  display: grid;
  grid-template-columns: 1rem 1rem minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  cursor: pointer;
}

.hz-map-layers input {
  margin: 0.15rem 0 0;
  accent-color: var(--yellow);
}

.hz-map-layers small {
  display: block;
  color: var(--steel);
  font-size: 0.68rem;
}

.hz-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
}

.hz-swatch.closure { background: #8f211e; }
.hz-swatch.corridor { background: #4dbb78; }
.hz-swatch.mine { background: repeating-linear-gradient(135deg, #d94e4e 0 3px, transparent 3px 6px); }
.hz-swatch.threat { background: #efb547; }
.hz-swatch.disruption { background: repeating-linear-gradient(135deg, #a7afb7 0 3px, transparent 3px 6px); }

.hz-map-note {
  flex: 1 1 100%;
  margin: 0;
  color: var(--steel);
  font-size: 0.72rem;
  line-height: 1.45;
}

.seg3 {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.seg3 button {
  padding: 0.4rem 0.75rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.seg3 button:last-child {
  border-right: 0;
}

.seg3 button.is-on {
  color: var(--bg);
  background: var(--yellow);
}

.hc-title .lg-r {
  background: #ff6b5b;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cmp-table th,
.cmp-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cmp-table thead th {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmp-table tbody th {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.cmp-table .bad {
  color: #ff9d90;
}

.cmp-table .good {
  color: #7fe3a6;
}

.honest {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--yellow);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 223, 60, 0.07);
  color: #d8e6f1 !important;
  font-size: 0.9rem;
}

.bk {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.bk li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-left: 3px solid #4ad17f;
  border-radius: 0 6px 6px 0;
  background: var(--bg-2);
  font-size: 0.76rem;
}

.bk li.slow {
  border-left-color: #ffb347;
}

.bk li.jam {
  border-left-color: #ff4d3d;
  background: rgba(255, 77, 61, 0.1);
}

.bk b {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.sw {
  display: inline-block;
  width: 14px;
  height: 4px;
  margin: 0 0.25rem 0 0.1rem;
  border-radius: 2px;
  vertical-align: middle;
}

.sw-g {
  background: #4ad17f;
}

.sw-a {
  background: #ffb347;
}

.sw-r {
  background: #ff4d3d;
}

.seg3x {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg-bs {
  background: #8fc7a5;
}

.lg-bs::after {
  background: #5fd08a;
}

/* ---------- Rich footer ---------- */
.site-footer.rich {
  display: block;
  width: min(var(--max-width), calc(100% - 2rem));
  padding: 3rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
  gap: 2rem;
}

.foot-brand img {
  width: 200px;
  height: auto;
}

.foot-brand p {
  margin: 0.8rem 0 0;
  color: var(--ink);
}

.foot-small {
  color: var(--steel);
  font-size: 0.82rem;
  line-height: 1.55;
}

.foot-col h4 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1rem;
  font-weight: 600;
}

.foot-col a {
  display: block;
  padding: 0.18rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--yellow);
}

.foot-col .foot-small {
  margin: 0;
}

.foot-base {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.8rem;
}

.foot-base p {
  margin: 0;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Diagram: server node, prototypes, insights ---------- */
.arch .node.server rect:first-child {
  stroke: #5fd08a;
  stroke-opacity: 0.8;
}

.arch .ns.ok {
  fill: #7fe3a6;
}

.hw-fig {
  margin: 0;
}

.hw-fig figcaption {
  margin-top: 0.6rem;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: center;
}

.insights {
  margin-top: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.ins-head h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.ins-head p:not(.honest) {
  max-width: 44rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.ins-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) 48px minmax(0, 1.6fr);
  gap: 0.6rem;
  align-items: stretch;
}

.ins-in {
  display: grid;
  gap: 0.5rem;
}

.ins-btn {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--bg-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ins-btn b {
  display: block;
  font-size: 0.98rem;
}

.ins-btn span {
  color: var(--steel);
  font-size: 0.8rem;
}

.ins-btn.is-on {
  border-color: var(--yellow);
  background: var(--panel-2);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.ins-flow {
  display: grid;
  place-items: center;
}

.ins-flow svg {
  width: 48px;
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
}

.ins-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.ins-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.ins-card b {
  display: block;
  color: #fff;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.05rem;
}

.ins-card span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.ins-twin {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--sky);
  border-radius: 0 8px 8px 0;
  background: rgba(65, 183, 227, 0.07);
}

.ins-twin b {
  color: #fff;
}

.ins-twin p {
  margin: 0.3rem 0 0.8rem;
  color: #c6d8e6;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .ins-grid {
    grid-template-columns: 1fr;
  }

  .ins-flow {
    display: none;
  }

  .ins-out {
    grid-template-columns: 1fr;
  }
}

/* Tracking note + downscaling box controls */
.tracking-note {
  margin: 0;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  color: #c6d8e6;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tracking-note b {
  color: var(--yellow);
}

.ds-box {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.ds-box label {
  color: #c6d8e6;
  font-size: 0.74rem;
}

.ds-box select {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.8rem;
}

.ds-box .ds-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ds-box .ds-check input {
  accent-color: var(--yellow);
}

.ds-pin {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ds-pin[aria-pressed="true"] {
  border-color: var(--yellow);
  box-shadow: inset 0 -2px 0 var(--yellow);
}


/* ---------- Dropdown navigation (Products / Applications / Company / Consulting) ---------- */
.nav-links {
  gap: 1.75rem;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
  color: #fff;
}

.nav-trigger.is-current {
  color: #fff;
  box-shadow: 0 2px 0 var(--yellow);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 40;
  width: max-content;
  min-width: 260px;
  max-width: 340px;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

/* Invisible bridge so the pointer can cross the gap without the menu closing */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-item.is-open .nav-trigger::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

@media (hover: hover) and (min-width: 761px) {
  .nav-item:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav-item:hover .nav-trigger {
    color: #fff;
  }

  .nav-item:hover .nav-trigger::after {
    transform: rotate(225deg);
    margin-top: 0.2rem;
  }
}

.nav-menu-label {
  margin: 0.45rem 0.75rem 0.25rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu-label ~ .nav-menu-label {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.nav-links .nav-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
}

.nav-links .nav-menu a:hover,
.nav-links .nav-menu a:focus-visible {
  background: var(--panel);
}

.nav-links .nav-menu a[aria-current="page"] {
  background: var(--panel);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.nav-menu b {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.nav-menu span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.nav-tag,
.status-pill {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255, 223, 60, 0.45);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 0.12em;
}

.status-pill {
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
}

@media (max-width: 980px) and (min-width: 761px) {
  .brand {
    width: 210px;
  }

  .nav-links {
    gap: 1.1rem;
  }
}

@media (max-width: 760px) {
  .nav-links.is-open {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    gap: 0.4rem;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.55rem 0;
  }

  .nav-trigger.is-current {
    box-shadow: none;
  }

  .nav-menu {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 0 0.4rem;
    padding: 0.25rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-menu::before {
    content: none;
  }

  .nav-item.is-open .nav-menu {
    display: block;
    transform: none;
  }

  .nav-links .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ---------- Company & consulting pages ---------- */
.mission-statement {
  max-width: 50rem;
  margin: 1rem 0 0;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.1rem;
  border-radius: 6px;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.client-card a {
  color: var(--sky);
}

.client-card a:hover {
  color: var(--yellow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.team-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}

.team-photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.team-photo.placeholder {
  background:
    radial-gradient(circle at 50% 38%, var(--steel) 0 22%, transparent 23%),
    radial-gradient(ellipse at 50% 100%, var(--steel) 0 42%, transparent 43%),
    var(--panel-2);
}

.team-card h3 {
  margin: 1.1rem 0 0;
  font-size: 1.3rem;
}

.team-role {
  margin: 0.2rem 0 0.7rem;
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-card p:not(.team-role) {
  margin: 0;
  color: var(--muted);
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0.4rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list span {
  color: var(--muted);
}

.fact-list a {
  color: var(--sky);
}

.fine-print {
  margin: 1rem 0 0;
  color: var(--steel);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .fact-list li {
    grid-template-columns: 1fr;
  }
}
