/* ==========================================================================
   Scenes: layout and look of each scene's pieces.
   Sizes are stage pixels (the stage is 1920×1080 and scales to the screen).
   ========================================================================== */

/* ---------- Section titles (1 · Motivation …) ---------- */
.section-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}
.section-num {
  font-size: 250px;
  font-weight: 100;
  line-height: .9;
  -webkit-text-stroke: 1.4px currentColor;
}
.section-morse { height: 30px; margin-top: 38px; font-size: 26px; color: var(--accent); }
.section-morse .morse { gap: .42em; }
.section-name { margin-top: 40px; font-size: 64px; font-weight: 500; letter-spacing: .02em; }

/* ---------- 0 · Opening title ---------- */
.op-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px;
}
.op-main {
  margin: 0;
  font-size: 92px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.op-sub {
  max-width: 1180px;
  margin: 46px 0 0;
  font-size: 40px;
  font-weight: 100;
  line-height: 1.38;
  -webkit-text-stroke: .5px currentColor;
  color: var(--ink-soft);
}
.op-sub em { font-style: normal; font-weight: 500; -webkit-text-stroke: 0; color: var(--accent); }
.op-credit {
  margin: 74px 0 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- 1 · Motivation ---------- */
.mo-plane { position: absolute; inset: 0; transform-origin: 960px 540px; pointer-events: none; }
.mo-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mo-line {
  max-width: 1500px;
  font-size: 72px;
  font-weight: 100;
  line-height: 1.25;
  -webkit-text-stroke: .8px currentColor;
  text-align: center;
  white-space: pre-wrap;
}
.mo-line.is-question {
  max-width: 1720px;
  min-height: 2.64em;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.32;
  -webkit-text-stroke: 0;
}
.mo-slot { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: -.16em; }
.mo-slot .mt-hint { top: 50%; margin-top: calc(-15px * var(--s)); -webkit-text-stroke: 0; }
.mo-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 404px;
  font-size: 24px;
  text-align: center;
  color: var(--accent);
}

/* The caret in flight between fields */
.mo-flyer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: 6px;
  height: 78px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow);
}

/* Chat bubbles: flat fills; the tail is an SVG curve that grows out of the corner */
.mo-bubble { position: absolute; left: 0; top: 0; white-space: nowrap; transform-origin: 0 0; color: #fff; }
.mo-bubble-bg { position: absolute; inset: 0; border-radius: .62em; background: var(--fill); }
.mo-bubble-text { position: relative; }
.mo-tail { position: absolute; bottom: 0; width: .5em; height: .55em; fill: var(--fill); overflow: visible; }
.mo-bubble.is-sent {
  --fill: #d9502f;
  padding: .2em .58em .26em;
  font-size: 72px;
  font-weight: 100;
  line-height: 1.25;
  -webkit-text-stroke: .8px currentColor;
}
.mo-bubble.is-sent .mo-bubble-bg { border-bottom-right-radius: .2em; }
.mo-bubble.is-sent .mo-tail { right: -.2em; }
.mo-bubble.is-received, .mo-bubble.is-dots {
  --fill: #2a2a2a;
  padding: .24em .62em .3em;
  font-size: 44px;
  font-weight: 100;
  line-height: 1.25;
  -webkit-text-stroke: .5px currentColor;
}
.mo-bubble.is-received .mo-bubble-bg, .mo-bubble.is-dots .mo-bubble-bg { border-bottom-left-radius: .2em; }
.mo-bubble.is-received .mo-tail, .mo-bubble.is-dots .mo-tail { left: -.2em; transform: scaleX(-1); }
.mo-dots { position: relative; display: flex; gap: 12px; align-items: center; height: 1.25em; }
.mo-dots i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-soft); }

/* Windows */
.mo-win { position: absolute; display: flex; flex-direction: column; text-align: left; }
.mo-win.lite {
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(36, 36, 36, .95), rgba(22, 22, 22, .95));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .13), 0 30px 70px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.mo-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding-left: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-dim);
}
.mo-ctrl { display: flex; height: 100%; }
.mo-ctrl i { position: relative; display: block; width: 58px; height: 100%; }
.mo-ctrl i::before, .mo-ctrl i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.mo-ctrl .min::before { width: 13px; height: 1.5px; background: var(--ink-dim); }
.mo-ctrl .max::before { width: 11px; height: 11px; border: 1.5px solid var(--ink-dim); border-radius: 2px; }
.mo-ctrl .close::before, .mo-ctrl .close::after { width: 15px; height: 1.5px; background: var(--ink-dim); transform: translate(-50%, -50%) rotate(45deg); }
.mo-ctrl .close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mo-field { white-space: pre-wrap; }

.mo-mail { left: 110px; top: 168px; width: 800px; height: 700px; }
.mo-fields { flex: none; padding: 10px 34px; border-bottom: 1px solid var(--line); font-size: 23px; color: var(--ink-soft); }
.mo-fields div { padding: 12px 0; }
.mo-fields div + div { border-top: 1px solid rgba(255, 255, 255, .06); }
.mo-fields b { display: inline-block; width: 118px; font-weight: 500; color: var(--ink-dim); }
.mo-mail .mo-body { padding: 34px 34px; font-size: 31px; line-height: 1.55; color: #e4e4e4; }

.mo-search {
  left: 1000px;
  top: 430px;
  width: 820px;
  height: 116px;
  border-radius: 58px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 42px;
  font-size: 40px;
}
.mo-search .mo-field { line-height: 1.2; }
.mo-icon { flex: none; width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.mo-suggest { left: 1032px; top: 566px; width: 756px; padding: 12px 0; border-radius: 22px; }
.mo-sug { display: flex; align-items: center; gap: 22px; padding: 13px 34px; font-size: 27px; color: var(--ink-dim); }
.mo-sug .mo-icon { width: 28px; height: 28px; stroke: var(--ink-dim); }
.mo-sug b { font-weight: 500; color: var(--ink); }

/* Clutter windows: one layout per app (data-kind), each tinted by --app */
.mo-clutter { --app: var(--ink-dim); color: var(--ink-soft); }
.mo-clutter[data-kind="forum"]    { --app: #e8673f; }
.mo-clutter[data-kind="channel"]  { --app: #8b7ed6; }
.mo-clutter[data-kind="doc"]      { --app: #5b8def; }
.mo-clutter[data-kind="lms"]      { --app: #d9533f; }
.mo-clutter[data-kind="terminal"] { --app: #78b92b; background: linear-gradient(180deg, rgba(16, 16, 16, .97), rgba(8, 8, 8, .97)); }
.mo-clutter[data-kind="listing"]  { --app: #4f8fe0; }
.mo-clutter[data-kind="notes"]    { --app: #e2b84a; }
.mo-clutter[data-kind="group"]    { --app: #5fb36e; }
.mo-clutter[data-kind="table"]    { --app: #e39b3b; }
.mo-clutter[data-kind="sms"]      { --app: #78b92b; }
.mo-clutter[data-kind="player"]   { --app: #5fbf72; }
.mo-clutter .mo-bar { height: 42px; padding-left: 16px; font-size: 15px; }
.mo-clutter .mo-ctrl i { width: 44px; }
.mo-mark { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 3px; background: var(--app); vertical-align: -1px; }
.mo-clutter .mo-body { padding: 14px 22px 18px; font-size: 25px; line-height: 1.45; color: #dedede; }
.mo-clutter .mo-field { color: #e2e2e2; }
.mo-ctx { display: flex; align-items: center; gap: 12px; padding: 14px 22px 0; font-size: 17px; color: var(--ink-dim); }
.mo-ctx b { font-weight: 500; color: var(--ink); }
.mo-ava {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--app); color: #111; font-size: 13px; font-weight: 500; font-style: normal;
}
.mo-tag { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.mo-foot { display: flex; align-items: center; gap: 12px; padding: 0 22px 16px; font-size: 15px; color: var(--ink-dim); }
.mo-chip { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 20px; font-size: 14px; color: var(--ink-soft); }
.mo-chip.is-due { border-color: var(--app); color: var(--app); }
.mo-btn { margin-left: auto; padding: 7px 18px; border-radius: 20px; background: var(--app); color: #111; font-size: 15px; font-weight: 500; }
.mo-split { display: flex; }
.mo-side {
  flex: none; display: flex; flex-direction: column; gap: 9px; width: 178px; padding: 16px 0 16px 18px;
  border-right: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: 15px; color: var(--ink-faint);
}
.mo-side .on { color: var(--ink); font-weight: 500; }
.mo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mo-msg { display: flex; gap: 12px; padding: 14px 18px 2px; font-size: 17px; color: var(--ink-soft); }
.mo-msg b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.mo-compose { margin: 10px 16px 16px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 22px; line-height: 1.4; }
.mo-tools { display: flex; align-items: center; gap: 18px; padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-dim); }
.mo-tools b { font-weight: 500; }
.mo-tools i { font-style: italic; }
.mo-sep { width: 1px; height: 16px; background: var(--line-strong); }
.mo-page { margin: 14px 22px 0; padding: 18px 22px; border-radius: 4px; background: rgba(255, 255, 255, .05); font-size: 22px; line-height: 1.45; }
.mo-lines i { display: block; height: 7px; margin-bottom: 9px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.mo-lines i:last-child { width: 62%; margin-bottom: 14px; }
.mo-status { padding: 8px 22px 12px; font-size: 13px; text-align: right; color: var(--ink-faint); }
.mo-box { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 22px; }
.mo-clutter .mo-mono { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 20px; line-height: 1.55; }
.mo-prompt { color: var(--app); }
.mo-hist { color: var(--ink-dim); }
.mo-photo { flex: none; display: flex; align-items: center; justify-content: center; width: 150px; margin: 16px 0 16px 18px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.mo-photo svg { width: 64px; height: 64px; fill: none; stroke: var(--ink-dim); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.mo-price { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px 4px; font-size: 15px; color: var(--ink-dim); }
.mo-price b { font-size: 26px; font-weight: 500; color: var(--ink); }
.mo-main > .mo-field { padding: 0 18px 10px; font-size: 22px; line-height: 1.4; }
.mo-main > .mo-foot { padding: 0 18px 14px; }
.mo-ruled { background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(226, 184, 74, .2) 35px 36px) 0 16px; }
.mo-thread { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px 0; }
.mo-in { max-width: 80%; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: #2c2c2c; font-size: 17px; color: var(--ink-soft); }
.mo-in b { display: block; font-size: 13px; font-weight: 500; color: var(--app); }
.mo-find { display: flex; align-items: center; gap: 12px; margin: 14px 18px 6px; padding: 8px 18px; border-radius: 24px; background: rgba(255, 255, 255, .07); font-size: 22px; }
.mo-find .mo-icon { width: 22px; height: 22px; stroke: var(--ink-dim); }
.mo-rows { padding: 4px 18px 14px; font-size: 15px; color: var(--ink-soft); }
.mo-rows div { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mo-full { color: var(--accent); font-weight: 500; }
.mo-now { display: flex; align-items: center; gap: 14px; padding: 8px 18px; font-size: 14px; color: var(--ink-dim); }
.mo-now b { display: block; font-size: 17px; font-weight: 500; color: var(--ink); }
.mo-cover { flex: none; width: 52px; height: 52px; border-radius: 6px; background: linear-gradient(135deg, var(--app), #1c3324); }
.mo-progress { display: flex; align-items: center; gap: 12px; padding: 6px 18px 16px; font-size: 12px; color: var(--ink-faint); }
.mo-progress i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.mo-progress i b { display: block; width: 32%; height: 100%; border-radius: 2px; background: var(--ink-soft); }

/* Friction: the wall, the charge, sparks, and the outlined hint */
.mo-wall {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform-origin: 50% 50%;
}
.mo-wall i { display: block; width: 12px; height: 12px; border-radius: 6px; background: var(--ink-dim); }
.mo-wall i.dash { width: 34px; }
.mo-orb {
  position: absolute;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6f0 0%, #ffb19f 18%, rgba(240, 112, 90, .75) 38%, rgba(240, 112, 90, 0) 70%);
}
.mo-ring {
  position: absolute;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}
.mo-spark {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.mo-spark.dash { width: 24px; }

.mt-hint.is-outline {
  background: rgba(10, 10, 10, .4);
  box-shadow: inset 0 0 0 2.3px rgba(237, 237, 237, .85), 0 0 46px 0 rgba(240, 112, 90, .25);
}
.mt-hint.is-outline .mt-hint-letter { color: var(--ink); font-weight: 100; -webkit-text-stroke: .8px currentColor; }
.mt-hint.is-outline .mt-hint-divider { background: rgba(255, 255, 255, .3); }
.mt-hint.is-outline .mt-hint-code i { background: transparent; box-shadow: inset 0 0 0 1.6px rgba(237, 237, 237, .7); }

/* ---------- 2 · Related work ---------- */
.rw-strike {
  position: absolute;
  height: 5px;
  margin-top: -2px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
  transform-origin: 0 50%;
}
.rw-question {
  position: absolute;
  left: 0;
  right: 0;
  top: 812px;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: pre-wrap;
}

/* A printed page: the cover lies over the page that matters */
.rw-paper { position: absolute; will-change: transform; }
.rw-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #fbfaf7;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 50px 110px rgba(0, 0, 0, .7), 0 6px 18px rgba(0, 0, 0, .45);
}
.rw-page img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.rw-zoom { position: absolute; inset: 0; transform-origin: 0 0; }
.rw-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); opacity: 0; }
.rw-mark {
  position: absolute;
  display: block;
  margin: -.25% 0 0 -.4%;
  padding: .25% .4%;
  box-sizing: content-box;
  transform-origin: 0 50%;
  border-radius: 2px;
}
.rw-mark.is-finding { background: rgba(240, 112, 90, .42); mix-blend-mode: multiply; }
.rw-mark.is-caveat { background: transparent; border-bottom: 3px solid #8a8a8a; }

/* The text panel: frosted glass above the (zoomed) page. Raise the alpha for more contrast. */
.rw-panel { position: absolute; z-index: 3; left: 930px; top: 236px; width: 880px; padding: 50px 56px 56px; }
.rw-panel > * { position: relative; }
.rw-panel > .rw-panel-bg {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, .13);
  background: rgba(17, 17, 17, .86);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);
  backdrop-filter: blur(30px) saturate(1.15);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .1), 0 40px 100px rgba(0, 0, 0, .6);
}
.rw-kicker { font-size: 19px; }
.rw-cite { margin-top: 26px; font-size: 52px; font-weight: 500; line-height: 1.15; }
.rw-title { margin-top: 18px; font-size: 27px; font-weight: 100; -webkit-text-stroke: .4px currentColor; line-height: 1.4; color: var(--ink-soft); }
.rw-venue { margin-top: 18px; font-size: 16px; }
.rw-finding {
  margin-top: 54px;
  padding-left: 30px;
  border-left: 4px solid var(--accent);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.34;
}
.rw-note { margin-top: 38px; padding-left: 34px; font-size: 30px; line-height: 1.45; color: var(--ink-soft); position: relative; }
.rw-note::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--accent);
}
.rw-note.is-but::before { width: 22px; height: 6px; top: .72em; border-radius: 3px; background: var(--ink-dim); left: -4px; }

.rw-tag { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; white-space: nowrap; text-align: center; }
.rw-tag .kicker { font-size: 14px; letter-spacing: .22em; color: var(--accent); }
.rw-tag-cite { font-size: 17px; color: var(--ink-dim); }

/* Comparison table */
.rw-table { left: 160px; top: 462px; width: 1600px; padding: 10px 28px 16px; border-radius: 20px; }
.rw-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  align-items: center;
  height: 82px;
  border-top: 1px solid var(--line);
  font-size: 29px;
}
.rw-row > span { position: relative; display: flex; justify-content: center; }
.rw-row > .rw-study { justify-content: flex-start; padding-left: 14px; }
.rw-head { height: 96px; border-top: 0; font-size: 19px; font-weight: 500; letter-spacing: .06em; color: var(--ink-dim); }
.rw-head .rw-study { font-size: 30px; font-weight: 100; -webkit-text-stroke: .4px currentColor; letter-spacing: 0; color: var(--ink); }
.rw-band {
  position: absolute;
  inset: 6px -12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(240, 112, 90, .2), rgba(240, 112, 90, .07));
  box-shadow: inset 0 0 0 1.5px rgba(240, 112, 90, .55);
  transform-origin: 0 50%;
  opacity: 0;
  visibility: hidden;
}
.rw-row.is-ours .rw-study { font-weight: 500; color: var(--accent); }
.rw-m { position: relative; display: block; width: 34px; height: 34px; }
.rw-m.is-yes { border-radius: 50%; background: var(--success); box-shadow: 0 0 18px rgba(120, 185, 43, .35); }
.rw-m.is-yes::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 7px;
  width: 8px;
  height: 15px;
  border: solid #10200a;
  border-width: 0 3.5px 3.5px 0;
  transform: rotate(45deg);
}
.rw-m.is-no::before, .rw-m.is-no::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink-dim);
  transform: translate(-50%, -50%) rotate(45deg);
}
.rw-m.is-no::after { transform: translate(-50%, -50%) rotate(-45deg); }
.rw-m.is-part::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

/* ---------- 3 · Approach: live demo (window chrome shared with .mo-bar) ---------- */
.dm-win { left: 190px; top: 170px; width: 1540px; height: 720px; display: flex; flex-direction: column; }
.dm-win .mo-bar { height: 62px; padding-left: 22px; font-size: 20px; }
.dm-app { display: flex; align-items: center; gap: 14px; }
.dm-app img { width: 30px; height: 30px; display: block; }
.dm-body {
  position: relative;
  flex: 1;
  padding: 56px 70px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #ededed;
}
.dm-ghost { color: rgba(237, 237, 237, .22); }
.dm-body .mt-hint { z-index: 2; white-space: normal; line-height: 1; }
.dm-done {
  position: absolute;
  right: 56px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  color: var(--success);
}
.dm-done .rw-m { width: 30px; height: 30px; }
.dm-done .rw-m.is-yes::after { left: 10px; top: 5px; width: 7px; height: 14px; }
.dm-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px 24px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  color: var(--ink-dim);
}
.dm-keys { display: flex; gap: 34px; align-items: center; }
.dm-key { display: inline-flex; align-items: center; gap: 12px; }
.dm-key .morse { font-size: 22px; color: var(--accent); }
kbd {
  display: inline-block;
  padding: 5px 12px 6px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .08);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.dm-win.is-keying .dm-keys { color: var(--ink); }
.dm-win.is-keying .dm-key kbd { border-color: var(--accent); color: var(--ink); }

/* ---------- Shared: page headers and line icons ---------- */
.page-head { position: absolute; left: 140px; top: 84px; }
.page-head .kicker { font-size: 20px; }
.page-head .headline { margin: 14px 0 0; font-size: 64px; }
.icon { display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- 4 · Methods: the procedure ---------- */
.me-line { position: absolute; display: block; background: var(--line-strong); }
.me-source { position: absolute; top: 262px; width: 380px; display: flex; flex-direction: column; gap: 10px; }
.me-source.is-left { left: 200px; align-items: flex-end; text-align: right; }
.me-source.is-right { left: 1340px; }
.me-source b { font-size: 28px; font-weight: 500; }

.me-people { position: absolute; display: grid; justify-items: center; align-items: center; }
.me-person { position: relative; display: block; width: 20px; height: 32px; color: #ededed; }
.me-person::before { content: ''; position: absolute; left: 5px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.me-person::after { content: ''; position: absolute; left: 1px; top: 12px; width: 18px; height: 19px; border-radius: 9px 9px 4px 4px; background: currentColor; }
.me-n { position: absolute; left: 0; right: 0; top: 378px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.me-n-big { font-size: 56px; font-weight: 500; letter-spacing: .02em; }
.me-n-val { display: inline-block; min-width: 1.25em; text-align: left; }
.me-n-who { font-size: 22px; color: var(--ink-dim); }

.me-node {
  position: absolute;
  left: 610px;
  top: 512px;
  width: 700px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.me-node b { font-size: 24px; font-weight: 500; }
.me-node span { font-size: 18px; color: var(--ink-dim); }
.me-sep { display: inline-block; width: 5px; height: 5px; margin: 0 10px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.me-side { position: absolute; top: 432px; width: 400px; display: flex; flex-direction: column; gap: 12px; }
.me-side.is-left { left: 140px; align-items: flex-start; }
.me-side.is-right { left: 1400px; }
.me-side .label { margin-bottom: 4px; font-size: 15px; }
.me-side .label .icon { width: 22px; height: 22px; margin: -4px 10px 0 0; }
.me-chip { padding: 9px 20px 10px; border-radius: 24px; border: 1.5px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-size: 21px; }
.me-expect { position: relative; padding-left: 36px; font-size: 22px; line-height: 1.5; }
.me-expect::before, .me-expect::after { content: ''; position: absolute; }
.me-expect.is-yes::before { left: 6px; top: 6px; width: 7px; height: 14px; border: solid var(--success); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.me-expect.is-no::before, .me-expect.is-no::after { left: 2px; top: 15px; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink-dim); transform: rotate(45deg); }
.me-expect.is-no::after { transform: rotate(-45deg); }

.me-assign { position: absolute; left: 976px; top: 588px; font-size: 14px; color: var(--accent); }
.me-card { padding: 20px 26px 22px; border-radius: 18px; }
.me-card-name { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 500; }
.me-card-name span { margin-left: auto; font-size: 20px; color: var(--ink-dim); }
.me-dot { display: block; width: 14px; height: 14px; border-radius: 50%; }
.me-card-desc { margin-top: 12px; font-size: 22px; white-space: nowrap; color: var(--ink-soft); }
.me-card-detail { margin-top: 6px; font-size: 18px; color: var(--ink-dim); }

.me-callout {
  position: absolute;
  left: 1180px;
  top: 100px;
  width: 600px;
  padding: 12px 0 12px 26px;
  border-left: 3px solid var(--accent);
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.me-bracket { position: absolute; top: 826px; height: 44px; }
.me-bracket i { position: absolute; left: 0; right: 0; top: 0; height: 12px; border: 2px solid var(--accent); border-top: 0; border-radius: 0 0 8px 8px; }
.me-bracket span { position: absolute; left: 0; right: 0; top: 20px; text-align: center; font-size: 19px; font-weight: 500; color: var(--accent); }
.me-tl-line { position: absolute; display: block; height: 2px; margin-top: -1px; background: var(--line-strong); }
.me-stop { position: absolute; height: 0; }
.me-stop-mark { position: absolute; display: block; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.me-stop.is-span .me-stop-mark { left: 0; top: -4px; width: 100%; height: 8px; border: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.me-stop b, .me-stop span { position: absolute; left: -110px; width: 220px; text-align: center; white-space: nowrap; }
.me-stop.is-span b, .me-stop.is-span span { left: 50%; margin-left: -110px; }
.me-stop b { bottom: 18px; font-size: 20px; font-weight: 500; }
.me-stop span { top: 18px; font-size: 19px; color: var(--ink-dim); }

/* ---------- 4 · Methods (cont'd): measures ---------- */
.me-col { position: absolute; top: 262px; width: 480px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.me-col-icon { width: 66px; height: 66px; stroke-width: 1.3; }
.me-col.is-primary .me-col-icon { color: var(--accent); }
.me-primary { font-size: 14px; }
.me-col.is-primary .me-primary { color: var(--accent); }
.me-col-name { font-size: 40px; font-weight: 500; }
.me-col-line { font-size: 24px; color: var(--ink-soft); }
.me-col-line.dim { color: var(--ink-dim); }
.me-morse { margin: 6px 0 2px; font-size: 24px; color: var(--accent); }
.me-icons { display: flex; gap: 16px; margin: 2px 0; color: var(--ink-soft); }
.me-icons .icon { width: 34px; height: 34px; }
.me-note { position: absolute; left: 0; right: 0; top: 588px; text-align: center; font-size: 22px; color: var(--accent); }
.me-rule { position: absolute; display: block; left: 200px; width: 1520px; height: 1px; background: var(--line-strong); }
.me-pipeline { position: absolute; left: 200px; top: 682px; width: 1520px; height: 106px; display: flex; align-items: center; justify-content: space-between; }
.me-pipe { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 400px; font-size: 24px; }
.me-pipe .icon { width: 44px; height: 44px; }
.me-arrow { position: relative; display: block; width: 90px; height: 2px; background: var(--ink-dim); }
.me-arrow::after { content: ''; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border: solid var(--ink-dim); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.me-plan { position: absolute; left: 200px; top: 852px; width: 1520px; }
.me-plan-title { margin-bottom: 18px; font-size: 24px; color: var(--ink-soft); }
.me-plan-bar { display: flex; gap: 10px; }
.me-phase { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.me-phase i { display: block; width: 100%; height: 10px; border-radius: 5px; background: var(--ink); }
.me-phase:nth-child(3) i { background: var(--accent); }
.me-phase b { font-size: 21px; font-weight: 500; }
.me-phase span { font-size: 16px; color: var(--ink-dim); }
.me-plan-note { margin-top: 26px; font-size: 20px; color: var(--ink-dim); }

/* ---------- 5 · Analysis ---------- */
.an-illus {
  position: absolute;
  right: 140px;
  top: 112px;
  padding: 9px 18px 10px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 22px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.an-illus.is-mini { right: auto; left: 160px; top: 930px; font-size: 14px; }
.an-row { position: absolute; left: 140px; width: 640px; display: flex; align-items: center; gap: 28px; }
.an-key-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 30px;
  font-weight: 500;
  color: #1a0d0a;
}
.an-relation { font-size: 32px; font-weight: 500; }
.an-meaning { margin-top: 6px; font-size: 22px; color: var(--ink-dim); }
.an-chart { position: absolute; inset: 0; }
.an-yaxis, .an-xaxis { position: absolute; display: block; background: var(--line-strong); }
.an-yaxis { width: 2px; }
.an-xaxis { height: 2px; }
.an-legend { position: absolute; display: flex; gap: 34px; font-size: 19px; color: var(--ink-soft); }
.an-key { display: inline-flex; align-items: center; gap: 10px; }
.an-key i { display: block; width: 26px; height: 14px; border-radius: 3px; }
.an-key i.is-gain { background: var(--ink-soft); }
.an-key i.is-retention { border: 2px solid var(--ink-soft); background: rgba(255, 255, 255, .12); }
.an-bar { position: absolute; display: block; border-radius: 6px 6px 0 0; }
.an-bar.is-gain { background: var(--c); }
.an-bar.is-retention { background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.an-group { position: absolute; width: 300px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 24px; font-weight: 500; }
.an-group i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.an-caption { position: absolute; top: 900px; text-align: center; font-size: 30px; color: var(--ink-soft); }
.an-caption b { font-weight: 500; color: var(--accent); }

.an-tile {
  top: 270px;
  width: 384px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 18px;
  font-size: 25px;
  font-weight: 500;
}
.an-tile .icon { width: 44px; height: 44px; color: var(--accent); }
.an-mini { position: absolute; left: 160px; top: 500px; width: 740px; }
.an-mini-head { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; font-size: 18px; color: var(--ink-soft); }
.an-mini-head .label { margin-right: auto; }
.an-mini-head .an-key i { width: 22px; height: 4px; border-radius: 2px; }
.an-mini svg { display: block; overflow: visible; }
.an-mini text { font-family: var(--font); font-size: 17px; fill: var(--ink-dim); }
.an-axis { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.an-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.an-line.is-optional { stroke: #ededed; }
.an-line.is-bound { stroke: var(--accent); }
.an-dot { stroke: var(--bg); stroke-width: 3; }
.an-dot.is-optional { fill: #ededed; }
.an-dot.is-bound { fill: var(--accent); }
.an-limits { position: absolute; left: 1040px; top: 520px; width: 720px; display: flex; flex-direction: column; gap: 22px; }
.an-limits .label { margin-bottom: 6px; color: var(--accent); }
.an-limit { position: relative; padding-left: 40px; font-size: 30px; line-height: 1.35; }
.an-limit::before { content: ''; position: absolute; left: 0; top: .6em; width: 22px; height: 6px; border-radius: 3px; background: var(--ink-dim); }

.an-future { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 250px; }
.an-future-title { margin-bottom: 40px; font-size: 20px; color: var(--accent); }
.an-q { font-size: 60px; font-weight: 500; line-height: 1.5; }
.an-scale { position: relative; width: 900px; height: 120px; margin-top: 120px; }
.an-track { position: absolute; left: 0; right: 0; top: 60px; display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(240, 112, 90, .15), var(--accent)); }
.an-end { position: absolute; top: 84px; font-size: 21px; color: var(--ink-dim); }
.an-end.is-less { left: 0; }
.an-end.is-more { right: 0; }
.an-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
}
.an-marker b {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 64px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  background: #e0e0e0;
  font-size: 30px;
  font-weight: 500;
  color: var(--accent-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.an-marker b::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 2px; height: 14px; margin-left: -1px; background: #e0e0e0; }

/* ---------- End ---------- */
.en-thanks { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 30px; }
.en-title { margin: 0; font-size: 156px; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }
.en-morse { display: flex; gap: 54px; margin-top: 50px; font-size: 20px; color: var(--accent); }
.en-word { display: flex; gap: 22px; }
.en-refs { position: absolute; left: 140px; top: 96px; width: 1640px; }
.en-refs-title { margin: 0 0 56px; font-size: 64px; font-weight: 500; }
.en-refs p { margin: 0 0 38px; padding-left: 48px; text-indent: -48px; font-size: 32px; line-height: 1.45; color: var(--ink-soft); }
.en-refs em { font-style: italic; color: var(--ink); }
