/* ================================================================
   JALM INDUSTRIAL SOLUTIONS — Spatial Intelligence Platform
   Industrial futuristic minimalism — dark, CAD-inspired
   ================================================================ */

:root {
  /* base — matte black + graphite */
  --bg: #08090b;
  --bg-1: #0c0e12;
  --panel: #0f1217;
  --panel-2: #131720;
  --panel-3: #181d27;
  --steel: #1f2530;
  --hairline: #232a36;
  --hairline-2: #2a3240;

  /* text */
  --fg: #e8edf2;
  --fg-2: #b8c2cd;
  --fg-3: #7a848f;
  --fg-4: #4d5560;

  /* accents */
  --cyan: #5ce1ff;
  --cyan-dim: #3a8aa3;
  --cyan-soft: rgba(92, 225, 255, 0.12);
  --orange: #ff7a3a;
  --orange-dim: #b85222;
  --orange-soft: rgba(255, 122, 58, 0.12);
  --green: #6ee7a4;
  --amber: #ffb84d;
  --red: #ff5a5a;

  /* type */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-sans: "Inter Tight", -apple-system, sans-serif;

  /* misc */
  --radius: 4px;
  --radius-lg: 8px;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(92, 225, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 100%, rgba(255, 122, 58, 0.025), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

::selection { background: var(--cyan); color: #000; }

/* utility */
.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "zero"; }
.uppercase { text-transform: uppercase; letter-spacing: 0.12em; }
.muted { color: var(--fg-3); }
.fg-2 { color: var(--fg-2); }
.cyan { color: var(--cyan); }
.orange { color: var(--orange); }
.green { color: var(--green); }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { color: var(--fg-2); text-decoration: none; transition: color .15s; }
.nav-left a:hover, .nav-right a:hover { color: var(--cyan); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--cyan);
  background:
    linear-gradient(135deg, transparent 40%, rgba(92,225,255,0.15) 50%, transparent 60%),
    var(--panel);
  position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute;
  width: 4px; height: 4px;
  border: 1px solid var(--cyan);
}
.brand-mark::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.brand-mark::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.brand-mark svg { width: 14px; height: 14px; }

.nav-status {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.nav-status .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--hairline-2);
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.btn-primary {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(92,225,255,0.18), rgba(92,225,255,0.08));
  color: var(--cyan);
  box-shadow: 0 0 24px -8px var(--cyan), inset 0 0 0 1px rgba(92,225,255,0.2);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(92,225,255,0.28), rgba(92,225,255,0.14));
  color: #fff;
}
.btn-orange { border-color: var(--orange); color: var(--orange); }
.btn-orange:hover { background: var(--orange-soft); color: var(--orange); }

/* ================================================================
   SECTION CHROME
   ================================================================ */
section { position: relative; padding: 120px 32px; max-width: 1440px; margin: 0 auto; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--cyan);
}
.section-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 820px;
}
.section-title em { font-style: normal; color: var(--fg-3); font-weight: 400; }
.section-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
  white-space: nowrap;
}
.section-meta div + div { margin-top: 4px; }

/* Corner brackets for technical/CAD feel */
.bracket { position: relative; }
.bracket::before, .bracket::after,
.bracket > .bracket-tl, .bracket > .bracket-tr,
.bracket > .bracket-bl, .bracket > .bracket-br { display: none; }

.tk-bracket {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--cyan);
  pointer-events: none;
}
.tk-bracket.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tk-bracket.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.tk-bracket.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.tk-bracket.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 32px 80px;
  max-width: none;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg canvas { width: 100%; height: 100%; display: block; }

.hero-grid-fade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, transparent 0%, var(--bg) 90%),
    linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-left: 32px;
}

.hero-meta {
  display: flex; gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 8px var(--cyan); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .alt {
  color: var(--fg-3);
  font-style: italic;
  font-weight: 400;
}
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 12px; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(15,18,23,0.5), rgba(15,18,23,0.2));
  backdrop-filter: blur(8px);
  position: relative;
}
.hero-stat {
  padding: 18px 16px;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.hero-stat:last-child { border-right: 0; }
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.hero-stat .value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.hero-stat .value .unit { font-size: 11px; color: var(--fg-3); margin-left: 4px; }
.hero-stat .delta { font-size: 10px; color: var(--green); margin-top: 2px; font-family: var(--font-mono); }
.hero-stat .delta.warn { color: var(--amber); }

/* HERO HUD (right side) */
.hero-hud {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  max-height: 80vh;
  margin-right: 32px;
}

/* ================================================================
   SPATIAL OPS DASHBOARD
   ================================================================ */
.ops-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  grid-template-rows: auto auto;
  gap: 16px;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(15,18,23,0.85), rgba(12,14,18,0.7));
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}
.panel-head .id { color: var(--fg-3); font-size: 10px; }
.panel-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-size: 10px;
}
.panel-head .live .dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 6px var(--green); }
.panel-body { padding: 14px; }

/* asset list panel */
.asset-list { display: flex; flex-direction: column; }
.asset-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: background .15s;
}
.asset-row:hover { background: rgba(92,225,255,0.04); }
.asset-row.active { background: rgba(92,225,255,0.06); border-left: 2px solid var(--cyan); padding-left: 12px; }
.asset-row .pill { width: 6px; height: 6px; border-radius: 50%; }
.asset-row.ok .pill { background: var(--green); }
.asset-row.warn .pill { background: var(--amber); }
.asset-row.crit .pill { background: var(--red); }
.asset-row .name { color: var(--fg-2); display: flex; flex-direction: column; gap: 2px; }
.asset-row .name small { color: var(--fg-4); font-size: 9px; }
.asset-row .meta { color: var(--fg-3); font-size: 10px; }

/* map panel (center, large) */
.map-panel { grid-column: 2; grid-row: 1 / span 2; min-height: 540px; display: flex; flex-direction: column; }
.map-canvas { flex: 1; position: relative; overflow: hidden; }
.map-canvas canvas { width: 100%; height: 100%; display: block; }

.map-controls {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.map-ctrl {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(8,9,11,0.7);
  border: 1px solid var(--hairline-2);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.map-ctrl:hover { border-color: var(--cyan); color: var(--cyan); }

.map-legend {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; gap: 16px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 12px;
  background: rgba(8,9,11,0.7);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend .sw { width: 8px; height: 8px; border-radius: 50%; }
.map-legend .sw.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.map-legend .sw.cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.map-legend .sw.orange { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.map-legend .sw.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.map-coord {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase;
  padding: 8px 12px;
  background: rgba(8,9,11,0.7);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}

/* telemetry */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}
.telemetry-cell {
  border: 1px solid var(--hairline);
  padding: 12px;
  background: rgba(8,9,11,0.4);
}
.telemetry-cell .label {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.telemetry-cell .val {
  font-family: var(--font-mono); font-size: 18px; color: var(--fg);
  letter-spacing: -0.01em;
}
.telemetry-cell .val .u { font-size: 10px; color: var(--fg-3); margin-left: 4px; }
.spark { height: 22px; margin-top: 6px; }

/* event log */
.event-log { max-height: 220px; overflow: hidden; padding: 8px 0; }
.event {
  display: grid;
  grid-template-columns: 64px 12px 1fr;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  border-bottom: 1px dashed var(--hairline);
  color: var(--fg-2);
}
.event .t { color: var(--fg-4); }
.event .tag.ok { color: var(--green); }
.event .tag.warn { color: var(--amber); }
.event .tag.info { color: var(--cyan); }
.event .tag.crit { color: var(--red); }

/* ================================================================
   VIEWER CARDS
   ================================================================ */
.viewers {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.viewer-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.viewer-card.span-2 { grid-column: span 2; }
.viewer-card.tall { grid-row: span 2; }

.viewer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(24,29,39,0.7), transparent);
}
.viewer-head .title {
  display: flex; align-items: baseline; gap: 14px;
}
.viewer-head .title .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.08em;
}
.viewer-head .title h3 {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 500; letter-spacing: -0.01em;
}
.viewer-head .title small {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.12em;
}
.viewer-head .tools {
  display: flex; gap: 4px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.viewer-head .tools button, .viewer-head .tools .tool {
  height: 26px; padding: 0 8px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--hairline-2);
  background: transparent;
  color: var(--fg-3);
  font-family: inherit; font-size: inherit;
  text-transform: inherit; letter-spacing: inherit;
  cursor: pointer;
  border-radius: 2px;
}
.viewer-head .tools button:hover, .viewer-head .tools .tool:hover { color: var(--cyan); border-color: var(--cyan); }
.viewer-head .tools button.active { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-soft); }

.viewer-body { flex: 1; position: relative; min-height: 0; background: #0a0c10; }
.viewer-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-body canvas { width: 100%; height: 100%; display: block; }

.viewer-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
}
.viewer-foot .stats { display: flex; gap: 18px; }
.viewer-foot .stats span strong { color: var(--fg); font-weight: 500; }

/* overlay tags on top of viewers */
.viewer-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.v-tag {
  position: absolute;
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.v-tag .pin {
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
  background: rgba(8,9,11,0.7);
  position: relative;
  box-shadow: 0 0 0 4px rgba(92,225,255,0.08);
}
.v-tag .pin::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.v-tag .lbl {
  background: rgba(8,9,11,0.85);
  border: 1px solid rgba(92,225,255,0.4);
  padding: 4px 8px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

/* point-cloud / cad shared */
.cad-toolbar {
  position: absolute; left: 14px; top: 14px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cad-toolbar .layer {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(8,9,11,0.7);
  border: 1px solid var(--hairline-2);
  color: var(--fg-2);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.cad-toolbar .layer.off { color: var(--fg-4); }
.cad-toolbar .layer .sw { width: 10px; height: 2px; }
.cad-toolbar .layer.off .sw { background: var(--fg-4); }

/* PDF viewer */
.pdf-stack {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(92,225,255,0.08), transparent),
    #0a0c10;
}
.pdf-page {
  width: 280px; height: 380px;
  background: linear-gradient(180deg, #f5f5f0 0%, #ebe9e0 100%);
  color: #1a1a1a;
  padding: 22px 22px;
  font-family: var(--font-sans);
  position: absolute;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.pdf-page.p1 { transform: rotate(-6deg) translate(-80px, 14px); z-index: 1; opacity: 0.5; }
.pdf-page.p2 { transform: rotate(-2deg) translate(-30px, 6px); z-index: 2; opacity: 0.85; }
.pdf-page.p3 { transform: rotate(0deg) translate(0px, 0px); z-index: 3; }
.pdf-page.p4 { transform: rotate(3deg) translate(40px, -6px); z-index: 2; opacity: 0.85; }
.pdf-page.p5 { transform: rotate(7deg) translate(90px, -12px); z-index: 1; opacity: 0.5; }

.pdf-page .hd { font-size: 8px; color: #777; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid #c0bcae; }
.pdf-page h4 { font-family: var(--font-display); font-size: 14px; margin: 16px 0 6px; line-height: 1.2; color: #1a1a1a; }
.pdf-page .lead { font-size: 8.5px; line-height: 1.45; color: #444; margin-bottom: 14px; }
.pdf-page .row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 7px; color: #444; padding: 3px 0; border-bottom: 1px dotted #c0bcae; }
.pdf-page .row strong { color: #1a1a1a; font-weight: 600; }
.pdf-page .thumb { height: 90px; background: linear-gradient(135deg, #d0cdc1, #b8b4a5); margin: 10px 0; position: relative; overflow: hidden; }
.pdf-page .thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 12px 12px;
}
.pdf-page .footer { position: absolute; bottom: 14px; left: 22px; right: 22px; font-size: 7px; color: #888; display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid #c0bcae; }

/* ================================================================
   DIVISIONS (Industrial / Construction)
   ================================================================ */
.divisions { display: grid; grid-template-columns: 1fr; gap: 16px; }
.division-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--hairline);
  min-height: 480px;
}
.division-row.reverse { grid-template-columns: 1.2fr 1fr; }
.division-row.reverse .division-info { order: 2; border-left: 1px solid var(--hairline); border-right: 0; }
.division-row.reverse .division-visual { order: 1; }

.division-info {
  padding: 40px 36px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column;
}
.division-info .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.division-info h3 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 14px; max-width: 480px;
}
.division-info p {
  color: var(--fg-2);
  font-size: 15px; line-height: 1.55;
  max-width: 460px;
  margin-bottom: 28px;
}
.cap-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hairline); margin-top: auto; }
.cap-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cap-list li:nth-child(odd) { padding-right: 12px; }
.cap-list li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--hairline); }
.cap-list li::before {
  content: ""; width: 6px; height: 6px;
  border: 1px solid var(--cyan); background: var(--cyan-soft);
  flex-shrink: 0;
}

.division-visual {
  position: relative;
  background: #0a0c10;
  overflow: hidden;
}
.division-visual .vlabel {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.division-visual .vlabel.tl { top: 18px; left: 18px; }
.division-visual .vlabel.tr { top: 18px; right: 18px; color: var(--cyan); }
.division-visual .vlabel.bl { bottom: 18px; left: 18px; color: var(--fg-4); }
.division-visual .vlabel.br { bottom: 18px; right: 18px; color: var(--orange); }

.division-visual canvas, .division-visual svg { width: 100%; height: 100%; display: block; }

/* ================================================================
   PROCESS TIMELINE
   ================================================================ */
.process {
  position: relative;
  padding: 60px 0;
}
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 0;
}
.process-track::before {
  content: ""; position: absolute;
  left: 8%; right: 8%; top: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 10%, var(--cyan) 90%, transparent);
  opacity: 0.35;
}
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.process-step .node {
  width: 64px; height: 64px;
  margin: 32px auto 28px;
  border: 1px solid var(--cyan);
  background: var(--panel);
  display: grid; place-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(92,225,255,0.05), 0 0 32px -8px rgba(92,225,255,0.6);
}
.process-step .node::before, .process-step .node::after {
  content: ""; position: absolute; width: 6px; height: 6px; border: 1px solid var(--cyan);
}
.process-step .node::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.process-step .node::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.process-step .node svg { width: 26px; height: 26px; color: var(--cyan); }

.process-step .ix {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cyan); letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.process-step h4 {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px; color: var(--fg-3); line-height: 1.5;
  max-width: 200px; margin: 0 auto;
}
.process-step .meta {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.1em;
}

/* ================================================================
   PORTAL DEMO
   ================================================================ */
.portal {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--panel);
  border: 1px solid var(--hairline);
  min-height: 720px;
  overflow: hidden;
}
.portal-side {
  background: rgba(10, 12, 16, 0.6);
  border-right: 1px solid var(--hairline);
  padding: 20px 0;
  display: flex; flex-direction: column;
}
.portal-side .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.portal-nav { display: flex; flex-direction: column; padding: 0 12px; gap: 2px; flex: 1; }
.portal-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.portal-nav a.active { color: var(--cyan); background: rgba(92,225,255,0.08); border-left: 2px solid var(--cyan); padding-left: 8px; }
.portal-nav a:hover { color: var(--fg-2); }
.portal-nav svg { width: 14px; height: 14px; flex-shrink: 0; }
.portal-nav .group {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.14em;
  padding: 14px 12px 6px;
}

.portal-main { display: flex; flex-direction: column; min-width: 0; }
.portal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--hairline);
}
.portal-bar h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.portal-bar h3 .crumb {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-4); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.portal-bar h3 .crumb::after { content: "/"; margin: 0 8px; color: var(--fg-4); }
.portal-bar .actions { display: flex; gap: 8px; }

.portal-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 0;
}
.portal-content {
  padding: 20px 22px;
  overflow: auto;
  border-right: 1px solid var(--hairline);
}
.portal-content .project-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--hairline);
  margin-bottom: 12px;
  background: rgba(8,9,11,0.3);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.portal-content .project-card:hover { border-color: var(--cyan); background: rgba(92,225,255,0.03); }
.portal-content .project-card .preview {
  height: 100px;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  background: #0a0c10;
}
.portal-content .project-card .info h5 {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 500; margin-bottom: 4px;
}
.portal-content .project-card .info .sub {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.portal-content .project-card .info .chips {
  display: flex; gap: 6px;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--hairline-2);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.chip.cyan { border-color: var(--cyan-dim); color: var(--cyan); }
.chip.orange { border-color: var(--orange-dim); color: var(--orange); }
.chip.green { border-color: rgba(110,231,164,0.4); color: var(--green); }
.portal-content .project-card .status {
  text-align: right;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em;
}
.portal-content .project-card .status .pct {
  font-size: 22px; color: var(--fg); margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.portal-content .row-mini-preview {
  background:
    linear-gradient(rgba(92,225,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,225,255,0.06) 1px, transparent 1px);
  background-size: 10px 10px;
}

/* portal aside */
.portal-aside { padding: 20px 22px; overflow: auto; }
.portal-aside h6 {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.timestamp-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-mono); font-size: 10.5px;
  border-bottom: 1px dashed var(--hairline);
}
.timestamp-row .ts { color: var(--fg-4); }
.timestamp-row .ev { color: var(--fg-2); }
.timestamp-row .ev small { color: var(--fg-4); display: block; margin-top: 2px; font-size: 9.5px; }

.evidence-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 12px 0 22px;
}
.evidence-grid .ev-thumb {
  height: 72px;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0a0c10;
}
.evidence-grid .ev-thumb .tlabel {
  position: absolute; bottom: 4px; left: 4px;
  font-family: var(--font-mono); font-size: 8px;
  color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ================================================================
   CASE STUDIES
   ================================================================ */
.cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.case {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.case:hover { border-color: var(--cyan); transform: translateY(-2px); }
.case.lg { grid-column: span 3; }
.case.md { grid-column: span 3; }
.case.sm { grid-column: span 2; }
.case .visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.case .meta-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between;
  z-index: 2;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.case .meta-top .id { color: var(--cyan); }
.case .meta-top .sector { color: var(--fg-3); }
.case .info { padding: 18px; }
.case .info .industry {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.case .info h4 {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.2; margin-bottom: 8px;
}
.case .info .stats {
  display: flex; gap: 18px; margin-top: 16px;
  border-top: 1px solid var(--hairline); padding-top: 14px;
}
.case .info .stats .stat .v {
  font-family: var(--font-mono); font-size: 18px;
  color: var(--fg); letter-spacing: -0.01em;
}
.case .info .stats .stat .l {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final {
  margin-top: 40px;
  padding: 160px 32px 180px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: none;
  border-top: 1px solid var(--hairline);
}
.final-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.final-bg canvas { width: 100%; height: 100%; display: block; }
.final-content { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
.final-content .eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--cyan); text-transform: uppercase; letter-spacing: 0.2em;
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.final-content .eyebrow::before, .final-content .eyebrow::after {
  content: ""; width: 30px; height: 1px; background: var(--cyan);
}
.final-content h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.final-content h2 em { font-style: italic; color: var(--cyan); font-weight: 400; }
.final-content p {
  font-size: 19px; color: var(--fg-2); line-height: 1.5;
  max-width: 640px; margin: 0 auto 48px;
}
.final-cta { display: flex; gap: 12px; justify-content: center; }

/* footer */
footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--hairline);
  max-width: 1440px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
footer h6 {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer a { color: var(--fg-2); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
footer a:hover { color: var(--cyan); }
footer .brand-block .desc { max-width: 320px; margin-top: 16px; line-height: 1.6; color: var(--fg-3); text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 12px; }
footer .colophon {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: 10px;
  color: var(--fg-4);
}

/* ================================================================
   EVIDENCE — real project showcases (added after first build)
   ================================================================ */
.evidence-stack { display: flex; flex-direction: column; gap: 32px; }

.project-block {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
}
.project-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--hairline);
}
.project-head .ix {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.project-head .ix::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }
.project-head h3 {
  font-family: var(--font-display); font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.05;
  max-width: 760px;
}
.project-head .route {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.project-head .route .sep { color: var(--orange); }
.project-head .badges {
  display: flex; gap: 6px; align-items: flex-end;
  text-align: right;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.project-head .badges .b {
  padding: 4px 10px; border: 1px solid var(--hairline-2);
  color: var(--fg-3);
}
.project-head .badges .b.live { color: var(--green); border-color: rgba(110,231,164,0.4); }
.project-head .badges .b.cyan { color: var(--cyan); border-color: var(--cyan-dim); }

.project-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hairline);
}
.project-stats .stat {
  padding: 16px 22px;
  border-right: 1px solid var(--hairline);
}
.project-stats .stat:last-child { border-right: 0; }
.project-stats .stat .l {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.project-stats .stat .v {
  font-family: var(--font-mono); font-size: 22px;
  color: var(--fg); letter-spacing: -0.01em;
}
.project-stats .stat .v .u { font-size: 10px; color: var(--fg-3); margin-left: 4px; }

/* image montage grids */
.montage {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.montage.layout-a {
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.montage.layout-a .m-img.large { grid-row: span 2; }

.montage.layout-b {
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 220px;
}
.montage.layout-b .m-img.lead { grid-column: 1; grid-row: 1 / span 2; }
.montage.layout-b .m-img.span-2 { grid-column: span 2; }

.m-img {
  position: relative;
  background: #0a0c10;
  border: 1px solid var(--hairline);
  overflow: hidden;
  min-height: 200px;
}
.m-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02);
}
.m-img.contain img { object-fit: contain; background: #0a0c10; }
.m-img.tone img { mix-blend-mode: lighten; filter: contrast(1.05) saturate(0.9); }

.m-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, rgba(8,9,11,0.7) 100%),
    linear-gradient(135deg, rgba(92,225,255,0.02), transparent 40%);
}
.m-img .tag {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 8px;
  background: rgba(8,9,11,0.78);
  border: 1px solid rgba(92,225,255,0.35);
  backdrop-filter: blur(4px);
}
.m-img .tag.orange { color: var(--orange); border-color: rgba(255,122,58,0.4); }
.m-img .caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.m-img .caption strong { color: var(--fg); font-weight: 500; }
.m-img .caption .right { color: var(--fg-3); text-align: right; }

/* Field capture strip */
.field-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.field-strip .m-img { min-height: 220px; }
.field-strip .m-img.wide { grid-column: span 2; }

/* Corner ticks for project blocks */
.project-block .tk-bracket {
  border-color: var(--cyan);
  width: 14px; height: 14px;
}

@media (max-width: 1180px) {
  .montage.layout-a, .montage.layout-b { grid-template-columns: 1fr; grid-template-rows: auto; }
  .montage.layout-a .m-img.large, .montage.layout-b .m-img.lead { grid-row: auto; grid-column: auto; }
  .montage.layout-b .m-img.span-2 { grid-column: auto; }
  .project-stats { grid-template-columns: repeat(2, 1fr); }
  .project-stats .stat { border-bottom: 1px solid var(--hairline); }
  .field-strip { grid-template-columns: repeat(2, 1fr); }
  .field-strip .m-img.wide { grid-column: auto; }
  .project-head { grid-template-columns: 1fr; }
}

/* ================================================================
   MINIMAL MODE OVERRIDES — quieter, less sci-fi chrome
   ================================================================ */

/* Hide corner brackets — too futuristic */
.tk-bracket { display: none !important; }

/* Kill glow shadows */
.brand-mark { box-shadow: none; }
.btn-primary {
  box-shadow: none;
  background: transparent;
  color: var(--fg);
  border-color: var(--fg-3);
}
.btn-primary:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.nav-status .dot { box-shadow: none; }
.hero-meta .dot { box-shadow: none; }
.process-step .node { box-shadow: none; }

/* Subtler accent saturation */
:root {
  --cyan: #9bb8c4;       /* desaturated, calmer */
  --cyan-dim: #5a6f78;
  --cyan-soft: rgba(155, 184, 196, 0.08);
  --orange: #d68a5a;     /* softer */
  --orange-dim: #8a5535;
  --orange-soft: rgba(214, 138, 90, 0.08);
}

/* Calm the hero — no rotating HUD, simpler bg */
.hero { grid-template-columns: 1fr; gap: 0; padding: 140px 32px 100px; max-width: 1440px; }
.hero-hud { display: none; }
.hero-content { padding-left: 0; max-width: 820px; }
.hero-grid-fade {
  background:
    radial-gradient(ellipse 60% 70% at 40% 60%, transparent 0%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-bg { opacity: 0.5; }

/* Quieter hero title — drop the underline accent */
.hero-title .underline::after { display: none; }

/* Reduce micro-labels in hero */
.hero-meta { gap: 18px; opacity: 0.7; }

/* Section heads — drop the right-side meta block */
.section-head { align-items: center; }
.section-meta { display: none; }
.section-eyebrow::before { width: 24px; opacity: 0.5; }
.section-eyebrow { color: var(--fg-3); }
.section-title { font-size: clamp(40px, 4.4vw, 56px); max-width: 760px; }

/* Quieter panels — flatter */
.panel { backdrop-filter: none; background: var(--panel); }
.panel-head .live .dot { box-shadow: none; }

/* Map: dim the labels in legend */
.map-legend .sw.green, .map-legend .sw.cyan, .map-legend .sw.orange, .map-legend .sw.amber { box-shadow: none; }

/* Asset row active border in fg instead of cyan */
.asset-row.active { border-left-color: var(--fg-2); background: rgba(255,255,255,0.025); }

/* Viewer head: less mono shouting */
.viewer-head .title .num { color: var(--fg-3); }
.viewer-head .title small { display: none; }   /* hide subtitle — title alone is enough */
.viewer-head .tools button.active { background: transparent; color: var(--fg); border-color: var(--fg-2); }

/* Overlay tags — quieter, no glow */
.v-tag .pin { box-shadow: none; }
.v-tag .pin::after { box-shadow: none; }
.v-tag .lbl { background: rgba(8,9,11,0.65); border-color: var(--hairline-2); color: var(--fg-2); }

/* Hide most overlay tags by default — keep one per viewer */
.viewer-overlay .v-tag { display: none; }
.viewer-overlay .v-tag:first-child { display: flex; }

/* Process step — flatter nodes */
.process-step .node { border-color: var(--fg-3); }
.process-step .node svg { color: var(--fg-2); }
.process-step .node::before, .process-step .node::after { display: none; }
.process-track::before { background: linear-gradient(90deg, transparent, var(--hairline-2) 10%, var(--hairline-2) 90%, transparent); }
.process-step .ix { color: var(--fg-3); }

/* Project block: simpler tags, no orange accent saturation */
.m-img .tag { background: rgba(8,9,11,0.7); border-color: var(--hairline-2); color: var(--fg-2); }
.m-img .tag.orange { color: var(--fg-2); border-color: var(--hairline-2); }
.project-head .badges .b.live { color: var(--fg-2); border-color: var(--hairline-2); }
.project-head .badges .b.cyan { color: var(--fg-2); border-color: var(--hairline-2); }
.project-head .route .sep { color: var(--fg-3); }
.project-head .ix { color: var(--fg-3); }
.project-head .ix::before { background: var(--fg-3); opacity: 0.5; }

/* Final CTA — drop the perspective grid, simpler typography */
.final { padding: 140px 32px 140px; }
.final-bg { display: none; }
.final-content .eyebrow { color: var(--fg-3); }
.final-content .eyebrow::before, .final-content .eyebrow::after { background: var(--fg-3); opacity: 0.5; }
.final-content h2 em { color: var(--fg); font-style: italic; }

/* Portal — less colored nav */
.portal-nav a.active { color: var(--fg); background: rgba(255,255,255,0.04); border-left-color: var(--fg-2); }
.chip.cyan, .chip.orange, .chip.green { color: var(--fg-2); border-color: var(--hairline-2); }

/* Hero stats — softer accent for delta */
.hero-stat .delta { color: var(--fg-3); }
.hero-stat .delta.warn { color: var(--fg-3); }

/* Brand mark — neutral */
.brand-mark { border-color: var(--fg-3); background: transparent; }
.brand-mark svg path { stroke: var(--fg-2) !important; }

/* nav status — neutralize */
.nav-status .dot { background: var(--fg-2); }
.nav .nav-status { color: var(--fg-3); }

/* Animation off — keep at low pulse but neutral */
@keyframes pulse { 50% { opacity: 0.4; } }

/* Hide event log tag colors — neutralize */
.event .tag.ok, .event .tag.warn, .event .tag.info, .event .tag.crit { color: var(--fg-2); }

/* Asset row pills muted */
.asset-row.ok .pill { background: var(--fg-2); }
.asset-row.warn .pill { background: var(--fg-3); }
.asset-row.crit .pill { background: var(--fg); }

/* Map markers — softer (no pulse rings; handled in JS but we keep colors muted) */
/* (point cloud + map still use cyan/orange internally — that's fine in the viewer body) */

/* Brand colon in nav */
.nav-brand { font-weight: 500; }

/* Real photo wrappers — fill containers and add subtle tone */
.real-photo {
  position: absolute;
  inset: 0;
  background: #0a0c10;
  overflow: hidden;
}
.real-photo img {
  filter: contrast(1.04) saturate(0.92) brightness(0.92);
}
.real-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(8,9,11,0.45) 100%);
}
.real-photo.cad-bg img { filter: invert(0.92) hue-rotate(180deg) contrast(0.96) brightness(0.9); }
.real-photo.cad-bg::after { background: transparent; }
.viewer-body .real-photo { inset: 0; }
.division-visual .real-photo { inset: 0; }
.map-canvas .real-photo { inset: 0; }

/* hide CAD layer toggles in head (CAD now static photo) */
.viewer-card [data-layer] { display: none; }
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-hud { max-height: 60vh; margin: 0 32px; }
  .ops-grid { grid-template-columns: 1fr; }
  .map-panel { grid-column: 1; grid-row: auto; }
  .viewers { grid-template-columns: 1fr; }
  .viewer-card.span-2 { grid-column: span 1; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case.lg, .case.md, .case.sm { grid-column: span 1; }
  .process-track { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-track::before { display: none; }
  .division-row, .division-row.reverse { grid-template-columns: 1fr; }
  .division-row.reverse .division-info { order: 1; border-left: 0; }
  .division-row.reverse .division-visual { order: 2; }
  .portal { grid-template-columns: 1fr; }
  .portal-side { display: none; }
  .portal-body { grid-template-columns: 1fr; }
}


/* ================================================================
   RESPONSIVE — tablet + phone
   ================================================================ */
@media (max-width: 1024px) {
  section { padding: 80px 24px; }
  .nav { padding: 0 16px; }
  .nav > div:nth-child(2) { display: none; } /* hide center nav */
  .nav-right .btn { display: none; }
  .nav-right .nav-status { font-size: 10px; }

  .hero { padding: 96px 24px 60px; min-height: auto; }
  .hero-title { font-size: clamp(40px, 7vw, 64px); }
  .hero-sub { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid var(--hairline); }
  .hero-stat:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .hero-stat:nth-child(even) { border-right: 0; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title { font-size: clamp(32px, 5vw, 44px); }

  /* OPS dashboard */
  .ops-grid { grid-template-columns: 1fr; }
  .map-panel { grid-column: 1; grid-row: auto; min-height: 420px; }

  /* VIEWERS */
  .viewers { grid-template-columns: 1fr; }
  .viewer-card.span-2 { grid-column: span 1; }
  .viewer-body { min-height: 320px !important; height: auto !important; }
  .viewer-body iframe { min-height: 380px; }
  .viewer-head { flex-wrap: wrap; gap: 12px; }
  .viewer-head .tools { flex-wrap: wrap; }

  /* EVIDENCE — project montages stack */
  .montage.layout-a, .montage.layout-b {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .montage.layout-a .m-img.large,
  .montage.layout-b .m-img.lead { grid-row: auto; grid-column: auto; min-height: 240px; }
  .montage.layout-b .m-img.span-2 { grid-column: auto; }
  .project-stats { grid-template-columns: repeat(2, 1fr); }
  .project-stats .stat { border-bottom: 1px solid var(--hairline); }
  .project-stats .stat:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .project-stats .stat:nth-child(even) { border-right: 0; }
  .project-head { padding: 22px 22px 18px; grid-template-columns: 1fr; }
  .project-head h3 { font-size: 24px; }
  .field-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .field-strip .m-img.wide { grid-column: span 2; }

  /* DIVISIONS */
  .division-row, .division-row.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .division-row.reverse .division-info { order: 1; border-left: 0; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .division-row.reverse .division-visual { order: 2; }
  .division-row .division-info { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 28px 22px; }
  .division-row .division-visual { min-height: 360px; }
  .division-info h3 { font-size: 28px; }
  .cap-list { grid-template-columns: 1fr; }
  .cap-list li, .cap-list li:nth-child(odd), .cap-list li:nth-child(even) {
    padding: 12px 0;
    border-left: 0;
  }

  /* PROCESS */
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-track::before { display: none; }

  /* PORTAL */
  .portal { grid-template-columns: 1fr; }
  .portal-side { display: none; }
  .portal-body { grid-template-columns: 1fr; }
  .portal-content { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .portal-content .project-card { grid-template-columns: 1fr; gap: 12px; }
  .portal-content .project-card .preview { height: 140px; }
  .portal-content .project-card .status { text-align: left; }

  /* FOOTER */
  footer { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer .colophon { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* FINAL CTA */
  .final { padding: 96px 24px; }
  .final-content h2 { font-size: clamp(40px, 8vw, 72px); }
  .final-content p { font-size: 16px; }
  .final-cta { flex-wrap: wrap; }
  .final-content > div[style*="margin-top:60px"] { flex-wrap: wrap; gap: 16px !important; justify-content: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 64px 16px; }
  .hero { padding: 84px 16px 48px; }
  .hero-title { font-size: clamp(34px, 8.5vw, 48px); line-height: 1.02; }
  .hero-sub { font-size: 15px; }
  .hero-meta { flex-wrap: wrap; gap: 12px 18px; font-size: 10px; }
  .hero-ctas { flex-wrap: wrap; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  .section-title { font-size: 28px; }
  .section-head { margin-bottom: 32px; padding-bottom: 14px; }

  /* viewers */
  .viewer-head .title h3 { font-size: 17px; }
  .viewer-head { padding: 12px 14px; }
  .viewer-body { min-height: 280px !important; }
  .viewer-foot { padding: 10px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .viewer-foot .stats { flex-wrap: wrap; gap: 12px; }

  /* evidence */
  .project-head h3 { font-size: 20px; }
  .project-head .route { font-size: 10px; gap: 6px; }
  .montage { padding: 14px; gap: 10px; }
  .field-strip { grid-template-columns: 1fr 1fr; }
  .field-strip .m-img.wide { grid-column: span 2; }
  .field-strip .m-img { min-height: 160px; }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .project-stats .stat { padding: 12px 14px; }
  .project-stats .stat .v { font-size: 18px; }

  /* divisions */
  .division-info { padding: 22px 16px; }
  .division-info h3 { font-size: 22px; }
  .division-info p { font-size: 14px; }
  .division-row .division-visual { min-height: 280px; }

  /* process */
  .process-track { grid-template-columns: 1fr; gap: 24px; }
  .process-step .node { width: 52px; height: 52px; margin: 16px auto 16px; }
  .process-step .node svg { width: 22px; height: 22px; }

  /* portal */
  .portal { min-height: 0; }
  .portal-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .portal-bar h3 { font-size: 16px; }
  .portal-content { padding: 16px; }
  .portal-aside { padding: 16px; }

  /* PDF stack — smaller */
  .pdf-stack { padding: 14px; }
  .pdf-page { width: 200px; height: 280px; padding: 14px; }

  /* footer */
  footer { grid-template-columns: 1fr; padding: 40px 16px 32px; gap: 28px; }

  /* final */
  .final { padding: 64px 16px; }
  .final-content h2 { font-size: clamp(32px, 10vw, 56px); }
  .final-content p { font-size: 15px; }
  .final-content .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
}

/* Phone — extra tight */
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0 !important; }
  .project-stats { grid-template-columns: 1fr; }
  .project-stats .stat { border-right: 0 !important; }
  .field-strip { grid-template-columns: 1fr; }
  .field-strip .m-img.wide { grid-column: auto; }
}
