/* Supervisual — landing page: its scenes and sections. The shared layer (tokens, base, the mark,
   buttons, the bar and menu, reveals, section heads, the footer) is site.css, loaded first.
   Status is never color alone: every colored mark rides with a glyph and a label. Board data on
   the page is illustrative. */

/* mono label */
.frag-k, .tag, .legend, .trust-k,
.specs dt, .gap-steps .n, .gap-steps .v, .track-steps .n, .scope-n, .scope-meta, .car-tabs .n,
.ba-k, .fig-k, .fig-foot, .ctx-event-k, .ctx-control-k, .row-label span, .field > span {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* tags + pills */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  font-size: 9.5px; color: var(--graphite); white-space: nowrap;
}
.tag-active { color: var(--active-strong); background: var(--active-soft); border-color: var(--active-line); }
.nw { white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  font: 500 12px/1 var(--font); color: var(--ink); white-space: nowrap;
}
.pill-quiet { color: var(--graphite); }

/* ───────────────────────── hero ───────────────────────── */
.stack { position: relative; }
.hero {
  position: sticky; top: 0; z-index: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 18px) 0 24px;
  background: var(--paper);
  overflow: hidden;
}
.hero-main {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: clamp(24px, 5.2vh, 72px);
  position: relative;
}
.hero-title {
  grid-column: 1 / -1; grid-row: 1;
  font-weight: 500;
  font-size: clamp(56px, 10.6vw, 192px);
  line-height: 0.86;
  letter-spacing: -0.078em;
  margin-left: -0.06em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.12em; margin: -0.04em -0.06em -0.12em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.35s var(--ease-out); }
.js .hero-title .line:nth-child(2) > span { transition-delay: 90ms; }
.js .hero.is-in .hero-title .line > span { transform: none; }
.hero-title .period { color: var(--done); }
.hero-side {
  grid-column: 8 / -1; grid-row: 1; align-self: end;
  /* the lede's last line sits on the title's last baseline (within a pixel, 1260 to 2560 wide) */
  padding-bottom: 2px;
  position: relative; z-index: 2;
}
.hero-lede { font-size: clamp(15px, 1.12vw, 18px); line-height: 1.45; color: var(--graphite); max-width: 31em; }
.hero-lede::first-line { color: var(--ink); }
.hero-board { flex: 1; display: flex; flex-direction: column; margin-top: clamp(26px, 5.6vh, 66px); min-height: 260px; }
.hall-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.hero-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 5; }

.hall-tip {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 220px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.5);
  pointer-events: none; opacity: 0;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(0.96);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
  font-size: 12px;
}
.hall-tip.is-on { opacity: 1; transform: translate3d(var(--tx, 0), var(--ty, 0), 0); }
.tip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tip-top b { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.tip-id { font: 9.5px/1 var(--mono); color: var(--graphite); }
.tip-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 500; margin-bottom: 10px; }
.tip-chip[data-s="done"] { color: var(--done-strong); background: var(--done-soft); border-color: var(--done-line); }
.tip-chip[data-s="active"] { color: var(--active-strong); background: var(--active-soft); border-color: var(--active-line); }
.tip-chip[data-s="blocked"] { color: var(--blocked); background: var(--blocked-soft); border-color: var(--blocked-line); }
.tip-chip[data-s="ready"] { color: var(--planned); background: var(--planned-soft); border-color: var(--planned-line); }
.tip-row { display: flex; justify-content: space-between; gap: 8px; color: var(--graphite); margin-top: 4px; }
.tip-row b { color: var(--ink); font-weight: 500; text-align: right; }
.tip-bar { height: 3px; border-radius: 2px; background: var(--silver); overflow: hidden; margin: 6px 0 8px; }
.tip-bar i { display: block; height: 100%; width: 0; background: var(--active); transition: width 0.3s var(--ease); }
.tip-bar i.is-done { background: var(--done); }
.tip-hint { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); font: 400 9.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.tip-hint[hidden] { display: none; }

/* legend (shared) */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; line-height: 1.4; letter-spacing: 0.05em; color: var(--ink); }
.lg, .lt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg i, .lt i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid; display: block; flex: none; }
.lg .glyph { font-size: 10px; }
.lg-done i { background: var(--done-soft); border-color: var(--done-line); }
.lg-done .glyph { color: var(--done); }
.lg-active i { background: var(--active-soft); border-color: var(--active-line); }
.lg-active .glyph { color: var(--active); }
.lg-blocked i { background: var(--blocked-soft); border-color: var(--blocked-line); }
.lg-blocked .glyph { color: var(--blocked); }
.lg-ready i { background: var(--planned-soft); border-color: var(--planned-line); }
.lg-ready .glyph { color: var(--planned); }
.lg-none i { background: var(--silver); border-color: var(--line); }
.lt-pdu i { background: #f7efe3; border-color: #dcc6a6; }
.lt-hac i { background: #eef2f7; border-color: #a8bacd; }
.lt-rpp i { background: #f2edf8; border-color: #c4b3de; }

/* ───────────────────────── 01 the gap ───────────────────────── */
.gap {
  position: relative; z-index: 1;
  height: 360vh;
  border-radius: 28px 28px 0 0;
  margin-top: -1px;
}
.gap-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; border-radius: inherit; }
.gap-grid {
  height: 100%;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center;
  padding-top: var(--nav-h);
}
.gap-copy { grid-column: 1 / 6; position: relative; z-index: 2; }
.gap .sec-ref { color: #fff; }
.gap-title {
  font-weight: 500; font-size: clamp(40px, 5.2vw, 92px); line-height: 0.9; letter-spacing: -0.066em;
  margin: 18px 0 22px; max-width: 9em;
}
.gap-lede { color: var(--ink-text); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; max-width: 33em; }
.gap-steps { margin-top: 26px; border-top: 1px solid var(--ink-line); }
.gap-steps li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--ink-line);
  color: var(--ink-dim); transition: color 0.45s var(--ease);
}
.gap-steps .k { font-size: 15px; letter-spacing: -0.01em; }
.gap-steps .n, .gap-steps .v { font-size: 10px; }
.gap-steps li.is-on { color: #fff; }
.gap-steps li.is-on .n { color: var(--active-line); }
.gap-desk { grid-column: 6 / -1; position: relative; height: min(76vh, 680px); }
.frag {
  position: absolute; left: var(--x); top: var(--y);
  background: #fff; color: var(--ink);
  border-radius: 8px; padding: 12px;
  box-shadow: 0 40px 70px -36px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--r));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  font-size: 11px;
}
.frag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: var(--dim, 0); pointer-events: none; }
.frag-msg::after { inset: -4px; border-radius: 16px; }
.frag-k { font-size: 8.5px; line-height: 1.3; letter-spacing: 0.07em; color: var(--graphite); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frag-gantt { width: 34%; }
.gantt-mini { display: grid; gap: 5px; }
.gantt-mini span { display: block; height: 7px; border-radius: 2px; background: var(--ink); margin-left: calc(var(--s) * 100%); width: calc(var(--w) * 100%); }
.gantt-mini span:nth-child(3n) { background: var(--edge); }
.frag-pdf { width: 38%; }
.pdf-svg { width: 100%; height: auto; }
.frag-photo { width: 17%; padding: 6px 6px 8px; }
.frag-photo .frag-k { margin: 7px 2px 0; font-size: 7.5px; }
.photo {
  display: block; aspect-ratio: 4 / 3; border-radius: 3px;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.35) 52.3%, transparent 53%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 12% 100%,
    radial-gradient(120% 90% at 50% 40%, #8f8f8f, #2b2b2b 70%);
}
.ph-b { background:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.12) 40.5%, transparent 46%),
    repeating-linear-gradient(90deg, #4a4a4a 0 9%, #3a3a3a 9% 10%),
    #444; }
.ph-c { background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 40%),
    conic-gradient(from 200deg at 60% 60%, #7d7d7d, #3d3d3d, #9a9a9a, #555, #7d7d7d); }
.frag-notes { width: 30%; background: #fbfbf7; padding: 12px 14px; }
.frag-notes p {
  font-size: 10.5px; line-height: 20px; font-style: italic; color: #333;
  border-bottom: 1px solid #e4e4dc;
}
.frag-notes .scribble { color: var(--blocked); text-decoration: line-through; text-decoration-color: rgba(179, 50, 50, 0.5); }
.frag-sheet { width: 34%; padding: 10px; }
.frag-sheet table { width: 100%; border-collapse: collapse; font: 9px/1 var(--mono); }
.frag-sheet th, .frag-sheet td { border: 1px solid var(--line); padding: 4px; text-align: center; height: 18px; }
.frag-sheet th { background: var(--silver); font-weight: 500; }
.frag-sheet td:first-child, .frag-sheet th:first-child { text-align: left; }
.frag-msg { width: 26%; background: transparent; box-shadow: none; padding: 0; display: grid; gap: 6px; }
.bubble { padding: 8px 12px; border-radius: 14px; font-size: 11px; line-height: 1.3; width: fit-content; max-width: 100%; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8); }
.bubble.in { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.out { background: #3a3a3a; color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.frag-report { width: 20%; padding: 12px; display: grid; gap: 6px; }
.frag-report .ln { display: block; height: 4px; border-radius: 2px; background: var(--hover); }
.ln.w9 { width: 90%; } .ln.w8 { width: 80%; } .ln.w7 { width: 70%; } .ln.w6 { width: 60%; }
.ph-slot { border: 1px dashed var(--edge); border-radius: 3px; height: 34px; display: grid; place-items: center; font: 8px/1 var(--mono); color: var(--edge); text-transform: uppercase; letter-spacing: 0.06em; }

.gap-sheet {
  position: absolute; inset: 0; z-index: 3;
  background: #fff;
  clip-path: inset(50% 50% 50% 50% round 14px);
  pointer-events: none;
  display: grid; place-items: center;
}
.gap-mini { width: min(560px, 62vw); }
.gap-cells { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.gap-cells i { display: block; aspect-ratio: 1.3; border-radius: 2px; background: var(--hover); transition: background-color 0.45s var(--ease); }
.gap-cells i.s-done { background: var(--done); }
.gap-cells i.s-active { background: var(--active); }
.gap-cells i.s-blocked { background: var(--blocked); }
.gap-cells i.s-ready { background: var(--planned-line); }
/* any other scope is the hero's drawing at sheet size: its shapes and colors, and of its words
   only the drawing's own notation (grid bubbles, the north arrow) */
.gap-scene { display: block; width: 100%; height: auto; overflow: visible; }
.gap-mini:not([data-board="equipment"]) .gap-cells, .gap-mini[data-board="equipment"] .gap-scene { display: none; }
.gap-scene text:not(.sc-note), .gap-scene .sc-label, .gap-scene .flow { display: none; }
.gap-scene .sc-note { font: 400 9px/1 var(--mono); letter-spacing: 0.06em; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.gap-scene .tr { transition: fill 0.35s var(--ease), stroke 0.35s var(--ease), opacity 0.35s var(--ease); }
.gap-resolve {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--pad) 0;
  width: min(100%, calc(var(--maxw) + 2 * var(--pad))); margin-inline: auto;
  color: var(--ink);
  opacity: 0; pointer-events: none;
}
.gap-resolve-k { font: 400 11px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--graphite); }
.gap-resolve-title {
  font-weight: 500; font-size: clamp(40px, 6vw, 108px); line-height: 0.9; letter-spacing: -0.068em;
  margin: 18px 0 clamp(32px, 6vh, 64px); max-width: 11em;
}
.gap-resolve-title .period { color: var(--done); }
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); position: relative; }
.chain li {
  position: relative; padding: 16px 16px 0 0;
  font-weight: 500; font-size: clamp(15px, 1.35vw, 22px); letter-spacing: -0.03em; line-height: 1.15;
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.chain li::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 2px;
  background: var(--ink);
}
.chain li:last-child::before { background: var(--done); }
.chain li:not(:last-child)::after { content: "→"; position: absolute; right: 18px; top: 16px; color: var(--edge); font-weight: 400; }
.chain .n { display: block; font: 400 10px/1 var(--mono); letter-spacing: 0.09em; color: var(--graphite); margin-bottom: 8px; }
.gap-resolve.is-chain .chain li { opacity: 1; transform: none; }

/* ───────────────────────── sections ───────────────────────── */
.sec { position: relative; padding: clamp(96px, 12vw, 190px) 0; background: var(--paper); }

.specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: clamp(32px, 4vw, 56px);
}
.specs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.specs > div { border-top: 1px solid var(--line); padding-top: 14px; }
.specs dt { font-size: 10.5px; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--graphite); max-width: 24em; }

/* ───────────────────────── hero · scope carousel ───────────────────────── */
.car-stage { position: relative; flex: 1; min-height: 220px; isolation: isolate; }
.car-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.car-slide.is-on { visibility: visible; opacity: 1; z-index: 1; }
.car-slide.is-in { z-index: 2; animation: carIn 0.95s var(--ease-out) both; }
.car-slide.is-out { visibility: visible; opacity: 1; z-index: 1; animation: carOut 0.95s var(--ease-out) both; }
@keyframes carIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes carOut { to { opacity: 0; transform: translate3d(-1.5%, 0, 0); } }
.car-scan { position: absolute; top: -6px; bottom: -6px; left: 0; width: 1px; background: var(--ink); z-index: 3; opacity: 0; pointer-events: none; }
.car-scan.is-run { animation: carScan 0.95s var(--ease-out) both; }
@keyframes carScan { from { transform: translate3d(0, 0, 0); opacity: 1; } 85% { opacity: 1; } to { transform: translate3d(var(--w, 100vw), 0, 0); opacity: 0; } }
.hall-frame { position: absolute; inset: 0; }

.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; fill: var(--graphite); }
.scene .t-ink { fill: var(--ink); }
.scene .t-mid { text-anchor: middle; dominant-baseline: central; }
.scene .t-num { font-family: var(--font); font-weight: 700; letter-spacing: 0; text-anchor: middle; dominant-baseline: central; }
.scene .tr { transition: fill 0.6s var(--ease), stroke 0.6s var(--ease), opacity 0.6s var(--ease); }
.scene .rise { opacity: 0; transform: translate3d(0, 6px, 0); transform-box: fill-box; transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.car-slide.is-play .scene .rise { opacity: 1; transform: none; }
.scene .ping { transform-box: fill-box; transform-origin: center; animation: scPing 1s var(--ease-out) both; pointer-events: none; }
@keyframes scPing { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.scene .live { animation: scLive 1.6s var(--ease) infinite alternate; }
@keyframes scLive { to { opacity: 0.55; } }
.scene .flow { stroke-dasharray: 3 7; animation: scFlow 0.9s linear infinite; }
@keyframes scFlow { to { stroke-dashoffset: -10; } }

.car-cap { display: grid; gap: 10px; margin-top: 12px; }
.car-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: clamp(8px, 1vw, 16px); }
.car-tabs button {
  position: relative; display: flex; align-items: baseline; gap: 8px; min-width: 0;
  padding: 11px 0 2px; border: 0; background: none; text-align: left;
  font: 500 13px/1.2 var(--font); letter-spacing: -0.01em; color: var(--graphite);
  white-space: nowrap; transition: color 0.3s var(--ease);
}
.car-tabs button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.car-tabs button:hover, .car-tabs button[aria-selected="true"] { color: var(--ink); }
.car-tabs .n { font-size: 10px; color: var(--edge); transition: color 0.3s; }
.car-tabs button[aria-selected="true"] .n { color: var(--done); }
.car-tabs .t { overflow: hidden; text-overflow: ellipsis; }
.car-prog { position: absolute; left: 0; right: 0; top: -0.5px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.car-meta { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.car-title { flex: 1 1 260px; min-width: 0; }
.car-title b { font-weight: 500; }
.car-meta .legend { transition: opacity 0.3s var(--ease); }
.car-meta .lg i { border: 0; }
.car-meta .lg-done i { background: var(--done); }
.car-meta .lg-active i { background: var(--active); }
.car-meta .lg-blocked i { background: var(--blocked); }
.car-meta .lg-ready i { background: var(--planned-line); }
.car-meta .lg-none i { background: var(--hover); }
.ramp { display: inline-flex; gap: 1px; }
.ramp b { display: block; width: 12px; height: 12px; border-radius: 2px; font: 700 7.5px/12px var(--font); text-align: center; letter-spacing: 0; }
.car-pause {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: border-color 0.25s;
}
.car-pause:hover { border-color: var(--ink); }
.car-pause-i { display: inline-flex; align-items: center; gap: 2px; width: 8px; height: 9px; }
.car-pause-i i { display: block; width: 2.5px; height: 9px; border-radius: 1px; background: currentColor; }
.car-pause[aria-pressed="true"] .car-pause-i i:first-child { width: 0; height: 0; border-radius: 0; background: none; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.car-pause[aria-pressed="true"] .car-pause-i i:last-child { display: none; }
.no-js .car-tabs, .no-js .car-pause { display: none; }

/* ───────────────────────── 02 plan · before / after ───────────────────────── */
.ba { display: grid; grid-template-columns: minmax(0, 5fr) auto minmax(0, 7fr); gap: clamp(12px, 1.6vw, 24px); align-items: stretch; }
.ba-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
/* side by side, the plan sets the row's height; the sheet takes it and scrolls inside, as a spreadsheet window does */
.ba-before { contain: size; }
.ba-k { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--graphite); }
.ba-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--graphite); }
.ba-tag-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.ba-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-top: 34px; font: 400 9.5px/1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--graphite); }
.ba-arrow span { writing-mode: vertical-rl; transform: rotate(180deg); }
.ba-arrow i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 18px; transition: transform 0.9s var(--ease-out); }
.js .ba:not(.is-run) .ba-arrow i { transform: scale(0.4) rotate(-90deg); }

/* the "before": a P6 export, opened in a spreadsheet — P6's banding, in the page's own blue and green */
.xl {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid #c8c8c8; border-radius: var(--radius-card); background: #fff; overflow: hidden;
  font-family: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif; color: #1b1b1b;
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.35);
}
.xl-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #f2f2f2; border-bottom: 1px solid #d4d4d4; font-size: 12px; color: #444; }
.xl-dots { display: inline-flex; gap: 6px; }
.xl-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d2d2d2; }
.xl-file { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-fx { display: grid; grid-template-columns: 52px 28px minmax(0, 1fr); align-items: stretch; height: 26px; border-bottom: 1px solid #d4d4d4; font-size: 11.5px; color: #333; }
.xl-fx > span { display: flex; align-items: center; }
.xl-ref { padding-left: 10px; border-right: 1px solid #d4d4d4; font-variant-numeric: tabular-nums; }
.xl-f { justify-content: center; border-right: 1px solid #d4d4d4; font-style: italic; color: #8a8a8a; }
.xl-val { padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-grid { flex: 1; display: flex; flex-direction: column; overflow: auto; overscroll-behavior-x: contain; font-size: 10.5px; }
.xl-table { flex: none; min-width: 520px; background: #fff; }
/* the sheet runs on past the last row, as a sheet does: blank numbered rows fill what is left */
.xl-fill { flex: 1 1 0; min-height: 0; min-width: 520px; overflow: hidden; }
.xl-row { display: grid; grid-template-columns: 24px 74px minmax(108px, 1fr) 64px 75px 75px 50px 50px; align-items: stretch; height: 23px; border-bottom: 1px solid #dcdcdc; }
.xl-row > span { display: flex; align-items: center; min-width: 0; padding: 0 4px; border-right: 1px solid #dcdcdc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-row > span.r { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.xl-row > span:first-child { justify-content: center; padding: 0; background: #ececec; color: #555; font-size: 10px; }
.xl-head { height: 40px; background: #ececec; color: #333; font-size: 10px; line-height: 1.12; }
.xl-head > span { white-space: normal; align-items: flex-end; padding: 0 3px 4px; }
.xl-proj { background: var(--planned); color: #fff; font-weight: 700; }
.xl-wbs { background: var(--done-soft); color: var(--done-strong); font-weight: 700; cursor: pointer; }
.xl-proj > span:first-child, .xl-wbs > span:first-child { background: #ececec; color: #555; font-weight: 400; }
.xl-proj > span, .xl-wbs > span { border-right-color: rgba(0, 0, 0, 0.12); }
.xl-span { grid-column: 2 / 5; gap: 6px; }
.xl-act { cursor: default; transition: background-color 0.2s; }
.xl-act:hover, .xl-act.is-hl { background: var(--planned-soft); }
.xl-wbs.is-hl { background: color-mix(in srgb, var(--done) 20%, #fff); }
.xl-tog { flex: none; display: inline-grid; place-items: center; width: 11px; height: 11px; border: 1px solid #555; background: #fff; color: #222; font: 700 9px/1 var(--mono); }
.xl-ic { flex: none; width: 13px; height: 7px; border-radius: 2px; background: var(--planned); margin-right: 4px; }
.xl-ic-g { background: var(--done); }
.xl-kids { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out); }
.xl-kids > div { overflow: hidden; min-height: 0; }
.xl-kids.is-shut { grid-template-rows: 0fr; }
.xl-row > span.is-sel { outline: 2px solid var(--done); outline-offset: -2px; }

/* the "after": the same dates on the halls */
.halls { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.hall {
  min-width: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .ba:not(.is-run) .hall { opacity: 0; transform: translate3d(0, 16px, 0); }
.hall.is-hl { border-color: var(--ink); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.45); }
.hall-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px 8px; border-bottom: 1px solid var(--line); }
.hall-h b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.hall-h span { font: 400 10px/1 var(--mono); letter-spacing: 0.02em; color: var(--done); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hall-scroll {
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.hall-scroll::-webkit-scrollbar { display: none; }
.hall-scroll.is-end { -webkit-mask-image: none; mask-image: none; }
.hall-grid { display: flex; gap: 8px; width: max-content; }
.hg { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 22px); grid-auto-columns: 31px; gap: 3px; }
.hg + .hg { padding-left: 8px; border-left: 2px solid var(--line); }
.hc {
  display: grid; place-items: center; border-radius: 3px; border: 1.5px solid;
  font: 600 8.5px/1 var(--mono); color: #3b3b3b; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  outline: 1.5px solid transparent; outline-offset: 1px;
  transition: opacity 0.3s var(--ease), outline-color 0.2s var(--ease);
}
.hc.t-pdu { background: #f7efe3; border-color: #dcc6a6; }
.hc.t-hac { background: #eef2f7; border-color: #a8bacd; }
.hc.t-rpp { background: #f2edf8; border-color: #c4b3de; }
.hc .d { opacity: 0; transform: translate3d(0, 3px, 0); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out); }
.hc.is-dated .d { opacity: 1; transform: none; }
.halls.is-linking .hc { opacity: 0.3; }
.halls.is-linking .hc.is-hl { opacity: 1; outline-color: var(--ink); }
.halls-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.halls-hint { font: 400 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ───────────────────────── 03 track · the glasses, then the walk ───────────────────────── */
/* one sticky scene in two acts; track.js drives --key (the legend), --app (the phone, or the
   app strip) and --plan (Fig. 4) from 0 to 1 across the hand-off */
.track { position: relative; height: 620vh; background: var(--silver); --key: 1; --app: 0; --plan: 0; }
.track-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: var(--nav-h); }
.track-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; width: min(100% - 2 * var(--pad), var(--maxw)); }
.track-copy { grid-column: 1 / 5; }
.track-title { font-weight: 500; font-size: clamp(36px, 4.3vw, 74px); line-height: 0.92; letter-spacing: -0.066em; margin: 16px 0 26px; }
.track-steps { border-top: 1px solid var(--line); }
.track-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--graphite); transition: color 0.45s var(--ease); }
.track-steps .n { font-size: 10px; padding-top: 4px; }
.track-steps b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -0.025em; }
.track-steps p { font-size: 14px; line-height: 1.5; color: var(--graphite); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.45s var(--ease), margin 0.6s var(--ease-out); }
.track-steps li.is-on { color: var(--ink); }
.track-steps li.is-on .n { color: var(--done); }
.track-steps li.is-on p { max-height: 96px; opacity: 1; margin-top: 6px; }
.no-js .track-steps p { max-height: none; opacity: 1; margin-top: 6px; }
.track-note, .sec-note { margin-top: 18px; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--graphite); }
.track-stage { grid-column: 5 / -1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(14px, 1.8vw, 28px); align-items: center; }
.fig {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px 14px; container-type: inline-size;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.35);
}
.fig-k { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 10px; color: var(--graphite); }
.fig-k > :first-child { color: var(--ink); }
/* a caption that turns over between the acts: both lines share one cell */
.swap { display: inline-grid; min-width: 0; }
.swap > span { grid-area: 1 / 1; min-width: 0; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out); }
.swap > span + span { opacity: 0; transform: translate3d(0, 5px, 0); }
.swap-end { justify-items: end; text-align: right; }
.track.is-walk .swap > span:first-child { opacity: 0; transform: translate3d(0, -5px, 0); }
.track.is-walk .swap > span + span { opacity: 1; transform: none; }
/* the figure's room follows its width (the drawing's aspect), up to what the screen allows */
.fig-body { position: relative; container: walkbox / size; height: min(52vh, 440px); height: min(calc(100svh - var(--nav-h) - 196px), calc(100cqw * 0.6333)); }
.fig-host { position: absolute; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; contain: size; opacity: calc(1 - var(--plan)); }
.fig-host > img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
/* the inline drawing's own layer: sized (never scaled) by track.js, over the phone when it docks */
.gl-flight { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.gl-flight > svg { position: absolute; left: 0; top: 0; max-width: none; }
.fig-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; color: var(--graphite); }
.fig-readout { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* on desktop the phone stands over the figure's right edge; what the figure prints there steps
   aside as the phone arrives (--ov, measured by walk.js) */
.fig-k > .swap-end, .fig-readout { translate: calc(var(--ov, 0px) * var(--app) * -1) 0; }
.fig-lg { gap: 4px 11px; font: 500 10px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--graphite); flex-wrap: nowrap; }
.fig-lg .lg i { width: 10px; height: 10px; border-width: 1.2px; }
.fig-hint-2 .hint-txt { display: none; }
.fig-legend { display: grid; gap: 2px; opacity: var(--key); transform: translate3d(calc((1 - var(--key)) * 14px), 0, 0); }
.fig-legend button {
  display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 7px 12px 7px 10px;
  border: 0; border-radius: var(--radius-pill); background: transparent; text-align: left; white-space: nowrap;
  font: 500 13px/1.2 var(--font); letter-spacing: -0.01em; color: var(--graphite);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.fig-legend .n { font: 400 10px/1 var(--mono); letter-spacing: 0.09em; color: var(--edge); transition: color 0.25s; }
.fig-legend button:hover, .fig-legend button.is-on { color: var(--ink); background: #fff; }
.fig-legend button.is-on .n { color: var(--done); }

/* act two · Fig. 4: Hall B, the route and the captures */
.fig-walk { position: absolute; inset: 0; opacity: var(--plan); pointer-events: none; --ws: 1; }
.fig-walk.is-none { visibility: hidden; }
.walk-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.walk-svg text { font-family: var(--mono); }
.wp-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 6 5; }
.wp-bub circle { fill: #fff; stroke: var(--edge); }
.wp-bub text { font-size: 10px; font-weight: 500; fill: var(--graphite); text-anchor: middle; }
.wp-hatch { stroke: var(--line); stroke-width: 1.6; }
.wp-dead rect { fill: var(--active-soft); stroke: var(--active-line); stroke-width: calc(1.2px * var(--ws)); stroke-dasharray: 5 4; }
.wp-dead text { font-size: 9.5px; font-weight: 600; letter-spacing: 1.2px; fill: var(--active-strong); }
.wp-room rect, .wp-room circle { fill: #fff; stroke: var(--edge); stroke-width: 1.2; }
.wp-pipe { fill: none; stroke: var(--edge); stroke-width: 1.2; opacity: 0.6; }
.wp-tag text { font-size: 9.5px; letter-spacing: 0.6px; fill: var(--graphite); }
.wp-wall { fill: none; stroke: var(--ink); stroke-linecap: square; }
.wp-wall path:first-child { stroke-width: calc(5px * var(--ws)); }
.wp-wall path + path { stroke-width: calc(2.5px * var(--ws)); }
.wp-door { fill: none; stroke: var(--edge); stroke-width: 1.1; }
.wp-name text { font-size: 11px; font-weight: 600; letter-spacing: 1.3px; fill: var(--ink); }
.w-route { fill: none; stroke: var(--edge); stroke-width: calc(2px * var(--ws)); stroke-dasharray: 1 calc(7px * var(--ws)); stroke-linecap: round; }
.w-walked { fill: none; stroke: var(--ink); stroke-width: calc(2.5px * var(--ws)); stroke-linecap: round; stroke-linejoin: round; }
.w-u { stroke-width: 1.2; transition: stroke 0.3s var(--ease); }
.w-u.s-done { fill: var(--done-soft); stroke: var(--done-line); }
.w-u.s-active { fill: var(--active-soft); stroke: var(--active-line); }
.w-u.s-blocked { fill: var(--blocked-soft); stroke: var(--blocked-line); }
.w-u.s-ready { fill: var(--planned-soft); stroke: var(--planned-line); }
.w-u.s-none { fill: var(--silver); stroke: var(--line); }
.w-u.is-here { stroke: var(--ink); stroke-width: calc(2.4px * var(--ws)); }
.walker { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; will-change: transform; }
.walker i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.walker::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(23, 23, 23, 0.12); }
@media (prefers-reduced-motion: no-preference) { .walker::before { animation: walkPulse 2s var(--ease-out) infinite; } }
@keyframes walkPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.walker.is-end::before { visibility: hidden; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.pin-dot {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, 0.3);
  transform: scale(0); transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.pin.is-on .pin-dot { transform: scale(1); }
/* captured with no signal: hollow until it syncs */
.pin.is-queued .pin-dot { background: #fff; color: var(--active-strong); box-shadow: inset 0 0 0 1.5px var(--active), 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, 0.22); }
.pin-card {
  position: absolute; left: 16px; top: -14px; width: 188px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 9px;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.45);
  font-size: 11px; line-height: 1.35;
  opacity: 0; transform: translate3d(-6px, 0, 0); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out);
}
.pin.is-left .pin-card { transform: translate3d(6px, 0, 0); }
.pins.is-tiny .pin-card, .pin.is-mute .pin-card { visibility: hidden; }
/* a card short of room drops its waveform and who took it (walk.js) */
.pin.is-compact .pin-wave, .pin.is-compact .pin-by { display: none; }
.pin.is-card .pin-card { opacity: 1; transform: none; }
.pin-card b { display: block; font: 500 9px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--graphite); margin-bottom: 3px; }
.pin-card strong { display: block; font-weight: 600; font-size: 11.5px; margin-bottom: 1px; }
.pin-card q { quotes: "“" "”"; font-style: italic; color: #333; }
.pin-wave { display: flex; align-items: center; gap: 2px; height: 14px; margin-top: 5px; }
.pin-wave i { display: block; width: 2px; border-radius: 1px; background: var(--ink); }
.pin-sync { display: grid; margin-top: 6px; font: 500 10px/1.2 var(--font); font-style: normal; }
.pin-sync span { grid-area: 1 / 1; transition: opacity 0.3s var(--ease); }
.pin-sync span:first-child { color: var(--active-strong); opacity: 0; }
.pin-sync span + span { color: var(--done-strong); }
.pin.is-queued .pin-sync span:first-child { opacity: 1; }
.pin.is-queued .pin-sync span + span { opacity: 0; }

/* the unit's status as the app shows it: glyph and label, never the color alone */
.st { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--radius-pill); background: #fff; color: var(--graphite); font: 500 10px/1 var(--font); white-space: nowrap; flex: none; }
.st:empty { display: none; }
.st-done { background: var(--done-soft); color: var(--done-strong); }
.st-active { background: var(--active-soft); color: var(--active-strong); }
.st-blocked { background: var(--blocked-soft); color: var(--blocked); }
.st-ready { background: var(--planned-soft); color: var(--planned); }
.ph-sync { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--silver); font: 500 10.5px/1 var(--font); white-space: nowrap; transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.ph-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--done); flex: none; transition: background-color 0.35s var(--ease); }
.ph-sync.is-off { background: var(--active-soft); color: var(--active-strong); }
.ph-sync.is-off i { background: var(--active); }
.ph-sync.is-ing i { background: var(--edge); }
.ph-sync.is-ok { background: var(--done-soft); color: var(--done-strong); }

/* the phone app (desktop), with the glasses docked in its Glasses card */
.phone {
  position: absolute; right: 0; top: 50%; z-index: 4; pointer-events: none;
  height: min(calc(100svh - var(--nav-h) - 48px), clamp(470px, 37vw, 560px)); aspect-ratio: 9 / 18.6;
  background: var(--ink); border-radius: 40px; padding: 8px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px #3a3a3a;
  opacity: var(--app); transform: translate3d(calc((1 - var(--app)) * 36px), -50%, 0);
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); background: #000; border-radius: 12px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 0 24px; font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.ph-sig { display: flex; gap: 2px; align-items: flex-end; }
.ph-sig i { width: 3px; border-radius: 1px; background: var(--ink); transition: background-color 0.3s var(--ease); }
.ph-sig i:nth-child(1) { height: 4px; } .ph-sig i:nth-child(2) { height: 7px; } .ph-sig i:nth-child(3) { height: 10px; }
.phone.is-offline .ph-sig i { background: var(--line); }
.ph-app { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 18px 12px 12px; min-height: 0; }
.ph-title { font-weight: 500; font-size: 19px; letter-spacing: -0.045em; margin-bottom: 1px; }
.ph-card { border-radius: 11px; background: var(--silver); padding: 9px 10px; font-size: 11px; line-height: 1.3; }
.ph-glasses { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; }
.ph-dock { display: block; width: 64px; height: 38px; }
.ph-glasses b { display: block; font-size: 11.5px; font-weight: 600; }
.ph-glasses em { display: block; font-style: normal; color: var(--graphite); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-done { background: var(--done); }
.ph-loc { display: grid; gap: 2px; }
.ph-k { font: 400 8.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.ph-here { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.ph-here b { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.ph-act { font-size: 11px; }
.ph-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ph-btn { height: 30px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; font: 500 11px/1 var(--font); transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.ph-btn.is-press { transform: scale(0.94); background: var(--ink); color: #fff; border-color: var(--ink); }
.ph-eod { display: none; grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); }
.phone.is-ended .ph-btn { display: none; }
.phone.is-ended .ph-eod { display: grid; }
.ph-list-k { display: flex; justify-content: space-between; font: 400 8.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-top: 3px; }
.ph-list-k b { color: var(--ink); font-weight: 500; }
.ph-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.ph-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; align-items: center; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 10px; line-height: 1.25; }
.ph-list li.is-new { animation: phIn 0.5s var(--ease-out) both; }
.ph-list li .photo { width: 30px; height: 22px; aspect-ratio: auto; border-radius: 4px; }
.ph-list li .ph-ic { width: 30px; height: 22px; border-radius: 4px; background: var(--silver); display: grid; place-items: center; }
.ph-list li > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-list li small { display: block; font: 8.5px/1.3 var(--mono); color: var(--graphite); overflow: hidden; text-overflow: ellipsis; }
.ph-list li em { font-style: normal; }
.ph-list li.is-q em::before { content: " · Queued"; color: var(--active-strong); }
.ph-list.is-synced li.is-q em::before { content: " · ✓ Synced"; color: var(--done-strong); }
.ph-app > .ph-sync { align-self: flex-start; }

/* the app strip (tablets and phones): the same app in one row under the plan */
.wband { display: none; }

/* the day's report, out of the app when the walk ends */
.report {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; width: min(320px, 56%);
  background: #fff; border-radius: var(--radius-card); border: 1px solid var(--line);
  box-shadow: 0 40px 70px -36px rgba(0, 0, 0, 0.45);
  padding: 16px 18px 18px; opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.report-k { display: flex; justify-content: space-between; font: 400 9.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--graphite); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.report-title { font-weight: 500; font-size: 22px; letter-spacing: -0.05em; line-height: 1; margin: 12px 0; }
.report-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.report-stats dt { font: 400 8.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 4px; }
.report-stats dd { font: 500 22px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.report-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.report-line { font-size: 11.5px; line-height: 1.45; color: #333; }
/* a short figure keeps the report inside it: the photos go first, then the quoted line */
@container walkbox (max-height: 300px) { .report-photos { display: none; } }
@container walkbox (max-height: 215px) { .report-line { display: none; } }
@container walkbox (max-height: 140px) { .report { display: none; } }

/* ───────────────────────── 04 adjust · the whole-project agent ───────────────────────── */
.ctx { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 50px 90px -60px rgba(0, 0, 0, 0.32); }
.ctx-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.ctx-event { display: flex; flex-direction: column; gap: 5px; }
.ctx-event-k { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--active-strong); }
.ctx-event-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--active); }
.ctx-event b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.ctx-control { display: flex; align-items: center; gap: 14px; }
.ctx-control-k { font-size: 10.5px; color: var(--graphite); }
.ctx-slip { min-width: 58px; font: 500 22px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 180px; height: 24px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--edge); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--edge); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8.5px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--ink); transition: background-color var(--dur), transform var(--dur);
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { background: var(--ink); transform: scale(1.1); }
input[type="range"]:hover::-moz-range-thumb { background: var(--ink); }

.ctx-body { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 34%); }
.ctx-chart-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.ctx-chart { --label-w: 214px; --days: 24; position: relative; min-width: 780px; }
.ctx-head { display: grid; grid-template-columns: var(--label-w) repeat(var(--days), minmax(0, 1fr)); height: 46px; border-bottom: 1px solid var(--line); }
.ctx-head-k { position: sticky; left: 0; z-index: 5; display: flex; align-items: center; margin-bottom: -1px; padding-left: 20px; border-bottom: 1px solid var(--line); background: #fff; font: 400 10px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--graphite); }
.ctx-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 400 10px/1 var(--mono); color: var(--graphite); font-variant-numeric: tabular-nums; }
.ctx-day small { font-size: 8.5px; letter-spacing: 0.06em; }
.ctx-day.is-week { border-left: 1px solid var(--line); }
.ctx-day.is-today { color: var(--ink); font-weight: 700; }
.ctx-rows { position: relative; }
.ctx-cols { position: absolute; top: 0; bottom: 0; left: var(--label-w); right: 0; display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); pointer-events: none; }
.ctx-cols span.is-off { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0, 0, 0, 0.06) 4px 5px); }
.ctx-cols span.is-hol { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(165, 104, 18, 0.15) 4px 5px); }
.ctx-cols span.is-week { border-left: 1px solid var(--line); }
.ctx-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--ink); pointer-events: none; z-index: 4; }
.ctx-today::before { content: "Today"; position: absolute; top: 4px; left: 0; transform: translateX(-50%); padding: 3px 6px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font: 500 8.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ctx-contract { position: absolute; top: 46px; bottom: 0; width: 0; border-left: 1.5px dashed var(--blocked); pointer-events: none; z-index: 2; }
.ctx-contract span { position: absolute; top: 5px; left: 6px; padding: 3px 7px; border-radius: var(--radius-pill); background: var(--blocked-soft); border: 1px solid var(--blocked-line); color: var(--blocked); font: 500 8.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.ctx-contract.is-flip span { left: auto; right: 6px; }
.lane { position: relative; display: flex; align-items: stretch; height: 26px; background: var(--silver); border-bottom: 1px solid var(--line); font: 400 9.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
.lane i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color 0.3s; }
.lane.is-talk i { background: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.12); }
/* where the chart scrolls sideways (phones), activity labels and lane names hold still */
.lane-n { position: sticky; left: 0; z-index: 5; display: inline-flex; align-items: center; gap: 8px; width: var(--label-w); margin-bottom: -1px; padding-left: 20px; border-bottom: 1px solid var(--line); background: var(--silver); }
.row { position: relative; display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); height: 40px; border-bottom: 1px solid var(--line); }
.row-label { position: sticky; left: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; gap: 4px; margin-bottom: -1px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); background: #fff; }
.row-label b { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-label span { font-size: 9px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-track { position: relative; }
.wit { position: absolute; top: 0; bottom: 0; background: rgba(23, 23, 23, 0.045); pointer-events: none; }
.wit::after { content: "W"; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); font: 600 7px/1 var(--mono); letter-spacing: 0.04em; color: var(--edge); }
.bar {
  position: absolute; top: 9px; height: 22px; left: 0; width: 0; z-index: 3;
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
  border-radius: 6px; border: 1px solid var(--edge); background: var(--silver); color: var(--ink);
  font: 500 11px/1 var(--font); white-space: nowrap;
  transition: background-color 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.bar.is-done { background: var(--done-soft); border-color: var(--done-line); color: var(--done-strong); }
.bar.is-critical { background: var(--ink); border-color: var(--ink); color: #fff; }
.bar.is-late { background: var(--blocked-soft); border-color: var(--blocked-line); color: var(--blocked); }
.bar.is-conflict { border-color: var(--blocked); box-shadow: inset 0 0 0 1px var(--blocked); }
.bar.is-slipping { background: var(--active-soft); border-color: var(--active-line); color: var(--active-strong); }
.bar.is-ms { width: 22px !important; padding: 0; justify-content: center; background: transparent; border: 0; }
.bar.is-ms::before { content: ""; width: 13px; height: 13px; transform: rotate(45deg); border-radius: 2px; background: var(--ink); transition: background-color 0.35s; }
.bar.is-ms.is-slipping::before { background: var(--active); }
.bar.is-ms.is-late::before { background: var(--blocked); }
.bar-x { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 2px 3px 2px 1px; border-radius: 3px; background: #fff; font: 400 10px/1 var(--mono); color: var(--graphite); white-space: nowrap; letter-spacing: 0.02em; }
.bar-x:empty { display: none; }
.bar.is-ms .bar-x { left: 35px; }
.bar.is-flip .bar-x { left: auto; right: calc(100% + 9px); }
.bar.is-ms.is-flip .bar-x { right: 28px; }
.bar-x { transition: opacity 0.3s var(--ease); }
.bar.has-ghost .bar-x { opacity: 0; }
.ghost { position: absolute; top: 9px; height: 22px; left: 0; width: 0; z-index: 3; border-radius: 6px; border: 1.5px dashed var(--ink); background: rgba(23, 23, 23, 0.035); opacity: 0; pointer-events: none; transition: left 0.6s var(--ease-io), width 0.6s var(--ease-io), opacity 0.35s var(--ease); }
.ghost.is-on { opacity: 1; }
.ghost-x { position: absolute; left: calc(100% + 9px); top: 50%; transform: translateY(-50%); padding: 2px 3px 2px 1px; border-radius: 3px; background: #fff; font: 500 10px/1 var(--mono); color: var(--ink); white-space: nowrap; letter-spacing: 0.02em; }
.ghost.is-ms { width: 22px !important; border: 0; background: transparent; }
.ghost.is-ms::before { content: ""; position: absolute; left: 4.5px; top: 4.5px; width: 12px; height: 12px; transform: rotate(45deg); border: 1.5px dashed var(--ink); border-radius: 2px; }
.float { position: absolute; z-index: 3; top: 50%; height: 20px; padding: 0 8px; transform: translateY(-50%); display: inline-flex; align-items: center; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--graphite); font: 500 10px/1 var(--mono); white-space: nowrap; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.float.is-zero { border-color: var(--ink); color: var(--ink); }
.float.is-neg { border-color: var(--blocked-line); background: var(--blocked-soft); color: var(--blocked); }
.float.is-prop { border-style: dashed; }
.ctx-links { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ctx-links path { fill: none; stroke-width: 1.2; transition: stroke 0.3s; }
.ctx-links .lk-drive { stroke: var(--ink); }
.ctx-links .lk-slack { stroke: var(--edge); stroke-dasharray: 3 3; }
.ctx-links .lk-bad { stroke: var(--blocked); }
.lk-chip { position: absolute; z-index: 4; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; gap: 4px; transform: translate(-50%, -50%); border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--graphite); font: 500 9px/1 var(--mono); letter-spacing: 0.04em; white-space: nowrap; pointer-events: none; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.lk-chip.is-drive { border-color: var(--ink); color: var(--ink); }
.lk-chip.is-bad { border-color: var(--blocked-line); background: var(--blocked-soft); color: var(--blocked); }
.lk-chip[hidden] { display: none; }

.ctx-thread { display: flex; flex-direction: column; min-height: 0; contain: size; border-left: 1px solid var(--line); background: #fff; }
.ctx-agents { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 14px 14px 13px; border-bottom: 1px solid var(--line); }
.ag-row { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 6px; width: 100%; }
.ag-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ag-wires path { fill: none; stroke: var(--line); stroke-width: 1; transition: stroke 0.3s var(--ease); }
.ag-wires path.is-on { stroke: var(--ink); }
.ag-wires circle { fill: var(--ink); }
.ag { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--graphite); font: 500 10.5px/1 var(--font); white-space: nowrap; transition: color 0.3s, background-color 0.3s, border-color 0.3s; }
.ag-proj { color: var(--ink); border-color: var(--ink); }
.ag.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.ag.is-on .mark { color: #fff; }
.ctx-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.ctx-scroll > * { flex: none; }
.tm { display: grid; gap: 5px; font-size: 13px; line-height: 1.42; }
.tm-who { display: inline-flex; align-items: center; gap: 6px; font: 400 9.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.tm-who i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.tm-field p { padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--active-soft); border: 1px solid var(--active-line); color: var(--active-strong); }
.tm-field .tm-who i { background: var(--active); }
.tm-agent p { color: var(--ink); }
.tm-agent p b { font-weight: 600; }
.tm-who .mark { --m: 10px; }
.tm-sub { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.tm-sub p { font-size: 12.5px; color: #333; }
.tm-sub .tm-who i { background: transparent; border: 1px solid var(--ink); }
.tm-note { padding-bottom: 10px; border-bottom: 1px dashed var(--line); font: 400 9.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.tm-dots { display: inline-flex; gap: 3px; height: 16px; align-items: center; }
.tm-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--edge); }
@media (prefers-reduced-motion: no-preference) {
  .tm { animation: phIn 0.5s var(--ease-out) both; }
  .tm-dots i { animation: dots 1s var(--ease) infinite; }
  .tm-dots i:nth-child(2) { animation-delay: 0.15s; }
  .tm-dots i:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes dots { 0%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes phIn { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.proposal { border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; overflow: hidden; }
.proposal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.proposal-head b { font-weight: 600; }
.proposal-head span { font-size: 12px; }
.proposal-rows li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 14px; border-bottom: 1px solid var(--silver); font-size: 12.5px; line-height: 1.35; }
.proposal-rows li b { font-weight: 600; }
.proposal-rows .glyph { color: var(--graphite); }
.prop-d { display: block; margin-top: 3px; font: 400 10.5px/1.3 var(--mono); color: var(--graphite); font-variant-numeric: tabular-nums; }
.prop-old { text-decoration: line-through; color: var(--graphite); }
.prop-new { color: var(--ink); font-weight: 500; }
.proposal-rows li.is-applied { background: var(--done-soft); }
.proposal-rows li.is-applied .glyph { color: var(--done); }
.proposal-rows li.is-applied .prop-new { color: var(--done-strong); }
.proposal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; }
.proposal-hint { font-size: 12px; }
.proposal.is-applied .proposal-actions .btn, .proposal.is-dismissed .proposal-actions .btn { display: none; }
.proposal.is-applied .proposal-hint { color: var(--done-strong); }
.proposal.is-dismissed { opacity: 0.5; }
.proposal.is-stale { opacity: 0.4; }
.proposal.is-stale .proposal-actions { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .proposal { animation: phIn 0.5s var(--ease-out) both; }
}
@media (prefers-reduced-motion: no-preference) {
  .proposal:not(.is-applied):not(.is-dismissed) [data-apply] { animation: nudge 2.4s var(--ease) 1.2s infinite; }
}
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(23, 23, 23, 0); } 80% { box-shadow: 0 0 0 5px rgba(23, 23, 23, 0.12); } }
.ctx-input { display: flex; align-items: center; justify-content: space-between; height: 42px; margin: 0 14px 14px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--graphite); font-size: 13px; }
.ctx-input i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 14px; }
.ctx-live { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.ctx-live .glyph { font-size: 13px; }

/* ───────────────────────── 05 templates ───────────────────────── */
.scopes { border-top: 1px solid var(--ink); }
.scopes li { border-bottom: 1px solid var(--line); }
.scope {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 36px; align-items: center; gap: var(--gutter);
  padding: clamp(14px, 1.5vw, 22px) 0;
  text-decoration: none;
  transition: color 0.4s var(--ease-out), padding 0.6s var(--ease-out);
}
.scope::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.scope:hover, .scope:focus-visible { color: #fff; padding-left: clamp(8px, 1.6vw, 24px); }
.scope:hover::before, .scope:focus-visible::before { transform: none; }
.scope:focus-visible { outline-offset: -2px; }
.scope-n { font-size: 11px; color: var(--graphite); transition: color 0.4s; }
.scope-name { font-weight: 500; font-size: clamp(34px, 5.4vw, 92px); line-height: 1; letter-spacing: -0.065em; padding-bottom: 0.04em; }
.scope-meta { font-size: 10.5px; line-height: 1.4; color: var(--graphite); text-align: right; transition: color 0.4s; }
.scope-arr { font-size: clamp(20px, 2vw, 30px); opacity: 0; transform: translate3d(-10px, 0, 0); transition: opacity 0.4s, transform 0.55s var(--ease-out); }
.scope:hover .scope-n, .scope:hover .scope-meta, .scope:focus-visible .scope-meta { color: rgba(255, 255, 255, 0.62); }
.scope:hover .scope-arr, .scope:focus-visible .scope-arr { opacity: 1; transform: none; }
.scope-preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 300px; height: 200px; margin: -100px 0 0 -150px;
  pointer-events: none; will-change: transform;
}
.scope-preview canvas, .scope-preview-k { opacity: 0; transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-out); }
.scope-preview canvas { width: 100%; height: 100%; border-radius: 12px; background: #fff; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55); transform: scale(0.8) rotate(-3deg); }
.scope-preview-k { position: absolute; left: 2px; top: calc(100% + 10px); font: 400 9.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.scope-preview.is-on canvas { opacity: 1; transform: none; }
.scope-preview.is-on .scope-preview-k { opacity: 1; }

/* ───────────────────────── 06 trust ───────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.trust li {
  position: relative; display: flex; flex-direction: column;
  min-height: clamp(240px, 22vw, 320px); padding: 22px clamp(16px, 2vw, 32px) 30px 0;
  border-bottom: 1px solid var(--line);
}
.trust li:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.trust-k { font-size: 10.5px; color: var(--graphite); }
.trust h3 { margin-top: auto; font-weight: 500; font-size: clamp(24px, 2.3vw, 36px); line-height: 1; letter-spacing: -0.055em; margin-bottom: 12px; padding-top: 48px; }
.trust p { font-size: 15px; line-height: 1.5; color: var(--graphite); max-width: 25em; }
.trust-viz { position: absolute; top: 20px; right: clamp(16px, 2vw, 32px); width: 44px; height: 44px; }
.trust-viz i { position: absolute; display: block; transition: transform 0.6s var(--ease-out), background-color 0.4s, opacity 0.4s; }
.tv-sso i { top: 18px; width: 16px; height: 8px; border-radius: 4px; border: 1.5px solid var(--ink); }
.tv-sso i:first-child { left: 2px; } .tv-sso i:last-child { right: 2px; }
.trust li:hover .tv-sso i:first-child { transform: translate3d(9px, 0, 0); }
.trust li:hover .tv-sso i:last-child { transform: translate3d(-9px, 0, 0); }
.tv-iso i { width: 18px; height: 18px; border-radius: 3px; background: var(--silver); border: 1.5px solid var(--edge); }
.tv-iso i:nth-child(1) { left: 2px; top: 2px; } .tv-iso i:nth-child(2) { right: 2px; top: 2px; } .tv-iso i:nth-child(3) { left: 2px; bottom: 2px; }
.tv-iso i:nth-child(4) { right: 2px; bottom: 2px; background: var(--done-soft); border-color: var(--done); }
.trust li:hover .tv-iso i:nth-child(1) { transform: translate3d(-4px, -4px, 0); }
.trust li:hover .tv-iso i:nth-child(2) { transform: translate3d(4px, -4px, 0); }
.trust li:hover .tv-iso i:nth-child(3) { transform: translate3d(-4px, 4px, 0); }
.trust li:hover .tv-iso i:nth-child(4) { transform: translate3d(4px, 4px, 0); }
.tv-ai { border-radius: 999px; }
.tv-ai::before { content: ""; position: absolute; left: 2px; right: 2px; top: 12px; height: 20px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--silver); transition: background-color 0.4s, border-color 0.4s; }
.tv-ai i { left: 6px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--edge); }
.trust li:hover .tv-ai::before { background: var(--ink); border-color: var(--ink); }
.trust li:hover .tv-ai i { transform: translate3d(20px, 0, 0); background: #fff; }
.tv-rec i { left: 4px; right: 4px; height: 6px; border-radius: 2px; background: var(--line); }
.tv-rec i:nth-child(1) { top: 8px; } .tv-rec i:nth-child(2) { top: 19px; } .tv-rec i:nth-child(3) { top: 30px; }
.trust li:hover .tv-rec i:nth-child(1) { background: var(--done); }
.trust li:hover .tv-rec i:nth-child(2) { background: var(--done); transition-delay: 0.08s; }
.trust li:hover .tv-rec i:nth-child(3) { background: var(--done); transition-delay: 0.16s; }
.tv-off i { bottom: 8px; width: 7px; border-radius: 2px; background: var(--ink); }
.tv-off i:nth-child(1) { left: 6px; height: 10px; } .tv-off i:nth-child(2) { left: 18px; height: 18px; } .tv-off i:nth-child(3) { left: 30px; height: 26px; }
.trust li:hover .tv-off i { background: var(--line); }
.trust li:hover .tv-off i:nth-child(1) { background: var(--active); }
.tv-share i { top: 15px; width: 22px; height: 14px; border-radius: 999px; border: 1.5px solid var(--ink); }
.tv-share i:first-child { left: 2px; } .tv-share i:last-child { right: 2px; }
.trust li:hover .tv-share i:first-child { transform: translate3d(4px, 0, 0) rotate(-12deg); }
.trust li:hover .tv-share i:last-child { transform: translate3d(-4px, 0, 0) rotate(-12deg); }

/* ───────────────────────── CTA + footer ───────────────────────── */
.cta { position: relative; padding: clamp(150px, 15vw, 240px) 0 clamp(72px, 9vw, 130px); overflow: hidden; }
.feed { position: absolute; top: 0; left: 0; right: 0; border-bottom: 1px solid var(--ink-line); padding: 16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.feed-track { display: flex; width: max-content; }
.feed-track span { display: inline-flex; align-items: center; gap: 10px; padding-right: 56px; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); white-space: nowrap; }
.feed-track time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.feed-track i { font-style: normal; font-family: var(--font); font-weight: 700; color: #fff; }
.feed-track .c-done { color: var(--done-line); }
.feed-track .c-active { color: var(--active-line); }
.feed-track .c-blocked { color: var(--blocked-line); }
.feed-track .c-ready { color: var(--planned-line); }
@media (prefers-reduced-motion: no-preference) {
  .feed-track { animation: feed 70s linear infinite; }
  .feed:hover .feed-track { animation-play-state: paused; }
}
@keyframes feed { to { transform: translate3d(-50%, 0, 0); } }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.cta-copy { grid-column: 1 / 7; }
.cta .sec-ref { color: #fff; }
.cta-title { font-weight: 500; font-size: clamp(50px, 7.6vw, 136px); line-height: 0.88; letter-spacing: -0.072em; margin: 20px 0 30px -0.05em; max-width: 8.4em; }
.cta-title .period { color: var(--done-line); }
.cta-lede { color: var(--ink-text); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; max-width: 26em; }
.cta-alt { margin-top: 18px; color: var(--ink-text); font-size: 14.5px; }
.cta-alt a { color: #fff; text-underline-offset: 4px; }
.lead { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; position: relative; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 10px; color: var(--ink-text); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-dim); margin-left: 6px; font-family: var(--font); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-line); border-radius: 0;
  padding: 10px 0 12px; font-size: 18px; letter-spacing: -0.01em; color: #fff; outline: 0;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: #fff; }
.field input[aria-invalid="true"] { border-color: var(--blocked-line); }
.field textarea { resize: vertical; min-height: 84px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.lead-msg { font-size: 14px; color: var(--ink-text); max-width: 26em; }
.lead-msg.is-ok { color: #fff; }
.lead-msg.is-ok b { color: var(--done-line); }
.lead-msg a { color: #fff; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 1260px) {
  .hero-side { grid-column: 1 / -1; grid-row: 2; margin: 24px 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 24px; flex-wrap: wrap; padding-bottom: 0; }
  .hero-lede { margin-bottom: 0; max-width: 34em; }
  .car-tabs button { font-size: 12px; gap: 6px; }
}
@media (max-width: 1180px) {
  .gap-copy { grid-column: 1 / 7; }
  .gap-desk { grid-column: 7 / -1; }
  .track-copy { grid-column: 1 / 6; }
  .track-stage { grid-column: 6 / -1; grid-template-columns: minmax(0, 1fr); }
  .fig-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); transform: translate3d(0, calc((1 - var(--key)) * 8px), 0); }
  .fig-legend button { padding: 5px 8px; font-size: 12px; }
  .fig-body { height: min(calc(64svh - 120px), calc(100cqw * 0.6333)); }
  .fig-hint-2 .hint-txt { display: inline; }
  .fig-lg { display: none; }
  /* no room for a phone beside the plan: the app becomes a strip under it */
  .phone { display: none; }
  .wband {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 56px;
    display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding: 0 10px 0 4px; border-radius: var(--radius-card); background: var(--silver);
    opacity: var(--app); transform: translate3d(0, calc((1 - var(--app)) * 12px), 0);
  }
  .wb-dock { display: block; width: 60px; height: 34px; }
  .wb-main { display: grid; gap: 1px; min-width: 0; }
  .wb-k { display: flex; justify-content: space-between; gap: 8px; font: 400 8.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; }
  .wb-k span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .wb-here { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .wb-here b { font-size: 13px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
  .wb-act { font-size: 11px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fig-walk { bottom: 64px; }
  .report { bottom: 70px; width: min(300px, 72%); }
  @container walkbox (max-height: 345px) { .report-photos { display: none; } }
  @container walkbox (max-height: 270px) { .report-line { display: none; } }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ctx-body { grid-template-columns: 1fr; }
  .ctx-thread { contain: none; border-left: 0; border-top: 1px solid var(--line); }
  .ctx-scroll { max-height: 460px; }
  .cta-copy { grid-column: 1 / -1; }
  .lead { grid-column: 1 / -1; max-width: 760px; }
}
@media (max-width: 1000px) {
  /* just above 900 the links give up a little padding so Log in and the walkthrough keep their room */
  .car-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; column-gap: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .car-tabs::-webkit-scrollbar { display: none; }
  .car-tabs button { scroll-snap-align: start; padding-right: 2px; }
}
@media (max-width: 900px) {
  /* a tablet holds the whole plan, turnover and the contract line included, without scrolling */
  .ctx-chart { --label-w: 192px; min-width: 690px; }
  .row-label, .lane-n { padding-left: 14px; }
  .row-label { padding-right: 10px; }
  .row-label b { font-size: 12.5px; }
  .hide-sm { display: none !important; }
  .gap { height: 360vh; }
  .gap-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; row-gap: 12px; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 16px; }
  .gap-copy { grid-column: 1; }
  .gap-title { font-size: clamp(34px, 9vw, 56px); margin: 10px 0 12px; max-width: none; }
  .gap-lede { font-size: 13.5px; }
  .gap-steps { margin-top: 12px; }
  .gap-steps li { padding: 7px 0; }
  .gap-steps .k { font-size: 13.5px; }
  .gap-desk { grid-column: 1; height: auto; min-height: 0; }
  .frag { font-size: 9px; padding: 8px; }
  .frag-k { font-size: 7px; }
  .frag-gantt { width: 44%; } .frag-pdf { width: 47%; } .frag-photo { width: 25%; }
  .frag-notes { width: 42%; } .frag-sheet { width: 46%; } .frag-msg { width: 38%; } .frag-report { width: 29%; }
  .frag-notes p { font-size: 8px; line-height: 14px; }
  .bubble { font-size: 9px; padding: 6px 9px; }
  .frag-sheet table { font-size: 7.5px; }
  .frag-sheet th, .frag-sheet td { height: 14px; padding: 2px 3px; }
  .ph-slot { height: 22px; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-before { contain: none; }
  .ba-arrow { flex-direction: row; padding: 0; }
  .ba-arrow span { writing-mode: horizontal-tb; transform: none; }
  .ba-arrow i { width: 36px; height: 36px; font-size: 15px; rotate: 90deg; }
  .xl-grid { max-height: 330px; }
  .track { height: 460vh; }
  .track-sticky { align-items: stretch; }
  .track-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; row-gap: 12px; padding: 14px 0 16px; height: 100%; }
  .track-copy { grid-column: 1; }
  .track-title { font-size: clamp(30px, 8vw, 46px); margin: 8px 0 10px; }
  .track-steps li { display: none; padding: 10px 0; }
  .track-steps li.is-on { display: grid; }
  /* every step holds three lines, so the figure keeps its size from step to step */
  .track-steps li.is-on p { min-height: 4.5em; }
  /* the label stays on phones, run inline so it costs two short lines rather than a row of its own */
  .track-note { display: block; margin-top: 10px; font-size: 12px; line-height: 20px; }
  .track-note .tag { vertical-align: top; margin-right: 4px; }
  .track-stage { grid-column: 1; min-height: 0; }
  .fig { height: 100%; padding: 12px 12px 10px; }
  .fig-body { flex: 1; height: auto; min-height: 0; }
  .fig-legend { display: none; }
  .fig-walk { --ws: 1.35; }
  .pin-card { width: 168px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .trust li:nth-child(even) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
  .scope { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .scope-meta { display: none; }
  .scope-preview { display: none; }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(46px, 13.6vw, 80px); line-height: 0.88; }
  .car-stage { min-height: 330px; }
  .hero-side { margin-top: 20px; }
  .hero-lede { font-size: 15px; }
  .car-meta .legend { order: 3; width: 100%; }
  .car-title { flex-basis: 100%; }
  .chain { grid-template-columns: minmax(0, 1fr); row-gap: 18px; border-top: 0; }
  .chain li { border-top: 1px solid var(--ink); }
  .chain li:not(:last-child)::after { display: none; }
  .specs, .specs-3 { grid-template-columns: 1fr; }
  .halls { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .trust li, .trust li:nth-child(even) { padding-left: 0; border-left: 0; min-height: 0; }
  .trust h3 { padding-top: 28px; }
  .ctx-bar { padding: 14px; }
  .ctx-control { flex-wrap: wrap; gap: 8px 12px; }
  input[type="range"] { width: 150px; }
  .ctx-chart { --label-w: 160px; min-width: 720px; }
  .row-label, .lane-n { padding-left: 14px; }
  .lead-row { grid-template-columns: 1fr; }
  .fig-k { display: none; }
  .fig-walk { --ws: 1.75; bottom: 58px; }
  .wband { height: 52px; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding-right: 8px; }
  .wb-dock { width: 52px; height: 30px; }
  .pin-dot { left: -9px; top: -9px; width: 18px; height: 18px; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, 0.3); }
  .pin.is-queued .pin-dot { box-shadow: inset 0 0 0 1.5px var(--active), 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, 0.2); }
  .pin-dot svg { width: 10px; height: 10px; }
  .pin-card { width: 150px; padding: 6px 8px 7px; font-size: 10px; }
  .pin-card strong { font-size: 10.5px; }
  .walker i { left: -6px; top: -6px; width: 12px; height: 12px; border-width: 2px; }
  .report { left: 8px; right: 8px; width: auto; bottom: 62px; padding: 12px 14px 14px; }
  .report-title { font-size: 18px; margin: 10px 0; }
  .report-stats { margin-bottom: 0; }
  .report-stats dd { font-size: 18px; }
  .report-photos, .report-line { display: none; }
  /* the shortest figures keep the report to its date and numbers */
  @container walkbox (max-height: 210px) {
    .report { padding: 9px 12px 10px; }
    .report-k { padding-bottom: 6px; }
    .report-title { font-size: 15px; margin: 7px 0; }
    .report-stats dd { font-size: 16px; }
  }
  @container walkbox (max-height: 175px) { .report-k { display: none; } .report-title { margin-top: 0; } }
}

@media (max-width: 380px) {
  /* the narrowest app strip: the status chip drops to the activity's line, so the unit keeps its name */
  .wb-main { grid-template-columns: auto minmax(0, 1fr); gap: 1px 6px; }
  .wb-k, .wb-here b { grid-column: 1 / -1; }
  .wb-here { display: contents; }
  .wb-here .st { grid-row: 3; height: 15px; padding: 0 5px; font-size: 9px; }
  .wb-act { grid-row: 3; }
}

@media (hover: none) {
  .hide-touch { display: none !important; }
}

/* ───────────────────────── reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .scene .rise { opacity: 1; transform: none; }
  .scene .live, .scene .flow { animation: none; }
}
