/* L19 — Minimal UX layer
   Loaded AFTER site.css + mesh.css. Overrides only.
   Goal: cut visual noise, calm typography, restore breathing room — keep operator vocabulary. */

:root {
  /* softened palette — same red, but used sparingly */
  --bg-0: #0B0C0D;
  --bg-1: #101214;
  --bg-2: #15181B;
  --line: #1E2125;
  --line-2: #262A2F;
  --text: #ECECEC;
  --text-2: #B8BBC0;
  --muted: #7A7F86;
  --dim: #50545A;
  --accent: #E24329;
}

/* —— Global type calm-down —— */
html, body { font-size: 15.5px; line-height: 1.6; }
p { color: var(--text-2); }

.h-display { font-size: clamp(40px, 5.5vw, 80px); letter-spacing: -0.025em; line-height: 1; font-weight: 500; }
.h-1 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.02em; line-height: 1.05; font-weight: 500; }
.h-2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.015em; line-height: 1.15; font-weight: 500; }

/* —— Section rhythm —— */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* —— Eyebrows: quieter —— */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* —— Ticker + Nav: site-default chrome (no overrides) —— */

/* —— Buttons —— */
.btn {
  padding: 13px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  border-color: var(--line-2);
  font-family: var(--ff-mono);
  font-weight: 400;
  text-transform: uppercase;
}
.btn:hover { background: transparent; border-color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #F05539; border-color: #F05539; color: #fff; }
.btn-ghost { padding-left: 0; padding-right: 0; }

/* —— Chips —— */
.chip { background: transparent; border-color: var(--line); padding: 5px 10px; font-size: 10px; letter-spacing: 0.12em; font-weight: 400; }
.chip.accent { background: transparent; }

/* —— Hero: fits viewport with metrics strip; calm padding —— */
.hud-corners::before, .hud-corners::after { display: none; }
.hero {
  min-height: calc(100svh - var(--nav-h, 64px) - 132px);
  display: flex;
  align-items: center;
}
.hero-content {
  padding: 56px 0 56px;
  justify-content: center;
}
.hero-title {
  font-size: clamp(36px, 4.6vw, 64px);
  margin-bottom: 22px;
  max-width: 16ch;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-lede { font-size: 16px; max-width: 56ch; margin-bottom: 28px; }
.hero-ctas { gap: 10px; }
@media (min-height: 900px) {
  .hero { min-height: calc(100svh - var(--nav-h, 64px) - 152px); }
  .hero-content { padding: 72px 0 72px; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-content { padding: 96px 0 56px; }
}

/* —— Cards: lighter —— */
.card { background: transparent; padding: 28px; border-color: var(--line); }
.card:hover { border-color: var(--line-2); background: var(--bg-1); }
.card.clickable:hover { border-color: var(--accent); background: var(--bg-1); }
.card .idx { color: var(--dim); font-size: 10px; letter-spacing: 0.12em; }
.card h3 { font-size: 20px; margin: 12px 0 8px; }
.card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.card-cta { margin-top: 18px; font-size: 10.5px; letter-spacing: 0.12em; }

/* —— Metrics: simpler —— */
.metrics { background: transparent; border-color: var(--line); }
.metric { padding: 24px 28px; border-color: var(--line); }
.metric .m-val { font-size: 32px; font-weight: 500; }
.metric .m-val .u { font-size: 14px; }
.metric .m-lbl { font-size: 10px; letter-spacing: 0.14em; }

/* —— Footer —— */
.footer { padding: 56px 0 32px; }
.footer h4 { font-size: 10px; letter-spacing: 0.16em; }
.footer a { font-size: 13px; padding: 5px 0; }
.footer-bottom { font-size: 10.5px; }

/* —— Border-page bespoke calm-down —— */

/* Hero: drop corner brackets, frame boxes, pulsing pins, classification banner */
.bdr-hero { height: 78vh; min-height: 600px; }
.bdr-hero-chrome { display: none; }
.bdr-hero-top .cls { display: none; }
.bdr-hero-top .mission { gap: 32px; opacity: 0.85; }
.bdr-hero-top .mission span { color: var(--muted); }
.bdr-hero .hero-pin, .bdr-hero .hero-frame-box { display: none; }
.bdr-hero-map::before { background-size: 120px 120px; opacity: 0.5; }
.bdr-hero-overlay {
  background: linear-gradient(180deg, rgba(11,12,13,0.7) 0%, rgba(11,12,13,0.4) 50%, rgba(11,12,13,0.95) 100%);
}
.bdr-hero-body h1 { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.03em; line-height: 0.95; max-width: 16ch; }
.bdr-hero-body h1 .red { color: var(--text); }   /* drop the red mid-headline split */
.bdr-hero-body h1 br { display: none; }
.bdr-hero-body .lede-big { font-size: 17px; line-height: 1.5; max-width: 60ch; }
.bdr-hero-body .eyebrow { color: var(--muted); }

/* Section heads: less heavy */
.sec-head { grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 40px; }
.sec-head .sh-l h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.1; margin-top: 12px; }
.sec-head .sh-l .eyebrow { color: var(--muted); }
.sec-head .sh-r p { font-size: 15px; line-height: 1.6; max-width: 54ch; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; } }

/* Numbers strip: drop the big word-as-number gimmick (Remote/Thin/Adaptive/Saturated) — applied page-side */
.num-strip { background: transparent; }
.num-strip .num { padding: 28px 28px; }
.num-strip .num .v { font-size: 38px; font-weight: 500; letter-spacing: -0.02em; }
.num-strip .num .l { font-size: 10px; letter-spacing: 0.14em; margin-top: 12px; }
.num-strip .num .src { font-size: 10.5px; line-height: 1.5; }

/* Problem grid: less ALL CAPS index, no italic quote */
.prob-cell { padding: 32px; }
.prob-cell .pnum { color: var(--dim); font-size: 10.5px; letter-spacing: 0.14em; margin-bottom: 14px; }
.prob-cell h3 { font-size: 20px; margin-bottom: 10px; }
.prob-cell p { font-size: 14.5px; }
.prob-cell .op-quote { font-style: normal; color: var(--dim); }

/* Incident vignette: calm down */
.incident-bg::before { display: none; }
.incident-bg { opacity: 0.2; }
.incident-inner { padding: 56px 48px; gap: 48px; }
.incident-timecode { font-size: 11px; letter-spacing: 0.14em; }
.incident-timecode .rec { animation: none; opacity: 0.7; }
.incident-inner h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 22px; max-width: 18ch; }
.incident-inner .script { font-size: 15px; line-height: 1.65; }
.incident-inner .script .redline { color: var(--muted); font-family: var(--ff-body); font-size: 15px; letter-spacing: 0; font-style: italic; }
.incident-log { font-size: 11.5px; line-height: 1.6; }
.incident-log .row { padding: 7px 0; }
.incident-log .row .t { color: var(--muted); }
.incident-log .row .sys { color: var(--dim); }
@media (max-width: 900px) { .incident-inner { padding: 36px 24px; gap: 28px; } }

/* Before / After: drop the gradient on After, simpler list */
.ba-col.after { background: transparent; }
.ba-col { padding: 36px 32px; }
.ba-col .tag { font-size: 10px; letter-spacing: 0.16em; margin-bottom: 16px; }
.ba-col h3 { font-size: 22px; margin-bottom: 16px; }
.ba-col li { padding: 12px 0; font-size: 14px; }
.ba-col.before li .ic { color: var(--dim); }
.ba-col.after li .ic { color: var(--accent); }

/* Sim narrator: drop the over-styled cards, simpler tabs */
.sim-narrator { grid-template-columns: 1fr 1fr 1fr; }
.sim-narrator .phase { padding: 18px 22px; }
.sim-narrator .phase .pname { font-size: 17px; }
.sim-narrator .phase .pdesc { font-size: 11px; color: var(--dim); line-height: 1.5; }
.sim-narrator .phase .phase-range { font-size: 9.5px; color: var(--dim); top: 14px; right: 16px; }
.sim-caption-bar { padding: 14px 24px; }
.sim-caption-bar .cap-left { font-size: 11.5px; }
.sim-caption-bar .cap-right .sc-dot { animation: none; opacity: 0.6; }

/* UI breakdown: tighten */
.ui-bk-cell { padding: 26px 28px; }
.ui-bk-cell .bk-num { color: var(--dim); font-size: 10.5px; letter-spacing: 0.14em; }
.ui-bk-cell .bk-icon { height: 28px; margin-bottom: 14px; opacity: 0.55; }
.ui-bk-cell h4 { font-size: 16px; margin-bottom: 8px; }
.ui-bk-cell p { font-size: 13px; line-height: 1.55; }

/* Outcome cells: smaller */
.outcome-cell { padding: 32px 28px; }
.outcome-cell .v { font-size: 48px; }
.outcome-cell .v .u { font-size: 14px; color: var(--muted); }
.outcome-cell .l { font-size: 10px; letter-spacing: 0.14em; margin-top: 12px; }
.outcome-cell .d { font-size: 11.5px; margin-top: 8px; }

/* Principles: less giant gap, smaller heads */
.prin-row { grid-template-columns: 140px 1fr 1.4fr; gap: 36px; padding: 28px 0; }
.prin-row h3 { font-size: 22px; margin-bottom: 4px; }
.prin-row p { font-size: 14px; line-height: 1.6; }
.prin-row .pnum { font-size: 11px; color: var(--dim); }
.prin-row .ptag { color: var(--dim); font-size: 10px; }

/* Deploy: lighter */
.dp-step { padding: 26px 28px; }
.dp-step h4 { font-size: 17px; }
.dp-step p { font-size: 13.5px; }
.dp-step ul { font-size: 11.5px; }
.dp-step li::before { color: var(--dim); }

/* CTA: drop the radial wash */
.bdr-cta { padding: 56px 48px; background: var(--bg-1); }
.bdr-cta::before { display: none; }
.bdr-cta h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.05; }
.bdr-cta p { font-size: 15px; }
.bdr-cta-actions .bdr-btn { padding: 16px 20px; font-size: 11px; letter-spacing: 0.12em; }

/* Next solution */
.next-sol { padding: 28px 32px; margin-top: 48px; }
.next-sol .ns-l h3 { font-size: 22px; }

/* —— Mesh sim wrapper: less aggressive caption strip animation —— */
.mesh-caption .scenario { color: var(--text); }
.mesh-caption .chip { background: transparent; }
.mesh-caption .chip.accent, .mesh-caption .chip:hover { color: var(--accent); border-color: var(--accent); }

/* —— DDA loop step: simpler —— */
.dda-step .step-idx { color: var(--dim); }

/* —— Hide noisy classification/secondary banners on solution pages —— */
.bdr-hero-top, .pm-hero-top, .ct-hero-top, .tc-hero-top, .ir-hero-top, .wa-hero-top, .wl-hero-top {
  top: 24px; left: 24px; right: 24px;
  font-size: 10px;
}
.bdr-hero-top .cls, .pm-hero-top .cls, .ct-hero-top .cls,
.tc-hero-top .cls, .ir-hero-top .cls, .wa-hero-top .cls, .wl-hero-top .cls { display: none !important; }

/* —— Small helpers used in revised pages —— */
.q-section { padding: 80px 0; }
.q-section + .q-section { border-top: 1px solid var(--line); }
.q-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 36px; align-items: end; }
.q-head .q-eyebrow { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.q-head h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.08; margin: 0; max-width: 18ch; }
.q-head p { font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 52ch; margin: 0; }
@media (max-width: 900px) { .q-head { grid-template-columns: 1fr; gap: 14px; } }
