/* /line: the tracker puck line, station by station. Layered on home.css (2026-10-26). */
.line-hero h1 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20px; text-wrap: balance; }
.line-hero { border-top: 0; padding-top: clamp(32px, 5vw, 64px); }
.legend-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--mute); }
.legend-chips li { display: flex; align-items: center; gap: 8px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; padding: 3px 7px; border: 1px solid currentColor; white-space: nowrap; }
.chip.syn { color: #D7E6F5; } .chip.typ { color: #9FD3A8; } .chip.asm { color: #E8C36A; } .chip.hyp { color: #F08A7E; } .chip.pend { color: #9A9A96; border-style: dashed; }

.line-body { padding-top: 0; }
.line-strip { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.line-strip button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mute); font: inherit; text-align: left; padding: 18px 12px 14px 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-strip button .sid { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }
.line-strip button .snm { font-size: 15px; font-weight: 600; line-height: 1.2; }
.line-strip button:hover { color: var(--ink); }
.line-strip button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }
.line-strip button[aria-pressed="true"] .sid { color: var(--red); }
.line-strip button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.station { padding-top: clamp(28px, 4vw, 48px); }
.st-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.st-head h2 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -0.025em; font-weight: 800; }
.st-head h2 .sid { color: var(--red); font-family: var(--mono); font-size: 0.42em; letter-spacing: 0.1em; vertical-align: middle; margin-right: 14px; }
.st-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); display: flex; gap: 16px; flex-wrap: wrap; }
.st-assembles { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--mute); max-width: 52em; margin: 0 0 22px; }

.focus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border: 1px solid #3A1714; background: #140807; padding: 14px 18px; margin-bottom: 28px; font-size: 15px; }
.focus .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--red); }
.focus b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.focus button { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; cursor: pointer; }

.st-work { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.views { position: relative; aspect-ratio: 1 / 1; background: #0B0B0D; border: 1px solid var(--line); }
.views canvas { display: block; width: 100%; height: 100%; }
.views .vlab { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint); pointer-events: none; }
.views .vlab.q1 { left: 10px; top: 8px; } .views .vlab.q2 { left: calc(50% + 10px); top: 8px; } .views .vlab.q3 { left: 10px; top: calc(50% + 8px); } .views .vlab.q4 { left: calc(50% + 10px); top: calc(50% + 8px); }
.views .xh, .views .xv { position: absolute; background: var(--line); pointer-events: none; }
.views .xh { left: 0; right: 0; top: 50%; height: 1px; } .views .xv { top: 0; bottom: 0; left: 50%; width: 1px; }
.vcap { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vcontrols { display: flex; gap: 8px; margin-top: 12px; }
.vcontrols button { appearance: none; background: none; color: var(--ink); border: 1px solid #3A3A3C; font: inherit; font-size: 13px; padding: 8px 14px; cursor: pointer; }
.vcontrols button:hover { border-color: var(--ink); }
.vcontrols button[aria-pressed="true"] { border-color: var(--red); color: var(--red); }

.sop { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: sop; }
.sop li { border-bottom: 1px solid var(--line); }
.sop button { appearance: none; background: none; border: 0; width: 100%; text-align: left; color: var(--mute); font: inherit; padding: 16px 0 16px 44px; position: relative; cursor: pointer; }
.sop button::before { counter-increment: sop; content: counter(sop, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sop button b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sop button span { font-size: 14.5px; line-height: 1.5; }
.sop li.on button { color: var(--ink); }
.sop li.on button::before { color: var(--red); }
.sop li.on { box-shadow: inset 2px 0 0 var(--red); }
.sop li.on button { padding-left: 52px; } .sop li.on button::before { left: 12px; }
.sop button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 52px); }
.blk { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.blk h3 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red); font-weight: 500; text-transform: uppercase; }
.blk p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--mute); }
.blk .formula { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink); background: #0E0E10; border: 1px solid var(--line); padding: 12px 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--mute); line-height: 1.45; }
.tbl td:first-child { color: var(--ink); }
.tbl td.q { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.tbl td.c { white-space: nowrap; text-align: right; }
.tbl td.f code { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.tbl .steplink { appearance: none; background: none; border: 1px solid #3A3A3C; color: var(--mute); font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; cursor: pointer; white-space: nowrap; }
.tbl .steplink:hover { color: var(--ink); border-color: var(--ink); }
.prov { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; border-top: 1px solid var(--line); padding: 18px 0 0; margin-top: 4px; font-size: 13.5px; color: var(--mute); }
.prov .chip { margin-right: 8px; }

@media (max-width: 980px) {
  .st-work { grid-template-columns: 1fr; }
  .st-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .line-strip { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .line-strip button { scroll-snap-align: start; padding-right: 8px; }
  .line-strip button .snm { font-size: 13px; }
  .tbl td.c { white-space: normal; text-align: left; }
}

/* Variation histograms from an engine run (2026-10-26) */
.var { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); padding-top: 22px; }
.var-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.var-head h3 { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red); font-weight: 500; text-transform: uppercase; }
.var-src { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.var-metric { margin: 12px 0 6px; font-size: 15px; color: var(--mute); }
.var-metric b { color: var(--ink); font-weight: 600; }
.var-metric .r { color: var(--red); }
.var svg { display: block; width: 100%; height: auto; max-width: 900px; }
.var .b-in { fill: #8E8E8A; }
.var .b-out { fill: var(--red); }
.var .lim { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5 4; }
.var .limt { fill: var(--red); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.var .med { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.var .axis { stroke: #3A3A3C; }
.var .tick { fill: var(--faint); font-family: var(--mono); font-size: 11px; }
.var-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); max-width: 60em; }

/* Where Build 01 loses units: Pareto and failure views (2026-10-27) */
.fallout { padding-bottom: clamp(28px, 4vw, 48px); }
.fallout h2 { font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.025em; font-weight: 800; margin: 0 0 14px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 26px; }
.kpis div { padding: 16px 14px 14px 0; display: flex; flex-direction: column; gap: 4px; }
.kpis b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.kpis b.r { color: var(--red); }
.kpis span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pareto { display: flex; flex-direction: column; }
.p-sep { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.p-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) 40px minmax(80px, 2fr) 52px 60px 128px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.p-name { font-size: 16px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.p-name small { font-size: 12.5px; font-weight: 400; color: var(--faint); }
.p-st { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.p-bar { height: 10px; background: #141416; position: relative; }
.p-bar i { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.p-row.esc .p-bar i { background: none; border: 1.5px solid var(--red); }
.p-n { font-family: var(--mono); font-size: 15px; text-align: right; }
.p-pct { font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: right; }
.p-row button, .p-chip, .fv-modes button, .fv-back, .focus button + button { appearance: none; background: none; color: var(--ink); border: 1px solid #3A3A3C; font: inherit; font-size: 13px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.p-row button:hover, .p-chip:hover, .fv-modes button:hover, .fv-back:hover { border-color: var(--ink); }
.p-line { margin: 0; padding: 12px 0; font-size: 14.5px; color: var(--mute); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-foot { margin-top: 16px; max-width: 62em; }
.focus button + button { text-decoration: none; padding: 5px 10px; }

.fv { border-top: 1px solid var(--line); padding-top: 14px; }
.fv-k { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.chip.fail { color: var(--red); }
.fv h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 10px; }
.fv-lead { font-size: 16.5px; line-height: 1.5; color: var(--ink); margin: 0 0 10px; }
.fv-why { font-size: 14.5px; line-height: 1.55; color: var(--mute); margin: 0 0 16px; }
.fv-modes { display: flex; gap: 6px; margin-bottom: 16px; }
.fv-modes button[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
.fv-tbl th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 500; text-align: left; padding: 0 12px 6px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.fv-tbl td.q { color: var(--ink); }
.fv-tbl tr.bad td { color: var(--red); }
.fv-lever { font-size: 14px; line-height: 1.55; color: var(--mute); margin: 16px 0; }
.fv-lever b { color: var(--ink); }
#fvx:empty { display: none; }
.fvx-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); padding-top: 22px; }
.fvx-grid figure { margin: 0; }
.fvx-grid figcaption { font-size: 12.5px; line-height: 1.55; color: var(--faint); margin-top: 8px; }
.fvx-prov { font-size: 13px; color: var(--mute); margin: 14px 0 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tbl td.n { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.tbl .steplink.v { color: var(--red); border-color: #5a1f1a; }

/* engineering drawings and charts */
.dwg { display: block; width: 100%; height: auto; background: #0B0B0D; border: 1px solid var(--line); }
.dwg .hl { stroke: #7d7f84; stroke-width: 1; }
.dwg .hr { stroke: var(--red); stroke-width: 1.2; }
.dwg .cut, .dwg .cuthot { stroke: var(--ink); stroke-width: 1.1; }
.dwg .cuthot { stroke: var(--red); }
.dwg .cut.pcb { stroke: #6fae8a; } .dwg .cut.cell { stroke: #c4c9ce; }
.dwg .beyond { fill: none; stroke: #4a4b4f; stroke-width: 1; stroke-dasharray: 3 3; }
.dwg .ghost { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 4 3; }
.dwg .ghostl { fill: none; stroke: #6d6f74; stroke-width: 1; stroke-dasharray: 3 3; }
.dwg .face { fill: #2a2b2e; stroke: #77797e; stroke-width: 1; }
.dwg .hole { fill: #0B0B0D; stroke: var(--ink); stroke-width: 1.1; }
.dwg .holeo { fill: none; stroke: var(--red); stroke-width: 1.4; }
.dwg .capc { fill: none; stroke: #9FD3A8; stroke-width: 1; stroke-dasharray: 4 4; }
.dwg .vec { fill: none; stroke: var(--red); stroke-width: 1.4; }
.dwg .dot { fill: var(--red); }
.dwg .proj { fill: none; stroke: #c4c9ce; stroke-width: 1; stroke-dasharray: 2 3; }
.dwg .minl { fill: none; stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 3; }
.dwg .bg { fill: #0B0B0D; }
.dwg .ring { fill: none; stroke: #9a9a96; stroke-width: 1; }
.dwg .lead { stroke: #6d6f74; stroke-width: 1; stroke-dasharray: 2 3; }
.dwg .dim { stroke: #d9dbd2; stroke-width: 1; }
.dwg .dim.r { stroke: var(--red); }
.dwg text { white-space: pre; }
.dwg .tx { fill: #d9dbd2; font-family: var(--mono); font-size: 12px; }
.dwg .tx.m { fill: #8e8e8a; font-size: 10.5px; letter-spacing: 0.04em; }
.dwg .tx.r { fill: var(--red); }
.dwg .axis { stroke: #3A3A3C; }
.dwg .tick { stroke: #3A3A3C; stroke-dasharray: 2 3; }
.dwg .crv { fill: none; stroke: #f4f4ef; stroke-width: 1.6; }
.dwg .win { fill: none; stroke: #E8C36A; stroke-width: 1; stroke-dasharray: 5 4; }
.dwg .band { fill: rgba(232, 195, 106, 0.08); }
.dwg .endpt { fill: var(--red); }
.dwg .meas { fill: #0B0B0D; stroke: #f4f4ef; stroke-width: 1.4; }
.dwg .err { stroke: #f4f4ef; stroke-width: 1; }
.dwg .gapfill { fill: rgba(229, 53, 43, 0.14); }
.var .mis { fill: var(--red); }

@media (max-width: 980px) {
  .fvx-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-row { grid-template-columns: minmax(0, 1fr) 36px 48px; grid-template-areas: "name st n" "bar bar pct" "btn btn btn"; gap: 6px 10px; }
  .p-name { grid-area: name; } .p-st { grid-area: st; } .p-n { grid-area: n; } .p-bar { grid-area: bar; } .p-pct { grid-area: pct; } .p-row > button, .p-row > span:last-child { grid-area: btn; justify-self: start; }
}

/* Viewport chrome: corner brackets, view index and a scale bar per orthographic view (2026-10-27) */
.views .vq { position: absolute; width: calc(50% - 16px); height: calc(50% - 16px); pointer-events: none; --c: rgba(242, 242, 239, 0.32); --l: 14px; --t: 1px;
  background: linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat; }
.views .vq.q1 { left: 8px; top: 8px; } .views .vq.q2 { left: calc(50% + 8px); top: 8px; }
.views .vq.q3 { left: 8px; top: calc(50% + 8px); } .views .vq.q4 { left: calc(50% + 8px); top: calc(50% + 8px); }
.views .vlab { color: #8e8e8a; }
.views .vlab.q1 { left: 18px; top: 16px; } .views .vlab.q2 { left: calc(50% + 18px); top: 16px; } .views .vlab.q3 { left: 18px; top: calc(50% + 16px); } .views .vlab.q4 { left: calc(50% + 18px); top: calc(50% + 16px); }
.views .vsb { position: absolute; display: flex; align-items: flex-end; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: #8e8e8a; pointer-events: none; }
.views .vsb i { display: block; height: 5px; border: 1px solid #b9bcb6; border-top: 0; }
.views .vsb.q1 { left: 18px; bottom: calc(50% + 16px); } .views .vsb.q2 { left: calc(50% + 18px); bottom: calc(50% + 16px); }
.views .vsb.q3 { left: 18px; bottom: 16px; } .views .vsb.q4 { left: calc(50% + 18px); bottom: 16px; }
.dwg .tb { fill: none; stroke: #4a4b4f; stroke-width: 1; }
.dwg .tbt { fill: #8e8e8a; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.dwg .tbb { fill: #d9dbd2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }
.dwg .frm { fill: none; stroke: #3a3b3f; stroke-width: 1; }
