/* ===== Tokens: dark is the default, light overrides ===== */
:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0b0c0f;
  --surface: #0f1114;
  --surface-2: #15181c;
  --surface-3: #1d2126;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f5f7;
  --text-2: #a4aab5;
  --muted: #7b828d;
  --accent: #8b93ff;
  --accent-soft: rgba(139, 147, 255, 0.14);
  --ok: #3ddc97;
  --amber: #f5b042;
  --red: #ff7a70;
  --pink: #f38bc8;
  --btn-bg: #f4f5f7;
  --btn-text: #07080a;
  --glow-a: rgba(99, 102, 241, 0.3);
  --glow-b: rgba(45, 212, 191, 0.14);
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --photo-bg: radial-gradient(120% 90% at 50% 20%, #d3d7de 0%, #8c929b 55%, #4a4f57 100%);
  --photo-filter: grayscale(1) contrast(1.08) brightness(1.18);
  --photo-2-filter: grayscale(1) contrast(1.08) brightness(0.9);
  --code-str: #a5e3b5;
  --code-fn: #c3c7ff;
  --code-punc: #7b828d;
  --err: #ff8a7a;
  --noise: 0.035;

  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafaf8;
  --bg-2: #f3f3f0;
  --surface: #ffffff;
  --surface-2: #f4f4f1;
  --surface-3: #e9e9e5;
  --line: rgba(9, 10, 12, 0.08);
  --line-2: rgba(9, 10, 12, 0.14);
  --text: #0a0b0d;
  --text-2: #4a505b;
  --muted: #6b717c;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --ok: #0f9d63;
  --amber: #b7791f;
  --red: #d64545;
  --pink: #c0267a;
  --btn-bg: #0a0b0d;
  --btn-text: #fafaf8;
  --glow-a: rgba(99, 102, 241, 0.16);
  --glow-b: rgba(20, 184, 166, 0.1);
  --grid-line: rgba(9, 10, 12, 0.05);
  --shadow: 0 30px 60px -32px rgba(20, 22, 30, 0.28);
  --photo-bg: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #eeede8 60%, #dcdad3 100%);
  --photo-filter: saturate(1.02) contrast(1.02);
  --photo-2-filter: saturate(1.02) contrast(1.02);
  --code-str: #1f7a3f;
  --code-fn: #4338ca;
  --code-punc: #6b717c;
  --err: #c0392b;
  --noise: 0.04;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: var(--noise);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 300;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ===== Type ===== */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label span { color: var(--accent); }

.h2 {
  max-width: 22ch;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 14ch; }
.soft { color: var(--text-2); }

.section { position: relative; padding: clamp(5.5rem, 11vw, 9.5rem) 0; scroll-margin-top: 40px; }
.section-head { margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost { border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--sm { height: 40px; padding: 0 1.05rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.icon-btn:hover { border-color: var(--text-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.menu-open { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__name { font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }

.nav__links { display: flex; gap: 0.25rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.nav__links a { padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.86rem; color: var(--text-2); transition: color 0.3s, background-color 0.3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: var(--surface-3); }
/* The theme toggle sits above the nav so it shows over the hero too; the nav keeps its slot free on the right. */
.nav__actions { display: flex; align-items: center; gap: 0.6rem; padding-right: calc(40px + 0.6rem); }

.theme-dock { position: fixed; inset: 0 0 auto; z-index: 55; pointer-events: none; }
.theme-dock__inner { display: flex; align-items: center; justify-content: flex-end; height: 72px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 40px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 65%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: auto; }
.theme-toggle__icon { position: relative; display: grid; place-items: center; width: 18px; height: 18px; }
.theme-toggle__icon::after { content: ""; position: absolute; inset: -11px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; animation: themeRing 1.6s var(--ease) 1.6s 2; }
.theme-toggle svg { position: absolute; transition: transform 0.6s var(--ease-out), opacity 0.35s; }
:root[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
.theme-toggle__label { display: block; overflow: hidden; max-width: 0; opacity: 0; font-size: 0.82rem; font-weight: 500; white-space: nowrap; transition: max-width 0.45s var(--ease-out), opacity 0.3s; animation: themeHint 5s var(--ease-out) 1.6s; }
.theme-toggle__label span { padding-right: 0.55rem; }
:root[data-theme="dark"] .theme-toggle__label .for-light, :root[data-theme="light"] .theme-toggle__label .for-dark { display: none; }
.nav:not(.is-hidden) ~ .theme-dock .theme-toggle__label { animation: none; }
@media (hover: hover) { .nav.is-hidden ~ .theme-dock .theme-toggle:hover .theme-toggle__label { max-width: 7rem; opacity: 1; } }
@keyframes themeHint { 0% { max-width: 0; opacity: 0; } 10%, 85% { max-width: 7rem; opacity: 1; } 100% { max-width: 0; opacity: 0; } }
@keyframes themeRing { from { opacity: 0.85; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* ===== Hello screen ===== */
.hello { display: none; }
.intro-on .hello { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 0 24px; background: var(--bg); animation: helloAway 0.45s var(--ease) 6s forwards; }
.intro-on .hello.is-playing { animation: none; }
.hello svg { width: 100%; height: 50vh; overflow: visible; }
.hello text { font-family: "Sacramento", cursive; font-size: clamp(150px, 30vw, 280px); white-space: pre; fill: url(#helloInk); stroke: url(#helloInk); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hello tspan { fill-opacity: 0; stroke-dasharray: var(--dash, 3000); stroke-dashoffset: var(--dash, 3000); }
.hello.is-playing tspan { animation: helloDraw 0.6s cubic-bezier(0.45, 0.05, 0.35, 1) var(--d, 0s) forwards, helloFill 0.5s var(--ease) calc(var(--d, 0s) + 0.3s) forwards; }
.hello__ink-a { stop-color: var(--text); }
.hello__ink-b { stop-color: var(--accent); }
.intro-on .hello.is-leaving { animation: helloAway 0.6s var(--ease) forwards; }
.hello.is-leaving svg { animation: helloZoom 0.6s var(--ease) forwards; }
.intro-hold .hero *, .intro-hold .hero *::before, .intro-hold .hero *::after, .intro-hold .theme-toggle__label, .intro-hold .theme-toggle__icon::after { animation-play-state: paused; }
@keyframes helloDraw { to { stroke-dashoffset: 0; } }
@keyframes helloFill { to { fill-opacity: 1; } }
@keyframes helloAway { to { opacity: 0; visibility: hidden; } }
@keyframes helloZoom { to { transform: scale(1.05); filter: blur(8px); } }

.menu-toggle { display: none; }
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Nine links can outgrow a short phone screen, so the menu scrolls; the auto margins centre it when it fits. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  padding: 84px 24px 36px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: auto; }
.mobile-menu__foot { margin-bottom: auto; }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
}
.mobile-menu a span { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--accent); }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu__foot { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ===== Reveal ===== */
.io .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
.io .reveal.is-in { opacity: 1; transform: none; }

/* ===== Hero ===== */
/* Nav is hidden here (see #nav.is-hidden), so the hero itself can sit high and fit in one viewport. */
.hero { position: relative; isolation: isolate; padding: 72px 0 32px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 25%, transparent 78%);
}
.glow { position: absolute; border-radius: 50%; }
.glow--a { width: 760px; height: 760px; left: -240px; top: -360px; background: radial-gradient(circle, var(--glow-a), transparent 62%); animation: drift 20s ease-in-out infinite alternate; }
.glow--b { width: 640px; height: 640px; right: -220px; top: 40px; background: radial-gradient(circle, var(--glow-b), transparent 62%); animation: drift 24s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(70px, 50px, 0) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2.5rem, 5vw, 5rem); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}
.pill:hover { border-color: var(--text-2); color: var(--text); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-out infinite; }
.pill__sep { width: 1px; height: 12px; background: var(--line-2); }
.pill__time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  100% { box-shadow: 0 0 0 9px transparent; }
}

.hero__intro { display: flex; align-items: center; gap: 0.85rem; margin: 1rem 0 0.8rem; }
.avatar { flex-shrink: 0; width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 50%; background: var(--photo-bg); }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); transform-origin: 50% 36%; mix-blend-mode: multiply; filter: var(--photo-filter); }
.hero__intro strong { display: block; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.hero__role { display: block; font-size: 0.88rem; color: var(--muted); }

.hero__title {
  max-width: 17ch;
  margin-bottom: 0.9rem;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.7vw, 3.05rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title-1 { color: var(--text-2); }
.hero__title-2 { display: block; }
.hero__mark { position: relative; display: inline-block; }
.hero__mark::after { content: ""; position: absolute; right: 0; bottom: 0.02em; left: 0; height: 0.08em; border-radius: 1px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); transform: scaleX(0); transform-origin: left; animation: markIn 0.9s var(--ease-out) 1.3s forwards; }
@keyframes markIn { to { transform: scaleX(1); } }
.w { display: inline-block; animation: wordIn 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero__sub { max-width: 50ch; margin-bottom: 1.2rem; font-size: clamp(0.98rem, 1.1vw, 1.05rem); color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.terminal {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: rise 1s var(--ease-out) 0.35s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Hero desk: the finished list sits behind the terminal and the QC result pops in front of it */
.desk { position: relative; }
.desk .terminal { position: relative; z-index: 1; }
.desk__win { position: absolute; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); pointer-events: none; translate: var(--px, 0) var(--py, 0); transition: translate 0.7s var(--ease-out); }
.desk__bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); }
.desk__bar .terminal__dots i { width: 8px; height: 8px; }
.desk__sheet { top: -2.7rem; right: -2.2rem; z-index: 0; width: 78%; opacity: 0; transform: rotate(3deg); animation: deskIn 1s var(--ease-out) 0.9s forwards; }
@keyframes deskIn { from { opacity: 0; transform: rotate(3deg) translateY(18px); } to { opacity: 0.94; transform: rotate(3deg); } }
.desk__sheet table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.56rem; }
.desk__sheet th { padding: 0.35rem 0.5rem; background: #0070c0; font-weight: 600; text-align: left; white-space: nowrap; color: #fff; }
.desk__sheet td { padding: 0.32rem 0.5rem; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text-2); }
.desk__sheet tbody tr { opacity: 0; transition: opacity 0.45s; }
.desk__sheet tbody tr.is-in { opacity: 1; }
.desk__sheet td.is-yes { font-weight: 600; color: var(--ok); }
.desk__note { bottom: 3.4rem; left: -2.4rem; z-index: 2; display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.95rem 0.65rem 0.7rem; background: color-mix(in srgb, var(--surface-2) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: translateX(-14px) scale(0.96); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), translate 0.7s var(--ease-out); }
.desk__note.is-in { opacity: 1; transform: none; }
.desk__icon { display: grid; flex-shrink: 0; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.desk__icon svg { width: 16px; height: 16px; }
.desk__note p { display: grid; line-height: 1.35; }
.desk__note b { font-size: 0.78rem; font-weight: 600; }
.desk__note p span { font-size: 0.68rem; white-space: nowrap; color: var(--muted); }
.terminal__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.terminal__dots { display: inline-flex; gap: 6px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; opacity: 0.9; }
.terminal__dots i:nth-child(2) { background: #febc2e; }
.terminal__dots i:nth-child(3) { background: #28c840; }
.terminal__title { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
/* Type scales with the terminal's own width, so it reads the same in a narrow column or on a phone. */
.terminal__body { padding: 0.95rem 1.15rem 1.05rem; font-family: var(--font-mono); font-size: clamp(0.64rem, 2.5cqi + 0.12rem, 0.86rem); line-height: 1.75; }
.t-line { display: flex; align-items: baseline; gap: 0.65em; white-space: nowrap; transition: opacity 0.3s; }
.t-line > span:not([class]) { min-width: 0; white-space: normal; }
.t-prompt, .t-arrow, .t-check, .t-status { flex-shrink: 0; }
@container (max-width: 380px) {
  .terminal__bar { padding: 0.7rem 0.85rem; }
  .terminal__body { padding: 0.95rem 0.9rem 1.05rem; line-height: 1.85; }
  .terminal figcaption { padding: 0.7rem 0.9rem; }
}
.t-line.is-pending { opacity: 0; }
.t-prompt { color: var(--accent); }
.t-arrow { color: var(--muted); }
.t-status { margin-left: auto; padding-left: 1rem; color: var(--ok); }
.t-status.is-busy { color: var(--muted); }
.t-final { margin-top: 0.35rem; font-weight: 500; }
.t-check { color: var(--ok); }
.caret { display: inline-block; width: 0.55em; height: 1.1em; background: var(--accent); vertical-align: -0.2em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal figcaption { padding: 0.6rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(1.25rem, 2.4vw, 2rem); border-top: 1px solid var(--line); }
.stat { padding: 1rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat__value { margin-bottom: 0.35rem; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.stat__label { max-width: 22ch; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }

.previously { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 4rem; margin-top: 1rem; }
.previously__group { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.previously .label { margin: 0; }
.previously ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.previously li { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); opacity: 0.7; }
.previously li.is-now { color: var(--text); opacity: 1; }

/* ===== About ===== */
.about__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }

/* Access pass: swings from its strap, tilts toward the pointer */
.pass-wrap { display: grid; place-items: center; padding-top: 110px; perspective: 1400px; }
.pass { position: relative; width: min(100%, 330px); transform-origin: 50% -110px; animation: swing 7s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.pass__strap {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  width: 30px;
  height: 170px;
  margin-left: -15px;
  background: repeating-linear-gradient(90deg, var(--surface-3) 0 2px, var(--surface-2) 2px 5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.pass__strap::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 22px; height: 16px; margin-left: -11px; border: 2px solid var(--line-2); border-radius: 5px; background: var(--surface-2); }
.pass__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.6rem 1.15rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 65%);
  box-shadow: var(--shadow);
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.pass__card::before { content: ""; position: absolute; left: 50%; top: 12px; width: 46px; height: 7px; margin-left: -23px; border-radius: 4px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45); }
.pass__top { display: flex; align-items: center; justify-content: space-between; margin: 0.35rem 0 0.9rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pass__kicker { color: var(--accent); }
.pass__photo { overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; background: var(--photo-bg); }
.pass__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 50% 30%; mix-blend-mode: multiply; filter: var(--photo-filter); transition: filter 0.9s var(--ease); }
.pass__card:hover .pass__photo img { filter: none; }
.pass__name { margin-top: 1rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; }
.pass__role { font-size: 0.86rem; color: var(--text-2); }
.pass__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line-2); }
.pass__fields dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pass__fields dd { margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.35; }
.pass__code {
  height: 30px;
  margin-top: 1rem;
  opacity: 0.8;
  background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px, var(--text) 13px 14px, transparent 14px 17px);
}
.pass__holo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, color-mix(in srgb, var(--accent) 22%, transparent) 42%, rgba(94, 228, 216, 0.16) 50%, rgba(255, 255, 255, 0.12) 56%, transparent 72%);
  background-size: 250% 250%;
  background-position: var(--hx, 30%) var(--hy, 30%);
  opacity: 0.5;
  transition: opacity 0.4s;
}
.pass__card:hover .pass__holo { opacity: 1; }

.about__copy .h2 { margin-bottom: 1.75rem; }
.about__copy > p { max-width: 58ch; margin-bottom: 1.2rem; color: var(--text-2); }
.about__copy > p.lead { font-size: 1.14rem; color: var(--text); }
.values { display: grid; gap: 0.95rem; margin: 1.85rem 0 0; padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); list-style: none; }
.values li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 1rem; line-height: 1.5; color: var(--text); }
.values__icon { display: grid; flex-shrink: 0; place-items: center; width: 24px; height: 24px; margin-top: 0.05rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.values__icon svg { width: 13px; height: 13px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts dt { margin-bottom: 0.3rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 0.98rem; }

/* ===== Journey: career chart ===== */
.career { overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.career__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.career__title { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-2); }
.career__hint { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.career__body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.career__chart { min-width: 0; padding: 1.2rem 0.75rem 0.5rem; }
.career__chart:focus-visible { outline-offset: -3px; }
.career__chart svg { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.career__detail { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.2rem; border-left: 1px solid var(--line); background: var(--bg-2); }
.career__detail > * { animation: viewIn 0.4s var(--ease-out); }

.cc-grid { stroke: var(--line); }
.cc-ylab, .cc-xlab, .cc-flag { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.cc-flag { fill: var(--text); }
.cc-hatch { stroke: color-mix(in srgb, var(--red) 28%, transparent); stroke-width: 2.5; }
.cc-band-lab { fill: var(--red); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; }
.cc-span path { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0.75; }
.cc-span text { fill: var(--accent); font-family: var(--font-mono); font-size: 10.5px; }
.cc-span { opacity: 0; transition: opacity 0.6s var(--ease) 2.6s; }
.career.is-drawn .cc-span { opacity: 1; }
.cc-fill-a { stop-color: var(--accent); stop-opacity: 0.2; }
.cc-fill-b { stop-color: var(--accent); stop-opacity: 0; }
.cc-area { fill: url(#ccFill); opacity: 0; transition: opacity 1.4s var(--ease) 1s; }
.cc-line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.cc-line--gap { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 5; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.6s 1.2s; }
.cc-line--c { transition-duration: 1.8s; transition-delay: 1.5s; }
.career.is-drawn .cc-line { stroke-dashoffset: 0; }
.career.is-drawn .cc-line--gap, .career.is-drawn .cc-area { opacity: 1; }
.cc-cross { stroke: var(--line-2); stroke-dasharray: 3 4; }
.cc-pt { cursor: pointer; opacity: 0; transition: opacity 0.4s var(--d, 0s); }
.career.is-drawn .cc-pt { opacity: 1; }
.cc-hit { fill: transparent; }
.cc-halo { fill: var(--accent-soft); opacity: 0; transition: opacity 0.3s; }
.cc-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.cc-pt.is-key .cc-dot { fill: var(--accent); }
.cc-pt.is-gap .cc-dot { stroke: var(--red); }
.cc-pt.is-now .cc-dot { fill: var(--ok); stroke: var(--ok); }
.cc-pt.is-active .cc-halo { opacity: 1; }
.cc-pt.is-active .cc-dot { stroke-width: 3; }

.cd__when { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--accent); }
.cd__title { margin: 0.55rem 0 0.2rem; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.025em; }
.cd__org { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.cd__orglogo { display: grid; flex-shrink: 0; place-items: center; width: 20px; height: 20px; overflow: hidden; border-radius: 6px; background: #fff; }
.cd__orglogo img { width: 82%; height: 82%; object-fit: contain; }
.cd__orglogo--icon { background: var(--surface-3); color: var(--text-2); }
.cd__orglogo--icon svg { width: 11px; height: 11px; }
.cd__note { margin-top: 0.8rem; font-size: 0.95rem; color: var(--text-2); }
.cd__bullets { margin: 0.7rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.cd__bullets li { position: relative; padding-left: 0.95rem; font-size: 0.87rem; line-height: 1.5; color: var(--text-2); }
.cd__bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cd__quote { margin-top: 1rem; padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 10px; background: var(--surface); font-size: 0.88rem; line-height: 1.55; color: var(--text); }
.cd__quote cite { display: block; margin-top: 0.5rem; font-size: 0.74rem; font-style: normal; color: var(--muted); }
.cd__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.3rem; }
.cd__nav span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }

.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.chapter-card { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; padding: 1.1rem 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chapter-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--accent-soft), transparent 55%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.chapter-card:hover::after { opacity: 1; }
.chapter-card__visual { position: relative; display: grid; place-items: center; height: 150px; margin-bottom: 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-2); }
.chapter-card__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; filter: var(--photo-2-filter); transition: filter 0.9s var(--ease); }
.chapter-card:hover .chapter-card__visual img { filter: none; }
.chapter-card__visual figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-mono); font-size: 0.66rem; }
.chapter-card__big { font-family: var(--font-head); font-size: 3.2rem; font-weight: 600; line-height: 1; letter-spacing: -0.05em; text-align: center; }
.chapter-card__big small { display: block; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); }
.chapter-card__when { padding: 0 0.3rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--accent); }
.chapter-card h3 { margin: 0.45rem 0.3rem; font-family: var(--font-head); font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.02em; }
.chapter-card > p:not(.chapter-card__when) { padding: 0 0.3rem; font-size: 0.93rem; color: var(--text-2); }

/* Each chapter's climb, one rung at a time */
.ladder { position: relative; display: grid; gap: 0.5rem; margin: 0.35rem 0.3rem 0; padding: 0 0 0 1.1rem; list-style: none; }
.ladder::before { content: ""; position: absolute; top: 0.45rem; bottom: 0.45rem; left: 0.28rem; width: 1px; background: var(--line-2); }
.ladder li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.1rem 0.6rem; font-size: 0.84rem; }
.ladder li::before { content: ""; position: absolute; top: 0.42rem; left: -1.1rem; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.ladder li:last-child::before { background: var(--accent); }
.ladder b { font-weight: 500; line-height: 1.35; color: var(--text); }
.ladder span { font-family: var(--font-mono); font-size: 0.66rem; white-space: nowrap; color: var(--accent); }
.io .chapter-card .ladder li { opacity: 0; transform: translateX(-6px); }
.io .chapter-card.is-in .ladder li { animation: rungIn 0.5s var(--ease-out) both; animation-delay: calc(var(--n) * 130ms + 350ms); }
@keyframes rungIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.chapter-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0.3rem 0; padding: 0; list-style: none; }
.chapter-card__tags li { padding: 0.25rem 0.65rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.78rem; color: var(--text-2); }

/* The London trip as a boarding pass */
.chapter-card__visual--pass { padding: 0.9rem; }
.bpass { display: grid; gap: 0.55rem; width: 100%; padding: 0.75rem 0.9rem; border-radius: 12px; background: linear-gradient(135deg, var(--surface-3), var(--surface)); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--font-mono); }
.bpass__top { display: flex; justify-content: space-between; font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bpass__route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; }
.bpass__route p { display: grid; line-height: 1.1; }
.bpass__route p:last-child { text-align: right; }
.bpass__route b { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.bpass__route span { font-size: 0.56rem; color: var(--muted); }
.bpass__path { position: relative; height: 18px; }
.bpass__path i { position: absolute; top: 50%; right: 0; left: 0; border-top: 1px dashed var(--line-2); }
.bpass__path svg { position: absolute; top: 0; left: 0; width: 18px; height: 18px; color: var(--accent); transform: rotate(90deg); transition: left 1.6s var(--ease-out) 0.5s; }
.chapter-card.is-in .bpass__path svg { left: calc(100% - 18px); }
.bpass__meta { display: flex; justify-content: space-between; gap: 0.6rem; padding-top: 0.45rem; border-top: 1px dashed var(--line-2); }
.bpass__meta p { display: grid; line-height: 1.3; }
.bpass__meta p:last-child { text-align: right; }
.bpass__meta span { font-size: 0.52rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bpass__meta b { font-size: 0.68rem; font-weight: 500; color: var(--text); }

/* ===== Services / bento ===== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  overflow: hidden;
  padding: 1.25rem 1.25rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tile--7 { grid-column: span 7; }
.tile--5 { grid-column: span 5; }
.tile--12 { grid-column: 1 / -1; }
.tile--8 { grid-column: span 8; }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--accent) 75%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile h3 { margin: 0 0.35rem 0.45rem; font-family: var(--font-head); font-size: 1.28rem; letter-spacing: -0.025em; }
.tile p { margin: 0 0.35rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-2); }

.tile__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-bottom: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-2);
}

.mchip {
  display: inline-block;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  white-space: nowrap;
}

/* Structured data review visual: a free-text note gives up its PII */
.sdr { align-content: center; gap: 0.7rem; padding: 1.2rem 1rem; }
.sdr__card { width: 100%; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-family: var(--font-mono); font-size: 0.58rem; }
.sdr__row { display: grid; grid-template-columns: 0.95fr 0.8fr 2fr; gap: 0.5rem; padding: 0.45rem 0.6rem; }
.sdr__head { border-bottom: 1px solid var(--line); color: var(--muted); }
.sdr__row span { min-width: 0; line-height: 1.5; color: var(--text-2); }
.sdr__head span { color: var(--muted); }
.sdr__hit { padding: 0 0.15em; border-radius: 3px; font-weight: 500; }
.tile.is-in .sdr__hit { animation: sdrHit 4.2s ease-in-out var(--d, 0s) infinite; }
@keyframes sdrHit {
  0%, 10% { background: transparent; color: inherit; }
  20%, 70% { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber); }
  85%, 100% { background: transparent; color: inherit; }
}
.sdr__out { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
.sdr__out span { padding: 0.2rem 0.55rem; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); border-radius: 999px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--ok); opacity: 0; }
.tile.is-in .sdr__out span { animation: sdrOut 4.2s ease-in-out var(--d, 0s) infinite; }
@keyframes sdrOut {
  0%, 22% { opacity: 0; transform: translateY(4px); }
  32%, 80% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}

/* Services: working hours side by side, on one IST timeline */
.hours { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 1.5rem 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hours__head p { font-size: 0.93rem; color: var(--text-2); }
.hours__head .steps__title { margin-bottom: 0.6rem; }
.hours__chart { display: grid; gap: 0.7rem; }
.hr__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 1rem; }
.hr__city { display: grid; line-height: 1.3; }
.hr__city b { font-size: 0.86rem; font-weight: 600; }
.hr__city span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.hr__city span em { font-style: normal; color: var(--accent); }
.hr__track { position: relative; height: 24px; border-radius: 7px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)), var(--bg-2); }
.hr__work { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 30%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); }
.hr__row--me .hr__work { background: color-mix(in srgb, var(--ok) 35%, transparent); }
.hours.is-in .hr__work { transform: none; }
.hr__now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); }
.hr__axis { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); }
.hr__axis div { display: flex; justify-content: space-between; }

/* Entity resolution visual */
.er { grid-template-columns: auto minmax(40px, 1fr) auto; gap: 0; padding: 1.5rem clamp(1rem, 3vw, 2rem); }
.er__inputs { display: grid; gap: 0.9rem; }
.er__inputs .mchip { color: var(--text-2); }
.er__lines { align-self: stretch; width: 100%; height: 100%; overflow: visible; }
.er__lines path { fill: none; stroke: var(--line-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.er__lines path.flow { stroke: var(--accent); stroke-dasharray: 2 9; opacity: 0.8; }
.tile.is-in .er__lines path.flow { animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -11; } }
.er__out {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 40px -10px var(--accent);
}
.er__id { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500; color: var(--text); }
.er__meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ok); }
.tile.is-in .er__inputs .mchip { animation: chipPulse 3.6s ease-in-out infinite; }
.tile.is-in .er__inputs .mchip:nth-child(2) { animation-delay: 0.4s; }
.tile.is-in .er__inputs .mchip:nth-child(3) { animation-delay: 0.8s; }
@keyframes chipPulse {
  0%, 60%, 100% { border-color: var(--line-2); color: var(--text-2); }
  20% { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); }
}

/* Pipeline code visual */
.code-v { place-items: stretch; align-content: center; padding: 1.25rem 1.4rem; }
.code-v pre { position: relative; z-index: 1; margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.95; color: var(--text-2); }
.c-f { color: var(--code-fn); }
.c-s { color: var(--code-str); }
.c-p { color: var(--code-punc); }
.code-v__run {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  top: calc(50% - 3.9em);
  height: 1.95em;
  font-size: 0.76rem;
  border-radius: 6px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  opacity: 0;
}
.tile.is-in .code-v__run { opacity: 1; animation: runLines 4.8s steps(1) infinite; }
@keyframes runLines {
  0% { transform: translateY(0); }
  25% { transform: translateY(1.95em); }
  50% { transform: translateY(3.9em); }
  75% { transform: translateY(5.85em); }
}

/* Extraction visual */
.ex { align-content: center; gap: 0.9rem; padding: 1.25rem; }
.ex__files { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.ex__files span { padding: 0.35rem 0.6rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); }
.tile.is-in .ex__files span { animation: chipPulse 3s ease-in-out infinite; }
.tile.is-in .ex__files span:nth-child(2) { animation-delay: 0.3s; }
.tile.is-in .ex__files span:nth-child(3) { animation-delay: 0.6s; }
.tile.is-in .ex__files span:nth-child(4) { animation-delay: 0.9s; }
.tile.is-in .ex__files span:nth-child(5) { animation-delay: 1.2s; }
.ex__arrow { width: 22px; height: 22px; color: var(--muted); }
.tile.is-in .ex__arrow { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); color: var(--accent); } }
.ex__out { padding: 0.45rem 0.85rem; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 8px; background: var(--surface); font-family: var(--font-mono); font-size: 0.76rem; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Human-in-the-loop visual */
.ai { padding: 1.1rem; }
.ai__card { width: min(100%, 260px); padding: 0.9rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 0.76rem; }
.ai__head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ai__score { color: var(--text); }
.ai__names { margin: 0.45rem 0 0.6rem; font-weight: 500; white-space: nowrap; }
.ai__names span { color: var(--muted); }
.ai__bar { height: 4px; overflow: hidden; border-radius: 4px; background: var(--accent-soft); }
.ai__bar span { display: block; width: 94%; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out) 0.3s; }
.tile.is-in .ai__bar span { transform: scaleX(1); }
.ai__signals { display: flex; gap: 0.6rem; margin: 0.6rem 0 0.75rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.ai__signals .ok { color: var(--ok); }
.ai__actions { display: flex; gap: 0.4rem; }
.ai__btn { flex: 1; padding: 0.35rem 0.4rem; border: 1px solid var(--line-2); border-radius: 7px; font-size: 0.7rem; text-align: center; color: var(--text-2); }
.ai__btn--yes { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }

/* Time tracker visual */
.tt { padding: 1.1rem; }
.tt__card { width: min(100%, 240px); padding: 0.9rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 0.76rem; }
.tt__row { display: flex; align-items: center; gap: 0.45rem; color: var(--text-2); }
.tt__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-out infinite; }
.tt__time { margin-left: auto; font-family: var(--font-mono); color: var(--muted); }
.tt__task { margin-top: 0.6rem; color: var(--muted); }
.tt__timer { margin: 0.1rem 0 0.7rem; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.tt__actions { display: flex; gap: 0.4rem; }
.tt__actions span { flex: 1; padding: 0.35rem 0.4rem; border: 1px solid var(--line-2); border-radius: 7px; font-size: 0.7rem; text-align: center; color: var(--text-2); }

.tile--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.8rem 1.6rem; }
.tile--row > div { max-width: 60ch; }
.tile__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tile__list li { padding: 0.45rem 0.85rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.85rem; color: var(--text-2); }

.steps-wrap { margin-top: clamp(4rem, 8vw, 6rem); }
.steps__title { margin-bottom: 1.5rem; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 1.6rem 1.5rem 0 0; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--accent); }
.steps li + li::before { left: 1.5rem; }
.steps__num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent); }
.steps h4 { margin: 0.5rem 0 0.4rem; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -0.02em; }
.steps p { font-size: 0.93rem; color: var(--text-2); }

/* ===== Inside the pipeline: one sample matter, four stages ===== */
.section-sub { max-width: 64ch; margin-top: 1.25rem; font-size: 1.05rem; color: var(--text-2); }
.pl__tabs { display: flex; flex-shrink: 0; gap: 0.2rem; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.pl__tabs[hidden] { display: none; }
.pl__tabs button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; overflow: hidden; padding: 0.34rem 0.8rem; border: 0; border-radius: 999px; background: none; font-size: 0.76rem; color: var(--text-2); cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.pl__tabs button:hover { color: var(--text); }
.pl__tabs b { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; color: var(--muted); }
.pl__tabs button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.pl__tabs button[aria-pressed="true"] b { color: var(--accent); }
.pl__tabs i { position: absolute; right: 14px; bottom: 3px; left: 14px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.6s var(--ease), opacity 0.3s; }
.wk.is-auto .pl__tabs button[aria-pressed="true"] i { opacity: 0.9; }
.pl__cmd { display: flex; align-items: baseline; gap: 0.65em; min-height: 2.65rem; overflow: hidden; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; }
.pl__btns button[hidden] { display: none; }
.pl__cmdtext.is-typing::after { content: ""; display: inline-block; width: 0.5em; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -0.18em; animation: blink 1s steps(1) infinite; }
.pl__btns { display: flex; gap: 1.1rem; }
.pl__btns button { padding: 0; border: 0; background: none; font-size: 0.74rem; color: var(--accent); cursor: pointer; }
.pl__btns button:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-ghost { z-index: 6; pointer-events: none; box-shadow: var(--shadow); }
.pl-ok { color: var(--ok); }
.pl-sum { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.pl-sum.is-in { opacity: 1; transform: none; }

.pl-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pl-facts li { padding: 1.1rem 1.5rem 0 0; }
.pl-facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.pl-facts strong { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.pl-facts span { display: block; max-width: 30ch; margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.45; color: var(--text-2); }

/* Stage 1: profile a raw collection */
.pf { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.8rem; padding: 1rem 1.1rem 0.9rem; }
.pf__lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.pf__lane { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.25rem 0.55rem; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); transition: border-color 0.3s, color 0.3s; }
.pf__lane i { height: 4px; overflow: hidden; border-radius: 4px; background: var(--surface-3); }
.pf__lane i b { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--accent); transform: translateX(-110%); }
.pf__lane.is-busy { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text-2); }
.pf__lane.is-busy i b { animation: laneRun 0.9s var(--ease) infinite; }
@keyframes laneRun { to { transform: translateX(260%); } }
.pf__lane em { grid-column: 1 / -1; min-height: 1.35em; overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.pf__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.9rem; min-height: 0; }
.pf__files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.pf__file { display: grid; gap: 0.2rem; min-width: 0; padding: 0.5rem 0.55rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 0.68rem; transition: opacity 0.4s, border-color 0.3s, box-shadow 0.3s; }
.pf__ext { justify-self: start; padding: 0.05rem 0.35rem; border-radius: 4px; background: var(--surface-3); font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ok); }
.pf__file[data-ext="csv"] .pf__ext { color: var(--accent); }
.pf__file[data-ext="txt"] .pf__ext { color: var(--amber); }
.pf__name { overflow: hidden; font-family: var(--font-mono); white-space: nowrap; text-overflow: ellipsis; }
.pf__hdr { overflow: hidden; font-family: var(--font-mono); font-size: 0.56rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); opacity: 0; transform: translateY(3px); transition: opacity 0.35s, transform 0.35s; }
.pf__hdr small { font-size: inherit; color: var(--amber); }
.pf__file.is-reading { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf__file.is-read .pf__hdr { opacity: 1; transform: none; }
.pf__file.is-done { opacity: 0.32; }
.pf__baskets { display: grid; align-content: start; gap: 0.45rem; }
.pf__basket { display: grid; gap: 0.2rem; min-width: 0; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.72rem; line-height: 1.35; }
.pf__basket p { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.pf__basket p i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pf__basket p b { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--c); }
.pf__bhdr, .pf__meta { overflow: hidden; font-family: var(--font-mono); font-size: 0.58rem; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.pf__drop { display: flex; gap: 0.25rem; min-height: 0.9rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.pf__drop span { flex-shrink: 0; padding: 0.05rem 0.35rem; border-radius: 4px; background: color-mix(in srgb, var(--c) 16%, transparent); font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-2); animation: viewIn 0.35s var(--ease-out); }

/* Stage 2: QC a review export */
.qc { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.85rem; padding: 1rem 1.1rem 0.9rem; }
.qc__map { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.qc__label { margin-right: 0.3rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qc__chip { position: relative; display: inline-grid; padding: 0.3rem 0.55rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); font-family: var(--font-mono); font-size: 0.64rem; transition: border-color 0.3s, background-color 0.3s; }
.qc__chip s, .qc__chip b { grid-area: 1 / 1; font-weight: 500; text-decoration: none; white-space: nowrap; transition: opacity 0.3s, transform 0.35s var(--ease-out); }
.qc__chip b { color: var(--accent); opacity: 0; transform: translateY(6px); }
.qc__chip.is-mapped { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.qc__chip.is-mapped s { opacity: 0; transform: translateY(-6px); }
.qc__chip.is-mapped b { opacity: 1; transform: none; }
.qc__chip.is-asking { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.qc__chip.is-learned::after { content: "learned"; position: absolute; top: -0.6rem; right: -0.4rem; padding: 0 0.3rem; border-radius: 4px; background: var(--ok); font-size: 0.5rem; line-height: 1.5; color: #07080a; }
.qc__note { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ok); opacity: 0; transition: opacity 0.4s; }
.qc__note.is-in { opacity: 1; }
.qc__ask { position: absolute; top: calc(100% + 8px); left: 0; z-index: 4; width: min(300px, 100%); padding: 0.75rem 0.85rem; border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); border-radius: 11px; background: var(--surface-2); box-shadow: var(--shadow); font-size: 0.74rem; opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top left; pointer-events: none; transition: opacity 0.3s, transform 0.35s var(--ease-out); }
.qc__ask.is-open { opacity: 1; transform: none; pointer-events: auto; }
.qc__ask p + p { margin-top: 0.4rem; }
.qc__samples { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); }
.qc__opts { display: flex; gap: 0.35rem; }
.qc__opts button { padding: 0.25rem 0.65rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); font-family: var(--font-mono); font-size: 0.66rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.qc__opts button:hover, .qc__opts button.is-picked { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }
.qc__main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 0.9rem; min-height: 0; }
.qc__left { display: grid; align-content: start; gap: 0.6rem; min-width: 0; }
.qc__tablewrap { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.qc__table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.64rem; }
.qc__table th { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; color: var(--muted); }
.qc__table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.qc__table tr:last-child td { border-bottom: 0; }
.qc__table td.is-bad { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.qc__beam { position: absolute; top: 0; right: 0; left: 0; height: 28px; background: linear-gradient(90deg, transparent, var(--accent-soft) 18%, var(--accent-soft) 82%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 55%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), height 0.35s, opacity 0.3s; }
.qc__beam.is-on { opacity: 1; }
.qc__tag { position: absolute; z-index: 3; padding: 0.15rem 0.45rem; border-radius: 6px; background: var(--red); font-family: var(--font-mono); font-size: 0.58rem; white-space: nowrap; color: #fff; pointer-events: none; animation: tagLife 1.8s var(--ease-out) forwards; }
@keyframes tagLife { 0% { opacity: 0; transform: translateY(4px); } 12%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
.qc__groups, .qc__board { min-width: 0; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.7rem; }
.qc__groups p { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--muted); }
.qc__groups p b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.qc__groups i { display: block; height: 4px; margin: 0.5rem 0 0.4rem; overflow: hidden; border-radius: 4px; background: var(--surface-3); }
.qc__groups em { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.4s var(--ease); }
.qc__groups small { display: block; overflow: hidden; font-family: var(--font-mono); font-size: 0.6rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.qc__board { overflow: hidden; }
.qc__board > p { margin-bottom: 0.45rem; color: var(--muted); }
.qc__board ol { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.qc__board li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0.3rem 0.45rem; border-radius: 7px; background: var(--bg-2); animation: viewIn 0.35s var(--ease-out); }
.qc__board li b { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; }
.qc__board li span { overflow: hidden; font-size: 0.62rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.qc__board li em { min-width: 18px; padding: 0 0.3rem; border-radius: 999px; background: color-mix(in srgb, var(--red) 16%, transparent); font-family: var(--font-mono); font-size: 0.62rem; font-style: normal; text-align: center; color: var(--red); }

/* Stage 3: resolve people */
.rs { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.75rem; padding: 1rem 1.1rem 0.9rem; }
.rs__steps { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rs__steps span { padding: 0.2rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.rs__steps span.is-on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--text); }
.rs__steps span.is-done { color: var(--ok); }
.rs__view { position: relative; min-height: 0; }
.rs__phase { position: absolute; inset: 0; transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.rs__phase.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.rs__rules { display: grid; grid-template-columns: minmax(0, 1fr) 130px; grid-template-rows: auto auto; align-content: start; }
.rs__left { position: relative; }
.rs__rows { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; transition: opacity 0.35s; }
.rs__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.1fr) auto; align-items: center; gap: 0.6rem; padding: 0.38rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-2); transition: border-color 0.3s, background-color 0.3s; }
.rs__row b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.rs__row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs__row em { font-style: normal; color: var(--muted); }
.rs__row.is-hot { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.rs__row.is-blocked { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.rs__left.is-merged .rs__rows { opacity: 0; }
.rs__people { position: absolute; top: 0; right: 0; left: 0; display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.rs__person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); font-size: 0.78rem; transform-origin: top center; }
.rs__person code { font-family: var(--font-mono); font-size: 0.66rem; color: var(--c); }
.rs__person b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rs__person span { font-family: var(--font-mono); font-size: 0.6rem; white-space: nowrap; color: var(--muted); }
.rs__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity 0.35s; }
.rs__arcs.is-merged { opacity: 0; }
.rs__arcs path { fill: none; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.75s var(--ease); }
.rs__arcs path.is-drawn { stroke-dashoffset: 0; }
.rs__arcs path.is-blocked { stroke-dasharray: 0.03 0.022; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.5s; }
.rs__arcs path.is-blocked.is-drawn { opacity: 1; }
.rs__arcs text { font-family: var(--font-mono); font-size: 11px; fill: var(--red); }
.rs__why { grid-column: 1 / -1; min-height: 2.8em; margin-top: 0.65rem; font-size: 0.76rem; line-height: 1.45; color: var(--text-2); }
.rs__why b { margin-right: 0.35rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; color: var(--text); }
.rs__ml { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0.75rem; }
.rs__mlhead { grid-column: 1 / -1; font-size: 0.76rem; color: var(--text-2); }
.rs__pair { padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rs__names { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 0.8rem; }
.rs__names b { padding: 0.2rem 0.55rem; border: 1px solid var(--line-2); border-radius: 7px; font-weight: 600; }
.rs__names span { color: var(--muted); }
.rs__fields { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.66rem; }
.rs__fields li { display: grid; grid-template-columns: 66px minmax(0, 1fr) 54px; align-items: center; gap: 0.55rem; color: var(--muted); }
.rs__fields i { height: 5px; overflow: hidden; border-radius: 5px; background: var(--surface-3); }
.rs__fields em { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ok); transition: width 0.7s var(--ease); }
.rs__fields li.is-miss em { background: var(--muted); }
.rs__fields li.is-diff em { background: var(--red); }
.rs__fields b { font-family: var(--font-mono); font-weight: 500; text-align: right; color: var(--text-2); }
.rs__score { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.rs__score strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ok); }
.rs__pair.is-low .rs__score strong { color: var(--red); }
.rs__score span { font-size: 0.72rem; color: var(--text-2); }
.rs__review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0.9rem; }
.rs__card { padding: 1.1rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); text-align: center; }
.rs__q { margin-bottom: 0.7rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rs__btns { display: flex; justify-content: center; gap: 0.45rem; }
.rs__btns span { padding: 0.35rem 0.75rem; border: 1px solid var(--line-2); border-radius: 8px; font-size: 0.72rem; transition: transform 0.12s, background-color 0.2s, color 0.2s, border-color 0.2s; }
.rs__btns span.is-pressed { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); transform: scale(0.95); }
.rs__dict { display: grid; align-content: start; gap: 0.35rem; margin: 0; padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); list-style: none; font-family: var(--font-mono); font-size: 0.66rem; }
.rs__dict li:first-child { margin-bottom: 0.15rem; font-family: var(--font-sans); font-size: 0.7rem; color: var(--muted); }
.rs__dict li + li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.38rem 0.55rem; border-radius: 7px; background: var(--bg-2); animation: viewIn 0.35s var(--ease-out); }
.rs__dict .is-same { color: var(--ok); }
.rs__dict .is-block { color: var(--red); }
.rs__dict small { font-size: inherit; color: var(--muted); }

/* Stage 4: deliver the list */
.dl { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.8rem; padding: 1rem 1.1rem 0.9rem; }
.dl__book { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.dl__top { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); }
.dl__top svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ok); }
.dl__top b { overflow: hidden; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.dl__state { margin-left: auto; font-family: var(--font-mono); font-size: 0.62rem; white-space: nowrap; color: var(--muted); transition: color 0.3s; }
.dl__state.is-saved { color: var(--ok); }
.dl__grid { position: relative; min-height: 0; }
.dl__sheet { position: absolute; inset: 0; overflow: hidden; transition: opacity 0.35s; }
.dl__sheet.is-off { opacity: 0; pointer-events: none; }
.dl__sheet table { width: 100%; border-collapse: collapse; font-size: 0.64rem; }
.dl__sheet th { padding: 0.45rem 0.6rem; background: #0070c0; font-weight: 600; text-align: left; white-space: nowrap; color: #fff; opacity: 0; transition: opacity 0.4s; }
.dl.is-head .dl__sheet th { opacity: 1; }
.dl__sheet td { padding: 0.45rem 0.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; opacity: 0; transition: opacity 0.25s calc(var(--c, 0) * 45ms); }
.dl__sheet tr.is-in td { opacity: 1; }
.dl__sheet td.is-yes { font-weight: 600; color: var(--ok); }
.dl__sheet u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; text-decoration: none; color: var(--accent); transition: background-size 0.5s var(--ease) 0.35s; }
.dl__sheet tr.is-in u { background-size: 100% 1px; }
.dl__tabs { display: flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.5rem; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 0.66rem; }
.dl__tabs span { padding: 0.2rem 0.6rem; border-radius: 6px; white-space: nowrap; color: var(--muted); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.dl__tabs span.is-on { background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--ok); }
.dl__tabs em { margin-left: auto; font-family: var(--font-mono); font-size: 0.58rem; font-style: normal; white-space: nowrap; color: var(--muted); }

/* Demo: structured data agent (read, inventory, teach, consolidate) */
.sa { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.75rem; padding: 1rem 1.1rem 0.9rem; }
.sa__read, .sa__teach, .sa__cons { display: grid; align-content: start; gap: 0.65rem; }
.sa__inv { display: grid; }
.sa__term { overflow: hidden; padding: 0.6rem 0.8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-family: var(--font-mono); font-size: 0.64rem; line-height: 1.7; }
.sa__term p { overflow: hidden; white-space: pre; text-overflow: ellipsis; color: var(--text-2); }
.sa__term .sa__bar, .sa__term .sa__wbar { color: var(--text); }
.sa__rate { color: var(--muted); }
.sa__term .sa__done { color: var(--ok); opacity: 0; transition: opacity 0.4s; }
.sa__term .sa__done.is-in { opacity: 1; }
.sa__files { display: grid; align-content: start; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sa__file { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.25fr) 1.1em; align-items: center; gap: 0.6rem; padding: 0.42rem 0.6rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-family: var(--font-mono); font-size: 0.64rem; transition: border-color 0.3s, opacity 0.3s; }
.sa__file .pf__ext { justify-self: start; }
.sa__file[data-ext="csv"] .pf__ext { color: var(--accent); }
.sa__file[data-ext="txt"] .pf__ext { color: var(--amber); }
.sa__file b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.sa__file em { overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); transition: color 0.3s; }
.sa__file i { font-style: normal; line-height: 1; text-align: center; }
.sa__file[data-state="run"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.sa__file[data-state="run"] em { color: var(--accent); }
.sa__file[data-state="run"] i::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-out infinite; }
.sa__file[data-state="ok"] em { color: var(--text-2); }
.sa__file[data-state="ok"] i::before { content: "✓"; color: var(--ok); }
.sa__file[data-state="skip"] { opacity: 0.6; }
.sa__file[data-state="skip"] i::before { content: "–"; color: var(--muted); }

.sa__sheet { position: absolute; inset: 0; overflow: hidden; transition: opacity 0.35s; }
.sa__sheet.is-off { opacity: 0; pointer-events: none; }
.sa__sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.64rem; }
.sa__sheet th { overflow: hidden; padding: 0.42rem 0.6rem; background: #0070c0; font-weight: 600; text-align: left; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.sa__sheet td { overflow: hidden; padding: 0.42rem 0.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.sa__sheet tbody tr { opacity: 0; transition: opacity 0.3s; }
.sa__sheet tbody tr.is-in { opacity: 1; }
.sa__sheet .is-num { font-family: var(--font-mono); text-align: right; }
.sa__sheet td.is-warn { font-weight: 600; color: var(--amber); }
.sa__sheet td.is-skip { color: var(--muted); }
.sa__kv th:first-child { width: 52%; }
.sa__kv td:last-child { font-family: var(--font-mono); color: var(--text); }
.sa__w-doc { width: 21%; }
.sa__w-ext { width: 9%; }
.sa__w-rows { width: 15%; }
.sa__w-bk { width: 11%; }
.sa__w-dec { width: 24%; }
.sa__bk { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-weight: 600; color: var(--c); }
.sa__bk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sa__sheet td.sa__dec { position: relative; overflow: visible; }
.sa__pick { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; min-height: 1.5em; padding: 0.05rem 0.4rem; border: 1px solid var(--line-2); border-radius: 5px; font-family: var(--font-mono); transition: border-color 0.25s, box-shadow 0.25s; }
.sa__pick b { font-weight: 600; }
.sa__pick s { text-decoration: none; color: var(--muted); }
.sa__dec[data-v="ok"] b { color: var(--ok); }
.sa__dec[data-v="new"] b { color: var(--accent); }
.sa__dec[data-v="ignore"] b { color: var(--muted); }
.sa__dec.is-open .sa__pick { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sa__menu { position: absolute; top: calc(100% - 4px); right: 0.6rem; left: 0.6rem; z-index: 3; display: grid; gap: 1px; padding: 0.2rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease-out); }
.sa__dec.is-open .sa__menu { opacity: 1; transform: none; }
.sa__menu i { padding: 0.12rem 0.4rem; border-radius: 4px; font-family: var(--font-mono); font-style: normal; color: var(--text-2); transition: background-color 0.2s, color 0.2s; }
.sa__menu i.is-picked { background: var(--btn-bg); color: var(--btn-text); }

.sa__hint { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.sa__hint.is-in { opacity: 1; transform: none; }

.sa__in, .sa__out { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.sa__in.is-in, .sa__out.is-in { opacity: 1; transform: none; }
.sa .is-m { --c: var(--accent); }
.sa .is-d { --c: var(--ok); }
.sa .is-h { --c: var(--amber); }
.sa__wide { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.6rem 0.7rem; }
.sa__wide span { display: grid; gap: 0.05rem; padding: 0.25rem 0.5rem; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 6px; background: var(--bg-2); font-family: var(--font-mono); font-size: 0.62rem; color: var(--text); }
.sa__wide s { font-size: 0.54rem; text-decoration: none; color: var(--muted); }
.sa__down { justify-self: center; width: 22px; height: 22px; color: var(--accent); opacity: 0; transform: rotate(90deg); transition: opacity 0.4s; }
.sa__down.is-in { opacity: 1; }
.sa__down svg { width: 100%; height: 100%; }
.sa__out table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--font-mono); font-size: 0.64rem; }
.sa__out th { overflow: hidden; padding: 0.45rem 0.65rem; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.sa__out td { overflow: hidden; padding: 0.45rem 0.65rem; border-bottom: 1px solid var(--line); white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.sa__out tr:last-child td { border-bottom: 0; }
.sa__out tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s var(--ease-out); }
.sa__out tbody tr.is-in { opacity: 1; transform: none; }
.sa__out td:first-child { box-shadow: inset 3px 0 0 var(--c); color: var(--text); }
.sa__out td.is-from { color: var(--amber); }
.sa__from { font-style: normal; color: var(--amber); }
.sa__w-role { width: 17%; }

@container pl (max-width: 560px) {
  .sa { padding: 0.85rem 0.8rem; }
  .sa__file { grid-template-columns: 2.6rem minmax(0, 1fr) 1.1em; gap: 0.1rem 0.5rem; }
  .sa__file em { grid-row: 2; grid-column: 2; }
  .sa__file i { grid-row: 1 / 3; grid-column: 3; }
  .sa__file .pf__ext { grid-row: 1 / 3; }
  .sa__rate, .sa__tabs [data-t="2"], .sa [data-c="ext"], .sa [data-c="rows"], .sa [data-c="seen"], .sa [data-c="dob"], .sa [data-c="addr"] { display: none; }
  .sa__w-doc { width: 30%; }
  .sa__w-bk { width: 18%; }
  .sa__w-dec { width: 30%; }
  .sa__w-role { width: 25%; }
  .sa__w-name { width: 25%; }
  .sa__w-ssn { width: 28%; }
  .sa__w-link { width: 22%; }
  .sa__out th, .sa__out td { padding-right: 0.4rem; padding-left: 0.4rem; }
  .sa__from { display: none; }
}

@container pl (max-width: 760px) {
  .pf__body { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .pf__baskets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf__drop { display: none; }
  .qc__main { grid-template-columns: minmax(0, 1fr) 190px; }
  .rs__rules { grid-template-columns: minmax(0, 1fr) 96px; }
  .rs__row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .rs__row .rs__dob, .rs__row .rs__addr { display: none; }
  .dl__sheet [data-c="2"], .dl__sheet [data-c="6"] { display: none; }
}

@container pl (max-width: 560px) {
  .pf, .qc, .rs, .dl { padding: 0.85rem 0.8rem; }
  .pf__lanes { gap: 0.35rem; }
  .pf__lane { grid-template-columns: minmax(0, 1fr); padding: 0.35rem 0.45rem; }
  .pf__lane em, .pf__hdr { display: none; }
  .pf__files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
  .pf__file { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.4rem; padding: 0.4rem 0.45rem; }
  .qc__label { display: none; }
  .qc__main { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .qc__table th:nth-child(4), .qc__table td:nth-child(4) { display: none; }
  .qc__table th, .qc__table td { padding: 0.42rem 0.4rem; }
  .qc__groups { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.7rem; }
  .qc__groups p { flex: 1; }
  .qc__groups i { flex: 0 0 72px; margin: 0; }
  .qc__groups small { display: none; }
  .qc__board li:nth-child(n + 5) { display: none; }
  .rs__row { grid-template-columns: minmax(0, 1fr) auto; }
  .rs__row .rs__ssn { display: none; }
  .rs__person { grid-template-columns: auto minmax(0, 1fr); }
  .rs__person span { grid-column: 1 / -1; }
  .rs__ml, .rs__review { grid-template-columns: minmax(0, 1fr); }
  .rs__pair { padding: 0.7rem 0.8rem; }
  .rs__names { margin-bottom: 0.55rem; }
  .rs__score { margin-top: 0.55rem; padding-top: 0.5rem; }
  .dl__sheet [data-c="3"], .dl__sheet [data-c="7"], .dl__sheet [data-raw] { display: none; }
  .dl__tabs em { display: none; }
  .gd { padding: 0.9rem 0.8rem 0.85rem; }
  .gd__card { overflow-x: auto; }
  .gd th, .gd td { padding: 0.45rem 0.5rem; }
  .gd__diff { grid-template-columns: minmax(0, 1fr); }
  .gd__arrow { justify-self: center; transform: rotate(90deg) translateX(-6px); }
  .gd__arrow.is-in { transform: rotate(90deg); }
  .gd__files li { grid-template-columns: minmax(0, 1fr) 1.4em; row-gap: 0.2rem; }
  .gd__files .gd__sep { display: none; }
  .gd__files .gd__to { grid-column: 1; grid-row: 2; }
  .gd__files b { grid-column: 2; grid-row: 1 / span 2; }
}

/* ===== Featured build: Time Track demo ===== */
.build .section-sub { max-width: 62ch; }
.build__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
.app { container-type: inline-size; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.app__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.app__title { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }
.app__tabs { display: flex; gap: 0.2rem; margin-left: auto; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.app__tabs button { padding: 0.35rem 0.8rem; border: 0; border-radius: 999px; background: none; font-size: 0.78rem; color: var(--text-2); cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.app__tabs button:hover { color: var(--text); }
.app__tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.app__body { padding: 1rem; background: var(--bg-2); }
.app__view[hidden] { display: none; }
.app__view.is-active { animation: viewIn 0.45s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--muted); }
.app__foot button { padding: 0; border: 0; background: none; font-size: 0.74rem; color: var(--accent); cursor: pointer; }

.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.tt-act, .tt-log { grid-column: 1 / -1; }
.tt-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tt-stitle { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.75rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tt-stitle::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: currentColor; }
.tt-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.72rem; color: var(--text-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.tt-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tt-badge[data-state="in"] { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.tt-badge[data-state="in"] i { background: var(--ok); animation: pulse 2.4s ease-out infinite; }
.tt-badge[data-state="break"] { border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--amber); }
.tt-badge[data-state="break"] i { background: var(--amber); }
.tt-badge[data-state="out"] { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.tt-badge[data-state="out"] i { background: var(--red); }
.tt-timer { margin: 0.75rem 0 0.9rem; font-family: var(--font-mono); font-size: clamp(1.6rem, 4.6cqi, 2.3rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.tt-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tt-btn { padding: 0.45rem 0.75rem; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); font-size: 0.76rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.1s; }
.tt-btn:hover:not(:disabled) { background: var(--surface-3); }
.tt-btn:active:not(:disabled) { transform: scale(0.97); }
.tt-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tt-btn--in { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.tt-btn--break { border-color: color-mix(in srgb, var(--amber) 45%, transparent); color: var(--amber); }
.tt-btn--out { border-color: color-mix(in srgb, var(--red) 45%, transparent); color: var(--red); }
.tt-btn--start, .tt-btn--start:hover:not(:disabled) { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }

.tt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.tt-stats div { padding: 0.6rem 0.65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.tt-stats span { display: block; font-size: 0.66rem; color: var(--muted); }
.tt-stats strong { display: block; margin-top: 0.2rem; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; }

.tt-act__row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem; }
.tt-field { display: grid; flex: 1 1 150px; gap: 0.3rem; }
.tt-field span { font-size: 0.68rem; color: var(--muted); }
.tt-field select { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); font-size: 0.78rem; }
.tt-running { display: grid; gap: 0.4rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.tt-running li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; padding: 0.5rem 0.65rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 9px; background: var(--accent-soft); font-size: 0.76rem; animation: viewIn 0.4s var(--ease-out); transition: opacity 0.3s; }
.tt-running li.is-paused { opacity: 0.55; }
.tt-running b { font-weight: 600; }
.tt-running em { font-style: normal; color: var(--muted); }
.tt-elapsed { margin-left: auto; font-family: var(--font-mono); }
.tt-running button { padding: 0.2rem 0.55rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); font-size: 0.7rem; cursor: pointer; }

.tt-events { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; font-size: 0.76rem; }
.tt-events li { display: flex; align-items: center; gap: 0.55rem; animation: viewIn 0.4s var(--ease-out); }
.tt-events i { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tt-events [data-kind="in"] i { background: var(--ok); }
.tt-events [data-kind="out"] i { background: var(--red); }
.tt-events [data-kind="break"] i { background: var(--amber); }
.tt-events [data-kind="act"] i { background: var(--accent); }
.tt-time { margin-left: auto; font-family: var(--font-mono); color: var(--muted); }
.tt-empty { color: var(--muted); }

.tt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; }
.tt-head .tt-stitle { margin: 0; }
.tt-count { min-width: 26px; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent-soft); font-family: var(--font-mono); font-size: 0.74rem; text-align: center; color: var(--accent); }
.tt-approvals { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.tt-approvals li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.5rem 0.9rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.tt-approvals li.is-done { opacity: 0; transform: translateX(18px); }
.tt-person b { display: block; font-size: 0.82rem; font-weight: 600; }
.tt-person span { font-size: 0.72rem; color: var(--muted); }
.tt-hours { font-family: var(--font-mono); font-size: 0.8rem; }
.tt-actions { display: flex; gap: 0.35rem; }
.tt-actions button { padding: 0.32rem 0.6rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 0.72rem; cursor: pointer; }
.tt-actions button:first-child { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }
.tt-decision { font-size: 0.74rem; color: var(--ok); }
.tt-caught { padding: 1.2rem 0.5rem 0.4rem; font-size: 0.82rem; text-align: center; color: var(--muted); }

.tt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
.tt-kpis span { display: block; font-size: 0.68rem; color: var(--muted); }
.tt-kpis strong { display: block; margin-top: 0.3rem; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.tt-tools { display: grid; gap: 0.45rem; }
.tt-tool { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: 0.8rem; text-align: left; cursor: pointer; transition: border-color 0.3s; }
.tt-tool:hover { border-color: var(--accent); }
.tt-tool span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.tt-toast { min-height: 1.4em; margin-top: 0.6rem; font-size: 0.76rem; color: var(--ok); }

@container (max-width: 420px) {
  .app__bar { flex-wrap: wrap; row-gap: 0.6rem; }
  .app__tabs { flex: 1 1 100%; margin-left: 0; }
  .app__tabs button { flex: 1; padding: 0.35rem 0.4rem; }
}

@container (max-width: 560px) {
  .app__title { display: none; }
  .tt-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-approvals li { grid-template-columns: minmax(0, 1fr) auto; }
  .tt-actions { grid-column: 1 / -1; }
}

.build__facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.build__facts li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.build__facts strong { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; }
.build__facts span { display: block; margin-top: 0.3rem; font-size: 0.9rem; color: var(--text-2); }

/* ===== Work: every function and tool in one window ===== */
.wk { overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.wk__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.wk__title { overflow: hidden; font-family: var(--font-mono); font-size: 0.74rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.wk__title b { font-weight: 500; color: var(--text); }
.wk__search { position: relative; display: flex; flex-shrink: 0; align-items: center; margin-left: auto; }
.wk__search svg { position: absolute; left: 0.6rem; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.wk__search input { width: 200px; padding: 0.36rem 0.7rem 0.36rem 1.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 0.76rem; color: var(--text); transition: border-color 0.2s, width 0.35s var(--ease-out); }
.wk__search input::placeholder { color: var(--muted); }
.wk__search input:focus { width: 250px; border-color: var(--accent); outline: none; }
.wk__filters { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.wk__filters::-webkit-scrollbar { display: none; }
.wk__filters button { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.45rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 0.74rem; color: var(--text-2); cursor: pointer; transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.wk__filters button:hover { color: var(--text); }
.wk__filters button b { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; color: var(--muted); }
.wk__filters button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--text); }
.wk__filters button[aria-pressed="true"] b { color: var(--accent); }

/* Three panes on wide screens: functions | live demo | notes */
.wk__body { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; }
.wk__side { position: relative; min-width: 0; border-right: 1px solid var(--line); background: var(--bg-2); }
.wk__toggle { display: none; }
.wk__tree { position: absolute; inset: 0; overflow-y: auto; padding: 0.6rem 0.5rem 1rem; overscroll-behavior: contain; scrollbar-width: thin; }
.wk__group + .wk__group { margin-top: 0.3rem; }
.wk__group[hidden] { display: none; }
.wk__folder { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 0.45rem; width: 100%; padding: 0.4rem 0.45rem; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; transition: background-color 0.2s; }
.wk__folder:hover { background: var(--surface-2); }
.wk__folder svg { width: 14px; height: 14px; color: var(--muted); transition: transform 0.25s var(--ease-out); }
.wk__folder[aria-expanded="false"] svg { transform: rotate(-90deg); }
.wk__folder span { display: grid; min-width: 0; line-height: 1.35; }
.wk__folder strong { overflow: hidden; font-size: 0.76rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.wk__folder em { overflow: hidden; font-family: var(--font-mono); font-size: 0.6rem; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.wk__folder b { min-width: 22px; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--surface-3); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; text-align: center; color: var(--text-2); }
.wk__items { display: grid; gap: 1px; margin: 0.15rem 0 0.2rem 0.95rem; padding: 0 0 0 0.45rem; border-left: 1px solid var(--line); list-style: none; }
.wk__items[hidden], .wk__items li[hidden] { display: none; }
.wk__item { display: grid; gap: 0.05rem; width: 100%; padding: 0.36rem 0.5rem; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; transition: background-color 0.2s; }
.wk__item strong { overflow: hidden; font-size: 0.76rem; font-weight: 500; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); transition: color 0.2s; }
.wk__item span { overflow: hidden; font-size: 0.64rem; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.wk__item:hover { background: var(--surface-2); }
.wk__item:hover strong { color: var(--text); }
.wk__item[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.wk__item[aria-current="true"] strong { color: var(--text); }
.wk__empty { padding: 1rem 0.6rem; font-size: 0.76rem; color: var(--muted); }

.wk__main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.wk__top { display: flex; align-items: center; gap: 0.75rem; min-height: 2.9rem; padding: 0.4rem 0.9rem; border-bottom: 1px solid var(--line); }
.wk__back { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.35rem; padding: 0.28rem 0.6rem 0.28rem 0.45rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); font-size: 0.72rem; color: var(--text); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; animation: viewIn 0.35s var(--ease-out); }
.wk__back:hover { border-color: var(--accent); }
.wk__back[hidden] { display: none; }
.wk__back svg { width: 14px; height: 14px; }
.wk__view { position: relative; min-height: 0; }
.wk.is-grid .wk__view > .pl__cmd, .wk.is-grid .wk__stage { visibility: hidden; }

/* Cards: what a filter or a search picks, grouped the way a matter runs */
.wk__grid { position: absolute; inset: 0; z-index: 2; overflow-y: auto; padding: 1rem 1rem 1.4rem; background: var(--bg-2); overscroll-behavior: contain; scrollbar-width: thin; }
.wk__grid[hidden] { display: none; }
.wk__sect + .wk__sect { margin-top: 1.25rem; }
.wk__sect h4 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wk__sect h4 b { font-weight: 500; color: var(--accent); }
.wk__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem; }
.wk__card { display: grid; align-content: start; gap: 0.35rem; min-width: 0; padding: 0.8rem 0.85rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; animation: viewIn 0.45s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 28ms); transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s; }
.wk__card:hover, .wk__card:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.6); }
.wk__card-top { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wk__card strong { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }
.wk__card-what { display: -webkit-box; overflow: hidden; font-size: 0.74rem; line-height: 1.45; color: var(--text-2); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wk__card-cats { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.wk__card-cats i { padding: 0.06rem 0.42rem; border-radius: 999px; background: var(--accent-soft); font-size: 0.58rem; font-style: normal; color: var(--text-2); }
.wk__none { padding: 2.5rem 1rem; font-size: 0.86rem; text-align: center; color: var(--muted); }
.wk__crumb { overflow: hidden; font-family: var(--font-mono); font-size: 0.72rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.wk__crumb b { font-weight: 500; color: var(--text); }
.wk__stages { margin-left: auto; }
.wk__live { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.45rem; margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; white-space: nowrap; color: var(--ok); }
.wk__stages:not([hidden]) + .wk__live { margin-left: 0; }
.wk__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-out infinite; }
.wk__stage { container: pl / inline-size; position: relative; height: 560px; overflow: hidden; background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 65%), var(--bg-2); }

.wk__info { min-width: 0; overflow-y: auto; padding: 1.2rem 1.2rem 1.4rem; border-left: 1px solid var(--line); scrollbar-width: thin; }
.wk__info > * { animation: viewIn 0.4s var(--ease-out); }
.wi__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.wi__title { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; }
.wi__badge { padding: 0.12rem 0.45rem; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.wi__lede { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-2); }
.wi__io { display: grid; gap: 0.45rem; margin: 0.9rem 0 0; }
.wi__io div { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: baseline; gap: 0.5rem; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.wi__io dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.wi__io dd { margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--text); }
.wi__call { margin-top: 0.9rem; }
.wi__callhead { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.wi__callhead .wi__k { margin-bottom: 0; }
.wi__copy { padding: 0.14rem 0.55rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-2); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.wi__copy:hover, .wi__copy:focus-visible { border-color: var(--accent); color: var(--text); }
.wi__call pre { margin: 0; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.wi__call .c-c { color: var(--muted); }
.wi__sig { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.6rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--muted); }
.wi__sig span { margin-right: 0.45rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.wi__points { display: grid; gap: 0.55rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.wi__points li { position: relative; padding-left: 1.4rem; font-size: 0.86rem; line-height: 1.45; color: var(--text); }
.wi__points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.wi__hint { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.wi__cats, .wi__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.wi__cats { margin-top: 0.7rem; }
.wi__cats span { padding: 0.14rem 0.5rem; border-radius: 999px; background: var(--accent-soft); font-size: 0.66rem; color: var(--text); }
.wi__cols { display: grid; gap: 1rem; margin-top: 1.1rem; }
.wi__k { margin-bottom: 0.35rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.wi__cols p:not(.wi__k) { font-size: 0.86rem; line-height: 1.55; color: var(--text-2); }
.wi__cols ul { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.wi__cols li { position: relative; padding-left: 0.95rem; font-size: 0.84rem; line-height: 1.5; color: var(--text-2); }
.wi__cols li::before { content: ""; position: absolute; top: 0.62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.wi__tags { margin-top: 1.1rem; }
.wi__tags span { padding: 0.18rem 0.55rem; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-2); }
.wi__more { margin-top: 1.1rem; }

.wk__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); }

/* Generic function demos: a typed call, then its output */
.gd { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.8rem; padding: 1.1rem 1.2rem 1rem; }
.gd__out { display: grid; align-content: safe center; gap: 0.8rem; min-height: 0; overflow: hidden; }
.gd__busy { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.gd__busy i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-out infinite; }
.gd__card { overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.gd__cap { padding: 0.4rem 0.75rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.gd table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.66rem; }
.gd th { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; white-space: nowrap; color: var(--muted); }
.gd td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text-2); }
.gd tr:last-child td { border-bottom: 0; }
.gd tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s var(--ease-out); }
.gd tbody tr.is-in { opacity: 1; transform: none; }
.gd .is-hl { background: var(--accent-soft); color: var(--text); }
.gd th.is-hl { color: var(--accent); }
.gd td.is-changed { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--text); }
.gd__after.is-in td.is-changed { animation: cellGlow 1.4s var(--ease-out); }
@keyframes cellGlow { from { background: color-mix(in srgb, var(--ok) 42%, transparent); } }
.gd tr.is-flagged td { color: var(--text); }
/* On a narrow screen the table scrolls sideways, but the check column stays in view. */
.gd .has-flags th:last-child, .gd .has-flags td:last-child { position: sticky; right: 0; background: var(--surface); }
.gd__flag { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--red) 15%, transparent); font-size: 0.6rem; color: var(--red); }
.gd__diff { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.8rem; }
.gd__arrow { width: 24px; height: 24px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.gd__arrow.is-in { opacity: 1; transform: none; }
.gd__arrow svg { width: 100%; height: 100%; }
.gd__text { display: grid; gap: 0.4rem; margin: 0; padding: 0.75rem; list-style: none; font-family: var(--font-mono); font-size: 0.64rem; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.gd__text li { opacity: 0; transition: opacity 0.35s; }
.gd__text li.is-in { opacity: 1; }
.gd__after { opacity: 0; transform: translateX(8px); transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.gd__after.is-in { opacity: 1; transform: none; }
.gd__after tbody tr { opacity: 1; transform: none; }
.gd__log { display: grid; gap: 0.5rem; margin: 0; padding: 0.95rem 1rem; list-style: none; font-family: var(--font-mono); font-size: 0.72rem; }
.gd__log li { display: flex; gap: 0.7rem; opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.gd__log li.is-in { opacity: 1; transform: none; }
.gd__log i { flex-shrink: 0; width: 1em; font-style: normal; text-align: center; color: var(--muted); }
.gd__log [data-s="ok"] i { color: var(--ok); }
.gd__log [data-s="warn"] i { color: var(--amber); }
.gd__log [data-s="fail"] i { color: var(--red); }
.gd__log span { color: var(--text-2); }
.gd__files { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 0.7rem; }
.gd__files li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) 1.4em; align-items: center; gap: 0.7rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); opacity: 0.4; transition: opacity 0.3s, border-color 0.3s; }
.gd__files li.is-run { border-color: var(--accent); opacity: 1; }
.gd__files li.is-done { opacity: 1; }
.gd__files .gd__from { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.gd__files .gd__to { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.gd__files .gd__to small { display: block; overflow: hidden; font-size: 0.6rem; text-overflow: ellipsis; color: var(--muted); }
.gd__files .gd__sep { color: var(--muted); }
.gd__files b { font-weight: 500; text-align: center; opacity: 0; transition: opacity 0.3s; }
.gd__files li.is-done b { opacity: 1; }
.gd__files [data-s="ok"] b { color: var(--ok); }
.gd__files [data-s="fail"] b { color: var(--red); }
.gd__files [data-s="skip"] b { color: var(--muted); }
.gd__pairs { display: grid; gap: 0.7rem; }
.gd__pair { padding: 0.7rem 0.8rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.gd__pair.is-in { opacity: 1; transform: none; }
.gd__pair p { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); }
.gd__pair p b { font-weight: 500; color: var(--amber); opacity: 0; transition: opacity 0.3s; }
.gd__pair.is-found p b { opacity: 1; }
.gd__names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; font-family: var(--font-mono); font-size: 0.7rem; }
.gd__names + .gd__names { margin-top: 0.3rem; }
.gd__names span { min-height: 1.9em; overflow: hidden; padding: 0.3rem 0.45rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); text-align: center; white-space: nowrap; text-overflow: ellipsis; transition: border-color 0.3s, color 0.3s, background-color 0.3s; }
.gd__pair.is-found .gd__names span.is-swap { border-color: color-mix(in srgb, var(--amber) 60%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--amber); }
.gd__note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.gd__note.is-in { opacity: 1; transform: none; }
.gd__note span { color: var(--ok); }
.br__run { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.br__second { display: grid; gap: 0.8rem; opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.br__second.is-in { opacity: 1; transform: none; }

/* Demo: notebook */
.nb { position: absolute; inset: 0; overflow: hidden; padding: 1.1rem 1.2rem 2rem; font-family: var(--font-mono); font-size: 0.76rem; }
.nb-cell { margin-bottom: 0.85rem; }
.nb-cell:not(.is-shown) { display: none; }
.nb-in { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.nb-label { flex-shrink: 0; color: var(--accent); }
.nb-out .nb-label { color: var(--muted); }
.nb-code { overflow-wrap: anywhere; color: var(--text); }
.nb-cell.is-typing .nb-code::after { content: ""; display: inline-block; width: 0.5em; height: 1.05em; margin-left: 1px; background: var(--accent); vertical-align: -0.18em; animation: blink 1s steps(1) infinite; }
.nb-out { display: none; gap: 0.7rem; padding: 0.55rem 0.75rem 0; }
.nb-cell.is-done .nb-out { display: flex; animation: viewIn 0.4s var(--ease-out); }
.nb-result { min-width: 0; overflow-x: auto; }
.nb-table { border-collapse: collapse; font-size: 0.72rem; }
.nb-table th, .nb-table td { padding: 0.22rem 0.9rem 0.22rem 0; text-align: left; white-space: nowrap; }
.nb-table th { border-bottom: 1px solid var(--line); font-weight: 400; color: var(--muted); }
.nb-log { margin: 0; padding: 0; list-style: none; line-height: 1.8; color: var(--ok); }

/* Demo: column normalizer */
.cn { position: absolute; inset: 0; display: grid; align-content: safe center; gap: 0.42rem; padding: 1.2rem 1.4rem; font-family: var(--font-mono); font-size: 0.76rem; }
.cn__head, .cn__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, 90px) minmax(0, 1fr) 50px; align-items: center; gap: 0.6rem; }
.cn__head { padding-bottom: 0.2rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cn__src, .cn__dst { overflow: hidden; padding: 0.36rem 0.6rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); white-space: nowrap; text-overflow: ellipsis; }
.cn__dst { color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.cn__arrow { height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.cn__score { text-align: right; color: var(--ok); opacity: 0; transition: opacity 0.4s 0.2s; }
.cn__row.is-mapped .cn__dst { opacity: 1; transform: none; }
.cn__row.is-mapped .cn__arrow { transform: none; }
.cn__row.is-mapped .cn__score { opacity: 1; }
.cn__row.is-weak .cn__dst { border-color: color-mix(in srgb, var(--amber) 60%, transparent); color: var(--amber); }
.cn__row.is-weak .cn__arrow { background: linear-gradient(90deg, var(--amber), transparent); }
.cn__row.is-weak .cn__score { color: var(--amber); }
.cn__review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; padding: 0.6rem 0.75rem; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--amber) 8%, transparent); opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease-out), border-color 0.4s, background-color 0.4s; }
.cn__review.is-shown { opacity: 1; transform: none; }
.cn__resolved { display: none; color: var(--ok); }
.cn__review.is-resolved { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.cn__review.is-resolved .cn__pending, .cn__review.is-resolved .cn__btns { display: none; }
.cn__review.is-resolved .cn__resolved { display: inline; }
.cn__btns { display: flex; gap: 0.35rem; }
.cn__btns b { padding: 0.22rem 0.55rem; border: 1px solid var(--line-2); border-radius: 7px; font-weight: 500; transition: transform 0.15s; }
.cn__btns b.is-pressed { transform: scale(0.92); }
.cn__btns b:last-child { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }

/* Demo: notification list builder */
.nlb { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 0.8rem; padding: 1.2rem 1.3rem; font-family: var(--font-mono); font-size: 0.7rem; }
.nlb__head { margin-bottom: 0.5rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nlb__rec { overflow: hidden; margin-bottom: 0.35rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); white-space: nowrap; text-overflow: ellipsis; transition: border-color 0.3s, opacity 0.4s; }
.nlb__rec.is-hot[data-g="a"] { border-color: var(--accent); }
.nlb__rec.is-hot[data-g="b"] { border-color: var(--ok); }
.nlb__rec.is-hot[data-g="c"] { border-color: var(--amber); }
.nlb__rec.is-used { opacity: 0.35; }
.nlb__mid { display: grid; justify-items: center; gap: 0.45rem; text-align: center; color: var(--muted); }
.nlb__pct { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.nlb__bar { width: 100%; height: 5px; overflow: hidden; border-radius: 4px; background: var(--accent-soft); }
.nlb__bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.6s var(--ease-out); }
.nlb__out { margin-bottom: 0.4rem; padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); opacity: 0; transform: translateX(10px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.nlb__out.is-in { opacity: 1; transform: none; }
.nlb__out[data-g="b"] { border-left-color: var(--ok); }
.nlb__out[data-g="c"] { border-left-color: var(--amber); }
.nlb__out b, .nlb__out span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nlb__out b { font-weight: 500; color: var(--text); }
.nlb__out span { color: var(--muted); }

/* Demo: name ID generator */
.nid { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.2rem; padding: 1.2rem 1.4rem; font-family: var(--font-mono); font-size: 0.74rem; }
.nid__stream { display: grid; align-content: start; gap: 0.35rem; margin: 0; padding: 0; overflow: hidden; list-style: none; -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.nid__stream li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.38rem 0.6rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); animation: slideIn 0.35s var(--ease-out); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nid__stream b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.nid__id { flex-shrink: 0; color: var(--c, var(--accent)); }
.nid__stats { display: grid; align-content: center; gap: 1.1rem; }
.nid__stats span { display: block; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nid__stats strong { display: block; margin-top: 0.25rem; font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.04em; }

/* Demo: PII extractor, the document is always paper-white */
.px { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; align-content: safe center; gap: 1rem; padding: 1.2rem 1.3rem; }
.px__doc { position: relative; overflow: hidden; padding: 0.95rem 1.05rem; border-radius: 10px; background: #fbfaf7; color: #1d2026; font-size: 0.76rem; line-height: 1.75; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }
.px__doc p { margin: 0 0 0.25rem; }
.px__doc .px__fname { margin-bottom: 0.45rem; font-family: var(--font-mono); font-size: 0.64rem; color: #6b7280; }
.px__doc mark { padding: 0 0.15em; border-radius: 3px; background: transparent; color: inherit; white-space: nowrap; transition: background-color 0.3s, box-shadow 0.3s; }
.px__doc mark.is-hit { background: rgba(99, 102, 241, 0.2); box-shadow: inset 0 -2px 0 #6366f1; }
.px__doc mark.is-phi.is-hit { background: rgba(16, 185, 129, 0.2); box-shadow: inset 0 -2px 0 #10b981; }
.px__beam { position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.28), transparent); pointer-events: none; }
.px.is-scanning .px__beam { animation: beam 2.6s linear forwards; }
@keyframes beam { to { top: 100%; } }
.px__out { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.7rem; }
.px__out th { padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; color: var(--muted); }
.px__out td { padding: 0.32rem 0.4rem; border-bottom: 1px solid var(--line); animation: viewIn 0.35s var(--ease-out); }
.px__type { color: var(--accent); }
.px__type.is-phi { color: var(--ok); }

/* Demo: file converter */
.fc { position: absolute; inset: 0; display: grid; align-content: safe center; gap: 0.5rem; margin: 0; padding: 1.2rem 1.4rem; list-style: none; font-family: var(--font-mono); font-size: 0.74rem; }
.fc li { display: grid; grid-template-columns: minmax(0, 0.9fr) 16px minmax(0, 1.3fr) minmax(60px, 110px) 18px; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); transition: border-color 0.3s; }
.fc li.is-running { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.fc__from, .fc__to { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fc__from { color: var(--text-2); }
.fc__arrow { color: var(--muted); }
.fc__to small { margin-left: 0.5rem; font-size: 0.64rem; color: var(--muted); }
.fc__bar { height: 4px; overflow: hidden; border-radius: 4px; background: var(--accent-soft); }
.fc__bar i { display: block; width: 0; height: 100%; background: var(--accent); }
.fc li.is-running .fc__bar i { animation: barFill 1s linear forwards; }
.fc li.is-done .fc__bar i { width: 100%; background: var(--ok); }
@keyframes barFill { to { width: 100%; } }
.fc__ok { color: var(--ok); opacity: 0; transition: opacity 0.3s; }
.fc li.is-done .fc__ok { opacity: 1; }

/* Demo: metadata analyzer */
.ma { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1rem; padding: 1.2rem 1.3rem; font-family: var(--font-mono); font-size: 0.7rem; }
.ma__top { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 0.8rem; }
.ma__pile { display: flex; flex: 1; flex-wrap: wrap; gap: 0.35rem; min-height: 58px; }
.ma__review { flex-shrink: 0; padding: 0.35rem 0.65rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 8px; color: var(--text-2); }
.ma__review b { font-weight: 500; color: var(--text); }
.ma__doc { padding: 0.28rem 0.5rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); white-space: nowrap; transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.ma__doc.is-gone { opacity: 0; transform: translateY(12px) scale(0.9); }
.ma__buckets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.ma__bucket { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; padding: 0.55rem; border: 1px dashed var(--line-2); border-radius: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.ma__bucket p { display: flex; justify-content: space-between; gap: 0.3rem; margin-bottom: 0.15rem; font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ma__bucket p b { font-weight: 500; color: var(--text); }
.ma__drop { display: grid; gap: 0.3rem; }
.ma__drop .ma__doc { overflow: hidden; font-size: 0.62rem; text-overflow: ellipsis; animation: viewIn 0.4s var(--ease-out); }
.ma__bucket[data-b="system"] { opacity: 0.65; }

@container (max-width: 560px) {
  .nlb { grid-template-columns: minmax(0, 1fr); align-content: safe center; gap: 0.5rem; padding: 1rem; }
  .nlb__head { margin-bottom: 0.35rem; }
  .nlb__rec { margin-bottom: 0.25rem; padding: 0.32rem 0.55rem; }
  .nlb__out { margin-bottom: 0.3rem; padding: 0.38rem 0.6rem; }
  .nlb__rec:nth-of-type(n + 4) { display: none; }
  .nlb__mid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: stretch; }
  .nid { grid-template-columns: minmax(0, 1fr); }
  .nid__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); order: -1; }
  .nid__stats div { display: flex; flex-direction: column; justify-content: space-between; }
  .nid__stats strong { font-size: 1.15rem; }
  .px { grid-template-columns: minmax(0, 1fr); }
  .px__out { display: none; }
  .ma__buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma__drop { display: none; }
  .fc li { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 18px; }
  .fc__bar, .fc__to small { display: none; }
  .cn { gap: 0.34rem; padding: 1rem; }
  .cn__head, .cn__row { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 40px; }
  .cn__src, .cn__dst { padding: 0.3rem 0.5rem; }
}

/* ===== Toolkit: pipeline ===== */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) 36px) minmax(0, 1fr); align-items: stretch; padding: 1.2rem; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.pipe__col { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; padding: 0.85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.pipe__label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pipe__label span { color: var(--accent); }
.pipe__col ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pipe__col li { padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 0.84rem; line-height: 1.35; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.pipe__col li:hover, .pipe__col li.is-hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 24px -6px var(--accent); }
.pipe__col li.is-hot { transform: translateX(2px); }
.pipe__link { position: relative; align-self: center; height: 2px; margin: 0 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 11px); background-size: 11px 2px; opacity: 0.75; animation: flowX 0.8s linear infinite; }
@keyframes flowX { to { background-position: 11px 0; } }
.pipe__link::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.pipe__link span { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: packet 1.6s var(--ease) infinite; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes flowY { to { background-position: 0 11px; } }
@keyframes packetY { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
.pipe__foot { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 1.25rem; font-size: 0.92rem; color: var(--text-2); }
.pipe__foot .label { margin: 0 0.8rem 0 0; }

/* ===== Testimonials ===== */
.testimonials { position: relative; isolation: isolate; overflow: hidden; }
.testimonials::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: 620px;
  height: 620px;
  margin-left: -310px;
  background: radial-gradient(circle, var(--glow-a), transparent 62%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
/* A Messages-style window */
.msg { overflow: hidden; max-width: 1000px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.msg__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.msg__title { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.msg__body { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 430px; }
.msg__list { display: grid; align-content: start; gap: 2px; padding: 0.6rem; border-right: 1px solid var(--line); background: var(--bg-2); }
.msg__who { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 0.7rem; overflow: hidden; padding: 0.65rem 0.7rem; border: 0; border-radius: 11px; background: none; text-align: left; cursor: pointer; transition: background-color 0.25s; }
.msg__who:hover { background: var(--surface-2); }
.msg__who[aria-selected="true"] { background: var(--accent-soft); }
.msg__avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.msg__avatar--sm { width: 28px; height: 28px; }
.msg__meta { display: grid; min-width: 0; line-height: 1.35; }
.msg__meta b { overflow: hidden; font-size: 0.86rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.msg__meta em { overflow: hidden; font-size: 0.7rem; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.msg__meta small { overflow: hidden; margin-top: 0.2rem; font-size: 0.72rem; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.msg__timer { position: absolute; right: 0.7rem; bottom: 4px; left: 0.7rem; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transform: scaleX(0); transform-origin: left; }
.msg__who.is-playing .msg__timer { opacity: 0.85; animation: msgTimer var(--dwell, 6s) linear forwards; }
.msg.is-paused .msg__timer, .msg.is-away .msg__timer { animation-play-state: paused; }
@keyframes msgTimer { to { transform: scaleX(1); } }
.msg__chat { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.msg__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); animation: viewIn 0.4s var(--ease-out); }
.msg__person { display: grid; min-width: 0; line-height: 1.35; }
.msg__person b { display: flex; align-items: center; gap: 0.4rem; font-size: 0.96rem; font-weight: 600; }
.msg__person em { font-size: 0.78rem; font-style: normal; color: var(--muted); }
.msg__person a { display: inline-grid; color: var(--muted); transition: color 0.3s; }
.msg__person a:hover { color: var(--accent); }
.msg__person svg { width: 14px; height: 14px; }
.msg__logo { width: auto; height: 22px; margin-left: auto; padding: 2px; border-radius: 5px; background: #fff; }
.msg__thread { display: grid; align-content: end; gap: 0.7rem; padding: 1.4rem 1.4rem 1.7rem; background: radial-gradient(circle at 50% 130%, var(--accent-soft), transparent 60%); }
.msg__stamp { justify-self: center; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.msg__row { display: flex; align-items: flex-end; gap: 0.6rem; }
.msg__bubble { position: relative; max-width: min(600px, 100%); padding: 0.9rem 1.1rem; border-radius: 20px 20px 20px 6px; background: var(--surface-3); font-family: var(--font-head); font-size: clamp(0.98rem, 1.6vw, 1.1rem); font-weight: 500; line-height: 1.6; color: var(--text); transform-origin: bottom left; animation: bubbleIn 0.35s var(--ease-out); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(0.86); } }
.msg__bubble.is-typing { display: inline-flex; align-items: center; gap: 5px; padding: 0.95rem 1.05rem; }
.msg__bubble.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typingDot 1.1s ease-in-out infinite; }
.msg__bubble.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg__bubble.is-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ===== Contact ===== */
.contact { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact__bg .glow--a { top: auto; bottom: -420px; left: 50%; margin-left: -380px; }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: clamp(3rem, 7vw, 7rem); }
.contact__sub { max-width: 46ch; margin: 1.5rem 0 1.75rem; font-size: 1.08rem; color: var(--text-2); }
.engage { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.engage li { padding: 0.45rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.86rem; color: var(--text-2); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.email a { font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-out); }
.email a:hover { background-size: 100% 1px; }
.copy-email .i-check { opacity: 0; transform: scale(0.6); position: absolute; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.copy-email .i-copy { transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.copy-email.is-done { border-color: var(--ok); color: var(--ok); }
.copy-email.is-done .i-check { opacity: 1; transform: none; }
.copy-email.is-done .i-copy { opacity: 0; transform: scale(0.6); }
.email__note { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ok); }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem; transition: border-color 0.3s; }
.socials a:hover { border-color: var(--text-2); }
.socials svg { width: 16px; height: 16px; }

.mail { overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.mail__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.6rem 0.55rem 1rem; border-bottom: 1px solid var(--line); }
.mail__title { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; }
.mail__send { margin-left: auto; }
.mail__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); transition: background-color 0.3s; }
.mail__row:focus-within { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.mail__key { flex-shrink: 0; width: 64px; font-size: 0.84rem; color: var(--muted); }
.mail__to { display: flex; flex: 1 1 0; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.9rem; color: var(--text-2); }
.mail__chip { flex-shrink: 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent-soft); font-size: 0.8rem; color: var(--accent); }
.mail__addr { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mail input, .mail select, .mail textarea { min-width: 0; border: 0; outline: none; background: transparent; font-size: 0.95rem; }
.mail input, .mail select { flex: 1 1 0; padding: 0.3rem 0; }
.mail select { appearance: none; padding-right: 1.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.mail select option { background: var(--surface); color: var(--text); }
.mail input::placeholder, .mail textarea::placeholder { color: var(--muted); }
.mail textarea { display: block; width: 100%; min-height: 200px; padding: 1rem; line-height: 1.6; resize: vertical; transition: background-color 0.3s; }
.mail textarea:focus { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.mail .form-status { padding: 0 1rem 0.9rem; }
.form-status { min-height: 1.5em; font-size: 0.9rem; color: var(--text-2); }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }

/* ===== Footer ===== */
.footer { overflow: hidden; padding: 0 0 2rem; border-top: 1px solid var(--line); }
.footer__big {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-head);
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--text-2), transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.35;
}
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: 0.86rem; color: var(--muted); }
.footer__clock { font-family: var(--font-mono); font-size: 0.78rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { transition: color 0.3s; }
.footer__links a:hover { color: var(--text); }

/* ===== Project drawer ===== */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear 0.7s; }
.drawer.is-open { visibility: visible; transition: visibility 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 6, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.5s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line-2);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.7s var(--ease-out);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: sticky; top: 1rem; z-index: 2; float: right; margin: 1rem 1rem 0 0; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.drawer__body { padding: 2.25rem clamp(1.25rem, 5vw, 3.25rem) 4rem; }
.drawer__meta { margin-bottom: 0.9rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.drawer__title { margin-bottom: 1rem; font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.035em; }
.drawer__summary { margin-bottom: 1.25rem; font-size: 1.1rem; color: var(--text-2); }
.drawer__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.drawer__tags li { padding: 0.3rem 0.65rem; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); }
.drawer__cover { margin-bottom: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.drawer__cover img { width: 100%; max-height: 360px; object-fit: cover; }

.prose { color: var(--text-2); }
.prose p { margin: 0 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; font-family: var(--font-head); font-size: 1.35rem; letter-spacing: -0.02em; color: var(--text); }
.prose strong { font-weight: 600; color: var(--text); }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose video { width: 100%; margin: 1rem 0; border-radius: 14px; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; }
.prose p code, .prose li code { padding: 0.1em 0.4em; border-radius: 6px; background: var(--surface-2); color: var(--text); }

.code-cell, .output-cell {
  position: relative;
  overflow: auto;
  margin: 1.25rem 0 0.25rem;
  padding: 1rem 1rem 1rem 5.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.output-cell { margin-top: 0.25rem; background: transparent; }
.input-label, .output-label { position: absolute; left: 1rem; top: 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.output-label { color: var(--muted); }
.code-cell pre, .output-cell pre { margin: 0; padding: 0; background: none; font-size: 0.82rem; line-height: 1.6; white-space: pre; color: var(--text); }
.copy-btn { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.25rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 0.78rem; cursor: pointer; }
.token.keyword, .token.builtin { color: var(--code-fn); }
.token.string { color: var(--code-str); }
.token.function { color: var(--text); font-weight: 600; }
.token.punctuation, .token.operator { color: var(--code-punc); }
.token.number { color: var(--accent); }

.load-error { color: var(--muted); }

/* ===== Day/night view transition ===== */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ===== Responsive ===== */
/* Work window: below 1280px the notes move under the demo, so the demo keeps its width */
@media (max-width: 1279px) {
  .wk__body { grid-template-columns: 230px minmax(0, 1fr); }
  .wk__side { grid-row: 1 / span 2; }
  .wk__info { grid-column: 2; overflow: visible; border-top: 1px solid var(--line); border-left: 0; }
  .wi__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
}

@media (max-width: 1100px) {
  .nav__links a { padding: 0.4rem 0.7rem; }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk__sheet { right: -0.9rem; }
  .career__body { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu.is-open a:nth-child(8) { transition-delay: 0.28s; }
  .mobile-menu.is-open a:nth-child(9) { transition-delay: 0.32s; }

  .hero { padding-top: 64px; }
  .hero__inner, .about__inner, .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .terminal, .desk { max-width: 560px; }
  .desk { margin-top: 1.4rem; }
  .desk__sheet { right: -1rem; }
  .desk__note { left: -0.8rem; }
  .pass-wrap { padding-top: 90px; }

  .build__grid { grid-template-columns: minmax(0, 1fr); }
  .build__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }

  .career__body { grid-template-columns: minmax(0, 1fr); }
  .career__detail { border-left: 0; border-top: 1px solid var(--line); }

  /* Work window: the function list folds into a panel above the demo */
  .wk__body { grid-template-columns: minmax(0, 1fr); }
  .wk__side { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .wk__info { grid-column: auto; }
  .wk__toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.7rem 0.9rem; border: 0; background: none; font-family: var(--font-mono); font-size: 0.74rem; text-align: left; color: var(--text); cursor: pointer; }
  .wk__toggle span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .wk__toggle svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--muted); transition: transform 0.3s var(--ease-out); }
  .wk__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .wk__tree { position: static; display: none; max-height: min(60vh, 520px); padding-top: 0; }
  .wk__side.is-open .wk__tree { display: block; }


  .tile, .tile--7, .tile--5 { grid-column: span 6; }
  .tile--7, .tile--8 { grid-column: 1 / -1; }
  .hours { grid-template-columns: minmax(0, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(3)::before { left: 0; }
  .steps li { padding-bottom: 1.6rem; }

}

/* Pipeline runs top to bottom on narrow screens */
@media (max-width: 900px) {
  .pipe { grid-template-columns: minmax(0, 1fr); padding: 0.9rem; }
  .pipe__link { justify-self: center; align-self: auto; width: 2px; height: 30px; margin: 4px 0; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 11px); background-size: 2px 11px; animation-name: flowY; }
  .pipe__link::after { top: auto; right: auto; bottom: -1px; left: 50%; margin: 0 0 0 -3.5px; transform: rotate(135deg); }
  .pipe__link span { top: 0; left: 50%; margin: 0 0 0 -3.5px; animation-name: packetY; }
  .pipe__col ul { display: flex; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-bottom: 1.5rem; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-facts li { padding-bottom: 1.25rem; }
  .pl-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pl-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  /* Messages: the people become a strip above the conversation */
  .msg__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .msg__list { display: flex; gap: 0.35rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .msg__list::-webkit-scrollbar { display: none; }
  .msg__who { flex: 0 0 auto; grid-template-columns: 32px auto; gap: 0.55rem; padding: 0.5rem 0.7rem 0.6rem; }
  .msg__avatar { width: 32px; height: 32px; }
  .msg__meta em, .msg__meta small { display: none; }
  .msg__thread { min-height: 340px; padding: 1.1rem 0.9rem 1.3rem; }
  .msg__head { padding: 0.75rem 0.9rem; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .brand__name { display: none; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .desk { margin-top: 0; }
  .desk__win { display: none; }
  .pill__clock { display: none; }
  .terminal__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pass-wrap { padding-top: 80px; }
  .tile, .tile--7, .tile--5, .tile--8 { grid-column: 1 / -1; }
  .hours { padding: 1.2rem 1rem; }
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .hr__row, .hr__axis { grid-template-columns: 5.4rem minmax(0, 1fr); gap: 0.6rem; }
  .er { padding: 1.25rem 0.9rem; }
  .er .mchip { font-size: 0.66rem; padding: 0.32rem 0.5rem; }
  .er__id { font-size: 0.74rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li::before { left: 0; }
  .facts, .build__facts { grid-template-columns: minmax(0, 1fr); }
  .app__body { padding: 0.7rem; }
  .career__hint { display: none; }
  .career__chart { padding: 0.9rem 0.4rem 0.4rem; }
  .career__detail { padding: 1.2rem 1.1rem 1.1rem; }
  .mail__key { width: 58px; }
  .wk__title { display: none; }
  .wk__search { flex: 1; margin-left: 0; }
  .wk__search input, .wk__search input:focus { width: 100%; }
  .wk__top { flex-wrap: wrap; row-gap: 0.45rem; padding: 0.5rem 0.8rem; }
  .wk__stages { flex: 1 1 100%; order: 3; margin-left: 0; }
  .wk__stages button { flex: 1; padding: 0.34rem 0.3rem; }
  .wk__stages b { display: none; }
  .wk__stage { height: 620px; }
  .wk__filters { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .wk .pl__cmd { padding: 0.65rem 0.85rem; font-size: 0.7rem; }
  .wk__info { padding: 1.1rem 1rem 1.2rem; }
  .wi__cols { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .wk__foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .glow, .pass { animation: none; }
  .pipe__link span { display: none; }
}

/* ===== Walkthrough player ===== */
.wk__card-walk { display: inline-flex; align-items: center; justify-self: start; gap: 0.3rem; margin-top: 0.15rem; padding: 0.14rem 0.55rem 0.14rem 0.45rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 600; }
.wk__card-walk svg { width: 9px; height: 9px; }
.wk__walkmark { display: inline-block; margin-left: 0.35rem; color: var(--accent); vertical-align: 0.05em; }
.wk__walkmark svg { display: block; width: 8px; height: 8px; }
.wi__walk { display: flex; align-items: center; gap: 0.75rem; width: 100%; margin-top: 0.9rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.wi__walk:hover, .wi__walk:focus-visible { border-color: var(--accent); }
.wi__play { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; }
.wi__play svg { width: 15px; height: 15px; margin-left: 2px; }
.wi__walk b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.wi__walk em { display: block; font-style: normal; font-size: 0.74rem; color: var(--text-2); }

.wt {
  --paper: #e6e8ec; --ink: #16181d; --hl-head: rgba(79, 70, 229, 0.16); --hl-row: rgba(15, 157, 99, 0.15); --hl-end: rgba(214, 69, 69, 0.14); --hl-cut: #4f46e5;
  --g0: var(--accent); --g1: var(--ok); --g2: var(--amber); --g3: var(--pink); --g4: #38bdf8; --g5: var(--red); --g6: #a78bfa; --g7: #2dd4bf;
  width: min(1480px, 100vw - 32px); height: min(960px, 100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden;
}
/* The player is one dark video frame in both site themes */
.wt, :root[data-theme="light"] .wt {
  color-scheme: dark;
  --bg: #1d1e21; --bg-2: #202124; --surface: #232427; --surface-2: #2a2c31; --surface-3: #33363c;
  --line: #2f3137; --line-2: #3a3d43; --text: #f2f3f5; --text-2: #c4c7cc; --muted: #8a8f98;
  --accent: #8b93ff; --accent-soft: rgba(139, 147, 255, 0.14); --ok: #3ddc97; --amber: #f5b042; --red: #ff7a70; --pink: #f38bc8;
  --btn-bg: #f4f5f7; --btn-text: #07080a; --code-str: #a5e3b5; --code-fn: #c3c7ff; --code-punc: #7b828d; --err: #ff8a7a;
  --paper: #e6e8ec; --ink: #16181d; --g4: #38bdf8; --g6: #a78bfa; --g7: #2dd4bf;
  --vy: #ffd43b; --vg: #4ade80; --rail: clamp(220px, 19vw, 300px);
}
.wt[open] { display: flex; }
.wt::backdrop { background: rgba(4, 5, 8, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wt__win { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: var(--surface); }
.wt__top { box-sizing: border-box; display: flex; align-items: center; gap: 0.8rem; height: 48px; margin-right: var(--rail); padding: 0 22px; }
.wt__dots { display: inline-flex; gap: 7px; }
.wt__dots button { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #ff5f57; cursor: pointer; }
.wt__dots button:nth-child(2) { background: #febc2e; }
.wt__dots button:nth-child(3) { background: #28c840; }
.wt__dots button::before { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 700; line-height: 1; color: rgba(0, 0, 0, 0.55); opacity: 0; }
.wt__dots:hover button::before, .wt__dots button:focus-visible::before { opacity: 1; }
.wt__dots button:nth-child(1)::before { content: "×"; font-size: 11px; }
.wt__dots button:nth-child(2)::before { content: "–"; }
.wt__dots button:nth-child(3)::before { content: "+"; font-size: 10px; }
.wt__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.wt__title b { font-weight: 600; color: var(--text); }
.wt__now, .wt__x { display: none; }
.wt__x { place-items: center; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.wt__x:hover, .wt__x:focus-visible { border-color: var(--text-2); color: var(--text); }
.wt__x svg { width: 15px; height: 15px; }
.wt__main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); }
/* The same soft cloud shapes as the dark diagram board, on the whole picture area */
.wt__screen { display: flex; flex-direction: column; min-width: 0; min-height: 0; background:
  radial-gradient(circle at 86% 96%, #2c2e33 0 21vw, transparent calc(21vw + 1px)),
  radial-gradient(circle at 101% 71%, #2c2e33 0 11vw, transparent calc(11vw + 1px)),
  radial-gradient(circle at 68% 99%, #2c2e33 0 10vw, transparent calc(10vw + 1px)), var(--surface); }
.wt__stage { flex: 1; min-height: 0; display: flex; overflow: auto; padding: 0 20px; container-type: size; }
.wt__stage > * { margin: auto; }
.wt .fl.is-dark { border: 0; border-radius: 0; background: transparent; }
.wt .fl.is-dark .fl__logo { display: none; }
.wt__load { color: var(--muted); font-size: 0.85rem; }
.wt__say { min-height: calc(2.8em + 12px); padding: 8px 40px 4px; font-size: clamp(14px, 1.15vw, 22px); line-height: 1.4; color: var(--text); text-align: center; }
.wt__say.is-in { animation: wt-say 0.45s var(--ease-out); }
@keyframes wt-say { from { opacity: 0; transform: translateY(4px); } }
.wt__chaps { order: 1; overflow: auto; margin-top: -48px; padding: 26px 16px 22px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.wt__brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 28px; padding: 10px 0 24px; border-bottom: 1px solid var(--line); font-size: clamp(20px, 1.4vw, 27px); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.wt__brand svg { flex: none; width: clamp(44px, 3.2vw, 62px); height: clamp(44px, 3.2vw, 62px); overflow: visible; filter: drop-shadow(0 0 20px rgba(255, 212, 59, 0.32)); animation: vx-float 3.4s ease-in-out infinite; }
.wt__brand i { font-style: normal; color: var(--vy); }
.wt__chapsh { margin: 0 10px 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vy); }
.wt__chaps ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wt__chaps li { position: relative; }
.wt__chaps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: -12px; width: 2px; border-radius: 2px; background: var(--line-2); transition: background-color 0.4s; }
.wt__chaps li.is-done::after { background: var(--vg); }
.wt__chaps button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 0.92rem; text-align: left; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.wt__chaps button:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.wt__chaps time { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: #6b7079; }
.wt__ck { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--surface); font-family: var(--font-mono); font-size: 12px; font-style: normal; font-weight: 600; transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.wt__chaps .is-done button { color: var(--text-2); }
.wt__chaps .is-done .wt__ck { border-color: var(--vg); background: var(--vg); color: #0f2a18; font-size: 0; }
.wt__chaps .is-done .wt__ck::before { content: "✓"; font-size: 14px; font-weight: 800; }
.wt__chaps .is-now button { background: rgba(255, 212, 59, 0.08); color: var(--text); font-weight: 600; }
.wt__chaps .is-now .wt__ck { border-color: var(--vy); color: var(--vy); box-shadow: 0 0 0 4px rgba(255, 212, 59, 0.15); }
.wt__bar { display: none; grid-column: 2 / -1; height: 4px; overflow: hidden; border-radius: 4px; background: var(--line-2); }
.wt__chaps .is-now .wt__bar { display: block; }
.wt__bar u { display: block; width: calc(var(--p, 0) * 100%); height: 100%; background: var(--vy); }
.wt__ctrl { display: flex; align-items: center; gap: 0.55rem; padding: 8px 20px 14px; transition: opacity 0.3s; }
.wt__play { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--vy); color: #17181b; cursor: pointer; }
.wt__play svg { width: 17px; height: 17px; }
.wt__btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.wt__btn:hover, .wt__btn:focus-visible { color: var(--text); border-color: var(--text-2); }
.wt__btn svg { width: 14px; height: 14px; }
.wt__track { position: relative; flex: 1; min-width: 60px; height: 28px; margin: 0 0.3rem; }
.wt__rail { position: absolute; top: 12px; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.wt__fill { width: 0; height: 100%; background: var(--vy); }
.wt__ticks i { position: absolute; top: 10px; width: 2px; height: 8px; margin-left: -1px; background: var(--surface); pointer-events: none; }
.wt__seek { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.wt__seek::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.wt__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 7px; border: 0; border-radius: 50%; background: var(--text); }
.wt__seek::-moz-range-track { background: transparent; }
.wt__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--text); }
.wt__time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); white-space: nowrap; }
.wt__speed { flex: none; min-width: 46px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; }
.wt__speed:hover, .wt__speed:focus-visible { color: var(--text); border-color: var(--text-2); }

/* Views inside the walkthrough */
.wv { width: 100%; max-width: 940px; font-size: 0.9rem; }
.wv__cap { margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.wv--title { max-width: 720px; text-align: center; }
.wv__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.wv--title h3 { margin: 0.45rem 0 0.6rem; font-family: var(--font-mono); font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em; }
.wv__line { font-size: 1.04rem; color: var(--text-2); }
.wv__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.wv__steps li { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 0.78rem; color: var(--text-2); }
.wv__steps b { font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent); }

.wv--code { max-width: 860px; }
.wv__term { overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.wv__term .wv__cap { margin: 0; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--line); }
.wv__term pre { margin: 0; padding: 0.9rem 1rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.8; }
.wv__ln code { display: inline-block; white-space: pre; font-family: inherit; }
.wv .c-s { color: var(--code-str); }
.wv .c-c { color: var(--muted); }
.wv__args { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.55rem; margin: 0.9rem 0 0; }
.wv__args div { padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.wv__args dt { font-family: var(--font-mono); font-size: 0.76rem; color: var(--code-fn); }
.wv__args dd { margin: 0.2rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--text-2); }

.wv__tbl { overflow: hidden; margin: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.wv__tbl figcaption { padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.wv__scroll { overflow-x: auto; }
.wv__tbl table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.74rem; }
.wv__tbl th, .wv__tbl td { padding: 0.3rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; white-space: pre; }
.wv__tbl th { background: var(--surface-2); font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.wv__tbl tr:last-child td { border-bottom: 0; }
.wv__tbl .is-hl { background: var(--accent-soft); color: var(--text); }
.wv__tbl .is-add { font-weight: 600; color: var(--accent); }
.wv__tbl .wv__tone { width: 18px; padding-right: 0; }
.wv__tone i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.wv__tbl tr[data-m="hit"] td { background: color-mix(in srgb, var(--amber) 16%, transparent); }
.wv__tbl tr[data-m="ok"] td { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.wv__tbl tr[data-m="sel"] td { background: var(--accent-soft); }
.wv__tbl tr[data-m="tone"] td { background: color-mix(in srgb, var(--tone) 14%, transparent); }
.wv__tbl tr[data-m="drop"] td { opacity: 0.32; text-decoration: line-through; }
.wv__null { font-style: normal; color: var(--muted); opacity: 0.6; }
.wv__sw { display: inline-grid; }
.wv__sw > * { grid-area: 1 / 1; }
.wv__sw s { opacity: 0; }
.wv__sw b { font-weight: inherit; color: var(--accent); }
.wv__ring { margin: 0 -0.25rem; padding: 0 0.25rem; border-radius: 4px; background: color-mix(in srgb, var(--amber) 16%, transparent); box-shadow: 0 0 0 1.5px var(--amber); }
.wv__more { padding: 0.45rem 0.85rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }

.wv--files { max-width: 640px; }
.wv__files { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); list-style: none; }
.wv__files li { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--line); }
.wv__files li:last-child { border-bottom: 0; }
.wv__ext { display: grid; place-items: end center; flex: none; width: 30px; height: 36px; padding-bottom: 4px; border-radius: 4px; background: var(--muted); clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); color: #fff; font-family: var(--font-mono); font-size: 0.5rem; font-weight: 700; text-transform: uppercase; }
.wv__ext[data-ext="pdf"] { background: #d64545; }
.wv__ext[data-ext="xlsx"] { background: #1f8f55; }
.wv__ext[data-ext="dat"] { background: #4f46e5; }
.wv__ext[data-ext="txt"], .wv__ext[data-ext="json"] { background: #6b717c; }
.wv__ext[data-ext="chk"] { background: #0e7490; }
.wv__ext[data-ext="dir"] { place-items: center; padding: 0; background: none; clip-path: none; color: var(--amber); }
.wv__ext[data-ext="dir"] svg { width: 30px; height: 30px; }
.wv__fn { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.wv__fn b { overflow: hidden; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.wv__fn small { font-size: 0.72rem; color: var(--muted); }
.wv__files em { flex: none; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--surface-3); font-family: var(--font-mono); font-size: 0.66rem; font-style: normal; color: var(--text-2); white-space: nowrap; }
.wv__files li[data-st="ok"] em { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.wv__files li[data-st="ocr"] em { background: var(--accent-soft); color: var(--accent); }
.wv__files li[data-st="hit"] em { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.wv__files li[data-st="fail"] em { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.wv__files li[data-st="skip"] { opacity: 0.6; }

.wv--page { max-width: 540px; container-type: inline-size; }
.wv__paper { position: relative; padding: 1.1rem 1.2rem 1.3rem; border-radius: 6px; background: var(--paper); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2); color: var(--ink); font-family: var(--font-mono); font-size: min(0.74rem, calc(2.9cqi - 1.2px)); line-height: 1.95; }
.wv__paper.is-scan { transform: rotate(-0.7deg); filter: blur(0.35px) contrast(1.08); background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px); background-size: 5px 5px; }
.wv__pg { position: absolute; top: 0.35rem; right: 0.6rem; font-family: var(--font-sans); font-size: 0.6rem; color: #80858f; }
.wv__plines { position: relative; }
.wv__pl { position: relative; border-radius: 3px; white-space: pre; }
.wv__pl[data-k="head"] { background: var(--hl-head); box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.45); }
.wv__pl[data-k="row"] { background: var(--hl-row); }
.wv__pl[data-k="end"] { background: var(--hl-end); }
.wv__pl[data-k="cur"] { background: rgba(183, 121, 31, 0.22); }
.wv__pl[data-k="skip"] { opacity: 0.35; text-decoration: line-through; }
.wv__tag { position: absolute; top: -0.85em; right: 0; padding: 0 0.45rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--font-sans); font-size: 0.6rem; line-height: 1.6; }
.wv__cut { position: absolute; top: -0.4rem; bottom: -0.4rem; left: calc(var(--x) * 1ch); border-left: 1.5px dashed var(--hl-cut); transform-origin: top; }

.wv--log { max-width: 860px; }
.wv__log { margin: 0; padding: 0.85rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.75; list-style: none; }
.wv__log li { display: flex; gap: 0.6rem; }
.wv__log li > span { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.wv__log li > i { flex: none; width: 1ch; font-style: normal; color: var(--muted); }
.wv__log li[data-k="cmd"] > i { color: var(--accent); }
.wv__log li[data-k="cmd"] > span, .wv__log li[data-k="found"] > span { color: var(--text); }
.wv__log li[data-k="ok"] > i, .wv__log li[data-k="clean"] > i { color: var(--ok); }
.wv__log li[data-k="found"] > i, .wv__log li[data-k="warn"] > i { color: var(--amber); }
.wv__log li[data-k="fail"] > i { color: var(--red); }
.wv__log li[data-k="skip"] > span { color: var(--muted); }
.wv__log .wv__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding-left: calc(1ch + 0.6rem); color: var(--text-2); }
.wv__bart { overflow: hidden; height: 7px; border-radius: 4px; background: var(--line-2); }
.wv__bart i { display: block; width: 100%; height: 100%; background: var(--accent); }

.wv--xl { overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.wv--xl .wv__tbl { border: 0; border-radius: 0; }
.wv__xlbar { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, #1f8f55 12%, var(--surface-2)); font-family: var(--font-mono); font-size: 0.72rem; }
.wv__xlbar b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.wv__xlic { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 4px; background: #1f8f55; color: #fff; font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700; }
.wv__xltabs { display: flex; gap: 2px; padding: 0 0.6rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.wv__xltabs span { padding: 0.32rem 0.85rem; border-top: 2px solid transparent; font-size: 0.7rem; color: var(--muted); }
.wv__xltabs .is-on { border-top-color: #1f8f55; background: var(--surface); color: var(--text); }

.wv--map { max-width: 820px; }
.wv__map { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.4rem 0.7rem; margin: 0; padding: 0; list-style: none; }
.wv__map li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.8fr); align-items: center; gap: 0.2rem 0.5rem; padding: 0.42rem 0.7rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-family: var(--font-mono); font-size: 0.75rem; }
.wv__from { overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.wv__arrow { color: var(--muted); }
.wv__to { color: var(--code-fn); }
.wv__map small { grid-column: 1 / -1; font-family: var(--font-sans); font-size: 0.68rem; color: var(--muted); }
.wv__map li[data-st="new"] { border-color: var(--amber); }

.wv__pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.8rem; }
.wv__pair { padding: 0.85rem 0.95rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.wv__pn { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0; font-family: var(--font-mono); font-size: 0.82rem; }
.wv__pn + .wv__pn { border-top: 1px dashed var(--line-2); }
.wv__pn code { font-size: 0.7rem; color: var(--muted); }
.wv__verdict { margin-top: 0.6rem; font-size: 0.76rem; line-height: 1.45; color: var(--text-2); }
.wv__verdict b { display: table; margin-bottom: 0.3rem; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 600; }
.wv__pair[data-v="join"] .wv__verdict b { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.wv__pair[data-v="apart"] .wv__verdict b { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }

.wv__groups { display: grid; gap: 0.32rem; margin: 0; padding: 0; list-style: none; }
.wv__groups li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.26rem 0.7rem; border: 1px solid var(--line); border-left: 3px solid var(--tone); border-radius: 9px; background: var(--surface); }
.wv__gid { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--tone); }
.wv__words { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.wv__words i { padding: 0.06rem 0.45rem; border-radius: 6px; background: var(--surface-3); font-family: var(--font-mono); font-size: 0.72rem; font-style: normal; }
.wv__words i.is-new { background: color-mix(in srgb, var(--tone) 24%, transparent); }
.wv__groups small { display: flex; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.wv__empty { padding: 1rem; border: 1px dashed var(--line-2); border-radius: 9px; font-size: 0.78rem; color: var(--muted); text-align: center; }

.wv--stat dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin: 0; }
.wv--stat dl > div { padding: 1.1rem 1.2rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.wv--stat dt { font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; }
.wv--stat dd { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--text-2); }
.wv__foot { margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); text-align: center; }

.wv--end { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 880px; }
.wv--end section { padding: 1.1rem 1.25rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.wv--end h4 { margin-bottom: 0.65rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wv--end ul { display: grid; gap: 0.45rem; margin: 0; padding-left: 1.1rem; font-size: 0.86rem; line-height: 1.5; color: var(--text-2); }

.wv--split { display: grid; grid-template-columns: minmax(0, var(--ra)) auto minmax(0, var(--rb)); align-items: center; gap: 0.9rem; max-width: 1080px; }
.wv--split > .wv { max-width: none; }
.wv--split .wv__tbl table { font-size: 0.66rem; }
.wv--split .wv__tbl th, .wv--split .wv__tbl td { padding: 0.3rem 0.45rem; }
.wv__go { display: grid; justify-items: center; gap: 0.2rem; color: var(--accent); }
.wv__go svg { width: 22px; height: 22px; }
.wv__go small { max-width: 56px; font-family: var(--font-mono); font-size: 0.6rem; line-height: 1.3; color: var(--muted); text-align: center; }

/* Board: name cards in a 16:9 frame that slide between steps */
.wv--board { width: min(100%, calc(100cqh * 16 / 9)); max-width: none; }
.wb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: size; border: 1px solid var(--line-2); border-radius: 16px; background: radial-gradient(70% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.wb__head { position: absolute; top: 0; left: 0; right: 0; padding: 5cqh 3.4cqw 5cqh; background: linear-gradient(var(--surface) 72%, transparent); }
.wb__head span { display: block; font-family: var(--font-mono); font-size: 1.15cqw; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.wb__head h4 { margin-top: 0.5cqw; font-family: var(--font-head); font-size: 3cqw; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.wb__box { position: absolute; border: 1.5px dashed color-mix(in srgb, var(--tone) 60%, transparent); border-radius: 1.4cqw; background: color-mix(in srgb, var(--tone) 7%, transparent); }
.wb__box span { position: absolute; top: 0.8cqw; left: 1.1cqw; font-family: var(--font-mono); font-size: 1.05cqw; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone); }
.wb__card { position: absolute; padding: 0.6cqw 1.2cqw; border: 1px solid var(--line-2); border-left: 0.4cqw solid var(--tone, var(--line-2)); border-radius: 0.9cqw; background: var(--bg-2); box-shadow: 0 0.6cqw 1.6cqw -0.8cqw rgba(0, 0, 0, 0.35); font-size: 1.55cqw; font-weight: 500; line-height: 1.3; white-space: nowrap; color: var(--text); translate: -50% -50%; }
.wb__card[data-k="apart"] { border-color: color-mix(in srgb, var(--red) 55%, transparent); border-left-color: var(--red); }
.wb__card .wv__sw b { color: inherit; }
.wb__tag { position: absolute; bottom: calc(100% + 0.6cqw); left: 50%; padding: 0.15cqw 0.75cqw; border-radius: 999px; background: var(--accent); color: var(--bg); font-family: var(--font-mono); font-size: 1.1cqw; font-style: normal; font-weight: 600; white-space: nowrap; translate: -50% 0; }
.wb__tag[data-k="ok"] { background: var(--ok); }
.wb__tag[data-k="no"] { background: var(--red); }
.wb__note { position: absolute; font-family: var(--font-head); font-size: 3.6cqw; font-weight: 700; line-height: 1; color: var(--red); translate: -50% -50%; }
.wb__note[data-k="ok"] { color: var(--ok); }
.wt .wb [data-a="move"] { animation-name: wt-move; animation-duration: 1s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
.wb__cam { position: absolute; inset: 0; transform-origin: 0 0; }
.wb__head, .wb__count { z-index: 2; }
.wb__count { position: absolute; top: 4.5cqh; right: 3.4cqw; display: grid; justify-items: end; padding: 0.7cqw 1.3cqw; border: 1px solid var(--line-2); border-radius: 1.2cqw; background: var(--surface); }
.wb__count span { font-family: var(--font-mono); font-size: 1cqw; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wb__count b { display: grid; font-family: var(--font-head); font-size: 3.6cqw; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--text); }
.wb__count b i { grid-area: 1 / 1; justify-self: end; font-style: normal; }
.wb__box.is-empty { border-color: var(--line-2); background: none; }
.wb__box.is-empty span { color: var(--muted); }
.wb__card { z-index: 1; }
.wb__card.is-mini { padding: 0.4cqw 0.8cqw; border-left-width: 0.3cqw; border-radius: 0.6cqw; font-size: 1.15cqw; }
.wb__card.is-dim { opacity: 0.2; }
.wb__w { margin: 0 -0.15em; padding: 0 0.15em; border-radius: 0.3em; background: color-mix(in srgb, var(--tone) 30%, transparent); box-shadow: inset 0 -0.12em 0 var(--tone); }
.wb__sp { position: absolute; z-index: 3; translate: -50% -50%; pointer-events: none; }
.wb__sp svg { display: block; }
.wb__sp--env { width: 4.2cqw; color: var(--accent); }
.wb__sp--house { width: 6cqw; color: var(--text-2); text-align: center; }
.wb__sp--house small { display: block; margin-top: 0.3cqw; font-family: var(--font-mono); font-size: 1.05cqw; color: var(--muted); }
.wb__sp--hand { z-index: 5; width: 2.8cqw; filter: drop-shadow(0 0.3cqw 0.5cqw rgba(0, 0, 0, 0.35)); translate: -12% -8%; }
.wb__sp--ring { width: 4cqw; height: 4cqw; border: 0.3cqw solid var(--accent); border-radius: 50%; }
.wb__sp--text { font-family: var(--font-head); font-size: calc(var(--s, 3) * 1cqw); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; color: var(--text); text-align: center; }
.wb__sp--text[data-k="no"] { color: var(--red); }
.wb__sp--text[data-k="ok"] { color: var(--ok); }
.wb__sp--stamp { padding: 0.5cqw 1.3cqw; border: 0.3cqw solid var(--ok); border-radius: 0.8cqw; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ok); font-family: var(--font-mono); font-size: 1.6cqw; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; rotate: -5deg; }
.wb__sp--stamp[data-k="no"] { border-color: var(--red); color: var(--red); }
.wb__sp--check, .wb__sp--cross { display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--ok); color: var(--bg); font-size: 1.8cqw; font-weight: 700; }
.wb__sp--cross { background: var(--red); }
.wb__sp--dot { width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: var(--tone, var(--accent)); }
.wb__sp--flash { z-index: 4; width: 100cqw; height: 100cqh; translate: 0 0; background: var(--red); opacity: 0; }
.wb__sp--doc { width: 3.4cqw; color: var(--text-2); }
.wb__sp--doc small, .wb__sp--folder small { display: block; margin-top: 0.3cqw; font-family: var(--font-mono); font-size: 0.95cqw; color: var(--muted); text-align: center; white-space: nowrap; }
.wb__sp--folder { width: 8cqw; color: var(--amber); }
.wb__sp--paper, .wb__sp--grid, .wb__sp--rect { translate: none; }
.wb__sp--paper { z-index: 1; border-radius: 0.5cqw; background: var(--paper); box-shadow: 0 1cqw 2.4cqw -1.2cqw rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line-2); color: var(--ink); }
.wb__sp--paper i { position: absolute; font-family: var(--font-mono); font-size: 1.05cqw; font-style: normal; line-height: 1; white-space: pre; }
.wb__sp--paper.is-scan { filter: blur(0.22cqw) contrast(1.15) grayscale(1); background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px); background-size: 0.5cqw 0.5cqw; rotate: -0.6deg; }
.wb__sp--grid { z-index: 1; border: 1px solid var(--line-2); border-radius: 0.6cqw; background: var(--surface); overflow: hidden; }
.wb__sp--grid b, .wb__sp--grid i { position: absolute; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: 1cqw; font-style: normal; white-space: nowrap; }
.wb__sp--grid b { top: 0; background: var(--surface-2); font-weight: 600; color: var(--muted); }
.wb__sp--grid i { border-top: 1px solid var(--line); color: var(--text); }
.wb__sp--word { z-index: 4; font-family: var(--font-mono); font-size: 1.05cqw; white-space: nowrap; color: var(--accent); }
.wb__sp--rect { z-index: 2; border-radius: 0.3cqw; }
.wb__sp--rect[data-k="beam"] { background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent); box-shadow: 0 0 1.5cqw color-mix(in srgb, var(--accent) 40%, transparent); }
.wb__sp--rect[data-k="ocr"] { background: linear-gradient(transparent, color-mix(in srgb, var(--ok) 45%, transparent), transparent); box-shadow: 0 0 1.5cqw color-mix(in srgb, var(--ok) 45%, transparent); }
.wb__sp--rect[data-k="bar"] { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); }
.wb__sp--rect[data-k="stop"] { background: color-mix(in srgb, var(--red) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 60%, transparent); }
.wb__sp--rect[data-k="row"] { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.wb__sp--rect[data-k="cut"] { width: 0; border-left: 0.2cqw dashed var(--accent); border-radius: 0; transform-origin: top; }
.wb__sp--rect[data-k="mask"] { background: var(--paper); }
.wb__sp--rect[data-k="ring"] { background: none; box-shadow: inset 0 0 0 0.25cqw var(--red); border-radius: 0.4cqw; }
.wt .wb [data-a="out"] { animation-name: wt-out; animation-duration: 0.5s; }
@keyframes wt-out { to { opacity: 0; transform: scale(0.92); } }
@keyframes wt-move { from { transform: translate(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqh)); } }
.wt__sound .wt__mute { display: none; }
.wt__sound.is-muted .wt__wave { display: none; }
.wt__sound.is-muted .wt__mute { display: inline; }
.wt__sound[hidden] { display: none; }

.wt [data-a] { animation-duration: 0.5s; animation-timing-function: var(--ease-out); animation-fill-mode: both; animation-delay: var(--at, 0ms); }
.wt [data-a="in"] { animation-name: wt-in; }
.wt [data-a="row"] { animation-name: wt-row; animation-duration: 0.4s; }
.wt [data-a="pop"] { animation-name: wt-pop; animation-duration: 0.4s; }
.wt [data-a="tint"] { animation-name: wt-tint; animation-duration: 0.6s; }
.wt [data-a="fade"] { animation-name: wt-fade; animation-duration: 0.6s; }
.wt [data-a="ring"] { animation-name: wt-ring; animation-duration: 0.6s; }
.wt [data-a="old"] { animation-name: wt-old; animation-duration: 0.9s; }
.wt [data-a="new"] { animation-name: wt-new; animation-duration: 0.9s; }
.wt [data-a="cut"] { animation-name: wt-cut; }
.wt [data-a="type"] { animation-name: wt-type; animation-duration: var(--dur); animation-timing-function: steps(var(--n), end); }
.wt [data-a="fill"] { animation-name: wt-in; animation-duration: 0.3s; }
.wt [data-a="fill"] .wv__bart i { animation: wt-fill var(--dur) linear both; animation-delay: var(--at); }
@keyframes wt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes wt-row { from { opacity: 0; transform: translateX(-6px); } }
@keyframes wt-pop { from { opacity: 0; transform: scale(0.8); } }
@keyframes wt-tint { from { background-color: transparent; box-shadow: none; } }
@keyframes wt-fade { from { opacity: 1; text-decoration-color: transparent; } }
@keyframes wt-ring { from { background-color: transparent; box-shadow: 0 0 0 1.5px transparent; } }
@keyframes wt-old { 0% { opacity: 1; text-decoration-color: transparent; } 45% { opacity: 1; text-decoration-color: currentColor; } 100% { opacity: 0; } }
@keyframes wt-new { 0%, 50% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@keyframes wt-cut { from { opacity: 0; transform: scaleY(0); } }
@keyframes wt-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wt-fill { from { width: 0; } }

@media (max-width: 900px) {
  .wt { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .wt__top { margin-right: 0; }
  .wt__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .wt__chaps { margin-top: 0; padding: 0.4rem 0.5rem; border-top: 1px solid var(--line); border-left: 0; overflow-x: auto; overflow-y: hidden; }
  .wt__brand, .wt__chapsh { display: none; }
  .wt__chaps li::after { display: none; }
  .wt__chaps ol { display: flex; gap: 0.3rem; }
  .wt__chaps button { grid-template-columns: auto auto; padding: 6px 8px; white-space: nowrap; }
  .wt__chaps time, .wt__chaps .wt__bar { display: none; }
  .wt__ck { width: 22px; height: 22px; }
  .wt__say { padding: 6px 16px 2px; font-size: 0.9rem; }
  .wt__title { margin-right: auto; }
}
@media (max-width: 760px) {
  .wv--split { grid-template-columns: minmax(0, 1fr); }
  .wv__go svg { transform: rotate(90deg); }
  .wv__map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .wt__ctrl { flex-wrap: wrap; gap: 0.45rem; padding: 0.55rem 0.7rem; }
  .wt__track { order: -1; flex: 1 1 100%; margin: 0; }
  .wt__time { margin-left: auto; }
  .wt__dots { display: none; }
}

/* Walkthroughs as video cards above the Work window */
.watch { display: grid; gap: 1.1rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.watch[hidden] { display: none; }
.watch__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem; }
.watch__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.watch__head p { max-width: 60ch; font-size: 0.9rem; color: var(--text-2); }
.watch__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.watch__card { display: grid; align-content: start; gap: 0.2rem; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.watch__card:focus-visible { outline: none; }
.watch__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 0.6rem; border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(90% 120% at 100% 100%, var(--accent-soft), transparent 60%), var(--surface); transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s; }
.watch__card:hover .watch__thumb { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55); }
.watch__card:focus-visible .watch__thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.watch__kick { position: absolute; top: 1rem; left: 1.1rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.watch__result { position: absolute; top: 2.3rem; left: 1.1rem; right: 1.1rem; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.watch__chips { position: absolute; right: 1.1rem; bottom: 1rem; display: grid; justify-items: end; gap: 0.3rem; }
.watch__chips i { padding: 0.2rem 0.6rem; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 7px; background: var(--surface); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5); font-size: 0.72rem; font-style: normal; font-weight: 500; color: var(--text); transform: translateX(calc(var(--i) * -0.6rem)); }
.watch__go { position: absolute; left: 1.1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem 0.3rem 0.3rem; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-family: var(--font-mono); font-size: 0.7rem; transition: transform 0.25s var(--ease-out); }
.watch__card:hover .watch__go { transform: scale(1.04); }
.watch__play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; }
.watch__play svg { width: 11px; height: 11px; margin-left: 2px; }
.watch__card strong { font-size: 0.98rem; font-weight: 600; color: var(--text); }
.watch__line { font-size: 0.82rem; color: var(--text-2); }
.wk__watch { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.4rem; padding: 0.32rem 0.75rem 0.32rem 0.5rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: filter 0.2s; }
.wk__watch[hidden] { display: none; }
.wk__watch:hover, .wk__watch:focus-visible { filter: brightness(1.12); }
.wk__watch svg { width: 10px; height: 10px; }
.wk__watch b { font-family: var(--font-mono); font-weight: 500; opacity: 0.85; }
.wk__watch b:empty { display: none; }
@media (max-width: 640px) {
  .watch__list { grid-template-columns: minmax(0, 1fr); }
}
.wt__rotate { display: none; }
@media (max-width: 600px) and (orientation: portrait) {
  .wt__rotate { display: block; padding: 0.5rem 1rem 0; font-size: 0.75rem; color: var(--muted); text-align: center; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .wt__chaps { display: none; }
  .wt__main { grid-template-columns: minmax(0, 1fr); }
  .wt__top { height: 34px; margin-right: 0; }
  .wt__ctrl { padding-top: 0.3rem; padding-bottom: 0.3rem; }
  .wt__say { min-height: 0; padding: 0.3rem 1rem; font-size: 0.8rem; }
  .wt__stage { padding: 0 8px; }
}

/* Notebook frame in the style of JupyterLab, always light, and clean slides */
.nbx, .sl { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: size; border: 1px solid #d8dde3; border-radius: 12px; color: #1f2328; font-family: var(--font-sans); }
.nbx { background: #fff; }
.nbx__menu { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 1.6cqw; height: 4.4cqh; padding: 0 1.2cqw; border-bottom: 1px solid #e3e6ea; background: #fafbfc; font-size: 1.05cqw; color: #3d4450; }
.nbx__menu b { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: linear-gradient(135deg, #6d6af0, #9b8cf7); }
.nbx__side { position: absolute; top: 4.4cqh; bottom: 4cqh; left: 0; width: 17cqw; padding: 1.4cqh 0; border-right: 1px solid #e3e6ea; background: #f6f8fa; }
.nbx__side p { padding: 0 0.9cqw 1.2cqh; font-size: 0.95cqw; color: #57606a; }
.nbx__side ul { margin: 0; padding: 0; list-style: none; }
.nbx__f { display: flex; align-items: center; gap: 0.5cqw; height: 3.3cqh; overflow: hidden; font-size: 0.92cqw; color: #24292f; white-space: nowrap; }
.nbx__f i { flex: none; width: 0.95cqw; height: 1.2cqw; border-radius: 0.15cqw; background: #9aa5b1; }
.nbx__f.is-dir i { width: 1.2cqw; height: 0.95cqw; background: #e0a83a; }
.nbx__f.is-on { background: #dbe9ff; }
.nbx__tabs { position: absolute; top: 4.4cqh; left: 17cqw; right: 0; display: flex; align-items: flex-end; height: 4.6cqh; padding-left: 0.6cqw; border-bottom: 1px solid #e3e6ea; background: #f6f8fa; }
.nbx__tabs span { padding: 0.7cqh 1.4cqw; border: 1px solid #e3e6ea; border-top: 0.2cqw solid #6d6af0; border-bottom: 0; border-radius: 0.3cqw 0.3cqw 0 0; background: #fff; font-size: 0.95cqw; }
.nbx__tool { position: absolute; top: 9cqh; left: 17cqw; right: 0; display: flex; align-items: center; gap: 1.3cqw; height: 4.4cqh; padding: 0 1.2cqw; border-bottom: 1px solid #e3e6ea; font-size: 1.05cqw; color: #57606a; }
.nbx__mode { font-size: 0.9cqw; }
.nbx__kernel { position: relative; display: flex; align-items: center; gap: 0.6cqw; margin-left: auto; font-size: 0.9cqw; }
.nbx__dot, .nbx__busy { width: 1cqw; height: 1cqw; border-radius: 50%; }
.nbx__dot { border: 0.15cqw solid #57606a; }
.nbx__busy { position: absolute; right: 0; top: 50%; translate: 0 -50%; background: #57606a; }
.nbx__view { position: absolute; top: 13.4cqh; bottom: 4cqh; left: 17cqw; right: 0; overflow: hidden; background: #fff; }
.nbx__content { position: absolute; top: 0; left: 0; right: 0; }
.nbx__status { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 2cqw; height: 4cqh; padding: 0 1.2cqw; border-top: 1px solid #e3e6ea; background: #fafbfc; font-size: 0.85cqw; color: #57606a; }
.nbx__md { position: absolute; left: 8.8cqw; right: 3cqw; font-size: 1.6cqw; font-weight: 600; line-height: 5cqh; color: #1f2328; }
.nbx__cell { position: absolute; left: 0; right: 2cqw; }
.nbx__act { position: absolute; top: 0; bottom: 0; left: 0.5cqw; width: 0.3cqw; border-radius: 0.2cqw; background: #4f8ff7; }
.nbx__p { position: absolute; top: 1.1cqh; left: 1.2cqw; display: grid; width: 6.4cqw; font-family: var(--font-mono); font-size: 0.95cqw; line-height: 3cqh; color: #5560a8; text-align: right; }
.nbx__p i { grid-area: 1 / 1; font-style: normal; }
.nbx__in { margin-left: 8.2cqw; padding: 1.1cqh 1cqw; overflow: hidden; border: 1px solid #e1e4e8; border-radius: 0.3cqw; background: #f6f8fa; font-family: var(--font-mono); font-size: 1cqw; line-height: 3cqh; white-space: pre; color: #24292f; }
.nbx__in .c-s { color: #0a7d33; }
.nbx__in .c-c { color: #8b949e; }
.nbx__out { margin: 0.6cqh 0 0 8.2cqw; padding: 0.3cqh 1cqw; font-family: var(--font-mono); font-size: 0.92cqw; line-height: 2.8cqh; white-space: pre; color: #24292f; }
.nbx__out .is-dim { color: #57606a; }
.nbx__out .is-err { color: #cf222e; }
.nbx__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8cqw; }
.nbx__track { overflow: hidden; height: 1.4cqh; border-radius: 0.2cqw; background: #e8ebef; }
.nbx__track i { display: block; width: 100%; height: 100%; background: #2da44e; }
.nbx__shape { font-size: 0.85cqw; color: #57606a; }
.nbx__tbl { margin-top: 0.4cqh; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.85cqw; }
.nbx__tbl th, .nbx__tbl td { height: 2.7cqh; padding: 0 0.8cqw; border-bottom: 1px solid #eaeef2; text-align: left; white-space: nowrap; }
.nbx__tbl th { background: #f6f8fa; font-weight: 600; }
.nbx__time { margin: 0.2cqh 0 0 8.2cqw; padding-left: 1cqw; font-size: 0.8cqw; color: #8b949e; }
.nbx__mark { position: absolute; border: 0.25cqw solid #19b5b5; border-radius: 0.5cqw; box-shadow: 0 0 0 0.6cqw rgba(25, 181, 181, 0.14); }
.nbx__key { position: absolute; padding: 0.4cqh 0.7cqw; border: 1px solid #c9d1d9; border-bottom-width: 0.25cqw; border-radius: 0.4cqw; background: #fff; box-shadow: 0 0.6cqh 1.4cqh -0.6cqh rgba(0, 0, 0, 0.3); font-size: 0.9cqw; color: #24292f; white-space: nowrap; }
.nbx__dim { position: absolute; inset: 0; background: rgba(22, 27, 36, 0.42); }
.nbx__card { position: absolute; padding: 2.6cqh 2cqw; border-radius: 1cqw; background: #dff7f5; box-shadow: 0 2cqh 5cqh -2cqh rgba(0, 0, 0, 0.45); color: #14202b; }
.nbx__card h5 { margin: 0 0 1.4cqh; font-family: var(--font-head); font-size: 2.2cqw; font-weight: 500; letter-spacing: -0.01em; }
.nbx__card ul { margin: 0; padding-left: 1.5cqw; font-size: 1.3cqw; line-height: 1.6; }
.sl { display: flex; flex-direction: column; justify-content: center; padding: 0 8cqw; background: radial-gradient(60% 80% at 100% 0%, rgba(167, 139, 250, 0.26), transparent 62%), radial-gradient(55% 70% at 92% 100%, rgba(45, 212, 191, 0.2), transparent 60%), #fff; color: #111418; }
.sl.is-center { align-items: center; text-align: center; }
.sl__kick { margin-bottom: 1.6cqh; font-family: var(--font-mono); font-size: 1.1cqw; letter-spacing: 0.14em; text-transform: uppercase; color: #4f46e5; }
.sl__title { font-family: var(--font-head); font-size: 4.2cqw; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.sl__sub { margin-top: 1.6cqh; font-size: 1.7cqw; color: #4a505b; }
.sl__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 1cqw; margin-top: 5cqh; }
.sl.is-center .sl__flow { justify-content: center; }
.sl__flow span { padding: 1.2cqh 1.4cqw; border: 1px solid #d9dde3; border-radius: 0.8cqw; background: #fff; box-shadow: 0 1cqh 2.4cqh -1.4cqh rgba(0, 0, 0, 0.25); font-size: 1.35cqw; }
.sl__arrow { font-size: 1.4cqw; font-style: normal; color: #8b93a1; }
.sl__pts { margin: 4cqh 0 0; padding-left: 2.2cqw; font-size: 1.9cqw; line-height: 1.75; color: #1f2328; }
.sl__foot { position: absolute; bottom: 5cqh; left: 8cqw; right: 8cqw; padding-top: 1.6cqh; border-top: 1px solid #e3e6ea; font-size: 0.95cqw; color: #6b717c; text-align: left; }

/* Full screen player */
.wt__full .wt__shrink { display: none; }
.wt.is-full .wt__full .wt__grow { display: none; }
.wt.is-full .wt__full .wt__shrink { display: inline; }
.wt.is-full { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
.wt.is-max { position: fixed; inset: 0; }
/* Full screen keeps the same frame; light boards lose their card edge, controls fade while it plays */
.wt.is-full .wt__chaps { display: block; }
.wt.is-full .wt__main { grid-template-columns: minmax(0, 1fr) var(--rail); grid-template-rows: minmax(0, 1fr); }
.wt.is-full .wt__top { margin-right: var(--rail); }
.wt.is-full .wt__dots { display: inline-flex; }
.wt.is-full .wt__rotate { display: none; }
.wt.is-full.is-idle { cursor: none; }
.wt.is-full.is-idle .wt__ctrl { opacity: 0; pointer-events: none; }
/* Phones in full screen: a narrow list of ticks on the right, the mark alone on top of it */
@media (max-width: 900px) {
  .wt.is-full .wt__main { grid-template-columns: minmax(0, 1fr) 52px; }
  .wt.is-full .wt__top { height: 34px; margin-right: 52px; padding: 0 12px; }
  .wt.is-full .wt__chaps { order: 1; margin-top: -34px; padding: 8px 4px; border-top: 0; border-left: 1px solid var(--line); overflow-x: hidden; overflow-y: auto; }
  .wt.is-full .wt__brand { display: flex; margin: 0 0 10px; padding: 0 0 8px; font-size: 0; }
  .wt.is-full .wt__brand svg { width: 34px; height: 34px; }
  .wt.is-full .wt__chapsh, .wt.is-full .wt__chaps span, .wt.is-full .wt__chaps time, .wt.is-full .wt__chaps .wt__bar { display: none; }
  .wt.is-full .wt__chaps ol { display: grid; gap: 4px; }
  .wt.is-full .wt__chaps button { grid-template-columns: 1fr; justify-items: center; padding: 4px 0; }
  .wt.is-full .wt__chaps li:not(:last-child)::after { display: block; left: calc(50% - 1px); top: 30px; bottom: -6px; }
  .wt.is-full .wt__ck { width: 24px; height: 24px; }
  .wt.is-full .wt__stage { padding: 0 8px; }
  .wt.is-full .wt__say { min-height: 0; padding: 4px 16px 2px; font-size: 13px; }
  .wt.is-full .wt__ctrl { flex-wrap: nowrap; gap: 0.4rem; padding: 4px 10px 6px; }
  .wt.is-full .wt__track { order: 0; flex: 1 1 auto; margin: 0 0.2rem; }
  .wt.is-full .wt__time { margin-left: 0; }
  .wt.is-full .wt__play { width: 32px; height: 32px; }
  .wt.is-full .wt__btn, .wt.is-full .wt__speed { width: 28px; min-width: 28px; height: 28px; }
}
/* Where the browser cannot lock landscape (iPhone), full screen turns the player itself */
@media (orientation: portrait) and (max-width: 900px) {
  .wt.is-full .wt__win { position: fixed; top: 0; left: 100vw; width: 100vh; width: 100dvh; height: 100vw; transform: rotate(90deg); transform-origin: 0 0; }
}

/* The vaultix_ai mark keeps moving: it floats, bolts turn, the inner ring turns back, the spark twinkles */
:is(.fl__logo, .wt__brand) :is(.vx__bolts, .vx__dots, .vx__spark) { transform-box: fill-box; transform-origin: center; }
:is(.fl__logo, .wt__brand) .vx__bolts { animation: vx-turn 22s linear infinite; }
:is(.fl__logo, .wt__brand) .vx__dots { animation: vx-turn 14s linear infinite reverse; }
:is(.fl__logo, .wt__brand) .vx__spark { animation: vx-twinkle 2.6s ease-in-out infinite; }
:is(.fl__logo, .wt__brand) .vx__ring { animation: vx-glow 3.2s ease-in-out infinite; }
@keyframes vx-turn { to { transform: rotate(360deg); } }
@keyframes vx-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-5px) rotate(-4deg); } 65% { transform: translateY(2px) rotate(3deg); } }
@keyframes vx-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(0.55) rotate(45deg); opacity: 0.55; } }
@keyframes vx-glow { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.7; } }

/* Diagrams: boxes, connectors, moving dots, counters, bars (always light, like the slides) */
.nbx__cam { position: absolute; inset: 0; transform-origin: 0 0; }
.fl { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: size; border: 1px solid #d8dde3; border-radius: 12px; background: radial-gradient(60% 80% at 100% 0%, rgba(167, 139, 250, 0.22), transparent 62%), radial-gradient(55% 70% at 0% 100%, rgba(45, 212, 191, 0.16), transparent 60%), #fff; color: #14181f; font-family: var(--font-sans); }
.fl__head { position: absolute; top: 6cqh; left: 5cqw; right: 5cqw; }
.fl__head span { display: block; margin-bottom: 1cqh; font-family: var(--font-mono); font-size: 1.05cqw; letter-spacing: 0.14em; text-transform: uppercase; color: #4f46e5; }
.fl__head h4 { font-family: var(--font-head); font-size: 2.9cqw; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.fl__cam { position: absolute; inset: 0; transform-origin: 0 0; }
.fl__ghost { position: absolute; translate: -50% -50%; }
.fl__ghost > .fl__node { inset: 0; translate: none; }
.fl__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fl__edge { fill: none; stroke: #b9bfdc; stroke-width: 0.3; stroke-linecap: round; stroke-dasharray: 1; }
.fl__edge.is-ok { stroke: #2da44e; }
.fl__edge.is-no { stroke: #d1242f; stroke-dasharray: 0.03 0.02; }
.fl__dot { position: absolute; top: 0; left: 0; width: 0.9cqw; height: 0.9cqw; margin: -0.45cqw 0 0 -0.45cqw; border-radius: 50%; background: #6d6af0; box-shadow: 0 0 0.9cqw rgba(109, 106, 240, 0.6); }
.fl__dot.is-ok { background: #2da44e; box-shadow: 0 0 0.9cqw rgba(45, 164, 78, 0.5); }
.fl__elabel { position: absolute; padding: 0.3cqh 0.7cqw; border: 1px solid #dfe3ea; border-radius: 999px; background: #fff; font-size: 0.95cqw; color: #3d4450; white-space: nowrap; translate: -50% -50%; }
.fl__elabel.is-ok { border-color: #a7dbb6; color: #1a7f37; }
.fl__elabel.is-no { border-color: #f2b8bc; color: #cf222e; }
.fl__node { position: absolute; display: flex; align-items: center; gap: 0.9cqw; padding: 0 1cqw; border: 1px solid #dfe3ea; border-radius: 1cqw; background: #fff; box-shadow: 0 1.2cqh 3cqh -1.6cqh rgba(20, 24, 40, 0.28); translate: -50% -50%; }
.fl__ic { display: grid; place-items: center; flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: 0.7cqw; background: #eef0ff; color: #4f46e5; }
.fl__ic svg { width: 1.6cqw; height: 1.6cqw; }
.fl__tx { display: grid; min-width: 0; }
.fl__tx b { overflow: hidden; font-size: 1.2cqw; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fl__tx small { overflow: hidden; font-size: 0.95cqw; color: #59606b; text-overflow: ellipsis; white-space: nowrap; }
.fl__node.is-hub { border-color: #b9b6fb; background: #f7f7ff; }
.fl__node.is-out .fl__ic { background: #e6f6ea; color: #1a7f37; }
.fl__node.is-out { border-color: #a7dbb6; }
.fl__node.is-warn .fl__ic { background: #fdeceb; color: #cf222e; }
.fl__node.is-warn { border-color: #f2b8bc; }
.fl__node.is-row { padding: 0 0.9cqw; border-radius: 0.6cqw; font-family: var(--font-mono); box-shadow: 0 0.6cqh 1.6cqh -1cqh rgba(20, 24, 40, 0.3); }
.fl__node.is-row .fl__tx b { font-size: 1cqw; font-weight: 500; }
.fl__ring { position: absolute; inset: -0.6cqw; border: 0.25cqw solid #6d6af0; border-radius: 1.4cqw; box-shadow: 0 0 1.6cqw rgba(109, 106, 240, 0.35); }
.fl__text { position: absolute; font-family: var(--font-head); font-size: calc(var(--s) * 1cqw); font-weight: 500; line-height: 1.25; color: #14181f; translate: -50% -50%; text-align: center; }
.fl__text.is-mute { color: #59606b; font-family: var(--font-sans); font-weight: 400; }
.fl__text.is-no { color: #cf222e; }
.fl__text.is-ok { color: #1a7f37; }
.fl__count { position: absolute; display: grid; justify-items: center; translate: -50% -50%; }
.fl__count b { display: grid; font-family: var(--font-head); font-size: calc(var(--s) * 1cqw); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #14181f; }
.fl__count b i { grid-area: 1 / 1; justify-self: center; font-style: normal; }
.fl__count small { margin-top: 0.8cqh; font-size: 1.05cqw; color: #59606b; }
.fl__count.is-ok b { color: #1a7f37; }
.fl__bars { position: absolute; display: grid; gap: 1cqh; padding: 2cqh 1.6cqw; border: 1px solid #dfe3ea; border-radius: 1cqw; background: #fff; box-shadow: 0 1.2cqh 3cqh -1.6cqh rgba(20, 24, 40, 0.25); }
.fl__bars p { margin-bottom: 0.6cqh; font-size: 1.2cqw; font-weight: 600; }
.fl__brow { display: grid; grid-template-columns: 9cqw minmax(0, 1fr) 11cqw; align-items: center; gap: 0.8cqw; font-size: 0.95cqw; color: #3d4450; }
.fl__btrack { display: grid; gap: 0.4cqh; }
.fl__btrack i { display: block; height: 1.2cqh; border-radius: 0.3cqw; }
.fl__btrack .is-a { background: #b9b6fb; }
.fl__btrack .is-b { background: #6d6af0; }
.fl__brow em { font-family: var(--font-mono); font-size: 0.85cqw; font-style: normal; color: #59606b; text-align: right; }
.fl__legend { display: flex; gap: 1.6cqw; margin-top: 0.6cqh; font-size: 0.9cqw; color: #59606b; }
.fl__legend span::before { content: ""; display: inline-block; width: 0.9cqw; height: 0.9cqw; margin-right: 0.4cqw; border-radius: 0.2cqw; vertical-align: -0.1em; }
.fl__legend .is-a::before { background: #b9b6fb; }
.fl__legend .is-b::before { background: #6d6af0; }
.fl__foot { position: absolute; bottom: 3.5cqh; left: 5cqw; font-size: 0.85cqw; color: #8b919c; }

/* Dark board for the function videos: outline boxes, yellow titles, lines that end in dots */
.fl.is-dark { border-color: #2b2d31; background: radial-gradient(circle at 86% 108%, #2c2e33 0 25cqw, transparent calc(25cqw + 1px)), radial-gradient(circle at 101% 80%, #2c2e33 0 13cqw, transparent calc(13cqw + 1px)), radial-gradient(circle at 68% 112%, #2c2e33 0 12cqw, transparent calc(12cqw + 1px)), #232427; color: #f2f3f5; }
.fl__brand { position: absolute; top: 4.4cqh; left: 3.2cqw; font-size: 1.3cqw; font-weight: 500; color: #f2f3f5; }
.fl__logo { position: absolute; top: 3.4cqh; right: 3cqw; display: flex; align-items: center; gap: 0.6cqw; font-size: 1.35cqw; font-weight: 600; letter-spacing: -0.01em; color: #f2f3f5; }
.fl__logo svg { width: 2.3cqw; height: 2.3cqw; }
.fl__logo i { font-style: normal; color: #ffd43b; }
.fl__hsub { position: absolute; top: 53.4cqh; left: 0; right: 0; font-size: 1.5cqw; color: #a9adb5; text-align: center; }
.fl__hsub span { display: inline-block; }
.fl.is-dark .fl__head { top: 10.5cqh; left: 0; right: 0; text-align: center; transform-origin: 50% 0; }
.fl.is-dark .fl__head h4 { display: inline-block; font-family: var(--font-sans); font-size: 2.2cqw; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #ffd43b; }
.fl.is-dark .fl__head.is-center { top: 42.6cqh; }
.fl.is-dark .fl__head.is-center h4 { font-size: 4.4cqw; }
.fl.is-dark .fl__head p { margin-top: 1.8cqh; font-size: 1.5cqw; color: #a9adb5; }
.fl.is-dark .fl__node { --line: #d5d8de; border: 0.14cqw solid var(--line); background: rgba(255, 255, 255, 0.035); box-shadow: none; color: #f2f3f5; }
.fl.is-dark .fl__node.is-draw { border-color: transparent; }
.fl.is-dark .fl__node.is-out { --line: #4ade80; }
.fl.is-dark .fl__node.is-warn { --line: #f87171; }
.fl.is-dark .fl__node.is-ask { --line: #ffd43b; }
.fl.is-dark .fl__node.is-row { --line: rgba(255, 255, 255, 0.42); }
.fl.is-dark .fl__node.is-hub { --line: #38bdf8; background: #38bdf8; color: #0b1c26; }
.fl__ol { position: absolute; inset: -0.14cqw; width: calc(100% + 0.28cqw); height: calc(100% + 0.28cqw); overflow: visible; pointer-events: none; }
.fl__ol rect { fill: none; stroke: var(--line); stroke-width: 2.2; stroke-dasharray: 1; }
.fl.is-dark .fl__node .fl__ic { width: 2.4cqw; height: 2.4cqw; background: none; color: var(--c, #38bdf8); }
.fl.is-dark .fl__node .fl__ic svg { width: 2.3cqw; height: 2.3cqw; }
.fl.is-dark .fl__node.is-hub .fl__ic { color: #0b1c26; }
.fl__ic.is-dr svg * { stroke-dasharray: 1; }
.fl.is-dark .fl__tx b, .fl.is-dark .fl__tx small { justify-self: start; max-width: 100%; }
.fl.is-dark .fl__tx small { color: #a9adb5; }
.fl.is-dark .fl__ic svg :is(rect, circle, ellipse) { fill: color-mix(in srgb, currentColor 22%, transparent); }
.fl__chips { display: flex; gap: 0.3cqw; margin-top: 0.6cqh; }
.fl__chips i { width: 0.85cqw; height: 0.85cqw; border-radius: 0.2cqw; background: var(--c); box-shadow: 0 0 0 0.1cqw rgba(11, 28, 38, 0.45); }
.fl.is-dark .fl__text.is-note { font-family: var(--font-sans); font-style: italic; font-weight: 400; color: #a9adb5; }
.fl.is-dark .fl__node.is-hub .fl__tx small { color: #0e3446; }
.fl.is-dark .fl__node.is-row .fl__tx b { color: #e9eaec; }
.fl.is-dark .fl__ring { border-color: #ffd43b; box-shadow: 0 0 1.6cqw rgba(255, 212, 59, 0.45); }
.fl.is-dark .fl__edge { stroke: #ffd43b; stroke-width: 0.32; }
.fl.is-dark .fl__edge.is-ok { stroke: #4ade80; }
.fl.is-dark .fl__edge.is-no { stroke: #f87171; }
.fl__end { fill: #ffd43b; }
.fl__end.is-ok { fill: #4ade80; }
.fl__end.is-no { fill: #f87171; }
.fl.is-dark .fl__dot { background: #fff7d1; box-shadow: 0 0 1.2cqw #ffd43b; }
.fl.is-dark .fl__dot.is-ok { background: #dcfce7; box-shadow: 0 0 1.2cqw #4ade80; }
.fl.is-dark .fl__text { color: #f2f3f5; }
.fl.is-dark .fl__foot { color: #7d828b; }
.fl__zone { position: absolute; translate: -50% -50%; border: 0.16cqw dashed var(--zc); border-radius: 1.2cqw; }
.fl__zone em { position: absolute; left: 1.4cqw; bottom: 0; padding: 0 0.6cqw; background: #232427; color: #a9adb5; font-size: 0.95cqw; font-style: italic; translate: 0 55%; }
.fl__zone span { position: absolute; top: 0; left: 1.4cqw; padding: 0 0.6cqw; background: #232427; color: var(--zc); font-size: 1.05cqw; font-weight: 700; letter-spacing: 0.12em; translate: 0 -55%; }

/* Hero: pick a problem, watch it get solved */
:root { --cyan: #5ad1e6; --violet: #c3a6ff; }
:root[data-theme="light"] { --cyan: #0e93ab; --violet: #7c5cd6; }
.hero__title { max-width: 13ch; font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
.hero__sub b { color: var(--text); font-weight: 600; }
.hero__ask { margin: 1.4rem 0 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__ask span { margin-right: 0.35rem; color: var(--accent); }
.picks { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 40rem; margin-bottom: 1.4rem; }
.pick { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem; border: 1px solid var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 75%, transparent); font: inherit; font-size: 0.86rem; color: var(--text-2); cursor: pointer; transition: border-color 0.25s, color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out); }
.pick i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pick span { color: var(--muted); }
.pick:hover { border-color: var(--text-2); color: var(--text); transform: translateY(-1px); }
.pick[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.pick[aria-pressed="true"] span { color: var(--accent); }
.pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero__quote { max-width: 40rem; margin: 1.5rem 0 0; padding-left: 0.9rem; border-left: 2px solid var(--accent); font-size: 0.95rem; line-height: 1.5; color: var(--text-2); }
.hero__quote cite { display: block; margin-top: 0.2rem; font-size: 0.8rem; font-style: normal; color: var(--muted); }

.fx { container-type: inline-size; margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); animation: rise 1s var(--ease-out) 0.35s both; }
.fx__bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.fx__file { overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.fx__tag { flex-shrink: 0; margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--accent-soft); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--accent); }
.fx__body { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: start; gap: 0.6rem; min-height: 25rem; padding: 1rem; }
.fx[data-kind="log"] .fx__body, .fx[data-kind="steps"] .fx__body { grid-template-columns: minmax(0, 1fr); align-content: center; }
.fx__head { margin: 0 0 0.55rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fx__head b { font-weight: 500; color: var(--text); }
.fx__col ul, .fx__log, .fx__steps { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.fx__arrow { display: grid; place-items: center; align-self: center; width: 28px; height: 28px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%; color: var(--accent); }
.fx__arrow svg { width: 15px; height: 15px; }
.fx__it { opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.fx__it.is-in { opacity: 1; transform: none; }
.fx__in, .fx__out { display: flex; align-items: center; gap: 0.5rem; min-width: 0; padding: 0.32rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--text) 3%, transparent); font-size: 0.8rem; }
.fx__in { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-2); }
.fx__in > span { min-width: 0; }
.fx__in small { display: block; overflow: hidden; font-size: 0.64rem; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.fx__dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.fx__out .fx__id { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); }
.fx__out b { min-width: 0; overflow: hidden; font-weight: 600; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.fx__out em { flex-shrink: 0; margin-left: auto; font-family: var(--font-mono); font-size: 0.64rem; font-style: normal; color: var(--muted); }
.fx__out:first-child { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.fx__log li { position: relative; padding: 0.5rem 0.7rem 0.5rem 1.6rem; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--text) 3%, transparent); font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-2); }
.fx__log li::before { content: ""; position: absolute; top: 50%; left: 0.65rem; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--muted); }
.fx__log li.fx__log--ok::before { background: var(--ok); }
.fx__log li.fx__log--warn { color: var(--amber); }
.fx__log li.fx__log--warn::before { background: var(--amber); }
.fx__steps li { display: grid; grid-template-columns: 5.6rem 7.6rem minmax(0, 1fr); align-items: center; gap: 0.7rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--text) 3%, transparent); font-size: 0.82rem; color: var(--text-2); }
.fx__steps li:last-child { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.fx__step { justify-self: start; padding: 0.15rem 0.5rem; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.fx__num { font-family: var(--font-head); font-size: 1.05rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.fx__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem 0.6rem; border-top: 1px solid var(--line); }
.fx__big { margin: 0; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.fx.is-done .fx__big { opacity: 1; transform: none; }
.fx__big span { margin: 0 0.2em; font-weight: 600; color: var(--muted); }
.fx__big em { font-style: normal; color: var(--ok); }
.fx__small { max-width: 15rem; margin: 0; font-size: 0.74rem; text-align: right; color: var(--muted); }
.fx__also { padding: 0 1rem 0.9rem; font-size: 0.78rem; color: var(--muted); }
.fx__also b { font-weight: 500; color: var(--text-2); }

/* What I do: why it is safe to hand over the data */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0 0 clamp(2.5rem, 4vw, 3.5rem); padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.trust li { display: flex; align-items: flex-start; gap: 0.8rem; }
.trust svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.trust p { margin: 0; }
.trust b { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.trust span { display: block; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

/* Contact: for visitors with no project today */
.keep { max-width: 32rem; margin-top: 1.6rem; padding: 1rem 1.1rem; border: 1px dashed var(--line-2); border-radius: 14px; }
.keep__head { margin: 0; font-weight: 600; color: var(--text); }
.keep__text { margin: 0.2rem 0 0.8rem; font-size: 0.9rem; color: var(--text-2); }
.keep__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.keep__note { min-height: 1.2em; margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--ok); }

@media (max-width: 960px) {
  .fx { max-width: 640px; margin-top: 1.4rem; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .pick { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
  .fx__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .fx__arrow { justify-self: center; transform: rotate(90deg); }
  .fx__steps li { grid-template-columns: 4.8rem 6.4rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.76rem; }
  .fx__foot { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .fx__small { max-width: none; text-align: left; }
  .trust { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) { .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.fx__big { font-size: clamp(1.3rem, 2.1vw, 1.85rem); white-space: nowrap; }
@container (max-width: 600px) { .fx__out .fx__id { display: none; } }
@media (max-width: 960px) {
  .hero__inner { gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy > .pill { justify-self: start; }
  .fx { order: 1; margin: 0 0 1.4rem; }
  .hero__cta { order: 2; }
  .hero__quote { order: 3; }
}
@media (max-width: 640px) {
  .fx__col:first-child ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .fx__in { padding: 0.25rem 0.45rem; }
}
.wk__main { grid-template-columns: minmax(0, 1fr); }
.role-w { position: relative; display: inline-block; color: var(--muted); animation: wordIn 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 450ms); transition: color 0.35s; }
.role-w::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 1px; background: var(--c, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.role-w.is-on { color: var(--text); }
.role-w.is-on::after { transform: scaleX(1); }
