/* map.noea.ai — loaded after styles.css and v2.css. Same system as noea.ai; contour lines instead of photos. */

body.mapsite {
  --rule: #2f7a55; --rule-bg: #dcefe4;
  --judge: #a86a00; --judge-bg: #f6ead2;
  --crit: #b4502a; --crit-bg: #f7e3d9;
  --topo-1: #e6ede8; --topo-2: #f3efe7; --topo-ink: #1e4d3f;
}
@media (prefers-color-scheme: dark) {
  body.mapsite {
    --rule: #7fc4a8; --rule-bg: #1f3a31;
    --judge: #e0b25a; --judge-bg: #3d3420;
    --crit: #e68a62; --crit-bg: #45291f;
    --topo-1: #131916; --topo-2: #1a1915; --topo-ink: #9fd1bb;
  }
}

/* Wordmark: Noea™ map */
.brand-sub { font-weight: 400; color: var(--muted); margin-left: -2px; }

/* ---------- Contour panels (the "photo" of this site) ---------- */
.topo-panel, .sc-media.topo { position: relative; isolation: isolate; overflow: hidden; }
.topo-panel { border-radius: 20px; background: linear-gradient(160deg, var(--topo-1), var(--topo-2)); }
.topo-panel::before, .sc-media.topo::before {
  content: ""; position: absolute; inset: -6%; z-index: -1; pointer-events: none;
  background: var(--topo-ink); opacity: .16;
  -webkit-mask: url(/map/topo.svg) center / cover no-repeat; mask: url(/map/topo.svg) center / cover no-repeat;
  animation: drift 60s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-3%, 2%) rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .topo-panel::before, .sc-media.topo::before { animation: none; } }

/* ---------- Hero: the process map ---------- */
.hero-topo { padding: 56px 40px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
@media (max-width: 760px) { .hero-topo { padding: 20px 10px; } }

.mcard {
  margin: 0; width: 100%; max-width: 1060px; background: var(--card); border-radius: 18px;
  padding: 18px 20px 20px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.35);
}
.mcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mcard-title { display: flex; align-items: center; gap: 10px; }
.mcard-title strong { font-weight: 500; font-size: 16px; }
.pill { font: 400 11.5px/1 var(--mono); color: var(--muted); background: var(--paper-2); padding: 5px 8px; border-radius: 999px; }

.pm-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.pm-scroll::-webkit-scrollbar { display: none; }
.mcard { --bw: 1080px; --bh: 350px; }
.pm-fit { width: calc(var(--bw) * var(--s, 1)); height: calc(var(--bh) * var(--s, 1)); }
.pm-board { position: relative; width: var(--bw); height: var(--bh); transform: scale(var(--s, 1)); transform-origin: 0 0; }

.pm-lanes { position: absolute; inset: 22px 0 6px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 4px; transition: opacity .6s ease; }
.pm-lane { border-radius: 12px; background: color-mix(in srgb, var(--paper-2) 70%, transparent); position: relative; }
.pm-lane span { position: absolute; left: 12px; top: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mcard[data-mode="sop"] .pm-lanes { opacity: 0; }
.pm-doc { position: absolute; left: 2px; top: 118px; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); transition: opacity .5s ease; }
.mcard[data-mode="real"] .pm-doc { opacity: 0; }

.pm-wires { position: absolute; inset: 0; width: var(--bw); height: var(--bh); overflow: visible; pointer-events: none; }
.pm-wires .w { fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.5; }
.pm-wires .w.ho { stroke: var(--crit); stroke-dasharray: 5 4; animation: march 1.4s linear infinite; }
.pm-wires .w.loop { stroke-dasharray: 3 4; }
.pm-wires .ho-mark { fill: var(--card); stroke: var(--crit); stroke-width: 1.4; }
.pm-wires .ho-mark-t { font: 600 9px/1 var(--sans); fill: var(--crit); text-anchor: middle; dominant-baseline: central; }
.pm-wires .loop-t { font: 500 10px/1 var(--mono); fill: var(--muted); text-anchor: middle; }
.pm-wires .tok { fill: var(--rule); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--rule) 60%, transparent)); }

.pm-node {
  position: absolute; left: 0; top: 0; width: 104px; height: 56px; padding: 0 8px 0 13px;
  display: grid; align-content: center; gap: 3px; border-radius: 11px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 8px 18px -14px rgba(0,0,0,.35);
  transition: background-color .5s ease, border-color .5s ease, box-shadow .25s ease;
  cursor: default; will-change: transform;
}
.pm-node b { font-weight: 500; font-size: 12.5px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-node small { font: 400 10.5px/1 var(--mono); color: var(--muted); transition: opacity .4s; }
.pm-node::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: transparent; transition: background-color .5s; }
.mcard[data-mode="sop"] .pm-node small { opacity: 0; }
.mcard[data-mode="real"] .pm-node.rule { background: color-mix(in srgb, var(--rule-bg) 60%, var(--card)); border-color: color-mix(in srgb, var(--rule) 25%, var(--line)); }
.mcard[data-mode="real"] .pm-node.rule::before { background: var(--rule); }
.mcard[data-mode="real"] .pm-node.judge { background: color-mix(in srgb, var(--judge-bg) 70%, var(--card)); border-color: color-mix(in srgb, var(--judge) 25%, var(--line)); }
.mcard[data-mode="real"] .pm-node.judge::before { background: var(--judge); }
.mcard[data-mode="real"] .pm-node.new { border-style: dashed; border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.pm-node .crit { position: absolute; right: -7px; top: -7px; width: 18px; height: 18px; color: var(--crit); opacity: 0; transform: scale(.4); transition: opacity .35s ease .3s, transform .45s cubic-bezier(.3,1.6,.5,1) .3s; }
.pm-node .crit svg { width: 18px; height: 18px; }
.mcard[data-mode="real"] .pm-node .crit { opacity: 1; transform: none; }
.pm-node .pin { position: absolute; left: -8px; top: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 10.5px/18px var(--sans); text-align: center; opacity: 0; transform: scale(.4); transition: opacity .35s ease .5s, transform .45s cubic-bezier(.3,1.6,.5,1) .5s; }
.mcard[data-mode="real"] .pm-node .pin { opacity: 1; transform: none; }
.pm-node.hot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent), 0 10px 22px -12px rgba(0,0,0,.4); }

.pm-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pm-stats { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.pm-stats div { display: grid; gap: 4px; }
.pm-stats dt { font-size: 12px; color: var(--muted); }
.pm-stats dd { margin: 0; font: 500 26px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.pm-stats dd.up { animation: pop .5s cubic-bezier(.2,.8,.2,1); }
.pm-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); transition: opacity .5s; }
.mcard[data-mode="sop"] .pm-legend { opacity: .35; }
.pm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pm-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-rule { background: var(--rule-bg); box-shadow: inset 3px 0 0 var(--rule); }
.lg-judge { background: var(--judge-bg); box-shadow: inset 3px 0 0 var(--judge); }
.lg-crit { background: var(--crit); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; border-radius: 0 !important; }
.lg-ho { height: 0 !important; width: 16px !important; border-radius: 0 !important; border-top: 2px dashed var(--crit); }
.lg-new { border: 1.5px dashed color-mix(in srgb, var(--ink) 50%, transparent); }

/* Unwritten rules: blank in the SOP, filled in from the interviews */
.pm-rules { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pm-rules li { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; padding: 12px 12px 12px 10px; border-radius: 12px; background: var(--paper-2); min-height: 92px; cursor: default; transition: background-color .25s; }
.pm-rules li:hover { background: color-mix(in srgb, var(--paper-2) 60%, var(--line)); }
.pm-rules .n { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 11px/20px var(--sans); text-align: center; }
.pm-rules .st { font: 500 10.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pm-rules .q, .pm-rules .x { grid-column: 2; grid-row: 2; transition: opacity .45s ease, transform .45s ease; }
.pm-rules .q { font-size: 13px; line-height: 1.4; color: var(--ink); }
.pm-rules .x { display: grid; gap: 6px; align-content: start; padding-top: 4px; }
.pm-rules .x i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.pm-rules .x i:nth-child(2) { width: 70%; }
.mcard[data-mode="sop"] .pm-rules .q { opacity: 0; transform: translateY(4px); }
.mcard[data-mode="real"] .pm-rules .x { opacity: 0; }
.mcard[data-mode="sop"] .pm-rules .n { background: color-mix(in srgb, var(--ink) 20%, transparent); }
.mcard[data-mode="real"] .pm-rules li { transition-delay: calc(var(--i) * 90ms); }
.mcard[data-mode="real"] .pm-rules .q { transition-delay: calc(var(--i) * 90ms + 300ms); }
@media (max-width: 900px) { .pm-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .mcard { padding: 14px 12px 14px; }
  .pm-rules { grid-template-columns: 1fr; }
  .pm-rules li { min-height: 0; }
  .pm-stats { gap: 18px; } .pm-stats dd { font-size: 22px; }
}

/* ---------- The problem: three small figures ---------- */
.fig-heads .s { fill: var(--card); stroke: var(--line); stroke-width: 1; transition: fill .5s, stroke .5s; }
.fig-heads .links path { fill: none; stroke-width: 1.1; transition: stroke .5s, opacity .5s; }
.fig-heads .links .m { stroke: color-mix(in srgb, var(--ink) 45%, transparent); }
.fig-heads .links .o { stroke: color-mix(in srgb, var(--ink) 18%, transparent); }
.fig-heads circle { fill: var(--ink); transition: fill .5s, stroke .5s; }
.fig-heads .who-m text, .fig-heads .who-o text { font: 500 12px var(--sans); fill: var(--paper); text-anchor: middle; }
.fig-heads .q text { font: 600 11px var(--sans); fill: var(--judge); text-anchor: middle; opacity: 0; transition: opacity .4s; }
/* M leaves; everything only M knew turns into a question */
.reveal.in .fig-heads { animation: none; }
.fig-heads.gone .who-m circle { fill: transparent; stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-dasharray: 3 3; }
.fig-heads.gone .who-m text { fill: color-mix(in srgb, var(--ink) 35%, transparent); }
.fig-heads.gone .links .m { stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-dasharray: 2 3; }
.fig-heads.gone .s.m { fill: var(--judge-bg); stroke: color-mix(in srgb, var(--judge) 40%, transparent); }
.fig-heads.gone .q text { opacity: 1; }

.fig-sop .pg { fill: var(--card); stroke: var(--line); }
.fig-sop .back1 { fill: color-mix(in srgb, var(--card) 85%, var(--paper-2)); }
.fig-sop .back2 { fill: color-mix(in srgb, var(--card) 70%, var(--paper-2)); }
.fig-sop .v { font: 500 7px var(--mono); fill: var(--muted); text-anchor: end; }
.fig-sop .t { font: 500 7.5px var(--mono); fill: var(--ink-2); }
.fig-sop .h { fill: color-mix(in srgb, var(--ink) 10%, transparent); transition: fill .4s; }
.fig-sop .key rect.law, .reveal.in .fig-sop .h.law { fill: var(--rule-bg); }
.fig-sop .key rect.audit, .reveal.in .fig-sop .h.audit { fill: var(--judge-bg); }
.fig-sop .key rect.unk, .reveal.in .fig-sop .h.unk { fill: color-mix(in srgb, var(--ink) 22%, transparent); }
.fig-sop .key text { font: 400 9px var(--sans); fill: var(--ink-2); }
.fig-sop .key rect.law { stroke: var(--rule); stroke-width: .8; } .fig-sop .key rect.audit { stroke: var(--judge); stroke-width: .8; }
.reveal.in .fig-sop .h:nth-child(1) { transition-delay: .3s; } .reveal.in .fig-sop .h:nth-child(2) { transition-delay: .55s; } .reveal.in .fig-sop .h:nth-child(3) { transition-delay: .8s; }
.reveal.in .fig-sop .h:nth-child(4) { transition-delay: 1.05s; } .reveal.in .fig-sop .h:nth-child(5) { transition-delay: 1.3s; } .reveal.in .fig-sop .h:nth-child(6) { transition-delay: 1.55s; } .reveal.in .fig-sop .h:nth-child(7) { transition-delay: 1.8s; }
.fig-sop .back1, .fig-sop .back2 { transform-box: fill-box; }
.reveal.in .fig-sop .back2 { animation: page-in .5s ease both .1s; } .reveal.in .fig-sop .back1 { animation: page-in .5s ease both .2s; }
@keyframes page-in { from { transform: translate(-6px, 4px); opacity: 0; } }

.fig-label .lab { font: 500 9px var(--sans); fill: var(--ink-2); }
.fig-label .axis path { stroke: var(--line); }
.fig-label .axis text { font: 400 7.5px var(--mono); fill: var(--muted); }
.fig-label .deadline { stroke: var(--crit); stroke-width: 1.2; stroke-dasharray: 3 3; }
.fig-label .dl { font: 500 8px var(--mono); fill: var(--crit); text-anchor: middle; }
.fig-label .ra { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.fig-label .late { fill: var(--judge-bg); stroke: var(--judge); stroke-width: .8; stroke-dasharray: 2 2; }
.fig-label .tr { fill: color-mix(in srgb, var(--ink) 80%, transparent); }
.fig-label .pv { fill: var(--crit); }
.fig-label .bt { font: 500 8px var(--sans); fill: var(--ink); }
.fig-label .tr + .bt, .fig-label .bt.lt { fill: var(--paper); }
.fig-label .late + text + .bt.lt { fill: var(--judge); }
.fig-label rect { transform-box: fill-box; transform-origin: left center; }
.reveal.in .fig-label .ra { animation: grow .5s ease both .2s; }
.reveal.in .fig-label .late { animation: grow .4s ease both .7s; }
.reveal.in .fig-label .tr { animation: grow .9s ease both 1.1s; }
.reveal.in .fig-label .pv { animation: grow .4s ease both 2s, flick 1.6s ease-in-out 2.4s infinite; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes flick { 50% { opacity: .55; } }
.fig-label .bt { opacity: 0; } .reveal.in .fig-label .bt { animation: fade .3s ease both 2.2s; }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fig-label *, .fig-sop * { animation: none !important; transition: none !important; } .fig-label .bt { opacity: 1; } }

/* ---------- Interview ---------- */
.iv-panel { padding: 56px 40px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
@media (max-width: 760px) { .iv-panel { padding: 16px 10px; } }
.iv { margin: 0; width: 100%; max-width: 960px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--card); border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.35); overflow: hidden; }
.iv-chat { padding: 18px 20px 20px; min-height: 360px; display: flex; flex-direction: column; }
.iv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.iv-who { display: flex; align-items: center; gap: 10px; }
.iv-who span:last-child { display: grid; line-height: 1.25; } .iv-who strong { font-weight: 500; font-size: 14px; } .iv-who small { font-size: 12px; color: var(--muted); }
.iv-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 500 11px/1 var(--sans); color: var(--ink-2); }
.iv-msgs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.iv-msgs li { display: none; max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.iv-msgs li.shown { display: block; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.iv-msgs .ai { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; justify-self: start; }
.iv-msgs .ai::before { content: "AI interviewer"; display: block; font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.iv-msgs .op { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; justify-self: end; }
.iv[data-lang="da"] [lang="en"], .iv[data-lang="en"] [lang="da"] { display: none; }
.iv-typing { display: none; gap: 4px; padding: 12px 14px; margin-top: 10px; border-radius: 14px; background: var(--paper-2); align-self: flex-end; }
.iv-typing.on { display: inline-flex; animation: rise .25s ease both; }
.iv-typing.ai { align-self: flex-start; }
.iv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bob 1s ease-in-out infinite; }
.iv-typing i:nth-child(2) { animation-delay: .15s; } .iv-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 50% { transform: translateY(-3px); opacity: .5; } }

.iv-out { background: var(--paper-2); padding: 18px 20px 20px; border-left: 1px solid var(--line); }
.iv-out-h { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.iv-out dl { margin: 0; }
.iv-out dl div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; opacity: 0; transform: translateX(-6px); transition: opacity .4s ease, transform .4s ease; }
.iv-out dl div.shown { opacity: 1; transform: none; }
.iv-out dt { font-size: 12px; color: var(--muted); padding-top: 2px; }
.iv-out dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink); }
.heard { display: inline-flex; gap: 3px; margin-right: 4px; }
.heard i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.heard i.off { background: color-mix(in srgb, var(--ink) 15%, transparent); }
@media (max-width: 760px) {
  .iv { grid-template-columns: 1fr; }
  .iv-chat { min-height: 0; }
  .iv-out { border-left: 0; border-top: 1px solid var(--line); }
  .iv-out dl div { grid-template-columns: 92px 1fr; }
}

/* Chips used in the interview, the map and the cards */
.chip { display: inline-block; font: 500 11.5px/1 var(--sans); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.chip.new { border: 1px dashed color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); }
.chip.judge { background: var(--judge-bg); color: var(--judge); }
.chip.rule { background: var(--rule-bg); color: var(--rule); }
.chip.crit { background: var(--crit-bg); color: var(--crit); }
.chip.gap { background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit); }

/* ---------- Timeline ---------- */
.weeks { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .weeks { grid-template-columns: 1fr; } }
.gantt { --D: 4.2s; --lab: 210px; position: relative; margin: 0; padding: 22px 24px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.g-head, .g-row { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; }
.g-head { grid-template-columns: var(--lab) repeat(4, 1fr); font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.g-head span + span { padding-left: 8px; }
.g-row { min-height: 54px; border-bottom: 1px dashed var(--line); }
.g-row:last-of-type { border-bottom: 0; }
.g-lab { display: grid; gap: 2px; font-size: 14px; line-height: 1.25; padding-right: 12px; }
.g-lab small { font-size: 12px; color: var(--muted); }
.g-track { position: relative; height: 54px; background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; }
.g-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: 4px; transform-origin: left; transform: scaleX(0); }
.g-bar.ink { background: var(--ink); }
.g-bar.soft { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.g-bar.ok { background: var(--rule); }
.g-bar.dot { background: var(--ink); min-width: 14px; }
.reveal.in .g-bar { animation: gbar calc((var(--b) - var(--a)) * var(--D)) linear both calc(var(--a) * var(--D) + .3s); }
@keyframes gbar { to { transform: scaleX(1); } }
.g-dots { position: absolute; top: 50%; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); display: flex; justify-content: space-around; transform: translateY(-50%); pointer-events: none; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); opacity: 0; }
.reveal.in .g-dots i { animation: fade .2s ease both; animation-delay: calc(var(--D) * (.08 + var(--n) * .032) + .3s); }
.g-dots i:nth-child(1) { --n: 0; } .g-dots i:nth-child(2) { --n: 1; } .g-dots i:nth-child(3) { --n: 2; } .g-dots i:nth-child(4) { --n: 3; } .g-dots i:nth-child(5) { --n: 4; } .g-dots i:nth-child(6) { --n: 5; } .g-dots i:nth-child(7) { --n: 6; } .g-dots i:nth-child(8) { --n: 7; } .g-dots i:nth-child(9) { --n: 8; } .g-dots i:nth-child(10) { --n: 9; } .g-dots i:nth-child(11) { --n: 10; } .g-dots i:nth-child(12) { --n: 11; } 
.g-map .g-track { background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%, color-mix(in srgb, var(--paper-2) 60%, transparent); border-radius: 0 8px 8px 0; }
.g-nodes i { position: absolute; top: 50%; left: calc(var(--t) * 100%); width: 18px; height: 12px; margin: -6px 0 0 -9px; border-radius: 3px; background: var(--card); border: 1px dashed color-mix(in srgb, var(--ink) 40%, transparent); opacity: 0; }
.reveal.in .g-nodes i { animation: node-in .35s cubic-bezier(.2,.8,.2,1) both calc(var(--t) * var(--D) + .3s), node-ok .3s ease both calc(var(--D) * .9 + .3s + var(--t) * .4s); }
@keyframes node-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes node-ok { from { opacity: 1; } to { opacity: 1; background: var(--rule); border: 1px solid var(--rule); } }
.g-now { position: absolute; top: 46px; bottom: 18px; left: calc(24px + var(--lab)); width: 2px; margin-left: -1px; background: var(--crit); border-radius: 1px; opacity: 0; }
.g-now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }
.reveal.in .g-now { animation: now var(--D) linear both .3s; }
@keyframes now { 0% { opacity: 1; transform: translateX(0); } 95% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--track-w, 600px)); } }
@media (max-width: 600px) {
  .gantt { --lab: 96px; padding: 16px 14px 12px; }
  .g-lab { font-size: 12.5px; } .g-lab small { display: none; }
  .g-head { font-size: 9.5px; letter-spacing: 0; }
  .g-head span + span { padding-left: 4px; }
  .g-now { left: calc(14px + var(--lab)); top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .gantt * { animation: none !important; }
  .g-bar { transform: none; } .g-dots i { opacity: 1; } .g-nodes i { opacity: 1; background: var(--rule); border-color: var(--rule); } .g-now { display: none; }
}
.team-time { display: flex; flex-direction: column; background: var(--paper-2); border-radius: 18px; padding: 26px; }
.team-time .calc-sum { padding-bottom: 12px; }
.team-time .calc-sum .cs-save dd { font-size: 32px; color: var(--ink); }
.team-time .calc-sum .cs-save dt { font-size: 15px; }
.team-time .calc-note { margin-top: auto; }

/* ---------- What you get: card media ---------- */
.sc-media.topo { background: linear-gradient(160deg, var(--tint-1), var(--tint-2)); }
.sc-media.topo::before { opacity: .22; }
.t-green { --tint-1: #d5e4da; --tint-2: #eaf0e6; }
.t-sand { --tint-1: #eadfc9; --tint-2: #f4eee2; }
.t-slate { --tint-1: #d8dee6; --tint-2: #eceff2; }
.t-rose { --tint-1: #ecd8d0; --tint-2: #f5ebe6; }
@media (prefers-color-scheme: dark) {
  .t-green { --tint-1: #17251e; --tint-2: #1c2420; }
  .t-sand { --tint-1: #27231a; --tint-2: #211f1a; }
  .t-slate { --tint-1: #1b2027; --tint-2: #1d2024; }
  .t-rose { --tint-1: #2a1d19; --tint-2: #231d1b; }
}
/* Fragments sit on the contour like a sheet of paper, light in both themes */
.frag .chip.judge { background: #f6ead2; color: #a86a00; } .frag .chip.crit { background: #f7e3d9; color: #b4502a; }
.frag .chip.new { border-color: #8d8d87; color: #161514; }

.rp-strip { display: flex; gap: 4px; padding: 2px 2px 12px; }
.rp-strip i { flex: 1; height: 10px; border-radius: 3px; }
.rp-strip .r { background: #a9d1b9; } .rp-strip .j { background: #ecc983; }
.rp-strip .sel { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #161514; }
.rp-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 8px; border-top: 1px solid #ececea; }
.rp-head b { font-weight: 500; font-size: 16px; }
.rp-dl { margin: 0; }
.rp-dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 2px; border-top: 1px solid #ececea; font-size: 13px; }
.rp-dl dt { color: #7d7d77; font-size: 12px; padding-top: 1px; }
.rp-dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.stack-card.on .rp-dl div { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 110ms + 200ms); }
.rp-foot { display: flex; align-items: center; gap: 6px; padding: 12px 2px 0; border-top: 1px solid #ececea; font-size: 12px; color: #7d7d77; }
.rp-foot span:first-child { margin-right: auto; }
.rp-x { font: 500 11px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: #f4f4f2; color: #161514; }

.tb { display: flex; gap: 2px; height: 26px; margin: 4px 2px 14px; }
.tb i { flex: var(--w) 0 0; border-radius: 4px; transform-origin: left; }
.tb .r { background: #2f7a55; } .tb .j { background: #d9a43c; }
.stack-card.on .tb i { animation: grow .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-top: 1px solid #ececea; font-size: 13px; }
.tl li > i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tl .r, .tsum .r { background: #2f7a55; } .tl .j, .tsum .j { background: #d9a43c; }
.tl b { margin-left: auto; font: 500 12.5px/1 var(--mono); }
.tl .more { color: #7d7d77; padding-left: 21px; }
.crit-dot { width: 13px; height: 13px; flex: none; background: #b4502a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tsum { margin: 10px 0 0; padding-top: 10px; border-top: 1.5px solid #161514; display: grid; gap: 4px; }
.tsum div { display: flex; justify-content: space-between; align-items: baseline; }
.tsum dt { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tsum dt i { width: 10px; height: 10px; border-radius: 3px; }
.tsum dd { margin: 0; font: 500 20px/1.2 var(--sans); }

.frag-road { width: min(560px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.rd-col { display: grid; gap: 6px; align-content: start; background: #f4f4f2; border-radius: 12px; padding: 10px; }
.stack-card.on .rd-col { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--c) * 160ms + 200ms); }
.rd-h { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; padding: 2px 2px 6px; }
.rd-n { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #161514; color: #fff; font: 600 10.5px/1 var(--sans); }
.rd-i { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; background: #fff; box-shadow: 0 4px 10px -8px rgba(0,0,0,.3); border-left: 3px solid #2f7a55; }
.rd-i b { font-weight: 500; font-size: 13px; } .rd-i small { font-size: 11.5px; color: #7d7d77; }
.rd-col:nth-child(2) .rd-i { border-left-color: #8fbfa5; }
.keep .rd-i { border-left-color: #d9a43c; } .keep .rd-n { background: #d9a43c; }
@media (max-width: 899px) { .frag-road { gap: 5px; padding: 8px; } .rd-col { padding: 6px; gap: 5px; } .rd-h { font-size: 12px; align-items: flex-start; line-height: 1.25; min-height: 34px; } .rd-n { flex: none; } .rd-i { padding: 6px 7px; box-shadow: none; } .rd-i b { font-size: 12px; line-height: 1.25; } .rd-i small { display: none; } }

.gp { list-style: none; margin: 0; padding: 0; }
.gp li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid #ececea; }
.stack-card.on .gp li { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 140ms + 200ms); }
.gp .gk { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.gp span:nth-child(2) { display: grid; line-height: 1.3; min-width: 0; } .gp b { font-weight: 500; font-size: 13px; } .gp small { font-size: 11.5px; color: #7d7d77; }
.gp .gt { font: 500 11px/1 var(--sans); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.g-diff .gk, .g-diff .gt { background: #f6ead2; color: #a86a00; }
.g-add .gk, .g-add .gt { background: #f7e3d9; color: #b4502a; }
.g-reg .gk, .g-reg .gt { background: #e2e6fa; color: #3b4a9a; }
.g-ok .gk, .g-ok .gt { background: #e3f0e8; color: #2f7a55; }
.g-ok { opacity: .7; }

/* ---------- Data and access ---------- */
.bound { margin: 0; }
.bound-svg { width: 100%; height: auto; max-height: 360px; }
.bound .co { fill: var(--paper-2); stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.4; stroke-dasharray: 6 6; }
.bound .co-t { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); }
.bound .locked rect { fill: var(--card); stroke: var(--line); }
.bound .lock rect, .bound .lock path { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.bound .bx-t { font: 500 14px var(--sans); fill: var(--ink); }
.bound .bx-s { font: 400 12.5px var(--sans); fill: var(--muted); }
.bound .locked .bx-t { fill: var(--ink-2); }
.bound .ppl circle, .bound .ppl path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.bound .doc rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; } .bound .doc path { stroke: var(--muted); stroke-width: 1.4; }
.bound .mapout rect { fill: var(--rule); }
.bound .inv { fill: #fff; }
@media (prefers-color-scheme: dark) { .bound .inv { fill: #0f1110; } }
.bound .nm { fill: var(--ink); }
.bound .nm-t { font: 500 18px var(--sans); fill: var(--paper); }
.bound .nm-s { font: 400 13px var(--sans); fill: color-mix(in srgb, var(--paper) 75%, transparent); }
.bound .flow { fill: none; stroke: var(--rule); stroke-width: 2; stroke-dasharray: 6 6; }
.reveal.in .bound .flow { animation: march 1.2s linear infinite; }
.bound .fl-t { font: 500 12px var(--mono); fill: var(--rule); text-anchor: middle; }
.bound .no { fill: none; stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1.4; stroke-dasharray: 3 4; }
.bound .nox circle { fill: var(--card); stroke: var(--crit); stroke-width: 1.4; }
.bound .nox path { stroke: var(--crit); stroke-width: 1.8; stroke-linecap: round; }
@keyframes march { to { stroke-dashoffset: -24; } }
.bound-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bound-facts li { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.45; }
.bound-facts b { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 900px) { .bound-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .bound-svg { display: none; }
  .bound-facts { grid-template-columns: 1fr; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .bound .flow, .pm-wires .w.ho { animation: none !important; } }

/* ---------- Price ---------- */
.price-grid { scroll-margin-top: 90px; }
.receipt { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.rc { margin: 0; }
.rc div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rc dt { color: var(--ink-2); }
.rc dd { margin: 0; text-align: right; }
.receipt .calc-sum { padding: 6px 0 10px; }
.receipt .calc-sum .cs-save { border-top: 0; margin-top: 4px; }
.receipt .calc-sum .cs-save dd { color: var(--ink); font-size: 32px; }
.addons { margin: 18px 0 26px; }
.addons-h { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.addons li { font-size: 13px; padding: 7px 11px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-2); }
body.v2 .form-h { font: 500 20px/1.2 var(--sans); letter-spacing: -.01em; margin: 0 0 4px; }
.mapsite form label > span { font-size: 14px; color: var(--ink-2); }
.mapsite textarea { min-height: 96px; }

/* Section rhythm: less air than noea.ai, the figures do the talking */
body.mapsite section { padding: 80px 0; }
@media (max-width: 600px) { body.mapsite section { padding: 56px 0; } }
body.mapsite .map-hero { padding: 56px 0 24px !important; }
.pm-rules .st { transition: opacity .4s ease; }
.mcard[data-mode="sop"] .pm-rules .st { opacity: 0; }
body.mapsite .outcome .inset { height: 280px; padding: 20px; }
body.mapsite .outcome .inset svg { width: 100%; max-height: 190px; }
.fig-heads .s { stroke: color-mix(in srgb, var(--ink) 22%, transparent); }

/* Phones: the same map, turned on its side */
.pm-lane .l-short { display: none; }
.mcard.vert .pm-lanes { inset: 0 8px 0 0; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mcard.vert .pm-lane span { left: 8px; top: 10px; font-size: 9.5px; letter-spacing: .03em; }
.mcard.vert .pm-lane .l-long { display: none; } .mcard.vert .pm-lane .l-short { display: inline; }
.mcard.vert .pm-doc { top: 12px; left: 113px; font-size: 9.5px; letter-spacing: .03em; }
.pm-lane b { font-weight: inherit; }
@media (max-width: 640px) {
  .mcard-top { margin-bottom: 14px; }
  .pm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; width: 100%; }
  .pm-legend { gap: 8px 12px; font-size: 11.5px; }
  .pm-rules { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 14px -12px 0; padding: 0 12px; }
  .pm-rules::-webkit-scrollbar { display: none; }
  .pm-rules li { flex: 0 0 82%; scroll-snap-align: start; min-height: 96px; }
}
@media (max-width: 600px) { .g-nodes i { width: 10px; height: 10px; margin: -5px 0 0 -5px; } }
/* Phones: each card's sheet keeps only what fits the photo area */
@media (max-width: 899px) {
  .frag-repo .rp-dl div:nth-child(1), .frag-repo .rp-dl div:nth-child(5), .frag-repo .rp-foot { display: none; }
  .frag-time .tl li:nth-child(n+4) { display: none; }
  .frag-gaps .g-ok, .frag-gaps li:nth-child(4) { display: none; }
  .rp-dl div { grid-template-columns: 56px 1fr; padding: 7px 2px; }
  .gp li { padding: 7px 2px; }
}

/* Hero map: monochrome. Only the inspection-critical marks keep their red. */
.mcard[data-mode="real"] .pm-node.rule, .mcard[data-mode="real"] .pm-node.judge { background: var(--card); border-color: var(--line); }
.mcard[data-mode="real"] .pm-node.new { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.pm-node::before { display: none; }
.pm-node { padding-left: 11px; }
.pm-wires .w.ho { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-dasharray: 4 4; animation: none; }
.pm-wires .tok { fill: var(--ink); filter: none; }
.lg-ho { border-top-color: color-mix(in srgb, var(--ink) 55%, transparent) !important; }

/* Unwritten rules, said on the step they belong to */
.pm-node .say {
  position: absolute; z-index: 3; white-space: nowrap; pointer-events: none;
  padding: 6px 10px; border-radius: 9px; background: var(--ink); color: var(--paper);
  font: 500 12px/1.2 var(--sans); box-shadow: 0 8px 18px -10px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease;
}
.pm-node .say::after { content: ""; position: absolute; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
.say[data-at="above"], .say[data-at="above-r"] { bottom: calc(100% + 9px); }
.say[data-at="above"] { left: 6px; } .say[data-at="above-r"] { right: 6px; }
.say[data-at="above"]::after { left: 16px; bottom: -3px; } .say[data-at="above-r"]::after { right: 16px; bottom: -3px; }
.say[data-at="below"] { top: calc(100% + 9px); left: 6px; } .say[data-at="below"]::after { left: 16px; top: -3px; }
.say[data-at="right"] { left: calc(100% + 12px); top: 50%; margin-top: -13px; } .say[data-at="right"]::after { left: -3px; top: 9px; }
.mcard:not(.vert)[data-mode="real"] .pm-node .say { opacity: 1; transform: none; transition-delay: .9s; }
.mcard:not(.vert) .pm-node[data-id="n4"] .say { transition-delay: 1.05s; }
.mcard:not(.vert) .pm-node[data-id="n7"] .say { transition-delay: 1.2s; }
.mcard:not(.vert) .pm-node[data-id="n9"] .say { transition-delay: 1.35s; }
/* Phones: above the step, right-hand column anchored right, one at a time */
.mcard.vert .pm-node .say { top: auto; bottom: calc(100% + 9px); margin: 0; left: 6px; right: auto; }
.mcard.vert .pm-node .say::after { top: auto; bottom: -3px; left: 16px; right: auto; }
.mcard.vert .pm-node[data-id="n7"] .say, .mcard.vert .pm-node[data-id="n9"] .say { left: auto; right: 6px; }
.mcard.vert .pm-node[data-id="n7"] .say::after, .mcard.vert .pm-node[data-id="n9"] .say::after { left: auto; right: 16px; }
.mcard.vert[data-mode="real"] .pm-node.speaking .say { opacity: 1; transform: none; }
.lg-say { width: auto !important; height: auto !important; padding: 1px 5px 0; border-radius: 4px !important; background: var(--ink); color: var(--paper); font: 600 11px/1.1 var(--sans); font-style: normal; }

/* Interview as a voice call: invite, two tiles, live transcript */
.iv-invite { display: flex; align-items: center; gap: 10px; min-width: 0; }
.iv-invite > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.iv-invite strong { font-weight: 500; font-size: 14px; }
.iv-invite small { font-size: 12px; color: var(--muted); }
.iv-cal { flex: none; width: 34px; height: 36px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; align-content: center; font: 500 14px/1 var(--sans); background: var(--card); overflow: hidden; }
.iv-cal b { display: block; width: 100%; text-align: center; font: 600 8px/1 var(--mono); letter-spacing: .04em; color: var(--paper); background: var(--crit); padding: 3px 0 2px; margin-bottom: 3px; }
.iv-plat { color: var(--ink); font-weight: 500; transition: opacity .25s ease; }
.iv-plat.swap { opacity: 0; }
.iv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.iv-tile { position: relative; height: 112px; border-radius: 12px; background: #1d1f1e; display: grid; place-items: center; transition: box-shadow .25s ease; }
.iv-name { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; color: rgba(255,255,255,.75); }
.iv-face { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #3a3d3b; color: #fff; font: 500 14px/1 var(--sans); transition: box-shadow .25s ease; }
.iv-wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.iv-wave i { width: 4px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.55); }
.iv[data-speaking="ai"] .iv-tile[data-who="ai"], .iv[data-speaking="op"] .iv-tile[data-who="op"] { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.iv[data-speaking="ai"] .iv-wave i { background: #fff; animation: talk .6s ease-in-out infinite alternate; }
.iv-wave i:nth-child(2) { animation-delay: -.2s !important; } .iv-wave i:nth-child(3) { animation-delay: -.45s !important; } .iv-wave i:nth-child(4) { animation-delay: -.1s !important; }
.iv-wave i:nth-child(5) { animation-delay: -.35s !important; } .iv-wave i:nth-child(6) { animation-delay: -.55s !important; } .iv-wave i:nth-child(7) { animation-delay: -.25s !important; }
@keyframes talk { from { height: 6px; } to { height: 34px; } }
.iv[data-speaking="op"] .iv-face { animation: voice 1s ease-out infinite; }
@keyframes voice { from { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } to { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }

/* Transcript: plain lines, speaker on the left */
.iv-msgs { gap: 0; margin-top: 12px; }
.iv-msgs li, .iv-msgs .ai, .iv-msgs .op { max-width: none; justify-self: stretch; background: none; color: var(--ink); border-radius: 0; padding: 8px 0; border-bottom: 1px dashed var(--line); display: none; grid-template-columns: 112px 1fr; gap: 10px; font-size: 13.5px; }
.iv-msgs li.shown { display: grid; }
.iv-msgs li::before { content: "Case processor"; display: block; margin: 0; font: 500 10.5px/1.6 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.iv-msgs .ai::before { content: "Interviewer"; }
.iv-msgs .ai { color: var(--ink-2); }
@media (max-width: 760px) { .iv-msgs li, .iv-msgs .ai, .iv-msgs .op { grid-template-columns: 1fr; gap: 2px; } .iv-tile { height: 92px; } }
@media (prefers-reduced-motion: reduce) { .iv-wave i, .iv-face { animation: none !important; } }

/* ---------- How it works: one person on a call, everyone at once ---------- */
.call-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; min-height: min(72vh, 640px); background: #2b2d2e url(/map/call.jpg) 60% 50% / cover; display: flex; align-items: center; padding: 40px; }
.call-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -1; }
.live { margin: 0; width: min(380px, 100%); background: var(--card); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.live-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 2px 10px; }
.live-top strong { font-weight: 500; font-size: 15px; }
.live-count { font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.live-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crit); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.live-count b { font-weight: 600; font-variant-numeric: tabular-nums; }
.live-list { list-style: none; margin: 0; padding: 0; }
.live-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 2px; border-top: 1px solid var(--line); }
.lv-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 500 10.5px/1 var(--sans); color: var(--ink-2); transition: background .3s, color .3s; }
.lv-who { display: grid; line-height: 1.25; min-width: 0; } .lv-who b { font-weight: 500; font-size: 13px; } .lv-who small { font-size: 11.5px; color: var(--muted); }
.lv-st { display: grid; justify-items: end; font-size: 11.5px; }
.lv-st > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .3s ease; opacity: 0; }
.st-booked { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.st-live { display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.st-live i { width: 2px; height: 4px; border-radius: 1px; background: currentColor; animation: talk-s .5s ease-in-out infinite alternate; }
.st-live i:nth-child(2) { animation-delay: -.2s; } .st-live i:nth-child(3) { animation-delay: -.35s; } .st-live i:nth-child(4) { animation-delay: -.1s; } .st-live i:nth-child(5) { animation-delay: -.42s; margin-right: 5px; }
@keyframes talk-s { to { height: 11px; } }
.st-done { color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.st-done::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 9px; }
.live-list li[data-st="booked"] .st-booked, .live-list li[data-st="live"] .st-live, .live-list li[data-st="done"] .st-done { opacity: 1; }
.live-list li[data-st="live"] .lv-av { background: var(--ink); color: var(--paper); }
.live-list li[data-st="done"] .lv-who { opacity: .55; }
.live-foot { display: flex; align-items: center; gap: 12px; padding: 12px 2px 2px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.live-foot b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.live-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; transition: width .4s ease; }
@media (max-width: 760px) {
  .call-panel { min-height: 0; padding: 220px 10px 10px; background-position: 70% 0; background-size: auto 260px; background-repeat: no-repeat; flex-direction: column; align-items: stretch; }
  .call-video { height: 260px; object-position: 70% 50%; }
  .live { width: 100%; }
}

/* One at a time versus all at once */
.race { margin: 16px 0 0; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 18px; }
.race-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 64px; gap: 16px; align-items: center; }
.race-lab { display: grid; gap: 2px; font-size: 14px; font-weight: 500; line-height: 1.25; } .race-lab small { font-weight: 400; font-size: 12px; color: var(--muted); }
.race-track { position: relative; display: flex; gap: 3px; height: 16px; }
.seq .race-track i { flex: 1; border-radius: 3px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.race-stack { display: grid; grid-template-rows: repeat(12, 1fr); gap: 1px; width: calc((100% - 33px) / 12); height: 40px; margin-top: -12px; }
.race-stack i { border-radius: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.race-end { font: 500 13px/1 var(--sans); text-align: right; opacity: 0; }
.par .race-end { color: var(--ink); }
.seq .race-end { color: var(--muted); }
.race.in .seq .race-track i { animation: gbar .32s linear both; animation-delay: calc(var(--k) * .32s + .4s); }
.race.in .race-stack i { animation: gbar .32s linear both .4s; }
.race.in .par .race-end { animation: fade .3s ease both .8s; }
.race.in .seq .race-end { animation: fade .3s ease both 4.3s; }
.par { padding-top: 8px; }
@media (max-width: 600px) {
  .race { padding: 16px; } .race-row { grid-template-columns: 1fr 52px; gap: 6px 10px; }
  .race-lab { grid-column: 1 / -1; flex-direction: row; } .race-lab small { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .race i { transform: none !important; animation: none !important; } .race-end { opacity: 1; } .live-count::before, .st-live i { animation: none; } }


/* Hero: words on white, then the mess on film with the map laid on top of it */
body.mapsite .map-hero { padding: 48px 0 24px !important; }
.hero-copy { container-type: inline-size; margin-bottom: 40px; }
.hero-copy .status { margin-bottom: 22px; }
/* One sentence per line; the size shrinks to keep it that way */
.map-hero h1 { margin: 0; max-width: none; font-size: min(46px, 4.2cqi); line-height: 1.18; }
.map-hero h1 .l1, .map-hero h1 .soft { display: block; white-space: nowrap; }
.hero-copy .hero-cta { margin-top: 26px; }

@media (max-width: 760px) {
  body.mapsite .map-hero { padding-top: 24px !important; }
  .hero-copy { margin-bottom: 24px; }
  .map-hero h1 { font-size: 30px; line-height: 1.2; }
  .map-hero h1 .l1, .map-hero h1 .soft { white-space: normal; text-wrap: balance; }
}

/* ---------- Hero film (after Ramp): an off-white grid, one thing in focus, task cards around it ---------- */
.film {
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23161514' fill-opacity='.16'%3E%3Ccircle cx='80' cy='80' r='1.1'/%3E%3Ccircle cx='80' cy='72' r='.8'/%3E%3Ccircle cx='80' cy='64' r='.8'/%3E%3Ccircle cx='80' cy='88' r='.8'/%3E%3Ccircle cx='80' cy='96' r='.8'/%3E%3Ccircle cx='72' cy='80' r='.8'/%3E%3Ccircle cx='64' cy='80' r='.8'/%3E%3Ccircle cx='88' cy='80' r='.8'/%3E%3Ccircle cx='96' cy='80' r='.8'/%3E%3C/g%3E%3Cg fill='%23161514' fill-opacity='.07'%3E%3Ccircle cx='0' cy='0' r='.8'/%3E%3Ccircle cx='40' cy='40' r='.7'/%3E%3Ccircle cx='120' cy='40' r='.7'/%3E%3Ccircle cx='40' cy='120' r='.7'/%3E%3Ccircle cx='120' cy='120' r='.7'/%3E%3C/g%3E%3C/svg%3E");
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: clamp(28px, 5vw, 64px) clamp(12px, 4vw, 56px);
  background: #f5f4f1 var(--grid) center / 160px 160px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
}
@media (prefers-color-scheme: dark) { .film { background-color: #151716; filter: none; } .film { --grid: none; background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 20px 20px; } }
.film .mcard { grid-area: 1 / 1; align-self: end; margin: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.film[data-scene="mess"] .mcard, .film[data-scene="calls"] .mcard { opacity: 0; transform: translateY(18px) scale(.96); pointer-events: none; }

/* The composition for the first two scenes, centred over the stage */
.f-comp { grid-area: 1 / 1 / 3 / 2; position: relative; width: 100%; align-self: center; height: 560px; pointer-events: none; }
.f-tile, .f-card, .f-pill { position: absolute; left: 50%; top: 50%; }
.f-tile { width: 400px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -24px rgba(0,0,0,.4);
  transform: translate(-50%, -50%) scale(.5); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.f-tile .mess-video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; transform: scaleX(-1); background: #e9e7e3 url(/map/mess.jpg) 50% 50% / cover; }
.f-tile > .f-lab { position: absolute; left: 0; top: -22px; }
.film[data-scene="mess"] .f-tile { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.film[data-scene="calls"] .f-tile { transform: translate(-50%, -54%) scale(.78); opacity: 1; }

/* Small-caps labels, like a system narrating its own work */
.f-lab { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7d7d77; white-space: nowrap; }
.f-live { width: 6px; height: 6px; border-radius: 50%; background: #b4502a; animation: blink 1.2s ease-in-out infinite; }
.f-spin { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #d9d9d4; border-top-color: #4a4a46; animation: spin .8s linear infinite; }
.f-flag { width: 9px; height: 9px; background: #b4502a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Task cards: crisp sheets with selection handles. They fly out of the centre and snap back. */
.f-card { width: 214px; padding: 12px 14px 14px; background: #fff; border: 1px solid #e6e5e1; border-radius: 6px; display: grid; gap: 4px; color: #161514;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.35);
  transform: translate(-50%, -50%) scale(.3); opacity: 0;
  transition: transform .65s cubic-bezier(.2,.9,.25,1), opacity .4s ease; }
.f-card::after { content: ""; position: absolute; inset: -4px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(#161514, #161514) 0 0 / 4px 4px no-repeat, linear-gradient(#161514, #161514) 100% 0 / 4px 4px no-repeat,
              linear-gradient(#161514, #161514) 0 100% / 4px 4px no-repeat, linear-gradient(#161514, #161514) 100% 100% / 4px 4px no-repeat; }
.f-card .f-lab { margin-bottom: 6px; }
.f-card b { font-weight: 500; font-size: 13.5px; } .f-card small { font-size: 11.5px; color: #7d7d77; }
.c1 { --x: -330px; --y: -150px; } .c2 { --x: 330px; --y: -130px; } .c3 { --x: -320px; --y: 120px; } .c4 { --x: 320px; --y: 100px; } .c5 { --x: 40px; --y: 222px; }
.film[data-scene="calls"] .f-card, .film[data-scene="calls"] .f-pill { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 1; transition-delay: var(--d); }
.film[data-scene="calls"] .f-card::after { opacity: 1; transition-delay: calc(var(--d) + .5s); }
.f-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: 6px; }
.f-wave i { width: 3px; height: 4px; border-radius: 2px; background: #161514; animation: talk-s .55s ease-in-out infinite alternate; }
.f-wave i:nth-child(3n) { animation-delay: -.2s; } .f-wave i:nth-child(3n+1) { animation-delay: -.4s; } .f-wave i:nth-child(4n) { animation-delay: -.1s; }
.c2 .f-wave i { animation-duration: .7s; }
.f-lines { display: grid; gap: 6px; }
.f-lines i { height: 6px; border-radius: 3px; background: #ececea; transform-origin: left; transform: scaleX(0); }
.f-lines i:nth-child(2) { width: 82%; } .f-lines i:nth-child(3) { width: 92%; } .f-lines i:nth-child(4) { width: 60%; }
.film[data-scene="calls"] .f-lines i { animation: grow-x .7s ease both; }
.film[data-scene="calls"] .f-lines i:nth-child(1) { animation-delay: .9s; } .film[data-scene="calls"] .f-lines i:nth-child(2) { animation-delay: 1.5s; }
.film[data-scene="calls"] .f-lines i:nth-child(3) { animation-delay: 2.1s; } .film[data-scene="calls"] .f-lines i:nth-child(4) { animation-delay: 2.7s; }
@keyframes grow-x { to { transform: scaleX(1); } }
.c4 q { font-size: 15px; font-weight: 500; quotes: "“" "”"; line-height: 1.3; }
.c4 { border-color: #161514; }
.f-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #fff; border: 1px solid #e6e5e1; font-size: 12.5px; color: #4a4a46; white-space: nowrap;
  box-shadow: 0 10px 24px -16px rgba(0,0,0,.35); transform: translate(-50%, -50%) scale(.3); opacity: 0; transition: transform .65s cubic-bezier(.2,.9,.25,1), opacity .4s ease; }
.f-pill b { color: #161514; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-avs { display: flex; } .f-avs i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-left: -6px; background: #161514; color: #fff; font: 600 8px/1 var(--sans); font-style: normal; border: 2px solid #fff; }
.f-avs i:first-child { margin-left: 0; }

@media (max-width: 760px) {
  .f-comp { height: 520px; align-self: center; }
  .f-tile { width: min(320px, 92%); }
  .film[data-scene="calls"] .f-tile { transform: translate(-50%, -112%) scale(.82); }
  .c1 { --x: -40px; --y: 10px; } .c4 { --x: 30px; --y: 120px; } .c5 { --x: 0px; --y: 210px; }
  .c2, .c3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .f-card, .f-pill, .f-tile, .film .mcard { transition: none !important; } .f-wave i, .f-live, .f-spin { animation: none !important; } }
.form-sub { margin: -8px 0 4px; font-size: 14px; color: var(--muted); }

/* The cost receipt: slides up under the map once the real process is shown */
.film { grid-template-rows: auto auto; }
.f-cost { grid-area: 2 / 1; position: relative; z-index: 3; width: min(860px, 94%); margin-top: -26px; padding: 14px 18px 16px; background: #fff; color: #161514;
  border: 1px solid #e6e5e1; border-radius: 8px; box-shadow: 0 24px 50px -26px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.f-cost::after { content: ""; position: absolute; inset: -4px; pointer-events: none;
  background: linear-gradient(#161514, #161514) 0 0 / 4px 4px no-repeat, linear-gradient(#161514, #161514) 100% 0 / 4px 4px no-repeat,
              linear-gradient(#161514, #161514) 0 100% / 4px 4px no-repeat, linear-gradient(#161514, #161514) 100% 100% / 4px 4px no-repeat; }
.film[data-scene="real"]:has(.mcard[data-mode="real"]) .f-cost { opacity: 1; transform: none; pointer-events: auto; transition-delay: .9s; }
.fc-head { display: flex; height: auto; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #ececea; }
.fc-note { font-size: 11.5px; color: #7d7d77; }
.fc-eq { display: grid; grid-template-columns: 1fr auto 1fr auto .8fr auto 1.35fr auto 1.1fr; gap: 12px; align-items: end; }
.fc-t { display: grid; gap: 6px; min-width: 0; }
.fc-l { display: grid; gap: 2px; font-size: 12.5px; color: #4a4a46; }
.fc-l small { font: 400 11px/1.3 var(--mono); color: #7d7d77; white-space: nowrap; }
.fc-t b { font: 500 20px/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fc-op { font-size: 18px; color: #8d8d87; padding-bottom: 1px; }
.fc-sum b { font-size: 24px; }
.fc-in { cursor: pointer; }
.fc-in input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 7px 0 2px; padding: 0; border: 0; border-radius: 2px; background: #e6e5e1; box-shadow: none; outline: none; }
.fc-in input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #161514; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); cursor: grab; }
.fc-in input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #161514; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); cursor: grab; }
.fc-in input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(22,21,20,.2); }
@media (max-width: 760px) {
  .f-cost { width: calc(100% - 20px); margin-top: -18px; }
  .fc-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fc-eq { grid-template-columns: 1fr; gap: 0; }
  .fc-op { display: none; }
  .fc-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e6e5e1; }
  .fc-t b { font-size: 16px; }
  .fc-in .fc-l { flex: 1; }
  .fc-sum { border-bottom: 0; border-top: 1.5px solid #161514; margin-top: 4px; padding-top: 10px; }
  .fc-sum b { font-size: 24px; }
  .fc-sum small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .f-cost { transition: none; } }
.film .mcard { padding-bottom: 46px; }
.f-cost .fc-t b { font: 500 20px/1 var(--sans); color: #161514; }
.f-cost .fc-sum b { font-size: 24px; }
.f-cost .fc-l { font-weight: 400; }
@media (max-width: 760px) { .film .mcard { padding-bottom: 34px; } .f-cost .fc-t b { font-size: 16px; } .f-cost .fc-sum b { font-size: 24px; } }

/* ---------- Final scene, taken apart: flowchart on the grid, numbers floating, calculator as the floor ---------- */
.film .pm-foot { display: none; }
.film .mcard { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1), background-color .7s ease, box-shadow .7s ease; }
/* The card dissolves: the flowchart breaks out onto the grid */
.film[data-scene="real"] .mcard[data-mode="real"] { background-color: transparent; box-shadow: none; }
.film[data-scene="real"] .mcard[data-mode="real"] .pm-lane { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(22,21,20,.06); }
.film .pm-node { transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease; }
.film[data-scene="real"] .mcard[data-mode="real"] .pm-node { box-shadow: 0 14px 26px -16px rgba(0,0,0,.45); }


/* The calculator is the floor everything stands on */
.f-cost { width: 100%; margin-top: -30px; padding: 16px 22px 18px; border-radius: 10px; }
.film[data-scene="real"]:has(.mcard[data-mode="real"]) .f-cost { transition-delay: .5s; }
.fc-head { flex-wrap: wrap; }
.fc-head .f-lab em { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 11.5px; color: #8d8d87; }
.f-cost .pm-legend { opacity: 1 !important; font-size: 11.5px; color: #4a4a46; gap: 12px; }
.f-cost .lg-say { background: #161514; color: #fff; }
.f-cost .lg-new { border-color: rgba(22,21,20,.5); }
.f-cost .lg-ho { border-top-color: rgba(22,21,20,.55) !important; }

/* Replay, once the film has played */
.f-replay { position: absolute; top: 16px; right: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px;
  border: 1px solid #e6e5e1; background: #fff; color: #161514; font: 500 12.5px/1 var(--sans); cursor: pointer; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .35s ease, transform .35s ease, background-color .2s; }
.f-replay svg { width: 14px; height: 14px; }
.f-replay:hover { background: #f4f4f2; }
.film.done .f-replay { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .pm-kpi { transition: none; } .f-replay { display: none; } }
@media (max-width: 760px) { .f-cost { width: calc(100% - 8px); margin-top: -18px; } .f-cost .pm-legend { margin-top: 4px; } }
@media (max-width: 760px) { .fc-head .f-lab { flex-wrap: wrap; white-space: normal; } .fc-head .f-lab em { display: block; width: 100%; margin-top: 4px; } }

/* ---------- Exploded view, tidied: title, numbers, flowchart, cost. One column, one grid. ---------- */
.pm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 2px 0 16px; }
.pm-kpi { position: relative; display: grid; gap: 4px; padding: 12px 14px 13px; background: #fff; color: #161514; border: 1px solid #e6e5e1; border-radius: 8px;
  box-shadow: 0 14px 28px -20px rgba(0,0,0,.35); opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .55s cubic-bezier(.2,.9,.25,1); }
.pm-kpi .k { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #7d7d77; }
.pm-kpi .kc { width: 9px; height: 9px; background: #b4502a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 13 3.5v4c0 3.2-2.1 5.6-5 7-2.9-1.4-5-3.8-5-7v-4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.pm-kpi b { font: 500 28px/1 var(--sans); letter-spacing: -.02em; margin-top: 4px; }
.pm-kpi small { font-size: 12px; color: #7d7d77; }
.film[data-scene="real"] .mcard[data-mode="real"] .pm-kpi { opacity: 1; transform: none; transition-delay: calc(1s + var(--i) * .12s); }
.mcard:not(.vert) .pm-kpis { margin-left: 0; margin-right: 0; }
@media (max-width: 760px) { .pm-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .pm-kpi { padding: 10px 11px; } .pm-kpi b { font-size: 24px; } .pm-kpi small { font-size: 11px; } }

/* Calculator: every column on the same three lines (label, detail, amount) */
.fc-head { align-items: baseline; }
.fc-head .f-lab { align-items: baseline; gap: 8px; }
.fc-head .f-lab em { font-size: 12px; }
.fc-eq { align-items: stretch; row-gap: 0; }
.fc-t { grid-template-rows: 18px 18px auto; gap: 6px 0; align-content: start; }
.fc-l { display: contents; }
.fc-l small, .fc-in input[type=range] { grid-row: 2; align-self: center; }
.fc-in input[type=range] { margin: 0; }
.fc-t b { grid-row: 3; }
.fc-op { align-self: end; padding-bottom: 3px; }
@media (max-width: 760px) {
  .fc-t { grid-template-rows: none; }
  .fc-l { display: grid; }
  .fc-l small, .fc-in input[type=range] { grid-row: auto; }
  .fc-t b { grid-row: auto; }
  .fc-in input[type=range] { margin: 7px 0 2px; }
}

/* ---------- The slate: the map as a product window. Window bar, tabs, numbers, flowchart, cost. ---------- */
.film .mcard { padding: 0; overflow: hidden; border: 1px solid #e3e2de; border-radius: 14px; background: #fff; max-width: 1080px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.4); }
.film[data-scene="real"] .mcard[data-mode="real"] { background: #fff; box-shadow: 0 40px 80px -36px rgba(0,0,0,.4); }
.film[data-scene="real"] .mcard[data-mode="real"] .pm-lane { background: color-mix(in srgb, var(--paper-2) 70%, transparent); box-shadow: none; }
.film[data-scene="real"] .mcard[data-mode="real"] .pm-node { box-shadow: 0 8px 18px -14px rgba(0,0,0,.35); }
.app-bar { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; height: 38px; padding: 0 14px; border-bottom: 1px solid #ecebe8; background: #fafaf8; }
.app-dots { display: flex; gap: 6px; } .app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e1dd; }
.app-crumb { text-align: center; font-size: 12px; color: #7d7d77; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-crumb em { font-style: normal; color: #c9c8c3; margin: 0 4px; }
.app-act { justify-self: end; font-size: 12px; color: #4a4a46; padding: 4px 9px; border: 1px solid #e6e5e1; border-radius: 6px; background: #fff; }
.app-tabs { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid #ecebe8; font-size: 13px; color: #8d8d87; }
.app-tabs span { padding: 11px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.app-tabs .on { color: #161514; border-bottom-color: #161514; font-weight: 500; }
.app-tabs i { font-style: normal; font: 600 10px/1 var(--sans); padding: 3px 6px; border-radius: 999px; background: #f7e3d9; color: #b4502a; }
.app-main { padding: 18px 22px 16px; }
.film .mcard .mcard-top { margin-bottom: 14px; }
.film .mcard .pm-kpis { margin: 0 0 16px; }
.pm-kpi { opacity: 1; transform: none; box-shadow: none; background: #fafaf8; border-color: #ecebe8; }
.film[data-scene="real"] .mcard[data-mode="real"] .pm-kpi { transition-delay: 0s; }
/* SOP view: the numbers the SOP can't give you */
.pm-kpi b, .pm-kpi small { position: relative; transition: color .3s ease; }
.pm-kpi b::after, .pm-kpi small::after { content: attr(data-sop); position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .3s ease; }
.pm-kpi b::after { color: #161514; } .pm-kpi small::after { color: #8d8d87; }
.mcard[data-mode="sop"] .pm-kpi b, .mcard[data-mode="sop"] .pm-kpi small { color: transparent; }
.mcard[data-mode="sop"] .pm-kpi b::after, .mcard[data-mode="sop"] .pm-kpi small::after { opacity: 1; }
.app-legend { margin: 12px 0 0; opacity: 1 !important; justify-content: flex-end; font-size: 11.5px; color: #4a4a46; }
.mcard[data-mode="sop"] .app-legend { opacity: .35 !important; }
/* Cost: the window's bottom panel */
.film .mcard .f-cost { width: auto; margin: 0; padding: 14px 22px 18px; border: 0; border-top: 1px solid #ecebe8; border-radius: 0; background: #fafaf8; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; }
.film .mcard .f-cost::after { display: none; }
.film .mcard .fc-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
.mcard[data-mode="sop"] .f-cost .fc-t b { color: transparent; position: relative; }
.mcard[data-mode="sop"] .f-cost .fc-t b::after { content: "–"; position: absolute; left: 0; color: #161514; }
.mcard[data-mode="sop"] .f-cost .fc-l small, .mcard[data-mode="sop"] .f-cost input { opacity: .3; }
.mcard[data-mode="sop"] .f-cost input { pointer-events: none; }
@media (max-width: 760px) {
  .app-bar { grid-template-columns: 50px 1fr; } .app-act { display: none; }
  .app-crumb { text-align: left; }
  .app-tabs { gap: 16px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .app-main { padding: 14px 12px 12px; }
  .film .mcard .f-cost { padding: 12px 14px 14px; }
  .app-legend { justify-content: flex-start; }
  .mcard[data-mode="sop"] .f-cost .fc-t b::after { left: auto; right: 0; }
}
.film .mcard .fc-head { display: block; height: auto; gap: 0; margin-bottom: 14px; line-height: 1; }
.film .mcard .fc-head .f-lab { display: block; }
.film .mcard .fc-head .f-lab { line-height: 1; }
