/* Muster Insurance · Claims, live
   Paper and ink throughout; the process is drawn like a figure on squared paper.
   Role colours keep one meaning everywhere: violet = AI agent, mustard = system, teal = person. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f2ede3;
  --paper-2: #e9e2d4;
  --paper-3: #dcd3c1;
  --card: #fbf8f2;
  --white: #fffdf8;
  --ink: #16181c;
  --ink-2: #454a52;
  --ink-3: #7b7f86;
  --rule: rgba(22, 24, 28, 0.13);
  --rule-2: rgba(22, 24, 28, 0.26);
  --brand: #e8461e;
  --brand-2: #c9370f;
  --pen: #2346c8;
  /* role colours */
  --agent: #5b3fe0;
  --system: #a87300;
  --person: #0b7a6b;
  --ok: #1f8a4c;
  --bad: #c8283c;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("/img/grain.png"); opacity: 0.55; mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }
body.studio-open { overflow: hidden; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
em { font-style: italic; }
.hand { font-family: var(--hand); color: var(--pen); font-size: 23px; line-height: 1.05; font-weight: 500; }

/* the Muster mark: a stitched M (Muster means pattern) */
.mark { width: 28px; height: 28px; flex: none; --on: var(--brand); --off: rgba(22, 24, 28, 0.13); }
.stitch-on rect { fill: var(--on); }
.stitch-off rect { fill: var(--off); }

/* ------------------------------------------------------------ masthead */
.mast {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(20px, calc((100vw - 1200px) / 2));
  background: rgba(242, 237, 227, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; font-variation-settings: "opsz" 48, "SOFT" 30; }
.brand-name em { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-left: 7px; }
.mast-nav { display: flex; gap: 26px; margin-left: auto; }
.mast-nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.mast-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 5px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer;
  font: 600 15.5px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  padding: 12px 18px; background: var(--white); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover:not(:disabled) { background: #f0542b; }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--rule-2); }
.btn-ghost:hover:not(:disabled) { box-shadow: none; transform: none; background: rgba(22, 24, 28, 0.05); }
.btn-lg { padding: 16px 22px; font-size: 17px; }
.link-under { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 5px; font-size: 15.5px; }
.link-under:hover { color: var(--ink); text-decoration-color: var(--brand); }

/* ------------------------------------------------------------ hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 62px 20px 30px; }
.hero h1 {
  margin: 0; max-width: 1060px;
  font-family: var(--serif); font-weight: 480; font-size: clamp(44px, 6.9vw, 98px); line-height: 0.98; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero h1 em { font-weight: 420; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--brand); }
.u-pen { position: relative; white-space: nowrap; }
.pen-underline { position: absolute; left: -1%; bottom: 0.04em; width: 102%; height: 0.2em; overflow: visible; }
.pen-underline path { fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s 0.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-row { margin-top: 38px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lead { margin: 0; font-size: 19.5px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.hero-cta { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 4px; }
.note-cta { position: absolute; left: 250px; top: -36px; width: 190px; transform: rotate(-4deg); }
.note-cta .ink { display: block; clip-path: inset(-12px 100% -12px -12px); animation: write 1.5s 0.8s ease-out forwards; }
.note-cta svg { position: absolute; left: -46px; top: 22px; width: 52px; height: 36px; overflow: visible; animation: nudge 6s 2.2s ease-in-out infinite; }
.note-cta svg path { fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; animation: redraw 6s 2.2s ease-in-out infinite; }
.hero-cta .btn-lg svg { animation: poke 6s 2.2s ease-in-out infinite; }
@keyframes write { to { clip-path: inset(-12px -16px -12px -12px); } }
@keyframes redraw { 0% { stroke-dashoffset: 100; opacity: 0; } 1% { opacity: 1; } 18% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@keyframes nudge { 0%, 18%, 30%, 100% { transform: none; } 23% { transform: translate(-4px, 3px); } }
@keyframes poke { 0%, 20%, 32%, 100% { transform: none; } 25% { transform: translateX(5px); } }

/* Fig. 1: the process, drawn on squared paper */
.window {
  position: relative; isolation: isolate; margin: 0; border-radius: 8px; color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  background-color: var(--white);
  background-image: linear-gradient(rgba(35, 70, 200, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 70, 200, 0.07) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.hero .window { margin-top: 118px; padding: 0 0 8px; }
.window-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1.5px solid var(--ink); font-size: 14px; color: var(--ink-2); }
.fig { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.mono-key { font-family: var(--mono); font-size: 12.5px; color: var(--brand-2); background: rgba(232, 70, 30, 0.07); border: 1px solid rgba(232, 70, 30, 0.4); padding: 2px 8px; border-radius: 4px; }
.window-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roles { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.r { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 10px; }
.r:first-child { margin-left: 0; }
.r-agent { background: var(--agent); }
.r-system { background: var(--system); }
.r-person { background: var(--person); }
.diagram-scroll { position: relative; z-index: 2; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.diagram-host { min-width: 700px; padding: 10px 12px 2px; }
.window.follow .diagram-scroll { overflow: hidden; }
.window.follow .diagram-host { min-width: 0; padding: 4px 4px 0; }
.window.follow .bpmn { aspect-ratio: 1.25; }

/* handwritten notes around Fig. 1 (placed by app.js): they write themselves, the arrows keep redrawing,
   and they sit under the figure's text so labels and captions always stay readable */
.notes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.note { position: absolute; font-family: var(--hand); font-size: 22px; line-height: 1.05; color: var(--pen); width: max-content; max-width: 240px; text-wrap: balance; clip-path: inset(-12px 100% -12px -12px); transition: clip-path 1.3s ease-out; }
.note.in { clip-path: inset(-12px -16px -12px -12px); }
.note-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.note-arrow path { fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.notes.in .note-arrow path { animation: redraw-note 8s 0.6s ease-in-out infinite; }
.notes.in .note-arrow path:nth-child(2) { animation-delay: 3.1s; }
.notes.in .note-arrow path:nth-child(3) { animation-delay: 5.6s; }
@keyframes redraw-note { 0% { stroke-dashoffset: 100; opacity: 0; } 1% { opacity: 1; } 14% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 94% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }

/* the 404 page */
.lost .lead { margin: 28px 0 34px; }

/* ------------------------------------------------------------ the BPMN diagram, in ink */
.bpmn { width: 100%; height: auto; font-family: var(--sans); overflow: visible; }
.bpmn .line { fill: none; stroke: rgba(22, 24, 28, 0.5); stroke-width: 1.5; stroke-linejoin: round; transition: stroke 0.4s; }
.bpmn .lit { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-dasharray: 6 8; stroke-linecap: round; opacity: 0; transition: opacity 0.4s; }
.bpmn .flow.on .line { stroke: rgba(232, 70, 30, 0.3); }
.bpmn .flow.on .lit { opacity: 1; animation: march 1.2s linear infinite; }
.bpmn .flow.bad .line { stroke: rgba(200, 40, 60, 0.3); }
.bpmn .flow.bad .lit { stroke: var(--bad); }
@keyframes march { to { stroke-dashoffset: -28; } }
.bpmn .arrow { fill: rgba(22, 24, 28, 0.62); }
.bpmn .arrow.on { fill: var(--brand); }
.bpmn .arrow.bad { fill: var(--bad); }
.bpmn .flow-label, .bpmn .event-label { fill: var(--ink-2); font-size: 11.5px; font-weight: 500; paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.bpmn .node { --role: var(--ink-3); }
.bpmn .node.role-agent { --role: var(--agent); }
.bpmn .node.role-system { --role: var(--system); }
.bpmn .node.role-person { --role: var(--person); }
.bpmn .node .drop { fill: var(--ink); }
.bpmn .node .shape { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.35s, stroke 0.35s; }
.bpmn .node .stripe { fill: var(--role); }
.bpmn .node .halo { fill: none; stroke: var(--role); stroke-width: 2; opacity: 0; }
.bpmn .node-label { fill: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; }
.bpmn .node .badge, .bpmn .node .tick { opacity: 0; transition: opacity 0.3s; }
.bpmn .node .badge { fill: var(--role); stroke: var(--white); stroke-width: 1.5; }
.bpmn .node .tick { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bpmn .node.done .shape { fill: color-mix(in srgb, var(--role) 11%, var(--white)); }
.bpmn .node.done .badge, .bpmn .node.done .tick { opacity: 1; }
.bpmn .node.active .shape { fill: color-mix(in srgb, var(--role) 20%, var(--white)); stroke: var(--role); stroke-width: 2.2; }
.bpmn .node.active .halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { 0% { opacity: 0.85; stroke-width: 2; } 100% { opacity: 0; stroke-width: 12; } }
.bpmn .icon path { fill: none; stroke: var(--role); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bpmn .icon.agent path { fill: var(--role); stroke: none; }
.bpmn .icon.shield path { fill: rgba(232, 70, 30, 0.12); stroke: var(--brand-2); }
.bpmn .node.ExclusiveGateway .mark { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.bpmn .node.ExclusiveGateway.done .shape, .bpmn .node.StartEvent.done .shape { fill: var(--paper-2); }
.bpmn .node.StartEvent .shape { stroke-width: 1.7; }
.bpmn .node.EndEvent .shape { stroke-width: 3.4; }
.bpmn .node.EndEvent.done.tone-ok .shape { stroke: var(--ok); fill: rgba(31, 138, 76, 0.14); }
.bpmn .node.EndEvent.done.tone-bad .shape { stroke: var(--bad); fill: rgba(200, 40, 60, 0.12); }
.bpmn .node.EndEvent.done.tone-neutral .shape { stroke: var(--system); fill: rgba(168, 115, 0, 0.13); }
.bpmn .node.EndEvent .badge, .bpmn .node.EndEvent .tick { display: none; }
.bpmn .node.BoundaryEvent .shape { fill: var(--white); stroke: var(--brand-2); }
.bpmn .node.BoundaryEvent .inner { fill: none; stroke: rgba(201, 55, 15, 0.55); stroke-width: 1.2; }
.bpmn .node.BoundaryEvent .mark { fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-linejoin: round; }
.bpmn .node.BoundaryEvent.fired .shape { stroke: var(--bad); fill: #ffe3e6; }
.bpmn .node.BoundaryEvent.fired .mark, .bpmn .node.BoundaryEvent.fired .inner { stroke: var(--bad); }
.bpmn.is-blocked .node[data-id="FormTask_ReviewBlockedSubmission"].active .shape { stroke: var(--bad); fill: #fff0f1; }
.bpmn.is-blocked .node[data-id="FormTask_ReviewBlockedSubmission"] .halo { stroke: var(--bad); }
.bpmn .node.flash-bad .shape { animation: flash-bad 1.3s ease-out; }
.bpmn .node.flash-ok .shape { animation: flash-ok 1.3s ease-out; }
@keyframes flash-bad { 0%, 30% { fill: #ffb9c1; stroke: var(--bad); } }
@keyframes flash-ok { 0%, 30% { fill: #bfe9cf; stroke: var(--ok); } }
.bpmn .token { fill: var(--brand); }
.bpmn .token.bad { fill: var(--bad); }
.bpmn .caption { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.bpmn .caption.in { opacity: 1; transform: none; }
.bpmn .caption-drop { fill: var(--ink); }
.bpmn .caption-bg { fill: var(--white); stroke: var(--ink); stroke-width: 1.4; }
.bpmn .caption.on .caption-bg { fill: #fff3ee; }
.bpmn .caption.ok .caption-bg { fill: #edf8f1; }
.bpmn .caption.warn .caption-bg { fill: #fcf3da; }
.bpmn .caption.bad .caption-bg { fill: #ffeef0; }
.bpmn .caption-text { fill: var(--ink); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------ sections */
.sec { max-width: 1200px; margin: 0 auto; padding: 120px 20px 0; }
.sec-head { position: relative; border-top: 1.5px solid var(--ink); padding-top: 22px; }
.sec h2 { margin: 0; max-width: 980px; text-wrap: balance; font-family: var(--serif); font-weight: 470; font-size: clamp(32px, 4.3vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-variation-settings: "opsz" 144, "SOFT" 30; }
.sec h2 em { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--brand); font-weight: 430; }
.sec-lead { margin: 22px 0 0; max-width: 680px; color: var(--ink-2); font-size: 18.5px; }

/* 01: the line of five cards, each tagged with who does the work */
.line { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.card-step { position: relative; padding: 22px 20px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 330px; }
.card-step:last-child { border-right: 0; background: rgba(11, 122, 107, 0.06); }
.tabs-role { display: flex; flex-wrap: wrap; gap: 5px; }
.tr { font: 600 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; color: #fff; }
.tr-agent { background: var(--agent); }
.tr-system { background: var(--system); }
.tr-person { background: var(--person); }
.card-step .n { margin-top: 26px; font-family: var(--serif); font-size: 64px; line-height: 0.8; font-weight: 300; color: var(--ink-3); font-variation-settings: "opsz" 144; }
.card-step h3 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 560; font-size: 27px; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.card-step p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; flex: 1; }
.tech { font: 500 12px/1.4 var(--mono); color: var(--ink-3); }

/* 02: exhibits, real attacks as evidence tags */
.exhibits { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.exhibit {
  position: relative; text-align: left; cursor: pointer; padding: 20px 20px 18px 22px; border-radius: 4px 14px 14px 4px;
  border: 1.5px solid var(--ink); background: var(--card); display: flex; flex-direction: column; gap: 10px; min-height: 206px;
  box-shadow: 3px 3px 0 rgba(22, 24, 28, 0.85); transition: transform 0.15s, box-shadow 0.15s;
}
.exhibit::before { content: ""; position: absolute; right: 16px; top: 16px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.exhibit:hover { transform: translate(-2px, -2px) rotate(-0.4deg); box-shadow: 5px 5px 0 rgba(22, 24, 28, 0.85); }
.exhibit .ex-no { font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.exhibit b { font-family: var(--serif); font-weight: 560; font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; padding-right: 22px; }
.exhibit .what { color: var(--ink-2); font-size: 15px; line-height: 1.5; flex: 1; }
.exhibit .caught { align-self: flex-start; transform: rotate(-3deg); }
.exhibit-own { background: transparent; border-style: dashed; box-shadow: none; }
.exhibit-own:hover { box-shadow: none; background: var(--card); }

/* stamps: worn ink, slightly crooked */
.stamp {
  display: inline-block; font: 700 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 9px 5px; border: 2px solid currentColor; border-radius: 4px; outline: 1px solid currentColor; outline-offset: 2px;
  -webkit-mask-image: url("/img/stamp-mask.png"); mask-image: url("/img/stamp-mask.png"); -webkit-mask-size: 300px; mask-size: 300px;
}
.stamp.rules { color: #b07a00; }
.stamp.judge { color: var(--agent); }
.stamp.own { color: var(--pen); }
.stamp.ok { color: var(--ok); }
.stamp.bad { color: var(--bad); }
.stamp.neutral { color: #a87300; }

/* 03: ledger */
.ledger { margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.ledger-cell { padding: 26px 24px 26px 0; border-right: 1px solid var(--rule); }
.ledger-cell + .ledger-cell { padding-left: 24px; }
.ledger-cell:last-child { border-right: 0; }
.ledger-cell b { display: block; font-family: var(--serif); font-weight: 400; font-size: 92px; line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "opsz" 144, "SOFT" 20; }
.ledger-cell small { font-size: 26px; color: var(--ink-3); letter-spacing: 0; }
.ledger-cell.ok b { color: var(--ok); }
.ledger-cell span { display: block; margin-top: 14px; color: var(--ink-2); font-size: 15.5px; max-width: 300px; }
.fixes { margin: 26px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.fixes li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); font-size: 16px; }
.fixes .v { font: 600 12px/1 var(--mono); color: var(--brand-2); border: 1px solid rgba(232, 70, 30, 0.4); padding: 3px 6px; border-radius: 3px; flex: none; }
.sec-note { margin: 30px 0 0; padding: 16px 18px; max-width: 760px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card); box-shadow: 3px 3px 0 var(--ink); color: var(--ink-2); font-size: 16px; }
.sec-note b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 17px; }

/* 04: video */
.video { margin: 40px 0 0; }
.video video { width: 100%; height: auto; border-radius: 12px; border: 1px solid #0a0c10; background: #000; box-shadow: 0 30px 70px -40px rgba(22, 24, 28, 0.55); }
.video figcaption { margin-top: 12px; color: var(--ink-3); font-size: 14.5px; }
.video figcaption .fig { margin-right: 8px; }

/* 05: the pitch */
.pitch { margin: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 46px; }
.pitch blockquote { margin: 0; position: relative; padding-left: 48px; }
.pitch blockquote::before { content: "“"; position: absolute; left: -6px; top: -26px; font-family: var(--serif); font-size: 110px; line-height: 1; color: var(--brand); font-variation-settings: "opsz" 144; }
.pitch blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 380; font-size: 25px; line-height: 1.38; letter-spacing: -0.01em; font-variation-settings: "opsz" 48, "SOFT" 60; }
.pitch blockquote footer { margin-top: 16px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.messages { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 18px; }
.messages li { counter-increment: m; position: relative; padding: 0 0 18px 42px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 16px; }
.messages li::before { content: counter(m); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 13px/1 var(--mono); color: var(--ink); }
.messages b { color: var(--ink); }

/* 06: the fine print */
.note-fine { position: absolute; right: 0; top: 30px; transform: rotate(-3deg); }
.fine-print { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: f; columns: 2; column-gap: 46px; }
.fine-print li { counter-increment: f; break-inside: avoid; margin: 0 0 14px; padding-left: 22px; position: relative; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.fine-print li::before { content: counter(f); position: absolute; left: 0; top: -2px; font: 600 11px/1 var(--mono); color: var(--brand-2); }

/* colophon */
.colophon { max-width: 1200px; margin: 120px auto 0; padding: 30px 20px 64px; border-top: 1.5px solid var(--ink); color: var(--ink-2); font-size: 15.5px; }
.colophon p { margin: 0 0 6px; }
.colophon a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 4px; }
.colophon .small { font-size: 13.5px; color: var(--ink-3); }
.sign { margin-bottom: 6px; }
.sign .hand { font-size: 46px; font-weight: 600; transform: rotate(-5deg); display: inline-block; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ the studio: a desk with three places */
.studio { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr; background: var(--paper-2); animation: studio-in 0.3s ease; }
.studio::before { content: ""; position: absolute; inset: 0; background: url("/img/grain.png"); opacity: 0.6; mix-blend-mode: multiply; pointer-events: none; }
@keyframes studio-in { from { opacity: 0; transform: translateY(10px); } }
.studio > * { position: relative; }
.studio-bar { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.studio-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.studio-name { font-family: var(--serif); font-weight: 600; font-size: 19px; font-variation-settings: "opsz" 48; }
.case-no { font: 500 12.5px/1 var(--mono); color: var(--ink-2); border: 1px dashed var(--rule-2); padding: 5px 8px; border-radius: 3px; white-space: nowrap; }
.tabs { display: none; margin: 0 auto; gap: 4px; }
.tabs button { position: relative; border: 1.5px solid var(--ink); background: var(--paper-2); padding: 7px 14px; border-radius: 6px 6px 0 0; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); }
.tabs .ping { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 1.5px solid var(--paper); display: none; }
.tabs button.notify .ping { display: block; }
.studio-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.quota { font: 500 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--card); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.studio-body { display: grid; grid-template-columns: minmax(340px, 390px) minmax(0, 1fr) minmax(370px, 430px); gap: 18px; padding: 16px 18px 0; min-height: 0; }
.pane { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding: 2px 6px 26px 3px; }
.pane-role { display: flex; align-items: baseline; gap: 9px; margin: 0 4px 10px; }
.pane-role .hand { font-size: 25px; display: inline-block; transform: rotate(-1.5deg); }
.clock { margin-left: auto; font: 600 14px/1 var(--mono); color: var(--brand-2); letter-spacing: 0.02em; }

/* the customer's phone: Muster's own app */
.phone { max-width: 390px; margin: 0 auto; border-radius: 30px; overflow: hidden; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--rule); background: var(--white); }
.phone-head .mark { width: 26px; height: 26px; }
.phone-head b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.1; font-variation-settings: "opsz" 36; }
.phone-head span { display: block; font-size: 13px; color: var(--ink-3); }
.phone-body { padding: 16px 16px 20px; }
.phone .sub { margin: 0 0 8px; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.choice { border: 1.5px solid var(--rule-2); background: var(--white); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice.attack-choice[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); }
.choice-note { margin: -4px 0 12px; font-size: 13.5px; color: var(--ink-2); }
details.break { margin: 0 0 14px; border: 1.5px dashed rgba(200, 40, 60, 0.45); border-radius: 12px; padding: 10px 12px; }
details.break summary { cursor: pointer; font-size: 14px; font-weight: 650; color: var(--bad); list-style: none; display: flex; justify-content: space-between; }
details.break summary::-webkit-details-marker { display: none; }
details.break summary::after { content: "+"; font-family: var(--mono); }
details.break[open] summary::after { content: "×"; }
details.break .choices { margin: 10px 0 0; }
.f { display: block; margin: 0 0 12px; }
.f > span { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.f input, .f textarea { width: 100%; border: 1.5px solid var(--rule-2); border-radius: 10px; background: var(--white); color: var(--ink); font: 450 15.5px/1.45 var(--sans); padding: 10px 12px; transition: border-color 0.15s, box-shadow 0.15s; }
.f textarea { min-height: 132px; resize: vertical; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232, 70, 30, 0.18); }
.f.err input, .f.err textarea { border-color: var(--bad); }
.f .msg { display: block; margin-top: 4px; font-size: 12.5px; color: var(--bad); font-style: normal; }
.f .applied { animation: applied 1.6s ease; }
@keyframes applied { 0% { background: #fff1c4; border-color: var(--system); } 100% { background: var(--white); } }
.hidden-badge { font: 600 11px/1 var(--mono); color: #fff; background: var(--bad); border-radius: 3px; padding: 3px 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

.doc { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.doc-thumb { position: relative; width: 84px; height: 118px; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: #fff; box-shadow: 2px 2px 0 rgba(22, 24, 28, 0.15); transform: rotate(-2deg); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-thumb .generic { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); color: var(--ink-3); font: 600 12px/1 var(--mono); }
.doc-thumb::after { content: ""; position: absolute; left: 0; right: 0; height: 30px; top: -34px; background: linear-gradient(180deg, transparent, rgba(91, 63, 224, 0.45), transparent); opacity: 0; }
.doc.reading .doc-thumb::after { opacity: 1; animation: scan 1.4s ease-in-out infinite; }
@keyframes scan { 0% { top: -34px; } 100% { top: 118px; } }
.doc-meta { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.doc-meta b { font-size: 14.5px; overflow-wrap: anywhere; }
.doc-meta small { color: var(--ink-3); font-size: 13px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.btn-small { padding: 8px 12px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--ink); }
.linkish { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.agent-run { margin: 0 0 12px; padding: 12px 13px; border-radius: 10px; background: rgba(91, 63, 224, 0.06); border: 1.5px solid rgba(91, 63, 224, 0.3); color: var(--ink); font-size: 13px; }
.agent-run .row { display: flex; align-items: center; gap: 8px; }
.agent-run .row + .row { margin-top: 7px; }
.spark { width: 14px; height: 14px; color: var(--agent); flex: none; }
.agent-run .ms { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--brand-2); white-space: nowrap; }
.extracted { margin: 0 0 12px; padding: 13px; border-radius: 10px; border: 1.5px solid var(--agent); background: rgba(91, 63, 224, 0.05); }
.extracted h4 { margin: 0 0 9px; font-size: 14px; color: var(--agent); display: flex; align-items: center; gap: 7px; }
.extracted .spark { color: var(--agent); }
.extracted dl { margin: 0 0 11px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.extracted dt { color: var(--ink-3); }
.extracted dd { margin: 0; font-weight: 650; }
.fineprint { font-size: 12.5px; color: var(--ink-3); margin: 9px 0 0; }
.btn-submit { width: 100%; margin-top: 6px; }
.form-error { color: var(--bad); font-size: 13.5px; margin: 8px 0 0; }

.track h3 { margin: 4px 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 560; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.track .ref { margin: 0 0 18px; font: 500 12.5px/1.4 var(--mono); color: var(--ink-3); }
.track ol { list-style: none; margin: 0; padding: 0; }
.track li { position: relative; padding: 0 0 18px 32px; font-size: 15px; color: var(--ink-3); }
.track li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule-2); background: var(--white); }
.track li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 2px; width: 2px; background: var(--rule); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--person); border-color: var(--person); }
.track li.now { color: var(--ink); font-weight: 650; }
.track li.now::before { border-color: var(--brand); animation: dotpulse 1.4s infinite; }
@keyframes dotpulse { 50% { box-shadow: 0 0 0 5px rgba(232, 70, 30, 0.18); } }
.track li small { display: block; font-weight: 450; color: var(--ink-3); font-size: 13px; }
.notice { padding: 14px; border-radius: 10px; background: #fff7d6; border: 1.5px solid #e9c95c; margin-bottom: 12px; }
.notice b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.result { text-align: center; padding: 18px 6px 8px; }
.result .stamp { font-size: 20px; padding: 10px 14px 9px; transform: rotate(-6deg); margin: 6px auto 18px; animation: slam 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.result h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 560; font-variation-settings: "opsz" 48; }
.result p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }

/* Flowable in the middle: the figure, then a log of what ran */
.pane-engine .window { box-shadow: 4px 4px 0 var(--ink); }
.pane-engine .diagram-scroll { overflow: hidden; }
.pane-engine .diagram-host { min-width: 0; padding: 6px 4px 0; }
.pane-engine .bpmn { aspect-ratio: 1.9; }
.log { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.log-empty { padding: 18px; border-radius: 8px; border: 1.5px dashed var(--rule-2); color: var(--ink-3); font-size: 14.5px; text-align: center; }
.entry { --role: var(--ink-3); display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rule-2); border-left: 4px solid var(--role); background: var(--white); animation: entry-in 0.45s ease both; }
@keyframes entry-in { from { opacity: 0; transform: translateY(8px); } }
.entry.k-agent { --role: var(--agent); }
.entry.k-rest { --role: var(--system); }
.entry.k-human { --role: var(--person); }
.entry.k-end { --role: var(--ok); }
.entry .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--role); background: color-mix(in srgb, var(--role) 11%, var(--white)); }
.entry .ic svg { width: 16px; height: 16px; }
.entry.bad { --role: var(--bad); background: #fff5f6; border-color: rgba(200, 40, 60, 0.35); }
.entry .t { font-weight: 600; font-size: 14.5px; }
.entry .when { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.entry .dur { font-family: var(--mono); font-size: 12.5px; color: var(--brand-2); white-space: nowrap; }
.entry .det { grid-column: 2 / span 2; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.entry .det:empty { display: none; }
.entry .det .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 5px; }
.entry .det .kv dt { color: var(--ink-3); }
.entry .det .kv dd { margin: 0; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--white); }
.pill.ok { color: var(--ok); border-color: rgba(31, 138, 76, 0.45); background: #f1faf4; }
.pill.warn { color: #8a5f00; border-color: rgba(168, 115, 0, 0.5); background: #fdf6e3; }
.pill.bad { color: var(--bad); border-color: rgba(200, 40, 60, 0.5); background: #fff3f4; }
.spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(232, 70, 30, 0.22); border-top-color: var(--brand); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer { height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--role), transparent); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; grid-column: 2 / span 2; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* the handler's claim file */
.folder { position: relative; padding-top: 30px; }
.folder-tab { position: absolute; top: 0; left: 18px; height: 34px; padding: 0 14px; display: flex; align-items: center; gap: 10px; background: #e9cf96; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.folder-tab b { font-weight: 500; color: var(--ink-2); letter-spacing: 0.02em; }
.sheet { position: relative; background: #e9cf96; border: 1.5px solid var(--ink); border-radius: 4px 10px 10px 10px; padding: 12px; box-shadow: 5px 5px 0 var(--ink); }
.page { position: relative; background: var(--white); border: 1px solid rgba(22, 24, 28, 0.25); border-radius: 3px; padding: 18px 18px 20px; display: grid; gap: 18px; overflow: hidden; }
.page h4 { margin: 0 0 9px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.page h4 svg { width: 14px; height: 14px; }
.page p { margin: 0; color: var(--ink-2); font-size: 15px; }
.page section + section { border-top: 1px dashed var(--rule-2); padding-top: 16px; }
.waiting { text-align: center; padding: 34px 10px; }
.waiting .hand { font-size: 26px; display: block; margin-bottom: 6px; transform: rotate(-2deg); }
.waiting p { font-size: 15px; }
.kvlist { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14.5px; }
.kvlist dt { color: var(--ink-3); }
.kvlist dd { margin: 0; color: var(--ink); }
.kvlist .mono { font-family: var(--mono); font-size: 13.5px; }
.kvlist .okay { color: var(--ok); }
.kvlist .nope { color: var(--bad); }
.page .spark { color: var(--agent); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 1px 10px; font-size: 15px; }
.checklist .box { width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 3px; grid-row: span 2; position: relative; margin-top: 1px; }
.checklist .box svg { position: absolute; left: -3px; top: -7px; width: 26px; height: 26px; overflow: visible; }
.checklist .box svg path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.checklist li.ok .box svg path { stroke: var(--ok); }
.checklist li.no .box svg path { stroke: var(--bad); }
.checklist small { color: var(--ink-3); font-size: 13px; }
.verdict { font-family: var(--serif); font-size: 19px; font-weight: 560; margin: 0 0 10px; font-variation-settings: "opsz" 36; }
.verdict.ok { color: var(--ok); }
.verdict.no { color: var(--bad); }
.verdict.warn { color: #a87300; }
.stickies { display: grid; gap: 10px; margin-top: 4px; }
.sticky { background: #ffe98a; padding: 11px 12px 12px; border-radius: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 3px 4px 0 rgba(22, 24, 28, 0.12); transform: rotate(-0.8deg); }
.sticky:nth-child(even) { transform: rotate(0.7deg); background: #ffe27a; }
.sticky b { font-size: 14.5px; }
.sticky .val { font-family: var(--mono); font-size: 12.5px; margin-left: 6px; color: var(--ink-2); }
.sticky .rating { font: 700 10.5px/1 var(--mono); letter-spacing: 0.08em; padding: 2px 5px; border: 1.5px solid #a87300; color: #8a5f00; border-radius: 3px; margin-left: 6px; vertical-align: 1px; }
.sticky p { margin: 5px 0 0; font-size: 13.5px; color: #3e3a2a; }
.alert { padding: 11px 13px; border-radius: 6px; border: 1.5px solid var(--bad); background: #fff0f1; color: #6b1420; font-size: 14px; }
.alert b { display: block; margin-bottom: 2px; }
.quote { margin: 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--rule-2); color: var(--ink-2); font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
details.more summary { cursor: pointer; font: 600 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
details.more[open] summary { margin-bottom: 10px; }
details.more > * + * { margin-top: 10px; }
.decide label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.decide textarea { width: 100%; min-height: 88px; resize: vertical; border-radius: 6px; border: 1.5px solid var(--rule-2); background: #fffef9; color: var(--ink); font: 450 15px/26px var(--sans); padding: 10px 12px; background-image: repeating-linear-gradient(transparent, transparent 25px, rgba(35, 70, 200, 0.12) 25px, rgba(35, 70, 200, 0.12) 26px); background-position: 0 9px; }
.decide textarea:focus { outline: none; border-color: var(--ink); }
.stamps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.stamp-btn { cursor: pointer; background: transparent; font: 800 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 12px 9px; border: 2.5px solid currentColor; border-radius: 5px; outline: 1px solid currentColor; outline-offset: 2px; transition: transform 0.12s, background 0.15s; -webkit-mask-image: url("/img/stamp-mask.png"); mask-image: url("/img/stamp-mask.png"); -webkit-mask-size: 260px; mask-size: 260px; }
.stamp-btn:nth-child(1) { transform: rotate(-2deg); }
.stamp-btn:nth-child(2) { transform: rotate(1.5deg); }
.stamp-btn:nth-child(3) { transform: rotate(-1deg); }
.stamp-btn:hover:not(:disabled) { background: color-mix(in srgb, currentColor 9%, transparent); transform: rotate(0deg) scale(1.03); }
.stamp-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stamp-btn.ok { color: var(--ok); }
.stamp-btn.send { color: var(--pen); }
.stamp-btn.bad { color: var(--bad); }
.decide .why { margin-top: 10px; font-family: var(--hand); font-size: 20px; color: var(--bad); line-height: 1.1; }
.outcome { position: absolute; right: 14px; top: 16px; z-index: 2; pointer-events: none; }
.outcome .stamp { font-size: 22px; padding: 11px 15px 10px; transform: rotate(-9deg); animation: slam 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both; background: rgba(255, 253, 248, 0.6); }
@keyframes slam { 0% { opacity: 0; transform: rotate(-14deg) scale(2.3); } 60% { opacity: 0.95; } 100% { opacity: 0.92; transform: rotate(-9deg) scale(1); } }
.outcome.inline { position: static; padding: 8px 0 0 4px; }
.outcome.inline .stamp { transform-origin: left center; }
.summary h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 27px; font-weight: 560; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.summary p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 550; box-shadow: 4px 4px 0 var(--brand); transition: opacity 0.3s, transform 0.3s; width: max-content; max-width: min(560px, calc(100vw - 32px)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal { width: min(470px, calc(100vw - 32px)); border-radius: 10px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); padding: 26px; box-shadow: 6px 6px 0 var(--ink); }
.modal::backdrop { background: rgba(22, 24, 28, 0.45); }
.modal h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 27px; font-weight: 560; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.modal p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.modal .field span { display: block; font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.modal .field input { width: 100%; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: 600 19px/1.3 var(--mono); letter-spacing: 0.08em; padding: 12px 14px; text-transform: uppercase; }
.modal .field input:focus { outline: none; box-shadow: 0 0 0 3px rgba(232, 70, 30, 0.2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1279px) {
  .studio-body { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); }
  .pane-customer, .pane-handler { grid-column: 1; grid-row: 1; }
  .pane-engine { grid-column: 2; grid-row: 1; }
  .studio-body[data-tab="handler"] .pane-customer { display: none; }
  .studio-body:not([data-tab="handler"]) .pane-handler { display: none; }
  .tabs { display: flex; }
  .tabs [data-tab="engine"] { display: none; }
}
@media (max-width: 1080px) {
  .line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-step { border-bottom: 1px solid var(--rule); min-height: 0; }
  .mast-nav { display: none; }
  .mast .btn { margin-left: auto; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .note-cta { display: none; }
  .notes { display: none; }
  .case-no { display: none; }
}
@media (max-width: 899px) {
  .studio-body { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 0; border-top: 1.5px solid var(--ink); }
  .pane { grid-column: 1; grid-row: 1; display: none; }
  .studio-body[data-tab="customer"] .pane-customer,
  .studio-body[data-tab="engine"] .pane-engine,
  .studio-body[data-tab="handler"] .pane-handler { display: block; }
  .tabs [data-tab="engine"] { display: inline-block; }
  .studio-bar { flex-wrap: wrap; gap: 10px; padding-bottom: 0; border-bottom: 0; }
  .quota { display: none; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tabs button { flex: 1; }
  .ledger, .pitch { grid-template-columns: 1fr; }
  .ledger-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .fixes, .fine-print { grid-template-columns: 1fr; columns: 1; }
  .hero { padding-top: 50px; }
  .roles { display: none; }
  .note-fine { position: static; display: block; margin-top: 8px; }
}
@media (max-width: 560px) {
  .line { grid-template-columns: 1fr; }
  .card-step { border-right: 0; }
  .ledger-cell b { font-size: 72px; }
  .grid2 { grid-template-columns: 1fr; }
  .brand-name em { display: none; }
  .hero-cta .btn { width: 100%; }
  .sec { padding-top: 90px; }
  .pitch blockquote { padding-left: 30px; }
  .pitch blockquote p { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pen-underline path { stroke-dashoffset: 0; }
}
