/* scene.css */
:root {
  /* Neutrals: pure gray, lightness only */
  --bg: oklch(0.991 0 0); --paper: oklch(1 0 0); --fill: oklch(0.973 0 0); --fill-2: oklch(0.955 0 0);
  --line: oklch(0.931 0 0); --track: oklch(0.94 0 0);
  --ink: oklch(0.243 0 0); --ink-body: oklch(0.378 0 0); --ink-2: oklch(0.48 0 0); --ink-3: oklch(0.555 0 0);
  --trim: oklch(0.982 0 0); --trim-line: var(--line);

  /* Primary actions inside artifacts are ink, not brand */
  --primary: var(--ink); --primary-hover: oklch(0.32 0 0); --primary-soft: var(--fill-2); --primary-text: var(--ink);

  /* The one accent: artifact.cafe speaking (CTA, now, cue, pins) */
  --accent: oklch(0.64 0.16 50); --accent-2: oklch(0.585 0.16 47); --accent-text: oklch(0.5 0.13 48);
  --accent-soft: oklch(0.968 0.018 65); --accent-line: oklch(0.9 0.04 65);
  --coral: var(--accent); --coral-soft: var(--accent-soft);

  /* Status */
  --green: oklch(0.52 0.11 155); --green-soft: oklch(0.966 0.024 155); --green-line: oklch(0.88 0.06 155); --green-bright: oklch(0.65 0.14 155);
  --red: oklch(0.55 0.18 28);
  --blue: oklch(0.5 0.04 245); --blue-soft: oklch(0.945 0.012 245);

  /* Example tiles: four hues, same lightness per step.
     soft = fills behind text, tint = image-like blocks, solid = marks, ink = letters on soft */
  --c-orange-soft: oklch(0.92 0.039 50); --c-orange-tint: oklch(0.85 0.077 50); --c-orange: oklch(0.62 0.14 50); --c-orange-ink: oklch(0.45 0.1 50);
  --c-blue-soft: oklch(0.92 0.033 255); --c-blue-tint: oklch(0.85 0.064 255); --c-blue: oklch(0.62 0.175 255); --c-blue-ink: oklch(0.45 0.125 255);
  --c-violet-soft: oklch(0.92 0.036 295); --c-violet-tint: oklch(0.85 0.07 295); --c-violet: oklch(0.62 0.19 295); --c-violet-ink: oklch(0.45 0.17 295);
  --c-green-soft: oklch(0.92 0.045 155); --c-green-tint: oklch(0.85 0.085 155); --c-green: oklch(0.62 0.145 155); --c-green-ink: oklch(0.45 0.1 155);

  /* Claude Code terminal */
  --term-bg: oklch(0.2 0 0); --term-fg: oklch(0.92 0 0); --term-dim: oklch(0.62 0 0); --term-hi: oklch(0.8 0.1 60);

  /* Depth: a ring plus two soft layers, never a solid border */
  --shadow: 0 0 0 1px oklch(0 0 0 / .06), 0 1px 2px -1px oklch(0 0 0 / .06), 0 2px 4px oklch(0 0 0 / .04);
  --shadow-hover: 0 0 0 1px oklch(0 0 0 / .08), 0 1px 2px -1px oklch(0 0 0 / .08), 0 2px 4px oklch(0 0 0 / .06);
  --shadow-pop: 0 0 0 1px oklch(0 0 0 / .06), 0 4px 8px -2px oklch(0 0 0 / .06), 0 20px 40px -16px oklch(0 0 0 / .16);

  --sans: "InterVariable", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --out: cubic-bezier(.32, .72, 0, 1);   /* enters */
  --move: cubic-bezier(.65, 0, .35, 1);  /* things already on screen */
  /* The walkthrough frame: one inset inside the sheet, 12 inside a window, one dock height (see FRAME.md) */
  --inset: 16px; --inset-in: 12px; --dock-h: 60px;
  --press: .97;                          /* scale on :active, 150ms ease-out */
  --term-ok: oklch(0.705 0.157 148.1); --term-claude: oklch(0.672 0.131 38.8);
  /* A check drawn as a mask, for chips that cannot hold an svg */
  --ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* names the mini previews use */
  --k-ink: var(--ink); --k-ink-2: var(--ink-2); --k-ink-3: var(--ink-3); --k-line: var(--line); --k-sans: var(--sans); --k-mono: var(--mono);
}
/* Dividers are one device pixel on retina screens */
:root { --hairline: 1px; }
@media (min-resolution: 2dppx) { :root { --hairline: .5px; } }
/* Avatar photos get a faint edge so light ones don't melt into paper */
img[src$=".webp"] { outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"] { -webkit-user-select: none; user-select: none; }
[id] { scroll-margin-top: 64px; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); font-feature-settings: "cv01", "ss03"; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: oklch(0.205 0 0 / .1); }
.mono { font-family: var(--mono); }

/* Top bar */
.sc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; background: oklch(0.991 0 0 / .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; }
.sc-brand { position: relative; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.sc-brand::before { content: ""; position: absolute; inset: -12px -8px; }
.sc-title { color: var(--ink-2); }
.sc-x { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) { .sc-x:hover { background: oklch(0.205 0 0 / .06); } }
@media (max-width: 560px) { .sc-title { display: none; } }

/* ---------- The desk: three app windows ---------- */
.desk { position: relative; max-width: 1240px; height: max(560px, min(720px, calc(100svh - 190px))); margin: 8px auto 0; }
.w { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .08), 0 24px 48px -24px oklch(0.205 0 0 / .35); }
.w-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: var(--hairline) solid var(--line); background: var(--trim); color: var(--ink-2); font: 12px/1 var(--mono); }
.w-name { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font: 500 13px/1 var(--sans); }
.w-name em { font: 12px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.91 0 0); }
[data-claude] { display: inline-flex; }
[data-claude] svg { width: 14px; height: 14px; }

.w-term { left: 20px; top: 0; width: calc(46% - 20px); height: 100%; z-index: 1; background: #161618; }
.w-term .w-bar { background: #1E1E21; border-color: rgb(255 255 255 / .06); }
.w-term .dots i { background: rgb(255 255 255 / .14); }
.w-term .w-name { color: #E8E8EA; }
.w-slack { right: 20px; top: 0; width: calc(54% - 32px); height: 100%; z-index: 2; }
.w-browser { left: calc(36% + 4px); right: 20px; top: 0; height: 100%; z-index: 3; opacity: 0; transform: scale(.96); visibility: hidden; transition: opacity 250ms var(--out), transform 350ms var(--out), visibility 0s 350ms; }
.desk[data-phase="b"] .w-browser { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.desk[data-phase="b"] .w-term { width: 36%; }
.desk[data-phase="b"] .w-slack { opacity: 0; visibility: hidden; }

/* One window at a time on small screens */
.tabs { display: none; }
@media (max-width: 900px) {
  .tabs { display: flex; gap: 4px; justify-content: center; margin: 4px 16px 8px; padding: 3px; border-radius: 999px; background: oklch(0.94 0 0); }
  .tabs button { flex: 1; height: 30px; border: 0; border-radius: 999px; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; }
  .tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px oklch(0.205 0 0 / .12); }
  .tabs button:disabled { opacity: .4; cursor: default; }
  .desk { height: calc(100svh - 230px); min-height: 480px; margin: 0 16px; }
  .w, .desk[data-phase="b"] .w-term { left: 0; right: 0; top: 0; width: auto; height: 100%; opacity: 0; visibility: hidden; transform: none; transition: opacity 200ms var(--out), visibility 0s 200ms; }
  .w[data-on] { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 4; }
  .desk[data-phase="b"] .w-browser:not([data-on]) { opacity: 0; visibility: hidden; }
}

/* Claude Code */
.log { flex: 1; overflow: auto; padding: 14px 16px 8px; color: #C9C9CE; font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #3A3A3E transparent; }
.log-hi { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(217 119 87 / .5); white-space: normal; }
.log-hi svg { width: 20px; height: 20px; }
.log-hi b { display: block; color: #fff; font-weight: 500; }
.log-hi span { color: #8A8A90; }
.log .h { color: #fff; font-weight: 500; } .log .k { color: #6E6E74; } .log .b { color: #F2F2F4; font-weight: 500; }
.log .c { color: #F5A88E; } .log .ok { color: #8FD9B6; } .log .you { color: #fff; } .log .dim { color: #8A8A90; }
.log .md { display: block; margin: 6px 0; padding-left: 12px; border-left: 2px solid #2C2C30; color: #A8A8AE; }
.prompt { flex: none; display: flex; gap: 10px; align-items: center; margin: 0 12px 12px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #34343A; color: #E8E8EA; font: 13px/1.5 var(--mono); }
.prompt > span:first-child { color: var(--term-hi); }
.caret { width: 7px; height: 15px; background: #E8E8EA; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Slack */
.sl { flex: 1; display: flex; min-height: 0; }
.sl-side { flex: none; display: flex; flex-direction: column; gap: 2px; width: 148px; padding: 12px 8px; background: #3F0E40; color: rgb(255 255 255 / .7); font-size: 14px; }
.sl-side b { padding: 0 8px 10px; color: #fff; }
.sl-side span { padding: 3px 8px; border-radius: 6px; }
.sl-side .on { background: #1164A3; color: #fff; }
.sl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sl-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-bottom: var(--hairline) solid var(--line); }
.sl-head span { font-size: 12px; color: var(--ink-3); }
.sl-feed { flex: 1; overflow: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px; }
.sl-msg { display: flex; gap: 10px; font-size: 14px; animation: rise 300ms var(--out); }
.sl-msg .av { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: cover; }
.sl-who { font-weight: 500; font-size: 14px; } .sl-who time { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.sl-msg p { margin: 1px 0 0; }
.sl-msg a { color: #1264A3; }
.unfurl { position: relative; display: flex; gap: 12px; margin-top: 6px; padding: 8px 10px 8px 12px; border: 0; border-left: 4px solid oklch(0.897 0 0); border-radius: 4px; background: none; text-align: left; cursor: default; transition: background-color 150ms ease, scale 150ms ease-out; }
.unfurl:enabled { cursor: pointer; }
.unfurl:enabled:active { scale: .98; }
@media (hover: hover) { .unfurl:enabled:hover { background: oklch(0.97 0 0); } }
.unfurl small { display: block; font-size: 12px; color: var(--ink-3); }
.unfurl b { display: block; color: #1264A3; font-weight: 500; }
.unfurl span { display: block; font-size: 13px; color: var(--ink-2); }
.uf-thumb { flex: none; width: 92px; height: 60px; padding: 7px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.uf-thumb i { display: block; height: 4px; margin-bottom: 4px; border-radius: 2px; background: oklch(0.91 0 0); }
.uf-thumb i:first-child { width: 60%; height: 6px; background: var(--ink); }
.uf-thumb i:nth-child(3) { width: 80%; } .uf-thumb i:nth-child(4) { display: flex; height: 14px; background: linear-gradient(90deg, oklch(0.947 0 0) 30%, #fff 0 34%, oklch(0.952 0 0) 0 64%, #fff 0 68%, var(--green-soft) 0); }
.sl-typing { font-size: 12px; color: var(--ink-3); padding: 0 16px 4px; min-height: 18px; }
.sl-compose { margin: 0 16px 14px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px oklch(0.873 0 0); color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-compose[data-filled] { color: #1264A3; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1100px) { .sl-side { display: none; } }

/* Browser */
.w-browser .w-bar { gap: 8px; }
.url { padding: 5px 10px; border-radius: 999px; background: oklch(0.952 0 0); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vtabs { display: inline-flex; padding: 2px; border-radius: 999px; background: oklch(0.952 0 0); }
.vtabs button, .seg button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font: 12px/1 var(--mono); color: var(--ink-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.vtabs button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px oklch(0.205 0 0 / .12); }
.guest { margin-left: auto; white-space: nowrap; color: var(--ink-3); }
@media (max-width: 1100px) { .guest { display: none; } }
.banner { display: flex; align-items: center; gap: 8px; height: 0; overflow: hidden; padding: 0 16px; background: var(--coral-soft); color: #8E2D16; font-size: 13px; transition: height 250ms var(--out); }
.banner[data-in] { height: 36px; }
.banner b { font-weight: 500; }
.bw { flex: 1; overflow: auto; position: relative; }

/* The spec */
.spec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; padding: 28px 28px 40px; }
.spec-main { min-width: 0; }
.gutter { position: relative; }
.crumb { font: 12px/16px var(--mono); color: var(--ink-3); }
.spec h1 { margin: 6px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.chip { padding: 1px 9px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; font-size: 12px; line-height: 20px; transition: background-color 300ms ease, color 300ms ease; }
.spec[data-ver="2"] .chip { background: var(--green-soft); color: var(--green); }
.lede { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: oklch(0.973 0 0); }
.kpis b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.kpis > div > span { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.sec { margin-top: 26px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sec-h h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.sec-k { font: 12px/16px var(--mono); color: var(--ink-3); }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: oklch(0.952 0 0); }
.seg button { font-family: var(--sans); }

/* Sequence diagram */
.seq { padding: 12px 12px 6px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(90deg, transparent calc(16.66% - .5px), oklch(0.945 0 0) 0 calc(16.66% + .5px), transparent 0 calc(50% - .5px), oklch(0.945 0 0) 0 calc(50% + .5px), transparent 0 calc(83.33% - .5px), oklch(0.945 0 0) 0 calc(83.33% + .5px), transparent 0) 0 40px / 100% calc(100% - 40px) no-repeat; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 6px; }
.lanes span { justify-self: center; padding: 3px 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px oklch(0.91 0 0); font-size: 12px; font-weight: 500; }
.steps-seq { list-style: none; margin: 0; padding: 0; }
.steps-seq li { position: relative; height: 34px; transition: opacity 200ms ease; }
.steps-seq li .ln { position: absolute; top: 22px; height: 1.5px; background: var(--ink); left: var(--l); width: var(--w); }
.steps-seq li .ln::after { content: ""; position: absolute; top: -3.5px; border: 4px solid transparent; }
.steps-seq li[data-dir="r"] .ln::after { right: -2px; border-left-color: var(--ink); border-right: 0; }
.steps-seq li[data-dir="l"] .ln::after { left: -2px; border-right-color: var(--ink); border-left: 0; }
.steps-seq li .lb { position: absolute; top: 3px; left: var(--l); width: var(--w); text-align: center; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.steps-seq li.done .ln { background: var(--green); } .steps-seq li.done[data-dir="r"] .ln::after { border-left-color: var(--green); } .steps-seq li.done[data-dir="l"] .ln::after { border-right-color: var(--green); }
.steps-seq li.done .lb { color: var(--green); font-weight: 500; }
.steps-seq[data-playing] li { opacity: .25; }
.steps-seq[data-playing] li[data-lit] { opacity: 1; }
.steps-seq li[data-lit] .lb { color: var(--ink); font-weight: 500; }
.steps-seq li.todo { height: 44px; }
.steps-seq li.todo .lb { top: 6px; left: 10%; width: 80%; padding: 4px 8px; white-space: normal; line-height: 1.35; border-radius: 8px; outline: 1.5px dashed oklch(0.83 0 0); color: var(--ink-3); }
.play { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; position: relative; transition: scale 150ms ease-out; }
.play:active { scale: .96; }

/* Device share */
.share { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.share i { width: var(--w); background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--c); }

/* Rollout gantt */
@property --s { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --e { syntax: "<number>"; inherits: true; initial-value: 2; }
.gantt { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 12px 10px; }
.g-head, .g-row { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); align-items: center; }
.g-head span { font: 11px/24px var(--mono); color: var(--ink-3); text-align: center; }
.g-row { position: relative; height: 32px; font-size: 13px; }
.g-row > span { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.g-bar { position: absolute; top: 8px; height: 16px; border-radius: 5px; background: var(--ink); left: calc(150px + (100% - 150px) * (var(--s) - 1) / 5 + 2px); width: calc((100% - 150px) * (var(--e) - var(--s)) / 5 - 4px); transition: --s 600ms var(--move), --e 600ms var(--move); }
.g-sec { background: #7C5CE0; } .g-soft { background: #C9BFF2; }
.g-launch { background: var(--ink); }
.spec[data-ver="1"] .g-launch { --s: 2; --e: 3; }
.spec[data-ver="2"] .g-launch { --s: 5; --e: 6; }
.g-chg { animation: rise 400ms var(--out); }
@media (max-width: 640px) { .g-head, .g-row { grid-template-columns: 112px repeat(5, minmax(0, 1fr)); } .g-bar { left: calc(112px + (100% - 112px) * (var(--s) - 1) / 5 + 2px); width: calc((100% - 112px) * (var(--e) - var(--s)) / 5 - 4px); } }

.risks { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.risks > div { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.risks > div + div { border-top: var(--hairline) solid var(--line); }
.risks b { font-weight: 500; }
.risks > div > span:last-child { color: var(--ink-2); }
.sev { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; }
.sev-hi { background: oklch(0.947 0 0); color: #B42318; } .sev-md { background: #FFF4D6; color: #8A5A00; } .sev-lo { background: oklch(0.952 0 0); color: var(--ink-2); }
@media (max-width: 560px) { .risks > div { grid-template-columns: 60px minmax(0, 1fr); } .risks > div > span:last-child { grid-column: 2; } }

.spec[data-ver="1"] .v2, .spec[data-ver="2"] .v1 { display: none; }
.new2 { display: none; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 11px/17px var(--mono); vertical-align: 2px; }
.spec[data-ver="2"] .new2 { display: inline-block; }

@media (max-width: 1100px) {
  .spec { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 32px; }
  .gutter { display: contents; }
  .th { position: relative !important; margin-top: 10px; top: auto !important; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* Comment threads and pins */
.th { position: absolute; left: 0; right: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .07), 0 8px 24px -10px oklch(0.205 0 0 / .25); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(4px) scale(.97); transform-origin: top left; transition: opacity 200ms var(--out), transform 250ms var(--out), top 300ms var(--move); }
.th[data-in] { opacity: 1; transform: none; }
.th[data-done] .msg { opacity: .7; }
.msg { display: flex; gap: 8px; }
.msg + .msg { margin-top: 9px; padding-top: 9px; border-top: var(--hairline) solid oklch(0.955 0 0); }
.msg .av { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: cover; }
.who { font-size: 12px; font-weight: 500; }
.who em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.msg p { margin: 1px 0 0; min-height: 19px; }
.dots3 { display: inline-flex; gap: 3px; padding-top: 7px; } .dots3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: bob 900ms ease-in-out infinite; } .dots3 i:nth-child(2) { animation-delay: 150ms; } .dots3 i:nth-child(3) { animation-delay: 300ms; }
@keyframes bob { 50% { opacity: .3; transform: translateY(-2px); } }
.reply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: var(--hairline) solid oklch(0.955 0 0); font-size: 12px; color: var(--ink-3); }
.reply span { width: 100%; }
.reply button { position: relative; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out; }
.reply button:active { scale: .96; }
.res { display: inline-block; margin-top: 8px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 11px/16px var(--mono); }
.pin { position: absolute; z-index: 2; width: 20px; height: 20px; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; color: #fff; font: 500 10px/1 var(--sans); box-shadow: 0 0 0 2px #fff, 0 2px 6px oklch(0.205 0 0 / .25); transform: scale(.6); opacity: 0; transition: transform 250ms var(--out), opacity 150ms ease; }
.pin[data-in] { transform: none; opacity: 1; }
.marked { outline: 2px solid var(--c); outline-offset: 2px; border-radius: 6px; }

/* Human cursors: only when someone pins a comment */
.cur { position: absolute; z-index: 40; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; color: var(--c); pointer-events: none; opacity: 0; transition: transform 600ms var(--move), opacity 200ms ease; will-change: transform; }
.cur[data-in] { opacity: 1; }
.cur svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .2)); transition: scale 120ms ease-out; }
.cur[data-press] svg { scale: .82; }
.cur span { margin-top: 14px; padding: 2px 7px; border-radius: 6px; background: var(--c); color: #fff; font: 500 12px/18px var(--sans); white-space: nowrap; }

/* Bottom director bar: one caption, one next action */
.dir { position: fixed; z-index: 30; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 16px; width: min(calc(100% - 32px), 720px); min-height: 64px; padding: 12px 12px 12px 20px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -12px oklch(0.205 0 0 / .45); }
.steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex: none; }
.steps li { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .2); transition: background-color 200ms ease, width 250ms var(--out); }
.steps li[data-on] { background: #fff; }
.steps li[data-now] { width: 16px; border-radius: 3px; }
.cap { flex: 1; margin: 0; font-size: 15px; line-height: 1.4; transition: opacity 150ms ease; }
.cap[data-out] { opacity: 0; }
.go { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
.go:active { scale: .96; }
@media (hover: hover) { .go:hover { background: #F04E2C; } }
/* The cue ring: it arrives (scales in), holds, then exhales once and arrives again.
   stage.js sets --cx/--cy (grow) and --ax/--ay (arrive) from the target's size so the ring
   always travels about 6px per side, whether the target is a button or a full-width slider. */
:where([data-cue], [data-hit]) { position: relative; }
[data-cue], [data-hit] { scroll-margin: 24px; }
[data-cue]::after, [data-hit]::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px var(--coral); opacity: 0; pointer-events: none; }
[data-cue]::after { animation: cue 2.4s var(--out) infinite; }
.unfurl[data-cue]::after { border-radius: 8px; }
@keyframes cue {
  0% { opacity: 0; transform: scale(var(--ax, .96), var(--ay, .96)); }
  12%, 58% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(var(--cx, 1.06), var(--cy, 1.06)); }
}
/* The beat when the target is used: the ring turns green and breathes out once */
[data-hit]::after { box-shadow: 0 0 0 2px var(--green-bright); animation: cue-hit 560ms var(--out) forwards; }
@keyframes cue-hit { from { opacity: 1; transform: none; } 35% { opacity: 1; } to { opacity: 0; transform: scale(var(--cx, 1.06), var(--cy, 1.06)); } }

/* Press feedback for any custom control: add .press (scale .97, 150ms ease-out) */
.press { transition: scale 150ms ease-out; }
.press:active { scale: var(--press); }
/* A check that draws itself: <svg class="chk-draw"><path pathLength="1" d="M3 7.4l2.6 2.6L11 4.4"/></svg> (page.js CHECK_DRAW) */
.chk-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chk-draw 300ms var(--out) 60ms forwards; }
@keyframes chk-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 15% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
/* A number that is about to roll */
.num { font-variant-numeric: tabular-nums; }
.ghost { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, scale 150ms ease-out; }
.ghost:active { scale: .96; }
.end { flex: 1; }
.end b { font-size: 16px; font-weight: 500; }
.end ul { margin: 6px 0 12px; padding-left: 18px; color: rgb(255 255 255 / .75); font-size: 14px; }
.end-act { display: flex; gap: 8px; }
.dir:has(.end:not([hidden])) .cap, .dir:has(.end:not([hidden])) .steps { display: none; }
@media (max-width: 560px) { .dir { flex-wrap: wrap; bottom: 12px; padding: 14px 14px 14px 18px; } .cap { flex-basis: calc(100% - 60px); } .go { width: 100%; justify-content: center; } }

.toast { position: fixed; z-index: 50; left: 50%; top: 64px; translate: -50% 0; padding: 10px 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .07), 0 12px 32px -10px oklch(0.205 0 0 / .3); font-size: 14px; opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--out), transform 250ms var(--out); pointer-events: none; }
.toast[data-in] { opacity: 1; transform: none; }
.toast b { font-weight: 500; }

/* ---------- Hub ---------- */
.hub-main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 96px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hub-eyebrow { font: 12px/16px var(--mono); color: var(--ink-3); }
.hub h1 { margin: 10px 0 0; font-size: 46px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.hub-lede { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hub-lede b { color: var(--ink); font-weight: 500; }
.hub-lede + .hub-lede { margin-top: 12px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hub h1 { font-size: 36px; } }

/* Reply vs artifact */
.vs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.vs > div { display: flex; flex-direction: column; gap: 10px; }
.vs-k { font: 12px/16px var(--mono); color: var(--ink-3); }
.vs-k b { color: var(--ink); font-weight: 500; }
.reply-card { padding: 14px; border-radius: 14px 14px 14px 4px; background: oklch(0.94 0 0); font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.reply-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink); }
.reply-card i { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: oklch(0.894 0 0); }
.art-card { flex: 1; padding: 14px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06), 0 16px 32px -18px oklch(0.205 0 0 / .35); }
.art-url { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font: 11px/1 var(--mono); color: var(--ink-3); }
.art-url span { padding: 4px 8px; border-radius: 999px; background: oklch(0.952 0 0); color: var(--ink); }
.art-t { font-size: 15px; font-weight: 500; }
.art-t em { margin-left: 6px; font-style: normal; font-weight: 500; color: var(--green); }
.art-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.art-kpis div { padding: 8px; border-radius: 8px; background: oklch(0.973 0 0); font-size: 10px; color: var(--ink-2); }
.art-kpis b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -0.02em; }
.art-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 18px; }
.art-bars u { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #D6D6E8; transform-origin: bottom; animation: grow 5s var(--out) infinite; }
.art-bars u:last-of-type { background: var(--ink); }
.art-bars u:nth-child(2) { animation-delay: .08s } .art-bars u:nth-child(3) { animation-delay: .16s } .art-bars u:nth-child(4) { animation-delay: .24s } .art-bars u:nth-child(5) { animation-delay: .32s } .art-bars u:nth-child(6) { animation-delay: .4s }
@keyframes grow { 0% { transform: scaleY(0); } 18%, 100% { transform: none; } }
.art-pin { position: absolute; right: 6%; top: -10px; display: flex; align-items: center; gap: 6px; animation: pinin 5s var(--out) infinite; }
.art-pin i { width: 18px; height: 18px; border-radius: 50% 50% 50% 3px; background: #7C5CE0; box-shadow: 0 0 0 2px #fff; }
.art-pin span { padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; white-space: nowrap; }
@keyframes pinin { 0%, 35% { opacity: 0; transform: translateY(4px) scale(.95); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.art-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.art-foot span { padding: 2px 8px; border-radius: 999px; background: oklch(0.952 0 0); font: 10px/16px var(--mono); color: var(--ink-2); }

.blk { margin-top: 72px; }
.blk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.blk h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-weight: 500; }
.blk-h p { margin: 0; color: var(--ink-2); }

/* What people make */
.made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.made-c { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06); }
.made-c .rs-mini { margin-bottom: 6px; }
.made-c > b { padding: 0 4px; font-size: 14px; font-weight: 500; }
.made-c > span { padding: 0 4px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .made { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What artifact.cafe adds */
.adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.add { padding: 18px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06); }
.add b { display: block; margin-top: 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.add p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.add-v { position: relative; height: 92px; border-radius: 10px; background: oklch(0.973 0 0); overflow: hidden; }
.av-link { position: absolute; left: 14px; right: 14px; top: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 11px/1 var(--mono); }
.av-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.av-open { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 4px; }
.av-open span { padding: 2px 8px; border-radius: 999px; background: var(--paper); font-size: 11px; color: var(--ink-2); animation: rise2 4s var(--out) infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes rise2 { 0%, 10% { opacity: 0; transform: translateY(4px); } 20%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.av-doc { position: absolute; inset: 14px 14px 0; border-radius: 8px 8px 0 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line); padding: 10px; }
.av-doc i { display: block; height: 5px; margin-bottom: 6px; border-radius: 3px; background: oklch(0.94 0 0); }
.av-doc i:first-child { width: 50%; height: 7px; background: var(--ink); }
.av-doc .pin { opacity: 1; transform: none; animation: pinpop 4s var(--out) infinite; }
.av-doc .pin + .pin { animation-delay: .6s; }
@keyframes pinpop { 0%, 15% { opacity: 0; transform: scale(.7); } 25%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.av-ver { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.av-ver span { padding: 6px 12px; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 12px/1 var(--mono); }
.av-ver span:last-child { animation: v2 4s var(--out) infinite; }
.av-ver em { font-style: normal; color: var(--ink-3); }
@keyframes v2 { 0%, 30% { background: var(--paper); color: var(--ink); } 40%, 100% { background: var(--ink); color: #fff; } }
@media (max-width: 860px) { .adds { grid-template-columns: minmax(0, 1fr); } }

/* Scenes */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.205 0 0 / .06); color: inherit; text-decoration: none; transition: box-shadow 150ms ease, translate 200ms var(--out); }
a.card:active { scale: .99; }
@media (hover: hover) { a.card:hover { translate: 0 -2px; box-shadow: 0 0 0 1px oklch(0.205 0 0 / .1), 0 12px 28px -14px oklch(0.205 0 0 / .3); } }
.card-av { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 12px; }
.card b { padding-right: 60px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.card p { margin: 0; padding-right: 60px; color: var(--ink-2); font-size: 14px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.route span { padding: 3px 9px; border-radius: 999px; background: oklch(0.952 0 0); color: var(--ink-2); font-family: var(--mono); }
.card-meta { margin-top: 10px; display: flex; justify-content: space-between; font: 12px/16px var(--mono); color: var(--ink-3); }
.card[aria-disabled="true"] { opacity: .6; }
.card-go { color: var(--ink); }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Resting states that an animation used to reveal */
  [data-cue]::after, [data-hit]::after { opacity: 1; }
  .chk-draw path { stroke-dashoffset: 0; }
}

/* Moving between the hub and a demo: the card grows into the demo and back */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 340ms; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* desk.css */
/* The desk: two lines of context, then artifacts to open */
/* Pills. The accent gradient, lit from above, is the one brand moment; the rest is white */
.top-btns { margin-left: auto; display: flex; gap: 8px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: scale 200ms ease-out, box-shadow 200ms ease-out, filter 200ms ease-out; }
.btn:active { scale: .96; }
/* 32px pills, 44px to a thumb */
.btn::before { content: ""; position: absolute; inset: -6px 0; }
.btn-xl { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-1 { background: linear-gradient(oklch(0.69 0.15 55), var(--accent)); box-shadow: inset 0 0 1px 1px oklch(1 0 0 / .06), 0 1.5px 2px oklch(0 0 0 / .1), 0 0 0 1px var(--accent-2); color: #fff; }
.btn-2 { background: var(--paper); box-shadow: var(--shadow); color: var(--ink); }
@media (hover: hover) { .btn-1:hover { filter: brightness(1.05); } .btn-2:hover { box-shadow: var(--shadow-hover); } }

/* Home: no frosted bar. Content dissolves into the top and bottom edges:
   blur layers stacked from 0.5px to 4px, each masked shorter than the last so the
   blur grows toward the edge with no seam, then an eased veil of page color. Up top the veil is solid behind the nav
   row, so even the dark terminal can't show through as a grey bar. */
/* Nav edges line up with the 1072 content column */
.hub:not(.page) .sc-top { padding-inline: max(24px, calc((100% - 1072px) / 2)); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.edge { position: fixed; left: 0; right: 0; z-index: 19; pointer-events: none; }
.edge-t { top: 0; height: 112px; --edge-s: 40%; --edge-e1: 100%; --edge-e2: 85%; --edge-e3: 70%; --edge-e4: 55%; --edge-veil: linear-gradient(oklch(0.991 0 0 / 1) 40%, oklch(0.991 0 0 / 0.987) 44.9%, oklch(0.991 0 0 / 0.951) 49.3%, oklch(0.991 0 0 / 0.896) 53.5%, oklch(0.991 0 0 / 0.825) 57.4%, oklch(0.991 0 0 / 0.741) 61.2%, oklch(0.991 0 0 / 0.648) 64.7%, oklch(0.991 0 0 / 0.55) 68.3%, oklch(0.991 0 0 / 0.45) 71.7%, oklch(0.991 0 0 / 0.352) 75.3%, oklch(0.991 0 0 / 0.259) 78.8%, oklch(0.991 0 0 / 0.175) 82.6%, oklch(0.991 0 0 / 0.104) 86.5%, oklch(0.991 0 0 / 0.049) 90.7%, oklch(0.991 0 0 / 0.013) 95.1%, oklch(0.991 0 0 / 0) 100%); }
.edge-b { bottom: 0; height: 72px; transform: scaleY(-1); --edge-s: 0%; --edge-e1: 100%; --edge-e2: 75%; --edge-e3: 50%; --edge-e4: 30%; --edge-veil: linear-gradient(oklch(0.991 0 0 / 1) 0%, oklch(0.991 0 0 / 0.987) 8.1%, oklch(0.991 0 0 / 0.951) 15.5%, oklch(0.991 0 0 / 0.896) 22.5%, oklch(0.991 0 0 / 0.825) 29%, oklch(0.991 0 0 / 0.741) 35.3%, oklch(0.991 0 0 / 0.648) 41.2%, oklch(0.991 0 0 / 0.55) 47.1%, oklch(0.991 0 0 / 0.45) 52.9%, oklch(0.991 0 0 / 0.352) 58.8%, oklch(0.991 0 0 / 0.259) 64.7%, oklch(0.991 0 0 / 0.175) 71%, oklch(0.991 0 0 / 0.104) 77.5%, oklch(0.991 0 0 / 0.049) 84.5%, oklch(0.991 0 0 / 0.013) 91.9%, oklch(0.991 0 0 / 0) 100%); }
.edge i { position: absolute; inset: 0; }
.edge i:nth-child(1) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e1)); }
.edge i:nth-child(2) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e2)); }
.edge i:nth-child(3) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e3)); }
.edge i:nth-child(4) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); mask-image: linear-gradient(#000 var(--edge-s), transparent var(--edge-e4)); }
.edge::after { content: ""; position: absolute; inset: 0; background: var(--edge-veil); }

/* One column, one left edge. Pictures use the full width; prose stops at 720 */
.dk { max-width: 1120px; margin: 0 auto; padding: 56px 24px 128px; }
.dk-hero h1 { margin: 0; font-weight: 500; text-wrap: balance; }
@media (max-width: 640px) { .dk { padding-top: 48px; } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
/* A card: the frame of page color holds the white preview and the words under it */
.tile { display: flex; flex-direction: column; padding: 4px; border: 0; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); color: inherit; text-align: left; text-decoration: none; font: inherit; -webkit-tap-highlight-color: transparent; transition: box-shadow 200ms ease-out, scale 200ms ease-out; }
.tile .tile-f { padding: 0; background: none; box-shadow: none; }
.tile .tile-f::after { inset: 0; }
button.tile, a.tile { cursor: pointer; }
/* A frame of page color around a white page: radius 16 outside, 16 - 4 inside */
.tile-f { position: relative; padding: 4px; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); transition: box-shadow 200ms ease-out, scale 200ms ease-out; }
.tile-f::after { content: ""; position: absolute; inset: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / .09); pointer-events: none; }
.tile .rs-mini { --p: 14px; height: 184px; padding: var(--p); border-radius: 12px; background: var(--paper); box-shadow: none; }
@media (max-width: 960px) { .tile .rs-mini { --p: 12px; height: 148px; } }
@media (hover: hover) { .tile:hover { box-shadow: var(--shadow-pop); } .tile:hover .tile-go { background: var(--ink); box-shadow: none; color: #fff; } }
.tile:active { scale: .99; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile-b { display: flex; flex: 1; flex-direction: column; padding: 14px 12px 10px; }
.tile-t { font-size: 16px; line-height: 24px; font-weight: 500; }
.tile-d { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
/* The foot: what it replaces, and the way in */
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.tile-was { min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-3); text-wrap: pretty; }
.tile-go { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out; }
/* The last card is the visitor's own: artifacts of every kind come out around a question mark */
.rs-mini.yr { display: grid; place-items: center; }
.yr > * { grid-area: 1 / 1; }
.yr u { display: block; }
.yr-q { z-index: 1; display: grid; place-items: center; width: 56px; height: 70px; border-radius: 8px; background: var(--paper); outline: 1.5px dashed oklch(0 0 0 / .22); outline-offset: -1.5px; font: 500 26px/1 var(--sans); color: var(--ink-3); transition: color 200ms ease-out, outline-color 200ms ease-out; }
.yr-a { display: flex; gap: 3px; box-sizing: border-box; width: 52px; height: 40px; padding: 7px; border-radius: 6px; background: var(--paper); box-shadow: var(--float); translate: var(--x) var(--y); rotate: var(--r); }
.yr-a u { flex: 1; border-radius: 2px; background: var(--c-blue-tint); }
.yr-chart { align-items: flex-end; } .yr-chart u:nth-child(1) { height: 45%; } .yr-chart u:nth-child(2) { height: 70%; } .yr-chart u:nth-child(3) { height: 100%; background: var(--c-blue); }
.yr-doc, .yr-poll, .yr-sliders { flex-direction: column; justify-content: center; gap: 5px; } :is(.yr-doc, .yr-poll, .yr-sliders) u { flex: none; height: 4px; }
.yr-doc u { background: oklch(0 0 0 / .14); } .yr-doc u:nth-child(1) { width: 55%; background: oklch(0 0 0 / .4); } .yr-doc u:nth-child(3) { width: 75%; }
.yr-poll u { height: 6px; } .yr-poll u:nth-child(1) { background: var(--c-orange-tint); } .yr-poll u:nth-child(2) { width: 60%; } .yr-poll u:nth-child(3) { width: 30%; background: var(--c-violet-tint); }
.yr-sliders u { background: linear-gradient(90deg, var(--c, var(--c-blue)) var(--w, 60%), oklch(0 0 0 / .1) 0); } .yr-sliders u:nth-child(2) { --c: var(--c-orange); --w: 40%; } .yr-sliders u:nth-child(3) { --c: var(--c-violet); --w: 25%; }
.yr-board u { background: oklch(0 0 0 / .07); } .yr-board u:nth-child(3) { background: var(--c-green-tint); }
.yr-designs u:nth-child(1) { background: var(--c-green-tint); } .yr-designs u:nth-child(2) { background: var(--c-orange-tint); }
@container (max-width: 240px) { .yr-a, .yr-q { zoom: .72; } }
@keyframes yr-out { from { translate: 0 0; rotate: 0deg; scale: .4; opacity: 0; } }
@keyframes yr-loop { 0%, 100% { translate: 0 0; rotate: 0deg; scale: .4; opacity: 0; } 10%, 88% { translate: var(--x) var(--y); rotate: var(--r); scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* with a pointer they come out again on hover or focus; on touch they keep coming on their own */
  @media (hover: hover) { .tile-yours:is(:hover, :focus-visible) .yr-a { animation: yr-out 500ms var(--out) both; animation-delay: calc(var(--i) * 70ms); } }
  @media (hover: none) { .yr-a { animation: yr-loop 6s var(--move) infinite; animation-delay: calc(var(--i) * 70ms); } }
}
@media (hover: hover) { .tile-yours:hover .yr-q { color: var(--ink); outline-color: oklch(0 0 0 / .45); } }
@media (max-width: 960px) { .tile-yours { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tile-foot { flex-direction: column; align-items: flex-start; gap: 8px; } }
.tile[aria-disabled="true"] .rs-mini { opacity: .75; }

/* The sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: oklch(0.273 0 0 / .28); opacity: 0; transition: opacity 250ms var(--out); }
.sheet-bg[data-in] { opacity: 1; }
.sheet { position: fixed; z-index: 61; inset: var(--inset); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .08), 0 30px 80px -20px oklch(0.273 0 0 / .45); opacity: 0; transform: scale(.96); transition: opacity 200ms var(--out), transform 260ms var(--out); }
.sheet[data-in] { opacity: 1; transform: none; }
.sheet:not([data-in]) { transition-duration: 150ms, 180ms; }
/* One inset (16) for the sheet's content, one (12) inside controls; the top bar and the dock are both 60 */
.sh-top { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 var(--inset-in) 0 var(--inset); border-bottom: var(--hairline) solid var(--line); background: var(--paper); }
.sh-av { width: 32px; height: 32px; border-radius: 8px; }
.sh-t { flex: 1; min-width: 0; }
.sh-t b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.sh-t span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-x { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
@media (hover: hover) { .sh-x:hover { background: oklch(0.95 0 0); color: var(--ink); } }
.sh-x:active { scale: var(--press); }
.sh-x::before { content: ""; position: absolute; inset: -4px; }
/* The way out, named for people with a keyboard */
.sh-esc { display: none; align-items: center; height: 22px; margin-right: -4px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font: 500 11px/1 var(--mono); }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) { .sh-esc { display: inline-flex; } }

/* Body: the story on the left, the artifact on the right */
.sh-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "before art" "now art"; overflow: hidden; }
.sh-body::before { content: ""; grid-column: 1; grid-row: 1 / -1; border-right: var(--hairline) solid var(--line); pointer-events: none; }
.st { position: relative; min-width: 0; padding: var(--inset) var(--inset) 0; }
.st-before { grid-area: before; }
.st-now { grid-area: now; overflow: auto; padding-bottom: var(--inset); }
.st-k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.st-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.st-now .st-k::before { background: var(--accent); }
.st-note { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }

.mail { max-height: 118px; overflow: hidden; padding: 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-2); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.mail-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.mail-h b { color: var(--ink); font-weight: 500; }
.mail-h b + span { overflow: hidden; text-overflow: ellipsis; }
.mail p { margin: 0; }

/* Claude Code, one terminal for the whole story. It follows the real one (hero.css .lp-term):
   traffic lights, a hairline under the bar, a 2ch gutter for dots, a 5ch indent for results,
   a shimmering status line, and the input box waiting underneath. */
.term { overflow: hidden; border-radius: 12px; background: oklch(0.205 0 0); color: var(--term-fg); font: 12px/1.6 var(--mono); }
.term-h { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; box-shadow: 0 var(--hairline) 0 oklch(1 0 0 / .07); font: 500 11px/1 var(--sans); color: oklch(0.72 0 0); }
.term-h::before { content: ""; flex: none; width: 10px; height: 10px; margin-right: 32px; border-radius: 50%; background: oklch(0.694 0.196 26.4); box-shadow: 16px 0 0 oklch(0.835 0.161 80.9), 32px 0 0 oklch(0.728 0.217 144.7); }
.term-h em { margin-left: auto; font: 11px/1 var(--mono); font-style: normal; color: oklch(0.55 0 0); transition: color 200ms ease; }
.term[data-state="work"] .term-h em { color: var(--term-claude); }
.term[data-state="done"] .term-h em { color: var(--term-ok); }
.term-b { padding: 10px 12px 12px; }
/* The input box waits under the session */
.term::after { content: ">"; display: block; margin: 0 12px 12px; padding: 7px 9px 7px 11px; border: 1px solid oklch(0.42 0 0); border-radius: 6px; color: oklch(0.91 0 0); background: linear-gradient(oklch(0.91 0 0), oklch(0.91 0 0)) calc(11px + 2ch) 50% / 1ch 13px no-repeat; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { background-size: 0 13px; } }
/* Beside the page the rail never scrolls: like the real app, the bar and the input box stay put
   and only the session scrolls, following the newest line. */
@media (min-width: 1101px) {
  .st-now { display: flex; flex-direction: column; overflow: hidden; }
  .st-now .term { display: flex; flex-direction: column; min-height: 0; }
  .st-now :is(.term-h, .st-k) { flex: none; }
  .st-now .term::after { flex: none; }
  .st-now .term-b { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
}
.tl { position: relative; padding-left: 2ch; animation: rise 250ms var(--out); text-wrap: pretty; }
.tl + .tl { margin-top: 6px; }
.tl::before { content: ""; position: absolute; left: 0; top: calc((1lh - 6px) / 2); width: 6px; height: 6px; border-radius: 50%; background: currentColor; color: var(--term-ok); }
.tl u { text-decoration: none; color: var(--term-hi); }
.tl-you { margin-bottom: 8px; padding: 6px 8px 6px calc(2ch + 8px); border-radius: 6px; background: rgb(255 255 255 / .06); }
.tl-you::before { content: ">"; left: 8px; top: 6px; width: auto; height: auto; border-radius: 0; background: none; color: oklch(0.72 0 0); font-size: 12px; line-height: 19px; }
.tl-wait::before { content: none; }
.tl-ok { color: var(--term-ok); }
.tl-dim { color: var(--term-dim); }
.tl-dim::before { color: var(--term-dim); }
.tr { position: relative; padding-left: 3ch; color: oklch(0.72 0 0); }
.tr::before { content: ""; position: absolute; left: 1px; top: 4px; width: 5px; height: 6px; border-left: 1px solid oklch(0.5 0 0); border-bottom: 1px solid oklch(0.5 0 0); }
/* Waiting: Claude orange, a shimmer sweeping through the words, and the real hint */
.spin { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .18); border-top-color: var(--term-hi); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.term .tl-wait { background: linear-gradient(90deg, var(--term-claude) 35%, oklch(0.86 0.07 50) 50%, var(--term-claude) 65%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 250ms var(--out), shine 1.8s linear infinite; }
@keyframes shine { to { background-position: 0 0; } }
.term .tl-wait::after { content: "(esc to interrupt)"; display: inline-block; margin-left: 1ch; color: oklch(0.5 0 0); }
.term .spin { top: 0; width: auto; height: auto; border: 0; color: var(--term-claude); animation: none; }
.term .spin::before { content: "✻\FE0E"; display: inline-block; animation: spin 2.4s linear infinite; }

/* The artifact window */
.frame { grid-area: art; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: var(--inset); overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .09), 0 18px 40px -24px oklch(0.273 0 0 / .35); }
.frame .w-bar { height: 40px; gap: 10px; background: var(--trim); border-bottom-color: var(--trim-line); color: var(--ink-2); }
.frame .dots i { background: oklch(0.88 0 0); }
.frame .url { background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--trim-line); color: var(--ink); padding: 5px 12px; }
.frame .vtabs { background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px var(--trim-line); }
.frame .vtabs button[aria-pressed="true"] { box-shadow: 0 1px 2px oklch(0.273 0 0 / .14); }
.frame .guest { color: var(--ink-2); font: 12px/1 var(--sans); }
.frame .bw { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 600px) 248px; justify-content: center; gap: 36px; align-content: start; padding: 32px 32px 40px; }
.b-gutter { position: relative; }
.b-th { position: absolute; }

.bud { position: relative; min-width: 0; }
.bud[data-ver="1"] .v2-only, .bud[data-ver="2"] .v1-only { display: none; }
.bud .crumb { display: flex; align-items: center; gap: 8px; font: 12px/20px var(--sans); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--sans); }
.chip-amber { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip-green { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); }
.bud-h { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bud-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.bud-sub b { color: var(--ink); font-weight: 500; }




/* Comment pin: Dana's avatar, inline with the row it is about */
.c-pin { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50% 50% 50% 3px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .12), 0 2px 6px oklch(0.273 0 0 / .18); opacity: 0; transform: scale(.6); transform-origin: 0 100%; transition: transform 250ms var(--out), opacity 150ms ease; }
.c-pin img { width: 16px; height: 16px; border-radius: 50%; }
.c-pin[data-in] { opacity: 1; transform: none; }
.th { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .08), 0 8px 24px -12px oklch(0.273 0 0 / .3); }
.b-th { left: 0; right: 0; }
.th .msg .av { width: 22px; height: 22px; }
.th-cl { display: grid; place-items: center; background: oklch(0.931 0 0); }

/* After the last step: one call to action */
.sh-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-top: var(--hairline) solid var(--line); background: var(--paper); font-size: 14px; animation: rise 300ms var(--out); }
.mk-l { font-weight: 500; }
.sh-foot .mk-l { margin-right: auto; }
.ghost-d { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: oklch(0.95 0 0); font-weight: 500; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
@media (hover: hover) { .ghost-d:hover { background: oklch(0.923 0 0); } }
.ghost-d:active { scale: var(--press); }
.sh-foot .go { background: var(--accent); color: #fff; }
@media (hover: hover) { .sh-foot .go:hover { background: var(--accent-2); } }
.sh-foot .go:active { scale: var(--press); }

/* Narrower: the artifact first, the story around it */
@media (max-width: 1180px) {
  .frame .bw { grid-template-columns: minmax(0, 600px); }
  .b-gutter { display: none; }
}
@media (max-width: 1100px) {
  .sh-body { display: flex; flex-direction: column; overflow: auto; }
  .sh-body::before { content: none; }
  .st-before { order: 1; }
  .frame { order: 2; flex: none; overflow: visible; }
  .frame .bw { overflow: visible; padding: 24px 20px 28px; }
  .st-now { order: 3; overflow: visible; padding-top: 0; }
  .mail { max-height: 92px; }
}
@media (max-width: 640px) {
  :root { --dock-h: 96px; }
  .sheet { inset: 0; border-radius: 0; }
  .sh-top { height: 56px; }
  .frame .bw { padding: 20px 16px 24px; }
  .frame .w-bar .dots { display: none; }
  .bud-h { font-size: 22px; }
}

/* ---------- Before first, full size; the way forward sits right under it ---------- */
.sh-body[data-stage="before"] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-template-areas: "before"; place-items: center; overflow: auto; }
.sh-body[data-stage="before"]::before { content: none; }
.sh-body[data-stage="before"] :is(.st-now, .frame, .st-note) { display: none; }
.sh-body[data-stage="before"] .st-before { width: min(100%, 680px); padding: 24px 24px 56px; }
/* The card is zoomed 1.2, so its 10px corners read as the window's 12 */
.sh-body[data-stage="before"] .st-before > .bf-head + * { zoom: 1.2; border-radius: 10px; }
.sh-body[data-stage="before"] :is(.mail, .sk-long) { max-height: none; -webkit-mask-image: none; mask-image: none; }
.mail p + p { margin-top: 8px; }
/* The label, the pain in one short line, then the evidence: 16 / 24 / 24 on the 8px grid */
.sh-body[data-stage="before"] .st-before > .st-k { width: fit-content; margin-bottom: 16px; padding: 4px 10px 4px 9px; border-radius: 6px; background: color-mix(in oklch, var(--ink) 8%, transparent); color: var(--ink); font-size: 13px; line-height: 20px; }
.bf-head { display: none; }
.sh-body[data-stage="before"] .bf-head { display: block; margin-bottom: 24px; }
.bf-head h2 { margin: 0; font-size: 28px; line-height: 36px; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bf-head p { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.sk-re { margin-left: 30px; }
.bf-cta { display: none; }
.sh-body[data-stage="before"] .bf-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.bf-cta p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.bf-cta p b { color: var(--ink); font-weight: 500; }
/* The one brand moment, shared with the finish line: lit from above, pressed with a scale */
.bf-go, .dock .go { gap: 8px; background: linear-gradient(oklch(0.69 0.15 55), var(--accent)); color: #fff; box-shadow: inset 0 0 1px 1px oklch(1 0 0 / .06), 0 1.5px 2px oklch(0 0 0 / .1), 0 0 0 1px var(--accent-2); transition: scale 150ms ease-out, filter 150ms ease-out; }
.bf-go { height: 44px; padding: 0 16px 0 20px; font-size: 15px; }
.bf-go:active, .dock .go:active { scale: var(--press); }
.bf-arrow { transition: translate 200ms var(--out); }
@media (hover: hover) {
  .bf-go:hover, .dock .go:hover { background: linear-gradient(oklch(0.69 0.15 55), var(--accent)); filter: brightness(1.05); }
  .bf-go:hover .bf-arrow { translate: 2px 0; }
}
.bf-go:active .bf-arrow { translate: 3px 0; }
/* The Before card, emptied, growing into the page's window (stage.js) */
.morph { position: fixed; z-index: 70; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-pop); pointer-events: none; }

/* ---------- The dock: what to do now, and then the finish ----------
   One 60px strip under the page, level with the top bar. The instruction and the finish line
   share its slot, so nothing shifts when one gives way to the other. */
.dock { position: relative; flex: none; display: none; min-height: var(--dock-h); border-top: var(--hairline) solid var(--line); background: var(--paper); }
.sh-body:not([data-stage="before"]) ~ .dock { display: grid; }
.dock > * { grid-area: 1 / 1; }
.dock > .sh-foot { min-width: 0; flex-wrap: nowrap; gap: 12px; padding: 0 var(--inset-in) 0 var(--inset); border: 0; background: none; animation: none; }
.guide b { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); font-size: 12px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.guide b::before { content: ""; width: 14px; height: 14px; background: radial-gradient(circle, currentColor 2.5px, transparent 3px); }
.guide[data-beat] b, .guide[data-state="ok"] b { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); }
.guide[data-beat] b::before, .guide[data-state="ok"] b::before { background: currentColor; -webkit-mask: var(--ck) center / 14px no-repeat; mask: var(--ck) center / 14px no-repeat; animation: ck-in 260ms var(--out); }
@keyframes ck-in { from { opacity: 0; transform: scale(.6); } }
.guide .mk-l { min-width: 0; margin: 0 auto 0 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); text-wrap: pretty; }
/* The finish: a green check draws in, its ring breathes out once, and the offer rises */
.dock > #make { animation: rise 300ms var(--out); }
.dock .mk-l { margin-right: auto; }
.mk-ok { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); font-size: 12px; line-height: 1; font-weight: 500; animation: ok-pop 360ms var(--out) 60ms backwards; }
.mk-ok .chk-draw path { animation-delay: 220ms; }
.mk-ok::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--green-bright); opacity: 0; pointer-events: none; animation: ok-ring 700ms var(--out) 160ms; }
@keyframes ok-pop { from { opacity: 0; transform: scale(.85); } }
@keyframes ok-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3, 1.6); } }
/* The ring on a wide target is a rounded frame, not a line */
:is(.ch-r, .pl-opts):is([data-cue], [data-hit])::after { inset: -6px -10px; border-radius: 10px; }
@media (max-width: 640px) {
  .sh-body[data-stage="before"] .st-before > .bf-head + * { zoom: 1; border-radius: 12px; }
  .sh-body[data-stage="before"] .st-before { padding: 20px var(--inset) 32px; }
  .bf-head h2 { font-size: 22px; line-height: 30px; }
  .sh-body[data-stage="before"] .bf-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .bf-go { height: 48px; justify-content: center; }
  .dock > .guide { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 10px var(--inset); }
  .dock > #make { flex-wrap: wrap; align-content: center; gap: 10px 8px; padding: 12px var(--inset); }
  .dock > #make .mk-l { flex: 1 1 calc(100% - 82px); }
  .dock > #make :is(.ghost-d, .go) { flex: 1 1 calc(50% - 4px); justify-content: center; height: 44px; }
}

/* A pin and its thread point at each other */
.c-pin { cursor: default; transition: transform 250ms var(--out), opacity 150ms ease, box-shadow 150ms ease; }
.c-pin .c-you { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 8px/1 var(--sans); }
.c-pin[data-hot] { box-shadow: 0 0 0 2px var(--ink), 0 2px 6px oklch(0.273 0 0 / .18); }
.b-th { transition: opacity 200ms var(--out), transform 250ms var(--out), top 300ms var(--move), box-shadow 150ms ease; }
.b-th[data-hot] { box-shadow: 0 0 0 1.5px var(--ink), 0 8px 24px -12px oklch(0.273 0 0 / .3); }
.th-you { display: grid; place-items: center; background: var(--ink); color: #fff; font: 500 9px/1 var(--sans); }


/* =====================================================================================
   The budget artifact. Scoped to #sheet.
   One page inset (--pg) for the header, the rows and the footer; an 8px rhythm; radii that
   nest (window 12, controls 8, chips 6, pills 999). Colour: ink for the page, the tile hues
   for the channels, amber only where artifact.cafe speaks, green for done.
   ===================================================================================== */
#sheet .frame .bw {
  --pg: 32px; --th: 20px; --tr: 6px; --hit: 24px;
  --cols: minmax(0, 600px) 240px;
  --red-soft: oklch(0.966 0.02 28); --red-line: oklch(0.88 0.06 28);
  display: flex; flex-direction: column; justify-content: flex-start; align-content: normal; gap: 0; padding: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-bottom: 104px;
}
#sheet .bw-in { flex: 1 0 auto; display: grid; grid-template-columns: var(--cols); justify-content: center; align-content: start; column-gap: 32px; padding: var(--pg) var(--pg) 24px; }
#sheet .b-gutter { position: relative; min-width: 0; }

/* Header: the title on the left, the number everything moves on the right */
#sheet .bud-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
#sheet .bud-hd > div:first-child { min-width: 0; }
#sheet .bud-h { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
#sheet .bud-sub { margin-top: 4px; font-size: 14px; line-height: 20px; max-width: 34em; }
#sheet .fc { flex: none; display: grid; justify-items: end; text-align: right; }
#sheet .fc-k { font-size: 12px; line-height: 16px; color: var(--ink-3); }
#sheet .fc b { margin-top: 4px; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#sheet .fc em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
#sheet .fc em[data-s="up"] { color: var(--green); }
#sheet .fc em[data-s="down"] { color: var(--ink-2); }

/* The split, as one bar: hard stops with a 2px gap, an empty rail for what is left */
#sheet .al { position: relative; height: 8px; border-radius: 4px; background: var(--track); }
#sheet .al::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--al, none); transform-origin: 0 50%; }
#sheet .al::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: calc(var(--lim, 100) * 1%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); opacity: 0; transition: opacity 150ms ease; }
#sheet .al[data-over]::after { opacity: 1; }
#sheet #p-al { margin-bottom: 4px; }

/* Channel rows */
#sheet .chs { border-top: var(--hairline) solid var(--line); }
#sheet .ch { position: relative; padding: 12px 0; }
#sheet .ch + .ch { border-top: var(--hairline) solid var(--line); }
#sheet .ch-h { display: flex; align-items: center; gap: 8px; height: 24px; min-width: 0; }
#sheet .ch-sw { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
#sheet .ch-h b { font-size: 15px; line-height: 24px; font-weight: 500; white-space: nowrap; }
#sheet .ch-h output { margin-left: auto; min-width: 4.5em; text-align: right; font-size: 15px; line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
#sheet .ch-h .c-pin { margin-left: auto; }
#sheet .ch-h .c-pin + output { margin-left: 0; min-width: 4em; }
#sheet .ch-r { position: relative; height: var(--hit); margin-top: 8px; }
#sheet .ch-r:is([data-cue], [data-hit])::after { inset: -4px -10px; border-radius: 14px; }
#sheet .ch-f { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 8px; }
#sheet .ch-w { min-width: 0; font-size: 13px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
#sheet .ch-s { flex: none; font-size: 12px; line-height: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Claude's tick: a mark under the track at its suggestion; the thumb covers it when you agree */
#sheet .rec { position: absolute; z-index: 0; top: calc(50% + var(--tr) / 2 + 2px); left: calc(var(--th) / 2 + (100% - var(--th)) * var(--f)); width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--ink-3); transition: opacity 150ms ease; pointer-events: none; }
#sheet .ch[data-rec] .rec { opacity: 0; }

/* The slider: the track fills with the channel colour up to the thumb's centre */
#sheet .ch input[type="range"] { -webkit-appearance: none; appearance: none; position: relative; z-index: 1; display: block; width: 100%; height: var(--hit); margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
#sheet .ch input[type="range"]::-webkit-slider-runnable-track { height: var(--tr); border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p, 50%), var(--track) 0); }
#sheet .ch input[type="range"]::-moz-range-track { height: var(--tr); border-radius: 3px; background: var(--track); }
#sheet .ch input[type="range"]::-moz-range-progress { height: var(--tr); border-radius: 3px; background: var(--c); }
#sheet .ch input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--th); height: var(--th); margin-top: calc((var(--tr) - var(--th)) / 2); border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 0 transparent; transition: box-shadow 150ms ease, scale 150ms ease-out; }
#sheet .ch input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: var(--th); height: var(--th); border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 0 transparent; transition: box-shadow 150ms ease, scale 150ms ease-out; }
@media (hover: hover) {
  #sheet .ch input[type="range"]:not(:disabled):hover::-webkit-slider-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 6px color-mix(in oklch, var(--c) 18%, transparent); }
  #sheet .ch input[type="range"]:not(:disabled):hover::-moz-range-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 6px color-mix(in oklch, var(--c) 18%, transparent); }
}
#sheet .ch input[type="range"]:not(:disabled):active::-webkit-slider-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 8px color-mix(in oklch, var(--c) 24%, transparent); }
#sheet .ch input[type="range"]:not(:disabled):active::-moz-range-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .14), 0 1px 3px oklch(0.273 0 0 / .22), 0 0 0 8px color-mix(in oklch, var(--c) 24%, transparent); }
#sheet .ch input[type="range"]:focus-visible { outline: none; }
#sheet .ch input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
#sheet .ch input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
#sheet .ch input[type="range"]:disabled { cursor: default; }
#sheet .ch input[type="range"]:disabled::-webkit-slider-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .1); }
#sheet .ch input[type="range"]:disabled::-moz-range-thumb { box-shadow: 0 0 0 1px oklch(0.273 0 0 / .1); }

/* Ask Claude: a small chip next to the label it is about, pressable, and it stays as "Asked" */
#sheet .ask { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-left: 4px; padding: 0 8px 0 6px; border: 0; border-radius: 6px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 12px/1 var(--sans); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, scale 150ms ease-out; }
#sheet .ask::before { content: ""; position: absolute; inset: -10px -4px; }
@media (hover: hover) { #sheet .ask:enabled:hover { background: var(--fill-2); color: var(--ink); } }
#sheet .ask:active:enabled { scale: var(--press); }
#sheet .ask:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#sheet .ask:is([data-cue], [data-hit])::after { inset: -4px; border-radius: 10px; }
#sheet .ask[data-done] { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); color: var(--green); cursor: default; }
#sheet .ask:disabled:not([data-done]) { opacity: .5; cursor: default; }
#sheet .ask svg { flex: none; }

/* The one rule of the page stays in view: what is left, and the way to approve. Full-bleed, on the same two columns. */
#sheet .bud-foot { position: sticky; bottom: 0; z-index: 2; flex: none; background: var(--paper); box-shadow: 0 calc(var(--hairline) * -1) 0 var(--line); }
#sheet .bud-foot-in { display: grid; grid-template-columns: var(--cols); justify-content: center; column-gap: 32px; padding: 12px var(--pg); }
#sheet .bud-foot-c { display: grid; gap: 12px; min-width: 0; }
#sheet .bud-foot-r { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#sheet .left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color 200ms ease; }
#sheet .left::before { content: ""; flex: none; width: 14px; height: 14px; background: radial-gradient(circle, currentColor 3px, transparent 3.5px); }
#sheet .left svg { display: none; flex: none; }
#sheet .left[data-ok] { color: var(--green); }
#sheet .left[data-ok]::before { display: none; }
#sheet .left[data-ok] svg { display: block; }
#sheet .left[data-bad] { color: var(--red); }

#sheet .approve { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 136px; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--primary); color: var(--paper); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, scale 150ms ease-out; }
@media (hover: hover) { #sheet .approve:enabled:hover { background: var(--primary-hover); } }
#sheet .approve:active:enabled { scale: var(--press); }
#sheet .approve:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#sheet .approve:disabled:not([data-ok]) { background: var(--fill-2); color: var(--ink-3); cursor: default; }
#sheet .approve:disabled:not([data-ok])::after { visibility: hidden; }
#sheet .approve[data-ok] { background: var(--green); color: var(--paper); cursor: default; }
#sheet .ap-t { display: inline-flex; align-items: center; gap: 6px; }

/* Threads: Dana and Priya on the rows they are about; you and the agent in the same place */
#sheet .b-th { left: 0; right: 0; }
#sheet .th { padding: 12px; font: 13px/20px var(--sans); }
#sheet .msg { display: block; }
#sheet .msg + .msg { margin-top: 12px; padding-top: 12px; border-top: var(--hairline) solid var(--line); animation: bud-msg 280ms var(--out); }
#sheet .msg-h { display: flex; align-items: center; gap: 8px; height: 20px; }
#sheet .th .msg .av { width: 20px; height: 20px; }
#sheet .who { font-size: 12px; line-height: 16px; }
#sheet .msg p { margin: 4px 0 0; min-height: 0; color: var(--ink-body); text-wrap: pretty; }
#sheet .msg-typing .dots3 { height: 20px; margin-top: 4px; padding: 0; align-items: center; }
#sheet .msg-h .th-res { gap: 4px; height: 20px; margin-left: auto; padding: 0 8px 0 5px; }
/* In v2 a thread that was already answered folds to one line, so the new ones have the room */
#sheet .bw[data-ver="2"] .th[data-answered] .msg + .msg { display: none; }
#sheet .bw[data-ver="2"] .th[data-answered] .msg p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#sheet .bw[data-ver="2"] .th[data-answered] .msg-h::after { content: "Answered"; margin-left: auto; font-size: 12px; line-height: 16px; color: var(--ink-3); }
/* A thread that grew: the ones below move with it, no glide */
#sheet .b-gutter[data-snap] .b-th { transition-duration: 200ms, 250ms, 0s, 150ms; }
#sheet .th { scroll-margin-bottom: 8px; }
@keyframes bud-msg { from { opacity: 0; transform: translateY(4px); } }

/* v2: the plan the decision produced */
#sheet .plan { list-style: none; margin: 0; padding: 0; }
#sheet .plan li { position: relative; display: grid; grid-template-columns: minmax(112px, 160px) minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 16px 0; border-top: var(--hairline) solid var(--line); font-size: 14px; line-height: 24px; }
#sheet .plan li:first-child { margin-top: 20px; }
#sheet .plan li > b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
#sheet .plan li > b i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
#sheet .plan li > span { min-width: 0; color: var(--ink-2); text-wrap: pretty; }
#sheet .plan li > em { font-style: normal; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
#sheet .plan .plan-t { border-top-color: var(--ink); border-top-width: var(--hairline); }
#sheet .plan li .th { grid-column: 1 / -1; }
#sheet .plan-ok { display: flex; align-items: center; gap: 12px; min-height: 24px; margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
#sheet .plan-ok .chip { gap: 4px; height: 24px; padding: 0 10px 0 6px; font-size: 12px; }
#sheet .bud[data-fresh] #p-al::before { animation: bud-grow 700ms var(--out) both; }
#sheet .bud[data-fresh] .plan li { animation: bud-row 420ms var(--out) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
@keyframes bud-grow { from { transform: scaleX(0); } }
@keyframes bud-row { from { opacity: 0; transform: translateY(6px); } }

#sheet .tk { color: var(--term-ok); }
#sheet #copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 144px; }
#sheet #copy svg { color: var(--green); }

/* Under 1181px the gutter is gone: threads sit inside the row they are about */
@media (max-width: 1180px) {
  #sheet .frame .bw { --cols: minmax(0, 600px); }
  #sheet .ch .th, #sheet .plan li .th { position: relative; left: auto; right: auto; top: auto; margin-top: 12px; }
  #sheet .ch .th:not([data-in]) { display: none; }
  #sheet .ch .th[data-in] { animation: bud-msg 280ms var(--out); }
}
/* Under 1101px the story stacks and the sheet's body scrolls: the footer sticks to it */
@media (max-width: 1100px) {
  #sheet .frame { overflow: clip; }
  #sheet .frame .bw { --pg: 24px; overflow: visible; scroll-padding-bottom: 0; }
  #sheet .sh-body { scroll-padding-bottom: 104px; }
}
@media (max-width: 640px) {
  #sheet .frame .bw { --pg: 16px; }
  #sheet .bw-in { padding-bottom: 16px; }
  #sheet .bud-hd { flex-direction: column; gap: 16px; padding-bottom: 16px; }
  #sheet .bud-h { font-size: 22px; line-height: 28px; }
  #sheet .fc { width: 100%; grid-template: "k b" auto "d b" auto / 1fr auto; justify-items: start; align-items: center; }
  #sheet .fc-k { grid-area: k; } #sheet .fc em { grid-area: d; }
  #sheet .fc b { grid-area: b; justify-self: end; margin: 0; font-size: 28px; line-height: 36px; }
  #sheet .ch-f { flex-direction: column; gap: 4px; }
  #sheet .plan li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  #sheet .plan li > span { grid-column: 1 / -1; grid-row: 2; padding-left: 16px; }
  #sheet .bud-foot-in { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #sheet .approve { height: 44px; min-width: 128px; }
}
/* Touch: 44px to grab, a bigger thumb, a bigger Ask */
@media (pointer: coarse) {
  #sheet .frame .bw { --th: 28px; --hit: 44px; }
  #sheet .ch-r:is([data-cue], [data-hit])::after { inset: -2px -10px; }
  #sheet .ask { height: 28px; padding: 0 10px 0 8px; }
  #sheet .ask::before { inset: -8px -4px; }
  #sheet .approve { height: 44px; }
}
/* minis.css */
/* ---------- The eight tiles: tiny working screens ---------- */
/* minis.js plays a short story in each (see the top of that file). Only
   transform, opacity, filter and clip-path move: anything arriving rides --out,
   anything already on screen rides --move. */
.rs-mini { --float: 0 0 0 1px oklch(0 0 0 / .07), 0 1px 2px oklch(0 0 0 / .06), 0 6px 12px -6px oklch(0 0 0 / .22);
  position: relative; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
  background: oklch(0.988 0 0); color: var(--ink); font: 10px/14px var(--sans); letter-spacing: 0; user-select: none; pointer-events: none; }
.m-t { font-size: 11px; line-height: 14px; font-weight: 500; }
.m-sub { margin-top: 1px; font-size: 9px; line-height: 12px; color: var(--ink-3); }
.m-n { font-weight: 500; font-variant-numeric: tabular-nums; }
.m-av { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--paper); color: oklch(0 0 0 / .62); font: 500 7px/1 var(--sans); font-style: normal; }
.m-stack { display: flex; }
.m-stack > * + * { margin-left: -4px; }
.m-stack .m-pop { --from: -3px 0; --s: .6; transform-origin: 0 50%; }

/* Arrivals: a little rise, scale and blur, settling on --out */
.m-pop { opacity: 0; translate: var(--from, 0 4px); scale: var(--s, .94); filter: blur(2px); transition: opacity 300ms var(--out), translate 500ms var(--out), scale 500ms var(--out), filter 300ms var(--out); }
.m-pop[data-in] { opacity: 1; translate: none; scale: 1; filter: none; }

/* Two labels in one place: the second rises in as the first rises out */
.m-swap { display: grid; }
.m-swap > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 3px; transition: opacity 250ms var(--out), translate 400ms var(--out), filter 250ms var(--out); }
.m-swap > span + span { opacity: 0; translate: 0 5px; filter: blur(2px); }
.m-swap[data-in] > span:first-child { opacity: 0; translate: 0 -5px; filter: blur(2px); }
.m-swap[data-in] > span + span { opacity: 1; translate: none; filter: none; }

/* Comments float above the page */
.m-cm { position: absolute; right: var(--p); bottom: var(--p); display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border-radius: 999px; background: var(--paper); box-shadow: var(--float); font-size: 9px; line-height: 14px; white-space: nowrap; transform-origin: 100% 100%; }
.m-cm-l { right: auto; left: var(--p); transform-origin: 0 100%; }
.m-cm small { color: var(--ink-3); font-size: 8px; }

/* The cursor: tip on the target's center, presses with a small squeeze */
.m-cur { position: absolute; left: -1px; top: -1px; z-index: 3; opacity: 0; transition: translate 650ms var(--move), opacity 250ms ease; }
.m-cur[data-show] { opacity: 1; }
.m-cur[data-ride] { transition: opacity 250ms ease; }
.m-cur svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px oklch(0 0 0 / .22)) drop-shadow(0 3px 6px oklch(0 0 0 / .14)); transform-origin: 1px 1px; transition: scale 160ms var(--out); }
.m-cur path { fill: var(--paper); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.m-cur[data-in] svg { scale: .85; }

/* Launch budget: grab Events, drag it up, Ads gives way, approve */
.m-sl { display: grid; grid-template-columns: 38px minmax(0, 1fr) 32px; align-items: center; gap: 8px; margin-top: 9px; color: var(--ink-2); font-size: 9px; line-height: 12px; }
.m-t + .m-sl { margin-top: 11px; }
.m-sl i { position: relative; height: 4px; border-radius: 2px; background: oklch(0.943 0 0); }
.m-sl i > b { position: absolute; inset: 0; border-radius: 2px; background: var(--c); clip-path: inset(0 calc((1 - var(--v)) * 100%) 0 0 round 2px); transition: clip-path 800ms var(--move); }
.m-sl s { position: absolute; inset: 0; translate: calc(var(--v) * 100%) 0; transition: translate 800ms var(--move); }
.m-sl u { position: absolute; top: -4px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .1), 0 1px 2px oklch(0 0 0 / .18), 0 2px 5px -2px oklch(0 0 0 / .2); transition: scale 250ms var(--out), box-shadow 250ms var(--out); }
.m-sl u[data-in] { scale: 1.2; box-shadow: 0 0 0 1px oklch(0 0 0 / .1), 0 0 0 4px oklch(from var(--c) l c h / .16), 0 3px 8px -2px oklch(0 0 0 / .3); }
.m-sl em { color: var(--ink); font-style: normal; text-align: right; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; color: var(--ink-2); font-size: 9px; }
.m-foot .m-n { color: var(--ink); font-size: 12px; }
.m-appr { display: grid; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 9px; line-height: 12px; font-weight: 500; transition: background-color 300ms ease, scale 150ms var(--out); }
.m-appr[data-in] { scale: .94; }
[data-on~="ok"] .m-appr { background: var(--green); }
.m-toast { position: absolute; right: var(--p); bottom: calc(var(--p) + 24px); display: flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 999px; background: var(--paper); box-shadow: var(--float); color: var(--ink-2); font-size: 9px; transform-origin: 100% 100%; }

/* Spec review: the flow draws itself, Brynn asks, v2 answers */
.m-ver { display: inline-grid; height: 12px; overflow: hidden; vertical-align: top; }
.m-ver b { grid-area: 1 / 1; font-weight: 500; color: var(--ink-2); transition: translate 450ms var(--out), opacity 300ms var(--out); }
.m-ver b + b { translate: 0 100%; opacity: 0; color: var(--green); }
[data-on~="v2"] .m-ver b:first-child { translate: 0 -100%; opacity: 0; }
[data-on~="v2"] .m-ver b + b { translate: none; opacity: 1; }
.m-seq { position: relative; margin-top: 8px; }
/* Dashed lifelines under each lane */
.m-seq::before { --dash: linear-gradient(oklch(0 0 0 / .13) 50%, transparent 0); content: ""; position: absolute; inset: 13px 0 0; background: var(--dash) 16.66% 0 / 1px 4px repeat-y, var(--dash) 50% 0 / 1px 4px repeat-y, var(--dash) 83.33% 0 / 1px 4px repeat-y; }
.m-lanes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
.m-lanes b { padding: 0 6px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .08), 0 1px 2px oklch(0 0 0 / .05); font-size: 9px; line-height: 13px; font-weight: 500; }
.m-ar { --ar: var(--ink); position: relative; height: 15px; margin-left: calc(var(--a) * 33.33% + 16.66%); width: calc((var(--b) - var(--a)) * 33.33%); }
.m-ar.m-ok { --ar: var(--green); }
.m-ar i { position: absolute; inset: auto 0 0; height: 1px; background: var(--ar); clip-path: inset(-4px 100% -4px 0); transition: clip-path 550ms var(--move); }
.m-ar[data-dir="l"] i { clip-path: inset(-4px 0 -4px 100%); }
.m-ar[data-in] i { clip-path: inset(-4px); }
.m-ar i::after { content: ""; position: absolute; top: -3px; border: 3.5px solid transparent; }
.m-ar[data-dir="r"] i::after { right: -1px; border-left-color: var(--ar); border-right: 0; }
.m-ar[data-dir="l"] i::after { left: -1px; border-right-color: var(--ar); border-left: 0; }
.m-ar span { position: absolute; left: 0; right: 0; bottom: 2px; color: var(--ink-2); font-size: 9px; line-height: 11px; text-align: center; white-space: nowrap; opacity: 0; translate: 0 2px; filter: blur(2px); transition: opacity 300ms var(--out), translate 400ms var(--out), filter 300ms var(--out); }
.m-ar.m-ok span { color: var(--green); }
.m-ar[data-in] span { opacity: 1; translate: none; filter: none; transition-delay: 150ms; }
.m-res { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1.5px var(--paper); color: #fff; --s: .5; --from: 0 0; }

/* Weekly dashboard: this week's bar arrives, the number follows, the goal is met */
.m-kpi { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; white-space: nowrap; }
.m-kpi:first-child { margin-top: 0; }
.m-kpi span { color: var(--ink-3); font-size: 9px; }
.m-kpi .m-n { font-size: 16px; line-height: 20px; letter-spacing: -0.02em; }
.m-kpi em { color: var(--green); font-size: 9px; font-style: normal; }
.m-kpi em.m-bad { color: var(--red); }
.m-live { align-self: center; display: flex; align-items: center; gap: 4px; margin-left: auto; color: var(--ink-3); font-size: 9px; line-height: 12px; }
.m-live i { position: relative; width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); }
.m-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green-bright); opacity: 0; }
[data-on~="up"] .m-live i::after { animation: m-ping 1100ms var(--out); }
@keyframes m-ping { from { opacity: .55; scale: 1; } to { opacity: 0; scale: 3.4; } }
.m-bars { position: relative; display: flex; align-items: flex-end; gap: 4px; flex: 1; margin-top: 8px; box-shadow: 0 1px 0 oklch(0 0 0 / .06); }
.m-bars u { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--c-blue-tint); transition: background-color 500ms ease; }
.m-bars .m-was { background: var(--c-blue); }
[data-on~="up"] .m-bars .m-was { background: var(--c-blue-tint); }
.m-bars .m-new { background: var(--c-blue); clip-path: inset(100% 0 0 round 3px 3px 0 0); transition: clip-path 700ms var(--out); }
.m-bars .m-new[data-in] { clip-path: inset(0 round 3px 3px 0 0); }
.m-goal { position: absolute; left: 0; right: 0; bottom: 80%; height: 1px; background: linear-gradient(90deg, oklch(0 0 0 / .2) 50%, transparent 0) 0 0 / 4px 1px; }
.m-goal > span { position: absolute; left: 0; bottom: 3px; display: flex; align-items: center; gap: 2px; color: var(--ink-3); font: 500 8px/10px var(--mono); transition: color 300ms ease; }
[data-on~="n"] .m-goal > span { color: var(--green); }
.m-wk { display: flex; gap: 4px; margin-top: 4px; }
.m-wk span { flex: 1; color: var(--ink-3); font: 8px/10px var(--mono); text-align: center; }

/* Client report: the trend draws, the client asks with no account, the agent answers */
.m-chart { position: relative; height: 46px; margin-top: 6px; }
.m-spark { display: block; width: 100%; height: 100%; overflow: visible; clip-path: inset(-4px 100% -4px 0); transition: clip-path 1100ms var(--move); }
.m-chart[data-in] .m-spark { clip-path: inset(-4px -4px -4px 0); }
.m-end { position: absolute; left: 97%; top: 15%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); --s: .4; --from: 0 0; }
.m-end::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: 0; }
[data-on~="dot"] .m-end::after { animation: m-ping 1100ms var(--out) 150ms; }
.m-ask { transition: opacity 300ms var(--out), translate 500ms var(--out), scale 500ms var(--out), filter 300ms var(--out), transform 450ms var(--out); }
[data-on~="re"] .m-ask { transform: translateY(-24px); }
.m-cl { background: oklch(0.965 0.02 45); }
.m-av[data-at="you"] { color: #fff; }

/* Three designs: notes land on the spot, votes come in, B is picked */
.m-vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1; }
.m-vars > div { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .08); transition: box-shadow 400ms var(--out), translate 500ms var(--out), opacity 500ms var(--move), filter 500ms var(--move); }
.m-vars b { color: var(--ink-2); font-size: 9px; line-height: 11px; font-weight: 500; }
.m-hero { position: relative; height: 36px; border-radius: 3px; }
.m-hero em { position: absolute; left: 5px; bottom: 5px; width: 18px; height: 6px; border-radius: 3px; background: var(--ink); }
.m-ln { display: block; height: 3px; border-radius: 2px; background: oklch(0.92 0 0); }
.m-vv { margin-top: auto; height: 14px; }
.m-pin { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50% 50% 50% 2px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .1), 0 2px 5px oklch(0 0 0 / .2); --from: 0 -6px; --s: .8; transform-origin: 0 100%; }
.m-pin .m-av { width: 11px; height: 11px; box-shadow: none; }
.m-hero em + .m-pin { top: auto; right: auto; left: 24px; bottom: 9px; }
.m-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); color: #fff; --s: .5; --from: 0 0; }
[data-on~="pick"] .m-vars > div:not(.m-win) { opacity: .45; filter: grayscale(1); }
[data-on~="pick"] .m-win { translate: 0 -2px; box-shadow: 0 0 0 1.5px var(--ink), 0 8px 16px -8px oklch(0 0 0 / .35); }

/* Hiring tracker: pick Amir up, carry him to Offer, Mei closes the gap */
.m-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; flex: 1; }
.m-cols > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 5px; border-radius: 6px; background: oklch(0.962 0 0); transition: background-color 300ms ease, box-shadow 300ms ease; }
.m-cols em { display: flex; justify-content: space-between; gap: 4px; color: var(--ink-3); font: 500 9px/12px var(--sans); font-style: normal; white-space: nowrap; }
.m-cols em .m-n { color: var(--ink-3); }
.m-chip { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; height: 20px; padding: 0 4px; border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .05), 0 1px 2px oklch(0 0 0 / .08); font-size: 9px; white-space: nowrap; overflow: hidden; }
.m-amir { z-index: 2; transition: transform 650ms var(--move), scale 250ms var(--out), rotate 250ms var(--out), box-shadow 250ms var(--out), background-color 300ms ease; }
[data-on~="grab"] .m-amir { scale: 1.06; rotate: -2deg; box-shadow: 0 0 0 1px oklch(0 0 0 / .06), 0 8px 16px -6px oklch(0 0 0 / .3); }
[data-on~="drag"] .m-amir { transform: translateX(calc(100% + 15px)); }
[data-on~="drop"] .m-amir { background: var(--green-soft); box-shadow: 0 0 0 1px var(--green-line); }
.m-mei { transition: transform 650ms var(--move); }
[data-on~="drag"] .m-mei { transform: translateY(-24px); transition-delay: 80ms; }
.m-slot { height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--green-line); opacity: 0; transition: opacity 250ms ease; }
[data-on~="grab"] .m-slot { opacity: 1; }
[data-on~="grab"] .m-offer { background: var(--green-soft); }

/* Team poll: two votes arrive, the bars and numbers follow, Tahoe leads */
.m-opt { position: relative; display: flex; align-items: center; height: 20px; margin-top: 6px; border-radius: 5px; background: oklch(0.962 0 0); }
.m-t + .m-opt { margin-top: 10px; }
.m-opt i { position: absolute; inset: 0; border-radius: 5px; background: var(--cs); clip-path: inset(0 calc((1 - var(--v)) * 100%) 0 0 round 5px); transition: clip-path 700ms var(--move), background-color 400ms ease; }
[data-on~="win"] .m-lead i { background: var(--c-orange-tint); }
.m-opt span { position: relative; display: flex; align-items: center; gap: 3px; padding-left: 7px; font-size: 9px; }
.m-opt span b { display: grid; color: var(--c-orange-ink); --s: .5; --from: 0 0; }
.m-opt em { position: relative; margin-left: auto; padding-right: 7px; color: var(--ink-2); font-size: 9px; font-style: normal; }
.m-opt em .m-n { font-weight: 400; }
.m-pf { margin-top: auto; }

/* The row a joining avatar pushes along: the text waits where the stack ends */
.m-join { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 9px; }
.m-join .m-sh { translate: calc((var(--v) - 2) * 10px) 0; transition: translate 500ms var(--move); }
.m-join .m-n { color: var(--ink); }

/* Event RSVP: Dev says yes, then you do; the headcount rolls */
.m-rsvp { margin-top: 8px; }
.m-roll { display: inline-flex; flex-direction: column; height: 14px; overflow: hidden; vertical-align: top; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.m-roll span { translate: 0 calc(var(--v) * -14px); transition: translate 500ms var(--out); }
.m-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 7px 3px 3px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 9px; --from: 0 -4px; transform-origin: 50% 0; }
.m-row small { margin-left: auto; color: oklch(from var(--green) l c h / .7); font-size: 8px; }
.m-btns { display: flex; gap: 5px; margin-top: auto; }
.m-btns > span { flex: 1; display: grid; place-items: center; height: 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / .12); color: var(--ink-2); font-size: 9px; transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, scale 150ms var(--out); }
.m-go[data-in] { scale: .94; }
[data-on~="you"] .m-go { background: var(--ink); box-shadow: none; color: #fff; }

/* Narrow tiles (two columns on phones): fewer words, no overlaps */
@container (max-width: 200px) {
  .m-sl { grid-template-columns: 34px 1fr; margin-top: 7px; }
  .m-sl em, .m-w, .m-kpi > span:first-child, .m-live span, .m-cm small, .m-row small, .m-cols em .m-n, .m-chip .m-av { display: none; }
  .m-ar span { display: none; }
  .m-ar { height: 11px; }
  .m-chart { height: 30px; }
  .m-cols > div { padding: 4px; }
  .m-chip { padding: 0 5px; }
  [data-on~="drag"] .m-amir { transform: translateX(calc(100% + 13px)); }
}

/* The rewind: everything goes back at once, quickly */
.rs-mini[data-rw] * { transition-duration: 400ms !important; transition-delay: 0s !important; }
/* hero.css */
/* Hero: the loop in three windows. The captions carry the message; the motion
   plays once and only adds the order things happen in. */
.dk-hero h1 { font-size: 44px; }
/* Primary action and the command on one row, both 48px tall */
.dk-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.dk-by { display: flex; width: fit-content; margin: 0; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); }
.dk-by > span { display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 9px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink-2); font: 500 14px/26px var(--mono); }
.dk-by code { font: inherit; user-select: all; }
.dk-by [data-claude] { display: grid; place-items: center; width: 22px; height: 22px; }
@media (max-width: 640px) { .dk-act .btn { width: 100%; } }

/* Sections: a 24px heading, an 18px paragraph, then the thing */
.dk > .dk-sec { margin-top: 96px; }
/* Pull the loop up so it plays above the fold */
.dk > .dk-hero + .dk-sec { margin-top: 72px; }
.dk-sec h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.dk-sec > p { max-width: 720px; margin: 16px 0 0; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.dk-sec > .tiles, .dk-sec > .loop { margin-top: 28px; }
.dk-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 640px) { .dk-hero h1 { font-size: 32px; } .dk-sec > p { margin-top: 8px; font-size: 16px; line-height: 24px; } }

/* Three windows in a row, each in the same frame as the cards */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-step { min-width: 0; }
.lp-win {
  --lp-red: oklch(0.694 0.196 26.4); --lp-yellow: oklch(0.835 0.161 80.9); --lp-green: oklch(0.728 0.217 144.7);
  --lp-claude: oklch(0.672 0.131 38.8); --lp-aub: oklch(0.272 0.101 327.1); --lp-link: oklch(0.491 0.124 248.1);
  container-type: inline-size; display: flex; flex-direction: column; height: 348px; overflow: hidden; border-radius: 12px; background: var(--paper); user-select: none; pointer-events: none;
}
.lp-win :where(p) { margin: 0; }
.lp-win .ic { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Window chrome: real traffic lights, a centred title or field */
.lp-bar { position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; }
.lp-lights { display: flex; gap: 6px; }
.lp-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-red); box-shadow: inset 0 0 0 .5px oklch(0 0 0 / .14); }
.lp-lights i:nth-child(2) { background: var(--lp-yellow); } .lp-lights i:nth-child(3) { background: var(--lp-green); }
.lp-nav { display: flex; gap: 6px; opacity: .55; }
.lp-title, .lp-search { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; }

/* Same caption as the cards: a quiet eyebrow, the name, one line */
.lp-cap { margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
.lp-cap span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.lp-cap b { display: block; margin: 2px 0; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 500; }

/* 1. Claude Code in a dark terminal */
.lp-term { background: oklch(0.205 0 0); }
.lp-term .lp-bar { box-shadow: 0 var(--hairline) 0 oklch(1 0 0 / .07); }
.lp-term .lp-lights i { box-shadow: inset 0 0 0 .5px oklch(0 0 0 / .3); }
.lp-title { color: oklch(0.72 0 0); font: 500 11px/1 var(--sans); }
.lp-tty { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 8px; color: oklch(0.91 0 0); font: 10px/15px var(--mono); }
.lp-tty b { font-weight: 500; color: oklch(0.97 0 0); }
.lp-tty i { font-style: normal; }
/* Newest at the bottom; older lines scroll off the top */
.lp-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.lp-log, .lp-feed { -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.lp-log > * { flex: none; }
.lp-wel { padding: 7px 9px 7px 11px; border: 1px solid var(--lp-claude); border-radius: 6px; }
.lp-wel i { color: var(--lp-claude); }
.lp-wel p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-wel p + p { margin-top: 7px; padding-left: 2ch; color: oklch(0.6 0 0); } .lp-wel p + p + p { margin-top: 0; }
.lp-u { color: oklch(0.66 0 0); }
.lp-call > p, .lp-said { position: relative; padding-left: 2ch; }
.lp-call > p > i, .lp-said > i { position: absolute; left: 0; top: 4.5px; width: 6px; height: 6px; border-radius: 50%; background: oklch(0.705 0.157 148.1); }
.lp-said > i { background: oklch(0.91 0 0); }
.lp-out { position: relative; padding-left: 5ch; color: oklch(0.72 0 0); }
.lp-out::before { content: ""; position: absolute; left: calc(2ch + 1px); top: 2px; width: 4px; height: 5px; border-left: 1px solid oklch(0.5 0 0); border-bottom: 1px solid oklch(0.5 0 0); }
.lp-out:empty::before { display: none; }
.lp-ln { display: flex; gap: 1ch; color: oklch(0.86 0 0); white-space: pre; }
.lp-ln i { width: 2ch; text-align: right; color: oklch(0.5 0 0); }
.lp-dim { color: oklch(0.55 0 0); }
.lp-ok { color: oklch(0.705 0.157 148.1); }
.lp-spin { flex: none; display: flex; gap: 1ch; margin-top: 8px; color: var(--lp-claude); }
.lp-spin[hidden] { display: none; }
.lp-spin i { width: 1ch; text-align: center; }
.lp-spin span { background: linear-gradient(90deg, var(--lp-claude) 35%, oklch(0.86 0.07 50) 50%, var(--lp-claude) 65%) 100% 0 / 300% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: lp-shine 1.8s linear infinite; }
.lp-spin em { font-style: normal; color: oklch(0.5 0 0); }
@keyframes lp-shine { to { background-position: 0 0; } }
.lp-in { flex: none; display: flex; align-items: center; margin-top: 8px; padding: 7px 9px 7px 11px; border: 1px solid oklch(0.42 0 0); border-radius: 6px; white-space: pre; }
.lp-in > span:first-child { margin-right: 1ch; color: oklch(0.91 0 0); }
.lp-caret { display: inline-block; width: 1ch; height: 13px; background: oklch(0.91 0 0); animation: blink 1s steps(1) infinite; }
#lp-type:empty + .lp-caret { margin-right: -1ch; }
.lp-ph { position: relative; color: oklch(0.5 0 0); } #lp-type:not(:empty) ~ .lp-ph { display: none; }
.lp-hint { flex: none; padding: 4px 0 0 2ch; color: oklch(0.5 0 0); }

/* 2. Slack: aubergine frame, white pane */
.lp-slack { background: var(--lp-aub); }
.lp-slack .lp-bar { color: oklch(1 0 0 / .8); }
.lp-slack .lp-lights i { box-shadow: inset 0 0 0 .5px oklch(0 0 0 / .25); }
.lp-search { display: flex; align-items: center; justify-content: center; gap: 5px; width: calc(100% - 202px); height: 20px; border-radius: 6px; background: oklch(1 0 0 / .14); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .06); font: 11px/1 var(--sans); }
.lp-search .ic { width: 11px; height: 11px; }
.lp-sk { flex: 1; min-height: 0; display: flex; }
.lp-rail { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 40px; padding-top: 6px; color: oklch(1 0 0 / .78); }
.lp-rail b { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 4px; border-radius: 7px; background: oklch(0.97 0.01 70); color: var(--lp-aub); font: 500 12px/1 var(--sans); box-shadow: 0 0 0 2px oklch(1 0 0 / .14); }
.lp-rail i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; }
.lp-rail i[data-on] { background: oklch(1 0 0 / .18); color: #fff; }
.lp-rail .ic { width: 14px; height: 14px; }
.lp-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0 5px 5px 0; border-radius: 7px; background: #fff; overflow: hidden; color: oklch(0.218 0.004 330); }
.lp-ch { flex: none; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; box-shadow: 0 var(--hairline) 0 oklch(0 0 0 / .12); }
.lp-ch b { display: flex; align-items: center; gap: 3px; font: 500 13px/1 var(--sans); }
.lp-ch b .ic { width: 10px; height: 10px; }
.lp-mem { display: flex; align-items: center; padding: 2px 6px 2px 2px; border-radius: 6px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / .13); }
.lp-mem img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1.5px #fff; }
.lp-mem img + img { margin-left: -4px; }
.lp-mem em { margin-left: 5px; color: oklch(0.45 0 0); font: 500 11px/1 var(--sans); font-style: normal; }
.lp-feed { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 8px 12px 6px; overflow: hidden; }
.lp-feed > * { flex: none; }
.lp-day { position: relative; display: grid; place-items: center; height: 20px; }
.lp-day::before { content: ""; position: absolute; inset: 50% -12px auto; height: var(--hairline); background: oklch(0 0 0 / .1); }
.lp-day span { position: relative; padding: 0 9px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px oklch(0 0 0 / .12); font: 500 11px/20px var(--sans); }
.lp-msg { display: flex; gap: 8px; font-size: 12.5px; line-height: 17px; animation: rise 300ms var(--out); }
.lp-msg > img, .lp-me { flex: none; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.lp-me { display: grid; place-items: center; background: oklch(0.62 0.14 50); color: #fff; font: 500 12px/1 var(--sans); }
.lp-msg > div { min-width: 0; }
.lp-who { display: flex; align-items: baseline; gap: 6px; } .lp-who b { font-weight: 500; }
.lp-who time { color: oklch(0.5 0 0); font-size: 10.5px; line-height: 1; }
.lp-msg a { color: var(--lp-link); }
.lp-uf { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 5px; padding-left: 11px; font-size: 11.5px; line-height: 15px; color: oklch(0.42 0 0); }
.lp-uf::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: oklch(0.87 0 0); }
.lp-uf > div { flex: 1; min-width: 0; }
.lp-uf > div > p:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-uf-s img { width: auto; height: 13px; }
.lp-uf-s { display: flex; align-items: center; gap: 4px; color: oklch(0.218 0.004 330); font-weight: 500; }
.lp-uf-t { color: var(--lp-link); font-weight: 500; font-size: 12.5px; line-height: 17px; }
.lp-uf .uf-thumb { width: 58px; height: 47px; padding: 6px; border-radius: 4px; }
.lp-uf .uf-thumb i { height: 3px; margin-bottom: 3px; } .lp-uf .uf-thumb i:first-child { height: 4px; } .lp-uf .uf-thumb i:nth-child(4) { height: 16px; margin-bottom: 0; }
.uf-thumb i:nth-child(4) { background: linear-gradient(90deg, var(--c-orange-soft) 30%, #fff 0 34%, var(--c-blue-soft) 0 64%, #fff 0 68%, var(--c-green-soft) 0); }
.lp-rxs { display: flex; gap: 4px; margin-top: 6px; transition: opacity 200ms var(--out), scale 250ms var(--out); transform-origin: 0 50%; }
.lp-rx { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; background: oklch(0.962 0.015 222.7); box-shadow: inset 0 0 0 1px oklch(0.65 0.129 233.7); font-size: 12px; }
.lp-rx b { color: var(--lp-link); font: 500 10.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.lp-rx + .lp-rx { background: oklch(0.965 0 0); box-shadow: none; color: oklch(0.45 0 0); }
.lp-cmp { flex: none; margin: 2px 12px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px oklch(0 0 0 / .2); color: oklch(0.5 0 0); font-size: 12.5px; line-height: 17px; }
.lp-cmp p:first-child { padding: 7px 10px 3px; }
.lp-cmp p + p { display: flex; align-items: center; gap: 9px; padding: 2px 4px 6px 9px; }
.lp-send { display: grid; place-items: center; width: 22px; height: 18px; margin-left: auto; border-radius: 4px; color: oklch(0.65 0 0); }

/* 3. The page: a browser, artifact.cafe's review bar, then the artifact */
.lp-page { background: #fff; }
.lp-page .lp-bar { background: oklch(0.975 0 0); box-shadow: 0 var(--hairline) 0 oklch(0 0 0 / .1); color: oklch(0.45 0 0); }
.lp-url { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 4px; height: 20px; border-radius: 6px; background: oklch(0 0 0 / .05); color: var(--ink); font: 11px/1 var(--sans); }
.lp-url > span { display: flex; align-items: center; gap: 4px; min-width: 0; } .lp-url > span:last-child { overflow: hidden; text-overflow: ellipsis; } .lp-url > span:first-child { color: var(--ink-3); }
.lp-url .ic { width: 10px; height: 10px; color: oklch(0.5 0 0); }
.lp-shell { position: relative; flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; box-shadow: 0 var(--hairline) 0 oklch(0 0 0 / .1); }
.lp-mk { flex: none; width: 12px; height: 15px; }
.lp-shell > b { font: 500 11.5px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.lp-ver { display: flex; align-items: center; gap: 2px; height: 20px; padding: 0 4px 0 6px; border-radius: 5px; background: var(--fill); box-shadow: inset 0 0 0 1px oklch(0 0 0 / .06); color: var(--ink-2); font: 500 10px/20px var(--mono); }
.lp-ver > span { display: grid; overflow: hidden; }
.lp-ver b { grid-area: 1 / 1; font-weight: 500; transition: transform 250ms var(--out), opacity 200ms ease; }
.lp-ver b:last-child { transform: translateY(100%); opacity: 0; }
.lp-ver .ic { width: 9px; height: 9px; }
.lp-ppl { display: flex; margin-left: auto; }
.lp-ppl img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px #fff; }
.lp-ppl img + img { margin-left: -5px; }
.lp-share { height: 20px; padding: 0 9px; border-radius: 6px; background: var(--ink); color: #fff; font: 500 10.5px/20px var(--sans); box-shadow: inset 0 1px 0 oklch(1 0 0 / .12); }
.lp-doc { position: relative; flex: 1; padding: 12px 12px 0; }
.lp-h { display: flex; align-items: center; gap: 8px; }
.lp-h b { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.02em; }
.lp-chip { padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); font: 500 10px/17px var(--sans); white-space: nowrap; transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.lp-kpis div { padding: 6px 8px 7px; border-radius: 8px; background: var(--fill); }
.lp-kpis b { display: block; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-kpis span { display: block; margin-top: 1px; font-size: 9.5px; line-height: 12px; color: var(--ink-2); white-space: nowrap; }
.lp-gantt { margin-top: 8px; padding: 4px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.lp-gh, .lp-gr { position: relative; display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); align-items: center; height: 18px; font-size: 9px; color: var(--ink-3); }
.lp-gh span { text-align: center; } .lp-gh span:first-child { text-align: left; } .lp-gr > span { color: var(--ink-2); font-size: 10px; }
.lp-gr i { grid-row: 1; height: 8px; border-radius: 4px; }
.lp-b1 { grid-column: 2; background: var(--c-blue-tint); }
.lp-b2 { grid-column: 3 / 6; background: var(--c-violet-tint); transform-origin: 0 50%; }
.lp-b3 { position: relative; grid-column: 3; background: var(--c-orange); transition: transform 500ms var(--move); }
.lp-v2 { opacity: 0; transition: opacity 300ms var(--out); }
.lp-v2 .lp-b2 { transform: scaleX(.2); transition: transform 450ms var(--out); }
.lp-pin { position: absolute; right: 0; bottom: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50% 50% 3px 50%; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .1), 0 2px 6px oklch(0 0 0 / .18); transform-origin: 100% 100%; transition: transform 250ms var(--out), opacity 150ms ease; }
.lp-pin img { width: 14px; height: 14px; border-radius: 50%; }
.lp-th { margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0 0 0 / .07), 0 1px 2px oklch(0 0 0 / .04), 0 8px 20px -12px oklch(0 0 0 / .3); font-size: 11px; line-height: 15px; transform-origin: 30% 0; transition: opacity 200ms var(--out), transform 250ms var(--out); }
.lp-m { display: flex; gap: 7px; } .lp-m > div { flex: 1; min-width: 0; }
.lp-m > img, .lp-cl { flex: none; width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.lp-cl { display: grid; place-items: center; background: oklch(0.955 0.012 50); box-shadow: inset 0 0 0 1px oklch(0.9 0.03 50); }
.lp-mh { display: flex; align-items: center; gap: 5px; line-height: 16px; } .lp-mh b { font-weight: 500; }
.lp-mh time, .lp-mh em { color: var(--ink-3); font-size: 10px; font-style: normal; }
.lp-res { display: flex; align-items: center; margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 500 9.5px/15px var(--sans); transition: opacity 250ms var(--out); }
.lp-re { margin-top: 7px; padding-top: 7px; box-shadow: 0 calc(-1 * var(--hairline)) 0 var(--line); transition: opacity 250ms var(--out); }

/* The sequence: data-at counts up; each part appears at its number and stays. */
.loop:is([data-at="0"], [data-at="1"]) .lp-rxs { opacity: 0; scale: .9; }
/* The browser is empty until someone opens the link */
.loop:not(:is([data-at="0"], [data-at="1"], [data-at="2"])) .lp-url > span:first-child, .loop:is([data-at="0"], [data-at="1"], [data-at="2"]) .lp-url > span:last-child { display: none; }
.loop:is([data-at="0"], [data-at="1"], [data-at="2"]) :is(.lp-shell, .lp-doc > *) { opacity: 0; }
.lp-shell { transition: opacity 300ms var(--out); }
.lp-doc > .lp-h, .lp-doc > .lp-kpis, .lp-doc > .lp-gantt { transition: opacity 300ms var(--out); }
.loop:is([data-at="0"], [data-at="1"], [data-at="2"], [data-at="3"]) :is(.lp-pin, .lp-th) { opacity: 0; transform: scale(.95); }
.loop:is([data-at="0"], [data-at="1"], [data-at="2"], [data-at="3"], [data-at="4"]) .lp-re { opacity: 0; }
.loop:not([data-at="6"]) .lp-res { opacity: 0; }
.loop[data-at="6"] .lp-v2 { opacity: 1; } .loop[data-at="6"] .lp-v2 .lp-b2 { transform: none; }
.loop[data-at="6"] .lp-b3 { transform: translateX(300%); }
.loop[data-at="6"] .lp-chip { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); }
.loop[data-at="6"] .lp-ver b:first-child { transform: translateY(-100%); opacity: 0; }
.loop[data-at="6"] .lp-ver b:last-child { transform: none; opacity: 1; }
/* Resting state on a repeat visit: no entrance at all */
.loop:not([data-live]) * { transition: none !important; animation: none !important; }

button.btn { border: 0; font-family: inherit; cursor: pointer; }

/* Under 1100px three windows get too narrow for their content: stack them */
@media (max-width: 1100px) { .loop { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } .lp-page.lp-page { height: auto; min-height: 348px; } .lp-page .lp-doc { padding-bottom: 11px; } }
/* Stacked and wide: the search and URL fields sit centred at a fixed width */
@container (min-width: 600px) { .lp-search, .lp-url { position: absolute; left: 50%; translate: -50% 0; width: 360px; } }
/* Very narrow: drop the arrows so the search field keeps its room */
@container (max-width: 310px) { .lp-slack .lp-nav { display: none; } .lp-slack .lp-search { width: calc(100% - 132px); } }
@media (prefers-reduced-motion: reduce) { .loop * { transition: none !important; animation: none !important; } }
/* hero-things.css */
/* The headline is a sentence made of things: each noun is a small object,
   so the idea reads from the pictures before the words. */
.dk-hero--things h1 { font-size: 60px; line-height: 74px; letter-spacing: -0.022em; font-weight: 500; text-wrap: pretty; }
.h-soft { color: var(--ink-body); }
/* "your team can use" is one phrase; never strand "your" at a line end */
@media (min-width: 380px) { .hw { white-space: nowrap; } }
/* Centered on the x-height, then dropped 4.5px so the label shares the headline's
   baseline (measured). top moves it without touching the line box. */
.hc { position: relative; top: 4.5px; display: inline-flex; align-items: center; gap: 10px; height: 58px; margin: 0 4px; padding: 0 16px 0 8px; vertical-align: middle; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px oklch(0.273 0 0 / .1), 0 10px 22px -14px oklch(0.273 0 0 / .35); font-size: 30px; letter-spacing: -0.021em; white-space: nowrap; animation: hc-in .5s var(--out) both; }
.hc-page { animation-delay: .45s; } .hc-use { animation-delay: .9s; }
@keyframes hc-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
/* Every leading object is 42px tall, inset 8px, radius 16 - 8 */
.hc-wall { color: var(--ink-3); }
.hc-wall .hc-ic { position: relative; display: grid; gap: 4px; align-content: start; width: 44px; height: 42px; padding: 7px; overflow: hidden; border-radius: 8px; background: oklch(0.958 0 0); }
.hc-wall .hc-ic::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(oklch(0.958 0 0 / 0), oklch(0.958 0 0)); }
.hc-wall .hc-ic i { height: 3px; border-radius: 2px; background: oklch(0.835 0 0); }
.hc-wall .hc-ic i:nth-child(2n) { width: 80%; } .hc-wall .hc-ic i:nth-child(3n) { width: 90%; }
.hc-page .hc-ic { position: relative; width: 52px; height: 42px; overflow: hidden; border-radius: 8px; background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.hc-page .hc-ic::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--trim, oklch(0.975 0 0)); border-bottom: var(--hairline) solid var(--trim-line, oklch(0.92 0 0)); }
.hc-page .hc-ic i { position: absolute; left: 7px; width: 38px; height: 3px; border-radius: 2px; }
.hc-page .hc-ic i:nth-child(1) { top: 16px; background: linear-gradient(90deg, var(--ink) 60%, oklch(0.943 0 0) 0); }
.hc-page .hc-ic i:nth-child(2) { top: 23px; background: linear-gradient(90deg, var(--accent) 35%, oklch(0.943 0 0) 0); }
.hc-page .hc-ic b { position: absolute; right: 7px; bottom: 6px; width: 16px; height: 6px; border-radius: 3px; background: var(--primary, var(--accent)); }
.hc-page { color: var(--primary-text, var(--accent-text)); }
.hc-use { color: var(--primary-text, var(--accent-text)); }
.hc-use .hc-ic { display: flex; }
.hc-use .hc-ic img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper); }
.hc-use .hc-ic img + img { margin-left: -12px; }
@media (max-width: 640px) {
  .dk-hero--things h1 { font-size: 30px; line-height: 54px; }
  .hc { top: 0; height: 44px; gap: 8px; padding: 0 12px 0 6px; border-radius: 12px; font-size: 22px; }
  .hc-ic { zoom: .75; }
}
@media (prefers-reduced-motion: reduce) { .hc { animation: none; } }

