:root {
  color-scheme: light;
  --paper: oklch(96% 0.014 92);
  --paper-2: oklch(91% 0.022 94);
  --ink: oklch(18% 0.025 152);
  --muted: oklch(39% 0.025 148);
  --quiet: oklch(56% 0.022 140);
  --line: rgba(31, 43, 34, 0.13);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --acid: oklch(73% 0.145 127);
  --ember: oklch(58% 0.13 31);
  --blue: oklch(45% 0.072 224);
  --amber: oklch(71% 0.105 76);
  --shadow: 0 22px 70px rgba(31, 43, 34, 0.13);
  --font-display: "Avenir Next Condensed", "Avenir Next", "DIN Alternate", "DIN Condensed", "Arial Narrow", sans-serif;
  --font-body: "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Menlo", "SF Mono", "SFMono-Regular", "Courier New", monospace;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --max: 1120px;
}

/* =========================================================
   LEO + AI PERSONAL OS
   Root-only application shell. Existing pages keep their own skin.
   ========================================================= */
.leo-os-body {
  --os-ink: #091923;
  --os-blue: #176f9d;
  --os-blue-dark: #0e435f;
  --os-paper: #f7f2e7;
  --os-paper-strong: #fffdf7;
  --os-rust: #b75843;
  --os-green: #6c8d70;
  --os-yellow: #e6c957;
  --os-line: rgba(9, 25, 35, 0.18);
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--os-ink);
  background: #e6e0d4;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.leo-os-body button,
.leo-os-body a {
  font: inherit;
}

.leo-os-shell {
  width: 100%;
  min-height: 100dvh;
}

.leo-os-boot,
.leo-os-desktop {
  position: fixed;
  inset: 0;
}

.leo-os-boot {
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 74px);
  overflow: hidden;
  background: var(--os-paper);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.leo-os-boot::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(9, 25, 35, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 25, 35, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.leo-os-boot-meta {
  position: absolute;
  top: 30px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  color: rgba(9, 25, 35, 0.58);
  font: 750 11px/1.2 "SFMono-Regular", Consolas, monospace;
}

.leo-os-computer {
  position: relative;
  z-index: 1;
  width: min(1180px, 88vw, calc(152vh - 213px));
  width: min(1180px, 88vw, calc(152dvh - 213px));
  container-type: inline-size;
  transform-origin: 50% 52%;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease;
}

.leo-os-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: clamp(10px, 1.2cqw, 16px);
  border: 4px solid var(--os-ink);
  border-radius: 16px 16px 7px 7px;
  background: #10232f;
  box-shadow: 0 28px 46px rgba(9, 25, 35, 0.22);
}

.leo-os-camera {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transform: translateX(-50%);
}

.leo-os-terminal {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #edf4ee;
  background: var(--os-blue-dark);
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.leo-os-terminal::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  content: "";
  opacity: 0.09;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.14) 3px 4px);
  pointer-events: none;
}

.leo-os-terminal-bar {
  min-height: clamp(38px, 4cqw, 46px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a3147;
}

.leo-os-terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c85b4e;
}

.leo-os-terminal-bar span:nth-child(2) { background: var(--os-yellow); }
.leo-os-terminal-bar span:nth-child(3) { background: #83a880; }
.leo-os-terminal-bar b {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(10px, 1.05cqw, 12px);
  font-weight: 500;
}

.leo-os-terminal-bar em {
  margin-left: auto;
  color: var(--os-yellow);
  font-size: clamp(9px, 0.95cqw, 11px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.leo-os-terminal-body {
  position: relative;
  height: calc(100% - clamp(38px, 4cqw, 46px));
  padding: 0;
  font-size: clamp(11px, 1.6cqw, 18px);
  line-height: 1.65;
}

.leo-os-boot-panel {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 3.5cqw, 48px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.995);
  pointer-events: none;
  transition: opacity 240ms ease, transform 300ms ease, visibility 240ms ease;
}

.leo-os-body[data-os-boot-phase="power"] [data-os-boot-panel="power"],
.leo-os-body[data-os-boot-phase="post"] [data-os-boot-panel="post"],
.leo-os-body[data-os-boot-phase="identity"] [data-os-boot-panel="identity"],
.leo-os-body[data-os-boot-phase="ready"] [data-os-boot-panel="identity"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.leo-os-body[data-os-boot-phase="ready"] [data-os-boot-panel="identity"] {
  pointer-events: auto;
}

.leo-os-power-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.leo-os-power-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.leo-os-power-mark > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--os-blue-dark);
  border: 2px solid var(--os-yellow);
  background: var(--os-yellow);
  font-size: 20px;
  font-weight: 900;
}

.leo-os-power-mark div {
  display: grid;
  gap: 3px;
  text-align: left;
}

.leo-os-power-mark strong { font-size: clamp(20px, 2.4cqw, 31px); line-height: 1; }
.leo-os-power-mark small { color: rgba(255, 255, 255, 0.56); font-size: 9px; }

.leo-os-power-pulse {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.leo-os-power-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-yellow);
  opacity: 0.25;
}

.leo-os-body[data-os-boot-phase="power"] .leo-os-power-pulse i {
  animation: leo-os-power-pulse 760ms ease-in-out infinite alternate;
}

.leo-os-power-pulse i:nth-child(2) { animation-delay: 130ms !important; }
.leo-os-power-pulse i:nth-child(3) { animation-delay: 260ms !important; }

.leo-os-boot-caption,
.leo-os-post-kicker {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.leo-os-skip-hint {
  position: absolute;
  right: clamp(18px, 3.5cqw, 48px);
  bottom: clamp(15px, 2.4cqw, 28px);
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 700;
}

.leo-os-post-panel {
  display: grid;
  align-content: center;
}

.leo-os-post-kicker {
  margin: 0 0 14px;
  color: var(--os-yellow);
}

.leo-os-post-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leo-os-post-list li {
  min-height: 38px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateX(-12px);
}

.leo-os-body[data-os-boot-phase="post"] .leo-os-post-list li {
  animation: leo-os-post-row 360ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.leo-os-post-list li:nth-child(2) { animation-delay: 220ms !important; }
.leo-os-post-list li:nth-child(3) { animation-delay: 440ms !important; }
.leo-os-post-list span { color: rgba(255, 255, 255, 0.42); font-size: 9px; }
.leo-os-post-list strong { font-size: 11px; }
.leo-os-post-list em { color: var(--os-yellow); font-size: 9px; font-style: normal; font-weight: 900; }

.leo-os-post-meter {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.leo-os-post-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--os-yellow);
}

.leo-os-body[data-os-boot-phase="post"] .leo-os-post-meter i {
  animation: leo-os-post-meter 900ms 80ms ease-out forwards;
}

.leo-os-terminal-group {
  margin-bottom: 11px;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.leo-os-body[data-os-boot-phase="identity"] .leo-os-terminal-group {
  animation: leo-os-terminal-group 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.leo-os-body[data-os-boot-phase="ready"] .leo-os-terminal-group {
  opacity: 1;
  transform: none;
  animation: none;
}

.leo-os-terminal-group:nth-child(2) { animation-delay: 850ms !important; }
.leo-os-terminal-group:nth-child(3) { animation-delay: 1700ms !important; }
.leo-os-terminal-group p { margin: 0; }
.leo-os-terminal-group p span { color: var(--os-yellow); }
.leo-os-terminal-question {
  margin-bottom: 2px !important;
  color: rgba(176, 205, 181, 0.78);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0;
}
.leo-os-terminal-command {
  color: rgba(255, 255, 255, 0.92);
}
.leo-os-terminal-group .leo-os-terminal-output {
  margin: 0 0 0 21px;
  color: rgba(255, 255, 255, 0.72);
}

.leo-os-boot-progress {
  width: min(360px, 74%);
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 180ms ease;
}

.leo-os-boot-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--os-yellow);
}

.leo-os-launch {
  position: absolute;
  left: clamp(18px, 3.5cqw, 48px);
  bottom: clamp(16px, 3cqw, 38px);
  min-height: 44px;
  max-width: calc(100% - clamp(36px, 7cqw, 96px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 2px;
  color: rgba(255, 255, 255, 0.76);
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.leo-os-body[data-os-boot-phase="ready"] .leo-os-launch {
  pointer-events: auto;
  animation: leo-os-action-in 320ms 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.leo-os-launch:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 -1px 0 rgba(237, 203, 78, 0.68);
  transform: translateX(3px);
}

.leo-os-launch:active {
  transform: translateX(5px);
}

.leo-os-launch:focus-visible,
.leo-os-body button:focus-visible,
.leo-os-body a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.leo-os-launch-prompt {
  color: var(--os-yellow);
  font-size: clamp(11px, 1.4cqw, 16px);
  font-weight: 900;
}

.leo-os-launch-copy {
  display: grid;
  gap: 1px;
}

.leo-os-launch strong {
  font-size: clamp(12px, 1.25cqw, 15px);
  line-height: 1.2;
}

.leo-os-launch small {
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(8px, 0.85cqw, 10px);
  line-height: 1.2;
  text-transform: uppercase;
}

.leo-os-launch-cursor {
  width: 6px;
  height: 13px;
  margin-left: 2px;
  background: var(--os-yellow);
  opacity: 0.72;
  animation: leo-os-command-cursor 900ms steps(1, end) infinite;
}

.leo-os-hinge {
  width: 88%;
  height: 7px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: #7d8589;
}

.leo-os-base {
  position: relative;
  width: 110%;
  height: 14px;
  margin-left: -5%;
  border-radius: 2px 2px 18px 18px;
  background: #a8adaf;
  box-shadow: 0 13px 17px rgba(9, 25, 35, 0.16);
}

.leo-os-base i {
  position: absolute;
  top: 0;
  left: 44%;
  width: 12%;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: #808789;
}

.leo-os-guide {
  position: absolute;
  z-index: 4;
  right: -10px;
  bottom: -22px;
  width: clamp(190px, 26cqw, 270px);
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 100%;
  transform: translateY(12px) scale(0.96);
}

.leo-os-body[data-os-boot-phase="ready"] .leo-os-guide {
  animation: leo-os-guide-arrive 450ms 140ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.leo-os-guide-frame {
  position: absolute;
  inset: 0;
  display: block;
  background-image: url("images/leo-guide-blink-sprite.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}

.leo-os-guide-frame-closed {
  background-position: left center;
}

.leo-os-guide-frame-open {
  opacity: 0;
  background-position: right center;
  clip-path: inset(14% 24% 68% 57% round 8px);
}

.leo-os-body[data-os-boot-phase="ready"] .leo-os-guide-frame-open {
  animation: leo-os-guide-blink 7.4s 700ms ease-in-out infinite;
}

.leo-os-noscript {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 24px;
  max-width: 460px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--os-line);
}

.leo-os-body[data-os-state="launching"] .leo-os-boot-progress { opacity: 1; }
.leo-os-body[data-os-state="launching"] .leo-os-launch { pointer-events: none; opacity: 0.55; }
.leo-os-body[data-os-state="launching"] .leo-os-computer { transform: scale(1.08); }
.leo-os-body[data-os-state="desktop"] .leo-os-boot { visibility: hidden; opacity: 0; pointer-events: none; }
.leo-os-body[data-os-state="desktop"] .leo-os-boot-panel { visibility: hidden; pointer-events: none; }

@keyframes leo-os-power-pulse { to { opacity: 1; transform: scale(1.35); } }
@keyframes leo-os-post-row { to { opacity: 1; transform: none; } }
@keyframes leo-os-post-meter { to { width: 100%; } }
@keyframes leo-os-terminal-group { to { opacity: 1; transform: none; } }
@keyframes leo-os-action-in { to { opacity: 1; transform: none; } }
@keyframes leo-os-command-cursor { 50% { opacity: 0.18; } }
@keyframes leo-os-guide-arrive { to { opacity: 1; transform: none; } }
@keyframes leo-os-guide-blink {
  0%, 9%, 94%, 100% { opacity: 0; }
  17%, 48%, 56%, 84% { opacity: 1; }
  52% { opacity: 0; }
}
@keyframes leoCharacterBlink {
  0%, 31%, 88%, 100% { opacity: 0; }
  36%, 56%, 64%, 82% { opacity: 1; }
  59%, 61% { opacity: 0; }
}
@keyframes leoCharacterBreathe {
  0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}
@keyframes leo-os-app-arrive { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes leo-os-window-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes leo-os-online { 50% { opacity: 0.45; } }

.leo-os-body[data-os-state="desktop"] .leo-os-app {
  animation: leo-os-app-arrive 430ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(2) { animation-delay: 90ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(3) { animation-delay: 180ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(4) { animation-delay: 270ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(5) { animation-delay: 360ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(6) { animation-delay: 450ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(7) { animation-delay: 510ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(8) { animation-delay: 570ms; }
.leo-os-body[data-os-state="desktop"] .leo-os-app:nth-child(9) { animation-delay: 630ms; }

@media (prefers-reduced-motion: reduce) {
  .leo-os-body *,
  .leo-os-body *::before,
  .leo-os-body *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .leo-os-boot-panel,
  .leo-os-post-list li,
  .leo-os-post-meter i,
  .leo-os-terminal-group,
  .leo-os-launch,
  .leo-os-launch-cursor,
  .leo-os-guide,
  .leo-os-guide-frame-open,
  .leo-os-app { opacity: 1; transform: none; animation: none; }

  .leo-os-guide-frame-closed,
  .leo-os-guide-frame-open {
    opacity: 1 !important;
    animation: none !important;
  }

  .leo-os-companion-character,
  .leo-os-companion-frame-open {
    animation: none !important;
  }

  .leo-os-companion-frame-open {
    opacity: 1 !important;
  }
}

/* =========================================================
   CONTENT SURFACES / 2026-07-21
   Editorial notes, personal image canvas, and contact orbit.
   ========================================================= */

.full-case-pending,
.work-project-pending {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  width: max-content;
  padding: 8px 13px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: 750 12px/1 var(--font-mono);
  text-transform: uppercase;
}

.resume-route.is-pending {
  cursor: default;
  background: color-mix(in srgb, var(--paper-2) 82%, white);
}

.resume-route.is-pending > b {
  opacity: 0.45;
  transform: none;
}

.leo-os-library-route.is-pending {
  cursor: default;
  border-style: dashed;
  filter: saturate(0.55);
}

.leo-os-library-route.is-pending .leo-os-library-route-open {
  width: auto;
  color: var(--os-rust);
  font: 800 10px/1.1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

body[data-page="about.html"] {
  background: #f4f0e7;
}

body[data-page="writing.html"] {
  overflow-y: auto;
  background:
    linear-gradient(118deg, rgba(35, 78, 83, 0.16) 0 25%, transparent 25% 72%, rgba(187, 81, 62, 0.12) 72%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(19, 38, 44, 0.045) 31px 32px),
    #dde1d8;
}

body[data-page="writing.html"] .site-footer,
body[data-page="about.html"] .site-footer,
body[data-page="contact.html"] .site-footer {
  display: none;
}

.writing-studio {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 76px);
  padding: 28px 0 0;
  overflow-x: clip;
  overflow-y: visible;
  color: #13262c;
  background: transparent;
}

.writing-studio::before,
.writing-studio::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.writing-studio::before {
  inset: 18px 0 auto;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(19, 38, 44, 0.24) 0 1px, transparent 1px 42px);
}

.writing-studio::after {
  right: -8vw;
  bottom: clamp(96px, 10vh, 140px);
  width: 46vw;
  height: 56vh;
  border: 1px solid rgba(19, 38, 44, 0.16);
  background: rgba(247, 238, 218, 0.3);
  transform: rotate(-11deg);
}

.writing-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(19, 38, 44, 0.28);
}

.writing-studio-head .kicker,
.about-life-intro .kicker {
  margin: 0 0 18px;
  color: #bb513e;
}

.about-life-intro h1 {
  margin: 0;
  max-width: 8ch;
  font: 900 92px/0.82 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.writing-studio-head > p:last-child {
  margin: 0;
  color: #42565a;
  font: 800 13px/1 var(--font-mono);
  text-transform: uppercase;
}

.writing-columns {
  height: clamp(720px, calc(100dvh + 140px), 1040px);
  min-height: 720px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: 24px;
  overflow: visible;
}

.writing-column {
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px 14px 14px;
  border-top: 3px solid #13262c;
  border-bottom: 1px solid rgba(19, 38, 44, 0.2);
  background: rgba(255, 252, 244, 0.68);
  overflow: hidden;
}

.writing-column-2 { border-top-color: #c25440; }
.writing-column-3 { border-top-color: #78945e; }

.writing-column > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 15px;
  border-bottom: 1px solid rgba(19, 38, 44, 0.18);
}

.writing-column > header span {
  color: #b84f3c;
  font: 900 18px/1 var(--font-mono);
}

.writing-column > header h2 {
  margin: 0;
  letter-spacing: 0;
  font: 850 22px/1 var(--font-display);
}

.writing-column-stream {
  height: 100%;
  width: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-auto-rows: max-content;
  row-gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 4px 24px;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 38, 44, 0.72) transparent;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.writing-card {
  width: 100%;
  min-width: 0;
  min-height: max(520px, 100%);
  display: block;
  padding: 0;
  border: 1px solid rgba(19, 38, 44, 0.16);
  border-radius: 4px;
  background: rgba(255, 252, 244, 0.78);
}

html[data-shell-context="os-window"] .writing-studio {
  min-height: calc(100dvh + 220px);
}

html[data-shell-context="os-window"] .writing-columns {
  height: clamp(720px, calc(100dvh + 140px), 1040px);
  min-height: 720px;
}

.writing-card-open {
  width: 100%;
  min-height: inherit;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 2.2vw, 30px);
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.writing-card-open:focus-visible {
  outline: 3px solid #c25440;
  outline-offset: -6px;
}

.writing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.writing-card-meta b {
  font-size: 30px;
  font-weight: 900;
}

.writing-card-meta small {
  font-size: 10px;
  font-weight: 750;
}

.writing-card-copy strong {
  display: block;
  margin: clamp(52px, 8vh, 86px) 0 18px;
  font: 850 clamp(29px, 3vw, 42px)/0.98 var(--font-display);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.writing-card-copy > span {
  display: block;
  margin: 0;
  color: #385055;
  font-size: 15px;
  line-height: 1.55;
}

.writing-card-arrow {
  justify-self: end;
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease;
}

.writing-card-open:hover .writing-card-arrow { transform: translate(3px, -3px); }

.writing-preview {
  width: min(620px, calc(100vw - 32px));
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(19, 38, 44, 0.32);
  border-radius: 4px;
  color: #13262c;
  background: #fffaf0;
  box-shadow: 0 24px 80px rgba(19, 38, 44, 0.3);
}

.writing-preview::backdrop { background: rgba(19, 38, 44, 0.58); backdrop-filter: blur(4px); }
.writing-preview form { position: absolute; top: 14px; right: 14px; }
.writing-preview-close { width: 40px; height: 40px; border: 1px solid rgba(19, 38, 44, 0.24); background: transparent; font-size: 24px; cursor: pointer; }
.writing-preview > p:first-of-type { margin: 0 0 18px; color: #b84f3c; font: 900 14px/1 var(--font-mono); }
.writing-preview h2 { margin: 0; max-width: 12ch; font: 850 clamp(38px, 7vw, 68px)/0.94 var(--font-display); letter-spacing: 0; }
.writing-preview h2 + p { margin: 28px 0 38px; max-width: 48ch; color: #385055; line-height: 1.7; }
.writing-preview > small { font: 750 11px/1.4 var(--font-mono); text-transform: uppercase; color: #64777a; }

.about-life {
  --about-ink: #173035;
  --about-rust: #b8543f;
  --about-green: #6f8c68;
  min-height: calc(100dvh - 76px);
  padding: clamp(54px, 7vw, 96px) 0 104px;
  overflow-x: clip;
  color: var(--about-ink);
  background:
    linear-gradient(rgba(23, 48, 53, 0.045) 1px, transparent 1px) 0 0 / 100% 52px,
    #f4eadc;
}

.about-life-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.about-life-intro > * {
  min-width: 0;
}

.about-life-intro h1 {
  grid-column: 1 / span 9;
  grid-row: 2;
  max-width: 11ch;
  margin: 0;
  font: 850 clamp(64px, 8.4vw, 126px)/0.84 var(--font-display);
  letter-spacing: 0;
}

.about-life-intro .kicker {
  grid-column: 1 / span 4;
  grid-row: 1;
}

.about-life-intro-copy {
  grid-column: 10 / span 3;
  grid-row: 2;
  align-self: end;
  padding: 0 0 7px 18px;
  border-left: 4px solid var(--about-rust);
}

.about-life-intro-copy p {
  margin: 0;
  color: #3d585e;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}

.about-life-intro-copy span {
  display: block;
  margin-top: 20px;
  color: var(--about-rust);
  font: 800 10px/1.25 var(--font-mono);
  text-transform: uppercase;
}

.about-life-chapters {
  border-top: 1px solid rgba(23, 48, 53, 0.22);
}

.about-chapter {
  position: relative;
  padding: clamp(58px, 7vw, 96px) 0;
  border-bottom: 1px solid rgba(23, 48, 53, 0.2);
}

.about-chapter:nth-child(2) { background: rgba(220, 231, 210, 0.52); }
.about-chapter:nth-child(3) { background: rgba(211, 229, 234, 0.5); }
.about-chapter:nth-child(4) { background: rgba(239, 211, 199, 0.42); }

.about-chapter-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  margin-bottom: 42px;
}

.about-chapter-head > span {
  grid-column: 1;
  color: var(--about-rust);
  font: 850 13px/1 var(--font-mono);
}

.about-chapter-head > div { grid-column: 2 / span 7; }

.about-chapter-head > div > p {
  margin: 0 0 12px;
  color: var(--about-green);
  font: 800 11px/1 var(--font-mono);
  text-transform: uppercase;
}

.about-chapter-head h2 {
  max-width: 13ch;
  margin: 0;
  font: 850 clamp(42px, 5.4vw, 78px)/0.92 var(--font-display);
  letter-spacing: 0;
}

.about-chapter-head > p {
  grid-column: 9 / span 4;
  margin: 25px 0 0;
  color: #435d61;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 30px 24px;
}

.about-photo {
  --about-tilt: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  transform: rotate(var(--about-tilt));
  transform-origin: center;
}

.about-photo:nth-child(3n + 1) { --about-tilt: -0.35deg; }
.about-photo:nth-child(3n + 2) { --about-tilt: 0.3deg; }

.about-photo-frame {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 48, 53, 0.17);
  border-radius: 4px;
  background: #d9dfd6;
  box-shadow: 0 16px 34px rgba(23, 48, 53, 0.1);
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.about-photo:hover img { transform: scale(1.025); filter: saturate(1.04); }

.about-photo figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  padding-top: 12px;
  color: var(--about-ink);
}

.about-photo figcaption span {
  max-width: 20ch;
  color: #5b7173;
  font: 750 9px/1.35 var(--font-mono);
  text-transform: uppercase;
}

.about-photo figcaption strong {
  max-width: 18ch;
  text-align: right;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.15;
}

.about-photo--hero { grid-column: span 7; grid-row: span 9; }
.about-photo--tall { grid-column: span 5; grid-row: span 9; }
.about-photo--small { grid-column: span 5; grid-row: span 6; }
.about-photo--wide { grid-column: span 7; grid-row: span 6; }
.about-photo--half { grid-column: span 6; grid-row: span 7; }
.about-photo--ribbon { grid-column: 1 / -1; grid-row: span 7; }
.about-photo--tall-narrow { grid-column: span 4; grid-row: span 9; }
.about-chapter--small-detours .about-photo--hero { grid-column: span 8; }
.about-chapter--small-detours .about-photo--wide { grid-column: span 7; }
.about-photo[data-source-photo="01"] img { object-position: 50% 38%; }
.about-photo[data-source-photo="03"] img { object-position: 50% 34%; }
.about-photo[data-source-photo="06"] img { object-position: 50% 44%; }
.about-photo[data-source-photo="09"] img { object-position: 50% 42%; }
.about-photo[data-source-photo="17"] img { object-position: 50% 43%; }
.about-photo[data-source-photo="23"] img { object-position: 50% 48%; }

[data-about-gallery].is-enhanced .about-photo {
  opacity: 0;
  transform: translateY(24px) rotate(var(--about-tilt));
  transition: opacity 620ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-about-gallery].is-enhanced .about-photo.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--about-tilt));
}

.about-life-outro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding-top: clamp(70px, 9vw, 130px);
}

.about-life-outro span {
  grid-column: 1 / span 3;
  color: var(--about-rust);
  font: 800 11px/1 var(--font-mono);
  text-transform: uppercase;
}

.about-life-outro p {
  grid-column: 4 / span 8;
  margin: 0;
  font: 850 clamp(42px, 6vw, 88px)/0.92 var(--font-display);
  letter-spacing: 0;
}

body[data-page="contact.html"] {
  color: #15352b;
  background: #dfe7da;
}

body[data-page="contact.html"] .app-context-header {
  color: #17372d;
}

body[data-page="contact.html"] .app-context-name small {
  color: #607466;
}

body[data-page="contact.html"] .desktop-return {
  color: #3d5d50;
}

.contact-universe {
  position: relative;
  min-height: calc(100dvh - 76px);
  overflow: hidden;
  isolation: isolate;
  background: #dfe7da;
}

.contact-universe::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("images/about-life/forest-walk.jpg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.contact-universe::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 1px solid rgba(24, 55, 44, 0.18);
  background: rgba(236, 241, 231, 0.72);
  pointer-events: none;
}

.contact-system {
  min-height: calc(100dvh - 76px);
  width: min(100%, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  padding: 34px clamp(44px, 6vw, 92px);
}

.contact-intro {
  position: relative;
  z-index: 5;
  align-self: center;
}

.contact-intro .kicker {
  margin: 0 0 22px;
  color: #a84637;
}

.contact-intro h1 {
  margin: 0;
  font: 900 clamp(68px, 7vw, 112px)/0.88 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-intro h1 + p {
  max-width: 30ch;
  margin: 34px 0 0;
  color: #38554b;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.45;
}

.contact-intro small {
  display: block;
  max-width: 34ch;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 53, 43, 0.3);
  color: #526a61;
  font: 750 11px/1.6 var(--font-mono);
  text-transform: uppercase;
}

.contact-orbit {
  position: relative;
  width: min(610px, 48vw, calc(100dvh - 150px));
  aspect-ratio: 1;
  margin-inline: auto;
}

.contact-orbit-ring {
  position: absolute;
  border: 1px solid rgba(65, 108, 80, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.contact-orbit-ring-one { inset: 10%; }
.contact-orbit-ring-two { inset: 25%; border-color: rgba(181, 94, 69, 0.34); }

.contact-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 29%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 5px solid #d2a63c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #f7f2e5;
  box-shadow: 0 18px 44px rgba(33, 71, 51, 0.2);
}

.contact-core img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.contact-core figcaption { position: absolute; inset: auto 0 0; padding: 10px; text-align: center; color: #17372d; background: #ddb853; font: 800 10px/1 var(--font-mono); text-transform: uppercase; }

.contact-satellite {
  position: absolute;
  z-index: 4;
  width: 98px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(24, 55, 44, 0.28);
  border-radius: 50%;
  color: #17372d;
  background: #f5f3e9;
  box-shadow: 0 10px 26px rgba(33, 71, 51, 0.16);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  animation: contact-satellite-float 4.8s ease-in-out infinite;
}

.contact-satellite-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.contact-satellite-icon svg { width: 100%; height: 100%; display: block; }
.contact-satellite strong { font-size: 9px; letter-spacing: 0; }
.contact-satellite-1 { top: 1%; left: calc(50% - 49px); }
.contact-satellite-2 { top: 25%; right: 0; animation-delay: -0.8s; }
.contact-satellite-3 { right: 13%; bottom: 4%; animation-delay: -1.6s; }
.contact-satellite-4 { bottom: 4%; left: 13%; animation-delay: -2.4s; }
.contact-satellite-5 { top: 25%; left: 0; animation-delay: -3.2s; }
.contact-satellite-1 { background: #edf2e8; }
.contact-satellite-2 { background: #f1ded5; }
.contact-satellite-3 { background: #dae7e5; }
.contact-satellite-4 { background: #f2e9c8; }
.contact-satellite-5 { background: #e5ddd4; }

.contact-satellite:hover,
.contact-satellite:focus-visible {
  color: #fffaf0;
  border-color: #17372d;
  background: #17372d;
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.04);
}
@keyframes contact-satellite-float { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }

@media (max-width: 820px) {
  .writing-studio { padding-top: 22px; overflow-x: clip; overflow-y: visible; }
  .writing-columns { width: calc(100% - 28px); max-width: calc(100% - 28px); height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .writing-column { width: 100%; min-width: 0; max-width: 100%; height: max(560px, 68vh); min-height: 560px; }
  .writing-column > header,
  .writing-column-stream,
  .writing-card,
  .writing-card-open,
  .writing-card-copy,
  .writing-card-copy strong,
  .writing-card-copy > span { min-width: 0; max-width: 100%; }
  .writing-card-copy strong,
  .writing-card-copy > span { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
  .writing-column-stream { max-height: 62vh; }
  .writing-card { min-height: 52vh; }
  .about-life { padding-top: 48px; }
  .about-life-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .about-life-intro .kicker,
  .about-life-intro h1,
  .about-life-intro-copy { grid-column: 1; grid-row: auto; max-width: 48ch; }
  .about-life-intro h1 { font-size: clamp(58px, 13vw, 92px); }
  .about-chapter-head { grid-template-columns: 52px minmax(0, 1fr); }
  .about-chapter-head > span { grid-column: 1; }
  .about-chapter-head > div { grid-column: 2; }
  .about-chapter-head > p { grid-column: 2; margin-top: 0; max-width: 46ch; }
  .about-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 34px 18px; }
  .about-photo--hero,
  .about-photo--tall,
  .about-photo--small,
  .about-photo--wide,
  .about-photo--half,
  .about-photo--ribbon,
  .about-photo--tall-narrow,
  .about-chapter--small-detours .about-photo--hero,
  .about-chapter--small-detours .about-photo--wide { grid-column: span 1; grid-row: auto; }
  .about-photo-frame { aspect-ratio: 4 / 5; }
  .about-photo--hero,
  .about-photo--wide,
  .about-photo--ribbon { grid-column: 1 / -1; }
  .about-photo--hero .about-photo-frame,
  .about-photo--wide .about-photo-frame,
  .about-photo--ribbon .about-photo-frame { aspect-ratio: 16 / 10; }
  .about-life-outro span { grid-column: 1 / span 3; }
  .about-life-outro p { grid-column: 4 / -1; }

  .contact-system {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 42px 36px;
  }
  .contact-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(260px, 1fr);
    align-items: end;
    gap: 24px;
  }
  .contact-intro .kicker,
  .contact-intro small { grid-column: 1 / -1; }
  .contact-intro .kicker { margin-bottom: 0; }
  .contact-intro h1 { font-size: clamp(70px, 13vw, 104px); }
  .contact-intro h1 + p { margin: 0; }
  .contact-intro small { margin-top: 0; }
  .contact-orbit { width: min(560px, 82vw, calc(100dvh - 320px)); min-width: 420px; }
}

@media (max-width: 520px) {
  .writing-studio-head { align-items: flex-start; }
  .writing-studio-head > p:last-child { max-width: 12ch; text-align: right; line-height: 1.3; }
  .writing-columns { margin-top: 16px; gap: 22px; }
  .writing-column { height: max(560px, 72vh); min-height: 560px; padding-inline: 10px; }
  .writing-column-stream { max-height: 66vh; }
  .writing-card { min-height: 58vh; padding: 22px; }
  .writing-card-copy strong { margin-top: 44px; font-size: 30px; }
  .about-life { padding-top: 36px; }
  .about-life-intro { padding-bottom: 48px; }
  .about-life-intro h1 { font-size: clamp(52px, 17vw, 76px); }
  .about-life-intro-copy { padding-left: 14px; }
  .about-chapter { padding: 48px 0 58px; }
  .about-chapter-head { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
  .about-chapter-head h2 { font-size: clamp(38px, 12vw, 58px); }
  .about-photo-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .about-photo--hero,
  .about-photo--tall,
  .about-photo--small,
  .about-photo--wide,
  .about-photo--half,
  .about-photo--ribbon,
  .about-photo--tall-narrow,
  .about-chapter--small-detours .about-photo--hero,
  .about-chapter--small-detours .about-photo--wide { grid-column: 1; }
  .about-photo-frame,
  .about-photo--hero .about-photo-frame,
  .about-photo--wide .about-photo-frame,
  .about-photo--ribbon .about-photo-frame { aspect-ratio: 4 / 5; }
  .about-photo { --about-tilt: 0deg; }
  .about-photo figcaption { gap: 14px; }
  .about-life-outro { grid-template-columns: 1fr; gap: 20px; padding-top: 68px; }
  .about-life-outro span,
  .about-life-outro p { grid-column: 1; }
  .about-life-outro p { font-size: clamp(42px, 13vw, 62px); }

  .contact-universe { overflow: visible; }
  .contact-universe::after { inset: 10px; }
  .contact-system { min-height: calc(100dvh - 62px); grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 24px 38px; }
  .contact-intro { display: block; }
  .contact-intro h1 { font-size: clamp(72px, 23vw, 108px); }
  .contact-intro h1 + p { margin-top: 24px; font-size: 17px; }
  .contact-intro small { margin-top: 22px; }
  .contact-orbit { width: min(326px, calc(100vw - 64px)); min-width: 0; }
  .contact-satellite { width: 68px; padding: 7px; }
  .contact-satellite-1 { left: calc(50% - 34px); }
  .contact-satellite-icon { width: 22px; height: 22px; }
  .contact-satellite strong { font-size: 8px; }
  .contact-core { width: 32%; border-width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .writing-column-stream { scroll-behavior: auto; }
  [data-about-gallery].is-enhanced .about-photo,
  [data-about-gallery].is-enhanced .about-photo.is-visible,
  .about-photo img,
  .contact-satellite { transition: none; animation: none; }
  [data-about-gallery].is-enhanced .about-photo,
  [data-about-gallery].is-enhanced .about-photo.is-visible { opacity: 1; transform: rotate(var(--about-tilt)); }
}

/* OS navigation ownership: application documents no longer carry a second app switcher. */
.site-nav {
  display: none;
}

.app-context-header {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
}

.app-context-name {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.app-context-name > span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 4px;
  font: 800 10px/1 var(--font-mono);
}

.app-context-name small,
.app-context-name strong {
  display: block;
}

.app-context-name small {
  color: var(--quiet);
  font: 700 8px/1.2 var(--font-mono);
}

.app-context-name strong {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.1;
}

.desktop-return {
  min-height: 40px;
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.desktop-return span {
  font-family: var(--font-mono);
}

.desktop-return strong {
  font-size: 12px;
}

.desktop-return:hover {
  background: var(--ink);
  color: var(--paper);
}

.desktop-return:active {
  transform: scale(0.96);
}

.desktop-return:focus-visible {
  outline: 3px solid rgba(83, 178, 71, 0.72);
  outline-offset: 3px;
}

body[data-page="full.html"] .app-context-name,
body[data-page="full.html"] .desktop-return {
  color: var(--paper);
}

body[data-page="full.html"] .app-context-name small {
  color: rgba(247, 244, 236, 0.56);
}

body[data-page="full.html"] .desktop-return:hover {
  background: var(--paper);
  color: var(--ink);
}

.full-chapter-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-shell-context="os-window"] .app-context-header,
html[data-shell-context="os-window"] .site-footer {
  display: none !important;
}

@media (max-width: 640px) {
  .app-context-header,
  .resume-body .app-context-header,
  body[data-page="full.html"] .app-context-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 8px 12px;
  }

  .app-context-header .brand {
    min-height: 40px;
  }

  .app-context-name {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  }

  .desktop-return {
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
  }

  .desktop-return strong {
    font-size: 11px;
  }
}

/* =========================================================
   LEO PERSONAL WORKSTATION
   Desktop-first correction: system space before page content.
   ========================================================= */
.leo-os-desktop {
  z-index: 10;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 48px;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  color: #f8f5eb;
  background: #15241e;
  transition: opacity 550ms ease, visibility 550ms ease;
}

.leo-os-body[data-os-state="desktop"] .leo-os-desktop {
  visibility: visible;
  opacity: 1;
}

.leo-os-workspace {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 13, 12, 0.32), rgba(5, 13, 12, 0.08) 46%, rgba(5, 13, 12, 0.22)),
    linear-gradient(0deg, rgba(6, 15, 14, 0.2), transparent 46%),
    url("images/cyber-studio-hero.png") center / cover no-repeat;
}

.leo-os-wallpaper-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 34%, transparent 0 20%, rgba(3, 12, 11, 0.08) 52%, rgba(3, 12, 11, 0.34) 100%),
    linear-gradient(90deg, rgba(5, 14, 13, 0.26), transparent 30%);
  pointer-events: none;
}

.leo-os-wallpaper-signature {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  display: grid;
  justify-items: end;
  gap: 3px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.leo-os-wallpaper-signature span {
  font: 800 12px/1 var(--font-mono);
}

.leo-os-wallpaper-signature small {
  color: rgba(255, 255, 255, 0.56);
  font: 650 8px/1.2 var(--font-mono);
}

.leo-os-app-grid {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 14px;
  right: auto;
  width: auto;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, 88px);
  grid-auto-rows: 102px;
  gap: 4px 8px;
}

.leo-os-app {
  --os-drag-x: 0px;
  --os-drag-y: 0px;
  width: 88px;
  min-width: 0;
  min-height: 0;
  height: 102px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 64px auto;
  place-items: start center;
  gap: 5px;
  padding: 5px 4px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  cursor: default;
  translate: var(--os-drag-x) var(--os-drag-y);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
  transition: background 100ms ease, border-color 100ms ease, translate 180ms ease;
  will-change: translate;
}

.leo-os-app[hidden] {
  display: none;
}

.leo-os-app.is-dragging {
  z-index: 2;
  cursor: grabbing;
  transition: none;
}

.leo-os-app:hover,
.leo-os-app:focus-visible,
.leo-os-app.is-selected {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(20, 88, 105, 0.52);
  box-shadow: inset 0 0 0 1px rgba(14, 33, 37, 0.16);
  transform: none;
}

.leo-os-app:focus-visible {
  outline: 1px dotted rgba(255, 255, 255, 0.96);
  outline-offset: -5px;
}

.leo-os-app:active {
  background: rgba(17, 74, 90, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: none;
}

.leo-os-companion {
  --os-drag-x: 0px;
  --os-drag-y: 0px;
  --companion-peek: 64px;
  position: absolute;
  z-index: 8;
  right: auto;
  bottom: clamp(38px, 10vh, 112px);
  left: clamp(350px, 31vw, 620px);
  width: clamp(148px, 14vw, 194px);
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #10242b;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  translate: var(--os-drag-x) var(--os-drag-y);
  transition: translate 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 160ms ease;
  will-change: translate;
}

.leo-os-selection-marquee {
  position: absolute;
  z-index: 7;
  border: 1px solid rgba(217, 239, 255, 0.9);
  background: rgba(48, 132, 177, 0.25);
  box-shadow: inset 0 0 0 1px rgba(23, 78, 104, 0.26);
  pointer-events: none;
}

.leo-os-context-menu {
  position: absolute;
  z-index: 29;
  width: 238px;
  padding: 5px;
  border: 1px solid rgba(13, 39, 48, 0.48);
  border-radius: 4px;
  color: #15262c;
  background: rgba(246, 242, 231, 0.98);
  box-shadow: 7px 9px 0 rgba(3, 18, 24, 0.24), 0 16px 36px rgba(3, 18, 24, 0.24);
}

.leo-os-context-menu[hidden] {
  display: none;
}

.leo-os-context-menu button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 0;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.leo-os-context-menu button:hover,
.leo-os-context-menu button:focus-visible {
  color: #f8f5e9;
  background: #176a8d;
  transform: none;
}

.leo-os-context-menu button > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  font: 850 14px/1 var(--font-mono);
}

.leo-os-context-menu strong,
.leo-os-context-menu small {
  display: block;
}

.leo-os-context-menu strong {
  font: 800 11px/1.15 var(--font-mono);
}

.leo-os-context-menu small {
  margin-top: 3px;
  opacity: 0.72;
  font: 650 8px/1.2 var(--font-mono);
}

.leo-os-companion::before,
.leo-os-companion::after {
  position: absolute;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, scale 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-os-companion::before {
  content: "L";
  top: 50%;
  display: grid;
  width: 26px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(241, 245, 231, 0.26);
  color: #f0c74d;
  background: rgba(8, 34, 44, 0.94);
  box-shadow: 0 7px 18px rgba(4, 16, 20, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font: 800 10px/1 var(--font-mono);
  translate: 0 -50%;
  scale: 0.82 0.94;
}

.leo-os-companion::after {
  content: "";
  top: calc(50% + 21px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eb26f;
  box-shadow: 0 0 0 2px rgba(142, 178, 111, 0.16);
  translate: 0 -50%;
}

.leo-os-companion:hover,
.leo-os-companion:focus-visible {
  transform: none;
  filter: drop-shadow(0 10px 12px rgba(1, 12, 14, 0.2));
}

.leo-os-companion:focus-visible {
  outline: 1px dashed rgba(240, 199, 77, 0.95);
  outline-offset: 3px;
}

.leo-os-companion.is-dragging {
  cursor: grabbing;
  transition: none;
  filter: drop-shadow(0 12px 16px rgba(1, 12, 14, 0.28));
}

.leo-os-companion.is-patrolling {
  transition-duration: 4200ms, 160ms;
  transition-timing-function: linear, ease;
}

.leo-os-companion.is-patrolling .leo-os-companion-character {
  animation: leo-os-companion-scoot 700ms ease-in-out infinite;
}

.leo-os-companion-character,
.leo-os-companion-frame {
  position: absolute;
  inset: 0;
  display: block;
}

.leo-os-companion-character {
  transform-origin: 54% 92%;
  animation: leo-os-companion-breathe 5.8s ease-in-out infinite;
  transition: rotate 500ms cubic-bezier(0.22, 1, 0.36, 1), translate 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-os-companion.is-curious .leo-os-companion-character {
  rotate: -2deg;
  translate: 0 -5px;
}

.leo-os-companion.is-docked-left .leo-os-companion-character,
.leo-os-companion.is-docked-right .leo-os-companion-character {
  top: 50%;
  right: auto;
  bottom: auto;
  width: 60px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(239, 243, 228, 0.3);
  border-radius: 4px;
  background: rgba(8, 34, 44, 0.92);
  box-shadow: 0 8px 20px rgba(4, 16, 20, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: none;
  transform-origin: center;
  translate: 0 -50%;
  animation: none;
  transition: opacity 170ms ease, scale 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-os-companion.is-docked-left .leo-os-companion-character {
  left: auto;
  right: 2px;
}

.leo-os-companion.is-docked-right .leo-os-companion-character {
  left: 2px;
}

.leo-os-companion.is-dock-collapsed::before,
.leo-os-companion.is-dock-collapsed::after {
  opacity: 1;
}

.leo-os-companion.is-docked-left::before {
  right: 0;
  border-left-color: rgba(240, 199, 77, 0.68);
  border-radius: 0 4px 4px 0;
}

.leo-os-companion.is-docked-right::before {
  left: 0;
  border-right-color: rgba(240, 199, 77, 0.68);
  border-radius: 4px 0 0 4px;
}

.leo-os-companion.is-docked-left::after {
  right: 10px;
}

.leo-os-companion.is-docked-right::after {
  left: 10px;
}

.leo-os-companion.is-dock-collapsed::before {
  scale: 1;
}

.leo-os-companion.is-dock-collapsed .leo-os-companion-character {
  opacity: 0;
  scale: 0.84;
}

.leo-os-companion-frame {
  background-image: url("images/leo-guide-blink-sprite.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}

.leo-os-companion-frame-closed {
  background-position: left center;
}

.leo-os-companion-frame-open {
  opacity: 1;
  background-position: right center;
  clip-path: inset(14% 24% 68% 57% round 8px);
  animation: leo-os-companion-blink 7.8s 1.2s ease-in-out infinite;
}

.leo-os-companion.is-docked-left .leo-os-companion-frame,
.leo-os-companion.is-docked-right .leo-os-companion-frame {
  background-size: 400% auto;
}

.leo-os-companion.is-docked-left .leo-os-companion-frame-closed,
.leo-os-companion.is-docked-right .leo-os-companion-frame-closed {
  background-position: 25% top;
}

.leo-os-companion.is-docked-left .leo-os-companion-frame-open,
.leo-os-companion.is-docked-right .leo-os-companion-frame-open {
  background-position: 91.67% top;
  clip-path: none;
}

.leo-os-companion-bubble {
  position: absolute;
  top: 18%;
  left: -26px;
  min-width: 72px;
  max-width: 116px;
  padding: 6px 8px;
  border: 1px solid rgba(9, 25, 35, 0.22);
  border-radius: 3px;
  color: #10242b;
  background: rgba(249, 245, 234, 0.96);
  box-shadow: 4px 5px 0 rgba(9, 25, 35, 0.14);
  font: 750 9px/1.2 var(--font-mono);
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  translate: 0 5px;
  transition: opacity 150ms ease, translate 180ms ease;
}

.leo-os-companion-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 8px;
  width: 11px;
  height: 11px;
  border-top: 1px solid rgba(9, 25, 35, 0.22);
  border-right: 1px solid rgba(9, 25, 35, 0.22);
  background: rgba(249, 245, 234, 0.96);
  rotate: 45deg;
}

.leo-os-companion.is-docked-left .leo-os-companion-bubble {
  right: -28px;
  left: auto;
}

.leo-os-companion.is-docked-right .leo-os-companion-bubble {
  top: 9%;
  left: -34px;
}

.leo-os-companion.is-dock-collapsed .leo-os-companion-bubble {
  opacity: 0;
}

.leo-os-companion.is-docked-left .leo-os-companion-bubble::after {
  right: auto;
  left: -7px;
  border: 0;
  border-bottom: 1px solid rgba(9, 25, 35, 0.22);
  border-left: 1px solid rgba(9, 25, 35, 0.22);
}

.leo-os-companion.is-speaking .leo-os-companion-bubble {
  opacity: 1;
  translate: 0 0;
}

@keyframes leo-os-companion-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

@keyframes leo-os-companion-scoot {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -4px; rotate: 0.7deg; }
}

@keyframes leo-os-companion-blink {
  0%, 37%, 43%, 68%, 73%, 100% { opacity: 1; }
  39%, 41%, 70%, 71% { opacity: 0; }
}

@media (min-width: 761px) {
  .leo-os-app,
  .leo-os-companion {
    touch-action: none;
  }

  .leo-os-app {
    cursor: grab;
  }
}

.leo-os-app-icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(145deg, #398cb1, #155f82);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-shadow: none;
}

.leo-os-app-icon::after {
  content: none;
}

.leo-os-app-icon i {
  color: inherit;
  font: 850 12px/1 var(--font-mono);
  font-style: normal;
}

.leo-os-glyph i {
  position: static;
  width: 40px;
  height: 40px;
  overflow: visible;
  clip-path: none;
  color: inherit;
  font-size: 0;
}

.leo-os-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leo-os-icon-svg .is-filled {
  fill: currentColor;
  stroke: none;
}

/* OS application identity colors: shared by desktop, Start, and dock. */
[data-os-app-id="home"] { --os-app-color: #2f7f9d; --os-app-ink: #fff; }
[data-os-app-id="resume"],
[data-os-app-id="about"] { --os-app-color: #b55b4d; --os-app-ink: #fff; }
[data-os-app-id="contact"] { --os-app-color: #273238; --os-app-ink: #fff; }
[data-os-app-id="work"],
[data-os-app-id="writing"] { --os-app-color: #718d63; --os-app-ink: #0d1719; }
[data-os-app-id="library"] { --os-app-color: #c7793e; --os-app-ink: #0d1719; }

.leo-os-app[data-os-app-id] .leo-os-app-icon,
.leo-os-start-apps [data-os-app-id] .leo-os-start-app-mark,
.leo-os-dock-item[data-os-app-id] > span {
  color: var(--os-app-ink);
  background: var(--os-app-color);
}

.leo-os-app-folder .leo-os-app-icon {
  color: var(--os-app-ink);
  width: 76px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 44%),
    linear-gradient(180deg, #e7a45e 0 29%, var(--os-app-color) 29% 100%);
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -10px 20px rgba(94, 48, 16, 0.14);
  font-size: inherit;
}

.leo-os-app-folder .leo-os-app-icon::before {
  position: absolute;
  top: -5px;
  left: 7px;
  width: 31px;
  height: 10px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: #edae69;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.leo-os-app-folder .leo-os-app-icon::after {
  content: none;
}

.leo-os-app-folder .leo-os-glyph-library i {
  position: static;
  width: 42px;
  height: 42px;
  overflow: visible;
  clip-path: none;
  translate: 0 5px;
  color: var(--os-app-ink);
  font-size: 0;
}

.leo-os-app-folder {
  width: 188px;
  grid-column: 1 / span 2;
  grid-row: 3;
  justify-self: start;
  grid-template-columns: 88px 1fr;
  grid-template-rows: 1fr;
  place-items: center start;
  gap: 8px;
  padding-right: 10px;
  text-align: left;
}

.leo-os-app-folder .leo-os-app-copy {
  align-self: center;
  text-align: left;
}

.leo-os-app-folder .leo-os-app-copy strong,
.leo-os-app-folder .leo-os-app-copy small {
  display: block;
  max-width: none;
}

.leo-os-app-folder .leo-os-app-copy strong {
  font-size: 14px;
}

.leo-os-app-folder .leo-os-app-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font: 700 8px/1.2 var(--font-mono);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
}

.leo-os-library-guide {
  position: absolute;
  z-index: 5;
  top: 237px;
  left: 214px;
  width: 184px;
  padding: 10px 12px 11px;
  color: #14262d;
  border: 1px solid rgba(13, 43, 56, 0.28);
  border-radius: 4px;
  background: rgba(248, 242, 224, 0.96);
  box-shadow: 5px 6px 0 rgba(11, 31, 40, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--os-guide-x, 0px), var(--os-guide-y, 0px));
  translate: -7px 0;
  transition: opacity 180ms ease, translate 180ms ease;
  will-change: transform;
}

.leo-os-library-guide::before {
  position: absolute;
  top: 31px;
  left: -109px;
  width: 98px;
  height: 1px;
  content: "";
  background: rgba(255, 246, 208, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
}

.leo-os-library-guide::after {
  position: absolute;
  top: 27px;
  left: -111px;
  width: 8px;
  height: 8px;
  content: "";
  border-bottom: 2px solid rgba(255, 246, 208, 0.94);
  border-left: 2px solid rgba(255, 246, 208, 0.94);
  rotate: 45deg;
}

.leo-os-app-grid:has(+ .leo-os-library-guide.is-visible) .leo-os-app-folder .leo-os-app-icon {
  outline: 2px solid rgba(255, 245, 196, 0.94);
  outline-offset: 4px;
  animation: leo-library-cue 1.8s ease-in-out infinite;
}

@keyframes leo-library-cue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 215, 125, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(239, 215, 125, 0.22); }
}

.leo-os-library-guide.is-visible {
  opacity: 1;
  translate: 0 0;
}

.leo-os-library-guide span,
.leo-os-library-guide strong,
.leo-os-library-guide small {
  position: relative;
  display: block;
}

.leo-os-library-guide span {
  color: var(--os-rust);
  font: 850 8px/1 var(--font-mono);
}

.leo-os-library-guide strong {
  margin-top: 5px;
  letter-spacing: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
  line-height: 1;
}

.leo-os-library-guide small {
  margin-top: 5px;
  color: #56636a;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

.leo-os-app-copy {
  width: 100%;
  display: block;
}

.leo-os-app-copy strong {
  display: inline-block;
  max-width: 82px;
  padding: 2px 4px;
  overflow: hidden;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leo-os-taskbar {
  position: relative;
  z-index: 100;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  color: #101c20;
  border-top: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(238, 234, 224, 0.95);
  box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px) saturate(1.15);
}

.leo-os-start-button {
  min-width: 94px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 7px;
  color: #fff;
  border: 1px solid #0a3344;
  border-radius: 4px;
  background: linear-gradient(180deg, #237fa5, #155a7a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.27), 0 1px 2px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.leo-os-start-button[aria-expanded="true"] {
  background: linear-gradient(180deg, #165a78, #0d435d);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.26);
}

.leo-os-start-button > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #102027;
  background: #e8cf6c;
  font: 900 15px/1 Georgia, serif;
}

.leo-os-start-button strong {
  font-size: 12px;
}

.leo-os-pinned-dock {
  min-width: 0;
  width: max-content;
  max-width: 100%;
  height: 40px;
  display: flex;
  justify-self: start;
  align-items: center;
  gap: 4px;
  padding: 2px 3px;
  border: 1px solid rgba(9, 25, 35, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.leo-os-dock-item {
  position: relative;
  min-width: 42px;
  max-width: 42px;
  height: 36px;
  display: grid;
  flex: 0 0 42px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(9, 25, 35, 0.12);
  border-radius: 4px;
  color: #152328;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  text-align: left;
}

.leo-os-dock-item:hover,
.leo-os-dock-item:focus-visible,
.leo-os-dock-item.is-active {
  border-color: rgba(23, 111, 157, 0.45);
  background: #fff;
  transform: none;
}

.leo-os-dock-item::after {
  position: absolute;
  right: 8px;
  bottom: 1px;
  left: 8px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: transparent;
}

.leo-os-dock-item.is-open::after {
  background: #297a9c;
}

.leo-os-dock-item.is-active::after {
  right: 6px;
  left: 6px;
  background: #b64f3b;
}

.leo-os-dock-item.is-minimized {
  opacity: 0.62;
}

.leo-os-dock-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 3px;
  color: #fff;
  background: #24728f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font: 850 7px/1 var(--font-mono);
}

.leo-os-dock-item > span .leo-os-icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 3.4;
}

.leo-os-dock-item > strong {
  display: none;
}

.leo-os-dock-item-paper > span { color: #17252a; background: #efede5; }
.leo-os-dock-item-rust > span { background: #b65440; }
.leo-os-dock-item-green > span { background: #6f9467; }
.leo-os-dock-item-yellow > span { color: #17252a; background: #ddbd4c; }

.leo-os-dock-library > span {
  position: relative;
  color: #273435;
  background: #d2ae3e;
  font-size: 6px;
}

.leo-os-dock-library {
  min-width: 142px;
  max-width: 142px;
  flex-basis: 142px;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-items: stretch;
  gap: 8px;
  margin-left: 6px;
  padding: 0 10px 0 5px;
}

.leo-os-dock-library > strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leo-os-dock-library > span::before {
  position: absolute;
  top: -3px;
  left: 2px;
  width: 11px;
  height: 4px;
  content: "";
  border-radius: 2px 2px 0 0;
  background: #e5c45b;
}

.leo-os-dock-item[data-os-pinned-app-id="library"] > span::before { background: #edae69; }

.leo-os-system-tray {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px 0 10px;
  border-left: 1px solid rgba(9, 25, 35, 0.14);
}

.leo-os-tray-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leo-os-tray-ai,
.leo-os-tray-presence {
  height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid rgba(9, 25, 35, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  color: #27434c;
  font-family: var(--font-mono);
}

.leo-os-tray-ai b {
  color: #f8fbfc;
  border-radius: 3px;
  background: #257aa3;
  padding: 4px 5px;
  font: 850 8px/1 var(--font-mono);
}

.leo-os-tray-ai em,
.leo-os-tray-presence em {
  font-style: normal;
  font: 780 8px/1 var(--font-mono);
}

.leo-os-tray-presence i,
.leo-os-start-menu footer span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74a85d;
  box-shadow: 0 0 0 2px rgba(116, 168, 93, 0.16);
}

.leo-os-tray-clock {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-left: 8px;
  border-left: 1px solid rgba(9, 25, 35, 0.1);
  color: #245168;
  font-family: "Avenir Next", Avenir, sans-serif;
  white-space: nowrap;
}

.leo-os-tray-clock time {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.leo-os-tray-clock small {
  color: #245168;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.leo-os-start-menu {
  position: absolute;
  z-index: 90;
  left: 8px;
  bottom: 8px;
  width: min(650px, calc(100vw - 16px));
  max-height: min(600px, calc(100% - 16px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: #102027;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 5px;
  background: rgba(247, 243, 233, 0.98);
  box-shadow: 14px 16px 36px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.985);
  transform-origin: 0 100%;
  transition: opacity 150ms ease, transform 150ms ease;
}

.leo-os-start-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.leo-os-start-menu > header {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  color: #fff;
  background: linear-gradient(105deg, #0c435d, #1f7797 72%, #699470);
}

.leo-os-start-menu > header img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 23%;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
}

.leo-os-start-menu > header div {
  display: grid;
  gap: 3px;
}

.leo-os-start-menu > header strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.leo-os-start-menu > header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.leo-os-start-menu-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
}

.leo-os-start-apps {
  min-height: 0;
  padding: 12px;
  overflow: auto;
  border-right: 1px solid rgba(9, 25, 35, 0.12);
}

.leo-os-start-apps > p {
  margin: 2px 7px 9px;
  color: rgba(9, 25, 35, 0.48);
  font: 800 8px/1 var(--font-mono);
}

.leo-os-start-apps > button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.leo-os-start-apps > button:hover,
.leo-os-start-apps > button:focus-visible {
  border-color: rgba(23, 111, 157, 0.18);
  background: rgba(23, 111, 157, 0.1);
}

.leo-os-start-app-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 3px;
  background: #287a9e;
  font: 800 8px/1 var(--font-mono);
}

.leo-os-start-app-paper { color: #142126; background: #ded8ca; }
.leo-os-start-app-rust { background: #ac513e; }
.leo-os-start-app-green { background: #62846a; }
.leo-os-start-app-yellow { color: #142126; background: #d9bd54; }

.leo-os-start-apps button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.leo-os-start-apps strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leo-os-start-apps small {
  overflow: hidden;
  color: rgba(9, 25, 35, 0.56);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leo-os-start-focus {
  padding: 22px 18px;
  background: rgba(225, 232, 220, 0.6);
}

.leo-os-start-focus > span {
  color: #a64c39;
  font: 800 8px/1.2 var(--font-mono);
}

.leo-os-start-focus > strong {
  display: block;
  margin: 16px 0 8px;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.05;
}

.leo-os-start-focus p {
  margin: 0 0 20px;
  color: rgba(9, 25, 35, 0.62);
  font-size: 10px;
  line-height: 1.5;
}

.leo-os-start-focus button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(9, 25, 35, 0.18);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.leo-os-start-menu > footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px 6px 14px;
  border-top: 1px solid rgba(9, 25, 35, 0.12);
  background: #e5e1d6;
}

.leo-os-start-menu > footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(9, 25, 35, 0.58);
  font: 750 8px/1 var(--font-mono);
}

.leo-os-start-menu > footer button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(9, 25, 35, 0.16);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
}

.leo-os-window-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.leo-os-window {
  position: absolute;
  top: 5%;
  left: 13%;
  width: min(1120px, 78vw);
  height: min(720px, 86%);
  min-width: 560px;
  min-height: 360px;
  overflow: hidden;
  resize: both;
  color: var(--os-ink);
  border: 1px solid #1a2c32;
  border-radius: 5px;
  background: #f8f4ea;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48), 8px 9px 0 rgba(8, 25, 28, 0.18);
  pointer-events: auto;
  animation: leo-os-window-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leo-os-window.is-active {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 8px 9px 0 rgba(8, 25, 28, 0.2);
}

.leo-os-window.is-minimized {
  display: none;
}

.leo-os-window.is-dragging {
  user-select: none;
}

.leo-os-window.is-dragging iframe,
.leo-os-window.is-resizing iframe {
  pointer-events: none;
}

.leo-os-window.is-resizing {
  user-select: none;
}

.leo-os-window.is-maximized {
  inset: 8px !important;
  width: auto;
  height: auto;
  resize: none;
}

.leo-os-window-resize {
  position: absolute;
  z-index: 12;
  right: 3px;
  bottom: 3px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(12, 69, 95, 0.64) 4px 6px);
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0.76;
  pointer-events: none;
}

.leo-os-window-resize:hover,
.leo-os-window-resize:focus-visible {
  opacity: 1;
  outline: 2px solid #d9b64b;
  outline-offset: -2px;
}

.leo-os-window.is-maximized .leo-os-window-resize {
  display: none;
}

.leo-os-window-bar {
  height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 5px 0 9px;
  border-bottom: 1px solid rgba(9, 25, 35, 0.2);
  background: #d9d6ce;
  cursor: move;
  touch-action: none;
}

.leo-os-window.is-active .leo-os-window-bar {
  color: #fff;
  background: linear-gradient(90deg, #0c455f, #1d7595 68%, #668d70);
}

.leo-os-window-title span {
  width: 24px;
  height: 24px;
  background: #1c718f;
  font-size: 7px;
}

.leo-os-window-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leo-os-window-title span {
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
}

.leo-os-window.is-active .leo-os-window-title span {
  color: #142126;
  background: #e6cc65;
}

.leo-os-window-title strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leo-os-window-actions {
  display: flex;
  gap: 3px;
}

.leo-os-window-actions button,
.leo-os-window-actions a {
  width: 29px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--os-ink);
  border-color: rgba(9, 25, 35, 0.2);
  border-radius: 2px;
  background: #f8f6ef;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

.leo-os-window-actions [data-os-close] {
  color: #fff;
  border-color: #8f2f23;
  background: #b84f3e;
}

.leo-os-window-frame,
.leo-os-window-content {
  height: calc(100% - 40px);
}

.leo-os-window-frame {
  width: 100%;
  border: 0;
  background: #fff;
}

.leo-os-window-content {
  overflow: auto;
  background: var(--os-paper-strong);
}

.leo-os-window-content.is-library {
  overflow: hidden;
}

.leo-os-library {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #1f292e;
  background: #f8f8f5;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.leo-os-library button,
.leo-os-library input {
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
}

.leo-os-library-tabs {
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: end;
  padding: 4px 5px 0;
  border-bottom: 1px solid #aaa9a2;
  background: #d8d6cf;
}

.leo-os-library-tab-list {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: end;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.leo-os-library-tab-list::-webkit-scrollbar {
  display: none;
}

.leo-os-library-tab-group {
  min-width: 112px;
  max-width: 190px;
  height: 31px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27px;
  align-items: center;
  border: 1px solid #b3b2ab;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #ecebe6;
}

.leo-os-library-tab-group.is-active {
  border-color: #92938f;
  background: #fff;
}

.leo-os-library-tab {
  min-width: 92px;
  height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  overflow: hidden;
  color: #334047;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.leo-os-library-tab-list > .leo-os-library-tab {
  min-width: 104px;
  max-width: 126px;
  border: 1px solid #b3b2ab;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #ecebe6;
}

.leo-os-library-tab-list > .leo-os-library-tab.is-active {
  background: #fff;
}

.leo-os-library-tab span {
  flex: 0 0 auto;
  color: var(--os-blue-dark);
  font: 800 9px/1 var(--font-mono);
}

.leo-os-library-tab strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leo-os-library-tab-close {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #667177;
  background: transparent;
  cursor: pointer;
}

.leo-os-library-tab-close:hover,
.leo-os-library-new-tab:hover,
.leo-os-library-toolbar > button:hover:not(:disabled) {
  color: #fff;
  background: var(--os-blue);
}

.leo-os-library-new-tab {
  width: 32px;
  height: 30px;
  flex: 0 0 auto;
  margin-left: 3px;
  color: #465258;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.leo-os-library-toolbar {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: 35px 35px 35px minmax(120px, 1fr);
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-bottom: 1px solid #c9c8c1;
  background: #efeee9;
}

.leo-os-library-toolbar > button {
  width: 35px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #35434a;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.leo-os-library-toolbar > button:disabled {
  opacity: 0.3;
  cursor: default;
}

.leo-os-library-address {
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #bbbcb7;
  border-radius: 3px;
  background: #fff;
}

.leo-os-library-address span {
  color: var(--os-blue-dark);
  font: 800 8px/1 var(--font-mono);
  text-transform: uppercase;
}

.leo-os-library-address input {
  min-width: 0;
  flex: 1;
  padding: 0;
  outline: 0;
  color: #36434a;
  border: 0;
  background: transparent;
  font: 500 10px/1.2 var(--font-mono);
}

.leo-os-library-page {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #15242a;
  background:
    linear-gradient(rgba(19, 48, 62, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 48, 62, 0.035) 1px, transparent 1px),
    #f5f1e8;
  background-size: 30px 30px;
}

.leo-os-library-page[hidden] {
  display: none;
}

.leo-os-library-index {
  width: min(1180px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px);
}

.leo-os-library-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(21, 36, 42, 0.2);
}

.leo-os-library-page-intro > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #536067;
  font: 800 9px/1 var(--font-mono);
  text-transform: uppercase;
}

.leo-os-library-page-intro > p span {
  padding: 5px 7px;
  color: #fff;
  border-radius: 3px;
  background: var(--os-blue-dark);
}

.leo-os-library-page-title-row {
  width: max-content;
  display: flex;
  align-items: flex-end;
  gap: 11px;
}

.leo-os-library-page-title-row h2 {
  margin: 0;
  letter-spacing: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 900;
  line-height: 0.88;
}

.leo-os-library-page-title-row em {
  margin-bottom: 2px;
  color: var(--os-rust);
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 22px;
  font-style: normal;
  line-height: 1;
  transform: rotate(-5deg);
}

.leo-os-library-page-intro > strong {
  display: block;
  margin-top: 9px;
  color: #45545a;
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 600;
}

.leo-os-library-page-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  margin: 0;
}

.leo-os-library-page-stats div {
  min-width: 68px;
  padding: 0 16px;
  border-left: 1px solid rgba(21, 36, 42, 0.16);
}

.leo-os-library-page-stats dt,
.leo-os-library-page-stats dd {
  margin: 0;
}

.leo-os-library-page-stats dt {
  color: var(--os-blue-dark);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.leo-os-library-page-stats dd {
  margin-top: 4px;
  color: #667279;
  font: 700 8px/1.2 var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.leo-os-library-route-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.leo-os-library-group {
  min-width: 0;
  padding-top: 8px;
}

.leo-os-library-group-profile { grid-column: span 5; }
.leo-os-library-group-projects { grid-column: span 7; }
.leo-os-library-group-expression,
.leo-os-library-group-personal,
.leo-os-library-group-connect { grid-column: span 4; }

.leo-os-library-group > header {
  min-height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(21, 36, 42, 0.2);
}

.leo-os-library-group > header div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.leo-os-library-group > header span {
  color: var(--os-rust);
  font: 850 8px/1 var(--font-mono);
}

.leo-os-library-group > header h3,
.leo-os-library-group > header p {
  margin: 0;
}

.leo-os-library-group > header h3 {
  letter-spacing: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.leo-os-library-group > header h3 small {
  color: var(--os-rust);
  font: 800 8px/1 var(--font-mono);
  text-transform: uppercase;
}

.leo-os-library-group > header p {
  color: #69767b;
  font: 700 7px/1.2 var(--font-mono);
  text-align: right;
  text-transform: uppercase;
}

.leo-os-library-group-routes {
  display: grid;
  gap: 8px;
}

.leo-os-library-group-profile .leo-os-library-group-routes {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.leo-os-library-group-projects .leo-os-library-group-routes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leo-os-library-route {
  position: relative;
  min-width: 0;
  min-height: 114px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  color: #17272e;
  border-color: rgba(20, 39, 47, 0.1) !important;
  border-radius: 6px !important;
  background: #eceae3;
  box-shadow: 0 2px 0 rgba(21, 36, 42, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.leo-os-library-route:hover {
  border-color: rgba(20, 39, 47, 0.23) !important;
  box-shadow: 0 7px 18px rgba(21, 36, 42, 0.12);
  transform: translateY(-2px);
}

.leo-os-library-route:active {
  transform: translateY(0) scale(0.99);
}

.leo-os-library-route:focus-visible {
  outline: 2px solid var(--os-blue);
  outline-offset: 2px;
}

.leo-os-library-group-expression .leo-os-library-route,
.leo-os-library-group-personal .leo-os-library-route,
.leo-os-library-group-connect .leo-os-library-route {
  min-height: 96px;
}

.leo-os-library-route-blue { background: #dfeaf0; }
.leo-os-library-route-rust { background: #f0dfd8; }
.leo-os-library-route-green { background: #e1ead8; }
.leo-os-library-route-yellow { background: #f2e8bd; }
.leo-os-library-route-paper { background: #e8e5dc; }

.leo-os-library-route-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.leo-os-library-route-meta small {
  color: rgba(23, 39, 46, 0.67);
  font: 800 8px/1 var(--font-mono);
  text-transform: uppercase;
}

.leo-os-library-route-body {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.leo-os-library-route-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: var(--os-blue-dark);
  font: 900 11px/1 var(--font-mono);
  transition: transform 180ms ease;
}

.leo-os-library-route-rust .leo-os-library-route-mark { background: var(--os-rust); }
.leo-os-library-route-green .leo-os-library-route-mark { background: #66824f; }
.leo-os-library-route-yellow .leo-os-library-route-mark { color: #273239; background: #d1b94e; }
.leo-os-library-route-paper .leo-os-library-route-mark { color: #273239; background: #d0ccc0; }

.leo-os-library-route:hover .leo-os-library-route-mark,
.leo-os-library-route:focus-visible .leo-os-library-route-mark {
  transform: translateX(3px) rotate(-2deg);
}

.leo-os-library-route-copy {
  min-width: 0;
  padding-right: 24px;
}

.leo-os-library-route-copy strong,
.leo-os-library-route-copy small {
  display: block;
}

.leo-os-library-route-copy strong {
  letter-spacing: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
  line-height: 0.95;
}

.leo-os-library-group-projects .leo-os-library-route-copy strong {
  font-size: clamp(18px, 1.7vw, 22px);
}

.leo-os-library-group-projects .leo-os-library-route-copy small {
  font-size: 9px;
  line-height: 1.28;
}

.leo-os-library-route-copy small {
  max-width: 44ch;
  margin-top: 6px;
  color: #59676d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.leo-os-library-route-open {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: rgba(23, 39, 46, 0.58);
  font-size: 15px;
}

.leo-os-library-browser,
.leo-os-library-panels,
.leo-os-library-panel,
.leo-os-library-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.leo-os-library-browser[hidden],
.leo-os-library-panel[hidden] {
  display: none;
}

.leo-os-library-panels,
.leo-os-library-panel {
  overflow: hidden;
}

.leo-os-library-frame {
  display: block;
  border: 0;
  background: #fff;
}

.leo-os-library-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .leo-os-body {
    overflow: hidden;
  }

  .leo-os-boot {
    padding: 24px 16px 64px;
  }

  .leo-os-boot-meta {
    top: 18px;
    right: 16px;
    left: 16px;
    font-size: 8px;
  }

  .leo-os-computer {
    width: min(94vw, 560px);
  }

  .leo-os-screen {
    padding: 8px;
    border-width: 3px;
    border-radius: 10px 10px 4px 4px;
  }

  .leo-os-terminal-bar {
    min-height: 30px;
    padding: 0 9px;
  }

  .leo-os-terminal-bar b {
    max-width: 128px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leo-os-terminal-bar em { font-size: 6px; }

  .leo-os-terminal-body {
    height: calc(100% - 30px);
    padding: 0;
    font-size: 8px;
    line-height: 1.48;
  }

  .leo-os-boot-panel { padding: 14px; }

  .leo-os-power-mark { gap: 10px; }
  .leo-os-power-mark > span { width: 34px; height: 34px; font-size: 12px; }
  .leo-os-power-mark strong { font-size: 16px; }
  .leo-os-power-mark small { font-size: 5px; }
  .leo-os-power-pulse { gap: 5px; margin-top: 12px; }
  .leo-os-power-pulse i { width: 4px; height: 4px; }
  .leo-os-boot-caption { margin-top: 7px; font-size: 6px; }
  .leo-os-skip-hint { right: 10px; bottom: 7px; font-size: 5px; }

  .leo-os-post-kicker { margin-bottom: 5px; font-size: 6px; }
  .leo-os-post-list { gap: 3px; }
  .leo-os-post-list li {
    min-height: 23px;
    grid-template-columns: 20px 1fr auto;
    gap: 6px;
    padding: 3px 6px;
  }
  .leo-os-post-list span,
  .leo-os-post-list em { font-size: 5px; }
  .leo-os-post-list strong { font-size: 7px; }
  .leo-os-post-meter { height: 3px; margin-top: 6px; }

  .leo-os-terminal-group { margin-bottom: 3px; }

  .leo-os-terminal-question {
    margin-bottom: 0 !important;
    font-size: 6px;
    line-height: 1.2;
  }

  .leo-os-terminal-body .leo-os-terminal-output {
    margin-bottom: 0;
    margin-left: 13px;
  }

  .leo-os-ready-signal { gap: 4px; margin-top: 0; font-size: 6px; }
  .leo-os-ready-signal i { width: 4px; height: 4px; box-shadow: 0 0 0 2px rgba(131, 168, 128, 0.13); }

  .leo-os-boot-progress {
    margin-top: 4px;
  }

  .leo-os-launch {
    bottom: 7px;
    left: 14px;
    min-height: 44px;
    max-width: calc(100% - 28px);
    gap: 6px;
    padding: 4px 7px 4px 1px;
  }

  .leo-os-launch-prompt { font-size: 11px; }
  .leo-os-launch strong { font-size: 8px; }
  .leo-os-launch small { font-size: 5px; }
  .leo-os-launch-cursor { width: 4px; height: 9px; }

  .leo-os-guide {
    right: -4px;
    bottom: -18px;
    width: 108px;
  }

  .leo-os-guide-bubble {
    top: 4px;
    left: -4px;
    min-width: 35px;
    padding: 3px 4px;
    font-size: 7px;
    box-shadow: 2px 2px 0 rgba(9, 25, 35, 0.24);
  }

  .leo-os-desktop {
    grid-template-rows: minmax(0, 1fr) 83px;
  }

  .leo-os-companion {
    display: none;
  }

  .leo-os-context-menu,
  .leo-os-selection-marquee {
    display: none;
  }

  .leo-os-workspace {
    overflow: hidden;
    background-position: 56% center;
  }

  .leo-os-wallpaper-signature {
    top: auto;
    right: 14px;
    bottom: 16px;
  }

  .leo-os-wallpaper-signature small {
    display: none;
  }

  .leo-os-app-grid {
    top: 12px;
    left: 9px;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 82px);
    grid-auto-rows: 96px;
    gap: 2px 4px;
    padding: 0;
  }

  .leo-os-library-guide {
    top: 314px;
    left: 14px;
    width: calc(100vw - 28px);
  }

  .leo-os-library-guide::before {
    content: "";
    top: -23px;
    left: 43px;
    width: 1px;
    height: 17px;
    border: 0;
    background: rgba(255, 246, 208, 0.9);
    rotate: 0deg;
  }

  .leo-os-library-guide::after {
    top: -24px;
    left: 39px;
    border: 0;
    border-top: 2px solid rgba(255, 246, 208, 0.94);
    border-left: 2px solid rgba(255, 246, 208, 0.94);
    rotate: 45deg;
  }

  .leo-os-app-folder {
    width: 96px;
    grid-row: 3;
    grid-template-columns: 1fr;
    grid-template-rows: 62px auto;
    place-items: start center;
    gap: 3px;
    padding-right: 4px;
    text-align: center;
  }

  .leo-os-app-folder .leo-os-app-copy {
    align-self: start;
    text-align: center;
  }

  .leo-os-app-folder .leo-os-app-copy small {
    display: none;
  }

  .leo-os-app {
    width: 80px;
    height: 96px;
    grid-template-rows: 59px auto;
  }

  .leo-os-app-icon {
    width: 53px;
    height: 53px;
  }

  .leo-os-app-copy strong {
    max-width: 76px;
    font-size: 10px;
  }

  .leo-os-taskbar {
    grid-template-areas:
      "start dock"
      "tray tray";
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 4px;
    padding: 5px;
  }

  .leo-os-start-button {
    grid-area: start;
    min-width: 70px;
    width: 70px;
    height: 40px;
    gap: 6px;
    padding: 0 8px 0 6px;
    touch-action: manipulation;
  }

  .leo-os-start-button strong {
    display: block;
    font-size: 10px;
  }

  .leo-os-pinned-dock {
    grid-area: dock;
    width: auto;
    height: 42px;
    gap: 4px;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    touch-action: manipulation;
  }

  .leo-os-pinned-dock::-webkit-scrollbar {
    display: none;
  }

  .leo-os-dock-item {
    min-width: 42px;
    max-width: 42px;
    height: 40px;
    display: grid;
    flex: 0 0 42px;
    grid-template-columns: 1fr;
    padding: 0;
    touch-action: manipulation;
  }

  .leo-os-dock-item > strong {
    display: none;
  }

  .leo-os-dock-library {
    min-width: 116px;
    max-width: 116px;
    flex-basis: 116px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    margin-left: 5px;
    padding: 0 9px 0 5px;
  }

  .leo-os-dock-library > strong {
    display: block;
    font-size: 10px;
  }

  .leo-os-tray-presence {
    display: inline-flex;
  }

  .leo-os-tray-ai {
    display: none;
  }

  .leo-os-system-tray {
    grid-area: tray;
    min-width: 0;
    height: 32px;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 4px;
    border-top: 1px solid rgba(9, 25, 35, 0.08);
    border-left: 0;
  }

  .leo-os-tray-clock {
    min-width: 0;
    display: flex;
    gap: 6px;
    padding-left: 7px;
  }

  .leo-os-tray-clock time {
    font-size: 12px;
    font-weight: 800;
  }

  .leo-os-tray-clock small {
    font-size: 9px;
  }

  .leo-os-start-menu {
    right: 6px;
    bottom: 6px;
    left: 6px;
    width: auto;
    max-height: calc(100% - 12px);
  }

  .leo-os-start-apps > button,
  .leo-os-start-menu > footer button {
    min-height: 44px;
    touch-action: manipulation;
  }

  .leo-os-start-menu-body {
    grid-template-columns: 1fr;
  }

  .leo-os-start-apps {
    border-right: 0;
  }

  .leo-os-start-focus {
    display: none;
  }

  .leo-os-window {
    position: absolute;
    inset: 7px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    border-radius: 4px;
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.48);
  }

  .leo-os-window-bar {
    height: 46px;
    padding-right: 3px;
    cursor: default;
  }

  .leo-os-window-frame,
  .leo-os-window-content {
    height: calc(100% - 46px);
  }

  .leo-os-window-actions button,
  .leo-os-window-actions a {
    width: 40px;
    height: 40px;
    touch-action: manipulation;
  }

  .leo-os-window-actions [data-os-maximize] {
    display: none;
  }

  .leo-os-window-resize {
    display: none;
  }

  .leo-os-library-tabs {
    height: 42px;
    padding-top: 5px;
  }

  .leo-os-library-tab-group,
  .leo-os-library-tab {
    height: 36px;
  }

  .leo-os-library-tab-group {
    min-width: 118px;
  }

  .leo-os-library-tab-close {
    width: 28px;
    height: 30px;
  }

  .leo-os-library-toolbar {
    min-height: 49px;
    grid-template-columns: 38px 38px 38px minmax(92px, 1fr);
    gap: 3px;
    padding: 5px;
  }

  .leo-os-library-toolbar > button {
    width: 38px;
    height: 38px;
  }

  .leo-os-library-address {
    height: 38px;
    padding: 0 7px;
  }

  .leo-os-library-address span {
    display: none;
  }

  .leo-os-library-address input {
    font-size: 8px;
  }

  .leo-os-library-index {
    padding: 22px 18px 30px;
  }

  .leo-os-library-page-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding-bottom: 18px;
  }

  .leo-os-library-page-title-row h2 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .leo-os-library-page-title-row em {
    font-size: 16px;
  }

  .leo-os-library-page-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leo-os-library-page-stats div {
    min-width: 0;
    padding: 0 10px;
  }

  .leo-os-library-page-stats div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .leo-os-library-route-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .leo-os-library-group-profile,
  .leo-os-library-group-projects { grid-column: 1 / -1; }
  .leo-os-library-group-expression,
  .leo-os-library-group-personal,
  .leo-os-library-group-connect { grid-column: span 4; }

  .leo-os-library-route {
    min-height: 112px;
  }
}

@media (max-width: 390px) {
  .leo-os-app-grid {
    grid-template-columns: repeat(3, 78px);
  }

  .leo-os-app {
    width: 76px;
  }

  .leo-os-app.leo-os-app-folder {
    width: 112px;
    height: 100px;
  }

  .leo-os-library-guide {
    top: 322px;
  }

  .leo-os-tray-presence { padding-right: 6px; padding-left: 6px; }
  .leo-os-tray-clock { gap: 4px; padding-left: 5px; }

  .leo-os-library-index {
    padding-right: 13px;
    padding-left: 13px;
  }

  .leo-os-library-route-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .leo-os-library-group-profile,
  .leo-os-library-group-projects,
  .leo-os-library-group-expression,
  .leo-os-library-group-personal,
  .leo-os-library-group-connect {
    grid-column: 1;
  }

  .leo-os-library-group-profile .leo-os-library-group-routes,
  .leo-os-library-group-projects .leo-os-library-group-routes {
    grid-template-columns: minmax(0, 1fr);
  }

  .leo-os-library-route {
    min-height: 110px;
  }
}

@media (max-width: 340px) {
  .leo-os-terminal-body {
    font-size: 7px;
    line-height: 1.34;
  }

  .leo-os-boot-panel {
    padding: 10px;
  }

  .leo-os-terminal-group {
    margin-bottom: 2px;
  }

  .leo-os-terminal-question {
    font-size: 5.5px;
  }

  .leo-os-guide {
    right: -2px;
    bottom: -14px;
    width: 82px;
  }

  .leo-os-launch {
    left: 10px;
    bottom: 5px;
    max-width: calc(100% - 20px);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(31, 43, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 43, 34, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(87, 117, 132, 0.12), transparent 34%),
    var(--paper);
  background-size: 42px 42px, 42px 42px, 100% 100%, auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 32%),
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(31, 43, 34, 0.018) 5px 6px);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(31, 43, 34, 0.06);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--quiet);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.25;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.site-nav a.active {
  background: var(--acid);
  color: #102015;
  box-shadow: inset 0 -3px 0 var(--ember);
  font-weight: 800;
}

.site-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.site-nav a:active,
.button:active,
.text-link:active,
.lab-mode:active,
.surface-link:active {
  transform: scale(0.96);
}

.site-nav a:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.lab-mode:focus-visible,
.surface-link:focus-visible,
.full-chapter-nav a:focus-visible,
.full-route-row:focus-visible,
.brand:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid rgba(83, 178, 71, 0.72);
  outline-offset: 3px;
}

.section,
.page-hero,
.resume-dossier-hero {
  width: 100%;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.resume-dossier-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 78px 0 62px;
}

.dossier-grid,
.hero-grid,
.split,
.resume-layout,
.case-detail,
.lab-layout,
.surface-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.resume-hero-copy {
  max-width: 720px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--ember);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 92px;
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 800;
}

.role-line {
  max-width: 620px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

.lede {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 22px;
}

.button,
.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  touch-action: manipulation;
}

.button {
  padding: 11px 15px;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px rgba(31, 43, 34, 0.16);
}

.button.secondary {
  background: var(--acid);
  color: #102015;
}

.button.quiet {
  background: rgba(31, 43, 34, 0.07);
  color: var(--ink);
}

.text-link {
  color: var(--ember);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.dossier-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dossier-facts div,
.dossier-panel,
.resume-row,
.surface-link,
.case-card,
.lab-console,
.resume-panel,
.case-sidebar,
.lens-console,
.scenario-card,
.protocol-step,
.signal-lane {
  background: var(--panel-strong);
}

.dossier-facts div {
  padding: 14px;
}

dt,
.dossier-highlight-list span,
.surface-link span,
.tag,
.lane-number {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
}

.dossier-panel {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(31, 43, 34, 0.1);
}

.resume-portrait {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.resume-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  outline: 1px solid rgba(31, 43, 34, 0.1);
  outline-offset: -1px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}

.panel-head strong {
  color: var(--ember);
}

.dossier-highlight-list article {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.dossier-highlight-list article:last-child {
  border-bottom: 0;
}

.dossier-highlight-list p {
  margin: 5px 0 0;
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.resume-row-list,
.surface-list,
.case-stack,
.protocol-grid,
.scenario-grid,
.signal-lanes {
  display: grid;
  gap: 14px;
}

.resume-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 43, 34, 0.1);
}

.lane-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(31, 43, 34, 0.08);
  color: var(--ink);
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  background: rgba(83, 178, 71, 0.12);
  color: oklch(35% 0.08 128);
}

.signal-list,
.compact-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.signal-list li,
.compact-list li {
  margin: 6px 0;
}

.open-surfaces {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.surface-layout {
  align-items: start;
}

.surface-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-link {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(31, 43, 34, 0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.surface-link strong {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.surface-link small {
  color: var(--muted);
  font-size: 14px;
}

.surface-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(31, 43, 34, 0.1);
}

.selected-work .case-stack {
  max-width: 920px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.55fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(31, 43, 34, 0.1);
  border-radius: var(--radius-md);
}

.case-title p,
.case-facts dd,
.scenario-card dd,
.protocol-step p,
.signal-lane p,
.prose p,
.resume-panel p,
.case-sidebar p {
  color: var(--muted);
}

.case-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lab-drawer {
  padding-bottom: 92px;
}

.lab-layout {
  align-items: stretch;
}

.lab-copy {
  align-self: center;
}

.lab-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 18px;
}

.lab-mode {
  min-height: 74px;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(31, 43, 34, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.lab-mode span,
.lab-mode strong {
  display: block;
}

.lab-mode span {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.lab-mode.active {
  background: var(--ink);
  color: var(--paper);
}

.lab-console {
  position: relative;
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 43, 34, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lab-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 43, 34, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(31, 43, 34, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
}

.lab-console > * {
  position: relative;
  z-index: 1;
}

.lab-character-stage {
  position: relative;
  height: 172px;
  margin: -5px 0 14px;
  isolation: isolate;
}

.lab-character-halo {
  position: absolute;
  z-index: 0;
  right: 30px;
  bottom: 16px;
  width: 160px;
  height: 96px;
  border: 1px solid rgba(83, 178, 71, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 178, 71, 0.09), transparent 68%);
  transition: border-color 180ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.leo-character--lab {
  z-index: 2;
  right: 13px;
  bottom: -30px;
  width: 184px;
  filter: drop-shadow(0 16px 18px rgba(31, 43, 34, 0.14));
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.leo-character--lab .leo-character-frame--open {
  opacity: 0;
  animation: leoCharacterBlink 6.2s 900ms linear infinite;
}

.lab-character-prop {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 24px;
  display: grid;
  grid-template-columns: 30px auto;
  align-items: center;
  gap: 8px;
  opacity: 0;
  color: var(--ink);
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-character-prop i {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(31, 43, 34, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.lab-character-prop i::before,
.lab-character-prop i::after {
  content: "";
  position: absolute;
  background: var(--acid);
}

.lab-character-prop i::before {
  left: 7px;
  right: 7px;
  top: 10px;
  height: 2px;
}

.lab-character-prop i::after {
  left: 13px;
  top: 6px;
  width: 2px;
  height: 16px;
}

.lab-character-prop b {
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.lab-layout[data-lab-mode-state="people"] .lab-character-prop-people,
.lab-layout[data-lab-mode-state="data"] .lab-character-prop-data,
.lab-layout[data-lab-mode-state="systems"] .lab-character-prop-systems,
.lab-layout[data-lab-mode-state="fun"] .lab-character-prop-fun {
  opacity: 1;
  transform: none;
}

.lab-layout[data-lab-mode-state="data"] .lab-character-prop-data i {
  border-radius: 3px;
  background: linear-gradient(to top, rgba(83, 178, 71, 0.42) 0 38%, transparent 38%);
}

.lab-layout[data-lab-mode-state="systems"] .lab-character-prop-systems i {
  border-radius: 3px;
  background: linear-gradient(135deg, transparent 42%, rgba(83, 178, 71, 0.55) 43% 49%, transparent 50%);
}

.lab-layout[data-lab-mode-state="fun"] .lab-character-prop-fun i {
  border-color: rgba(184, 82, 60, 0.38);
  transform: rotate(12deg);
}

.lab-layout[data-lab-mode-state="fun"] .lab-character-prop-fun i::before,
.lab-layout[data-lab-mode-state="fun"] .lab-character-prop-fun i::after {
  background: var(--rust);
}

.lab-layout[data-lab-mode-state="data"] .leo-character--lab,
.lab-layout[data-lab-mode-state="systems"] .leo-character--lab {
  transform: translateY(-3px);
}

.lab-layout[data-lab-mode-state="fun"] .leo-character--lab {
  transform: translateY(-2px);
}

.lab-layout[data-lab-mode-state="fun"] .lab-character-halo {
  border-color: rgba(184, 82, 60, 0.32);
  transform: rotate(-4deg) scale(1.03);
}

.desk-proof {
  color: var(--muted);
}

.desk-proof strong {
  color: var(--ink);
}

.page-hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 70px 0 54px;
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid var(--line);
}

.signal-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  pointer-events: none;
}

.hero-copy {
  max-width: 760px;
}

.signal-visual {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.signal-identity p,
.signal-facts dt,
.console-head,
.build-log-head {
  font-family: var(--font-mono);
  font-size: 12px;
}

.signal-identity strong {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
}

.signal-facts {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}

.signal-facts div {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-facts dd,
.signal-facts dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.lens-console,
.resume-panel,
.case-sidebar {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 43, 34, 0.1);
  box-shadow: var(--shadow);
}

.lens-console ol,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lens-console li,
.timeline li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.lens-console li span,
.timeline li span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(31, 43, 34, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
}

.protocol-grid,
.scenario-grid,
.signal-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.protocol-step,
.scenario-card,
.signal-lane {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 43, 34, 0.1);
}

.scenario-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.intro-band {
  background: var(--ink);
  color: var(--paper);
}

.intro-band .kicker,
.intro-band .lede,
.intro-band .signal-list,
.intro-band .compact-list {
  color: rgba(255, 255, 255, 0.75);
}

.resume-main,
.prose {
  min-width: 0;
}

.resume-main h2,
.prose h2 {
  margin-top: 32px;
}

.resume-main h2:first-child,
.prose h2:first-child {
  margin-top: 0;
}

.case-detail {
  align-items: start;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(18px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

.site-footer a {
  color: var(--ember);
  font-weight: 800;
}

body[data-page="full.html"] {
  background: var(--paper);
}

body[data-page="full.html"]::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 28%),
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(31, 43, 34, 0.014) 5px 6px);
}

body[data-page="full.html"] .site-header {
  position: absolute;
  inset: 0 0 auto;
  color: var(--paper);
  background: rgba(12, 19, 15, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

body[data-page="full.html"] .brand-mark {
  background: var(--paper);
  color: var(--ink);
}

body[data-page="full.html"] .brand small,
body[data-page="full.html"] .site-nav a {
  color: rgba(247, 244, 236, 0.72);
}

body[data-page="full.html"] .site-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

body[data-page="full.html"] .site-nav a.active {
  background: var(--acid);
  color: #102015;
  box-shadow: inset 0 -3px 0 var(--amber);
}

body[data-page="full.html"] .site-footer {
  background: var(--ink);
  color: rgba(247, 244, 236, 0.72);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.full-dossier .resume-dossier-hero {
  width: 100%;
}

.full-dossier-hero {
  position: relative;
  height: 100svh;
  min-height: 780px;
  max-height: 960px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.full-hero-image,
.full-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.full-hero-image {
  display: block;
  object-fit: cover;
  object-position: 68% 34%;
  filter: saturate(0.86) contrast(1.02);
}

.full-hero-shade {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 17, 13, 0.96) 0%, rgba(10, 17, 13, 0.9) 31%, rgba(10, 17, 13, 0.58) 54%, rgba(10, 17, 13, 0.08) 82%),
    linear-gradient(0deg, rgba(10, 17, 13, 0.84) 0%, transparent 42%);
}

.full-hero-layout {
  display: flex;
  align-items: flex-end;
  padding-top: 122px;
  padding-bottom: 126px;
}

.full-hero-copy {
  width: min(680px, 58%);
  max-width: none;
}

.full-dossier h1,
.full-dossier h2,
.full-dossier h3 {
  text-transform: none;
}

.full-dossier h1 {
  max-width: 580px;
  margin-bottom: 20px;
  color: var(--paper);
  font-size: clamp(76px, 9vw, 132px);
  line-height: 0.82;
  text-wrap: balance;
}

.full-hero-copy .kicker {
  color: var(--amber);
}

.full-hero-copy .role-line {
  max-width: 580px;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.1;
}

.full-hero-copy .lede {
  max-width: 610px;
  color: rgba(247, 244, 236, 0.82);
  font-size: 18px;
  text-wrap: pretty;
}

.full-hero-meta {
  margin: 22px 0 0;
  color: rgba(247, 244, 236, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.full-hero-actions {
  margin: 26px 0;
}

.full-hero-actions .button.primary {
  background: var(--paper);
  color: var(--ink);
}

.full-hero-actions .button.secondary {
  background: var(--acid);
  color: #102015;
}

.full-hero-actions .button.quiet {
  background: rgba(247, 244, 236, 0.12);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 236, 0.22);
}

.full-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  margin: 0;
  border-top: 1px solid rgba(247, 244, 236, 0.24);
  border-bottom: 1px solid rgba(247, 244, 236, 0.24);
}

.full-hero-facts div {
  padding: 14px 18px 14px 0;
}

.full-hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(247, 244, 236, 0.16);
}

.full-hero-facts dt {
  color: rgba(247, 244, 236, 0.54);
}

.full-hero-facts dd {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.full-chapter-nav {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(10, 17, 13, 0.78);
  border-top: 1px solid rgba(247, 244, 236, 0.16);
}

.full-chapter-nav a {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--paper);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.full-chapter-nav a + a {
  border-left: 1px solid rgba(247, 244, 236, 0.14);
}

.full-chapter-nav a:active,
.full-route-row:active {
  transform: scale(0.98);
}

.full-route-number,
.full-case-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.full-practice-section {
  padding: 104px 0 112px;
  background: var(--paper);
}

.full-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  column-gap: 64px;
  align-items: end;
  margin-bottom: 46px;
}

.full-section-heading .kicker {
  grid-column: 1 / -1;
}

.full-section-heading h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(46px, 6vw, 74px);
  line-height: 0.94;
  text-wrap: balance;
}

.full-section-heading > p:last-child {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.full-path-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(420px, 1fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: start;
}

.full-path-intro {
  padding-top: 4px;
}

.full-path-intro h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.92;
}

.full-path-map {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.full-path-map::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(var(--acid), rgba(75, 106, 82, 0.24));
}

.full-path-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 28px;
  min-height: 154px;
  padding: 0 0 48px;
}

.full-path-step:last-child {
  min-height: 0;
  padding-bottom: 0;
}

.full-path-node {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: 5px 0 0 13px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px rgba(31, 43, 34, 0.24), 0 0 0 7px rgba(140, 196, 91, 0.12);
}

.full-path-index {
  color: var(--ember);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.full-path-step h3 {
  margin: 5px 0 10px;
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 0.98;
}

.full-path-step p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}

.full-proof-section {
  padding: 104px 0 114px;
  background: var(--ink);
  color: var(--paper);
}

.full-proof-heading .kicker {
  color: var(--acid);
}

.full-proof-heading > p:last-child {
  color: rgba(247, 244, 236, 0.68);
}

.full-case-list {
  border-top: 1px solid rgba(247, 244, 236, 0.2);
}

.full-case-row {
  display: grid;
  grid-template-columns: 64px minmax(260px, 0.75fr) minmax(300px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px 0 40px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.2);
}

.full-case-number {
  align-self: start;
  color: var(--acid);
  font-size: 13px;
}

.full-case-title .tag {
  background: rgba(140, 196, 91, 0.14);
  color: var(--acid);
}

.full-case-title h3 {
  margin: 12px 0 8px;
  color: var(--paper);
  font-size: clamp(29px, 3vw, 42px);
  line-height: 0.98;
}

.full-case-title p,
.full-case-proof dd {
  color: rgba(247, 244, 236, 0.68);
}

.full-case-proof {
  display: grid;
  gap: 14px;
  margin: 0;
}

.full-case-proof div {
  padding-top: 12px;
  border-top: 1px solid rgba(247, 244, 236, 0.16);
}

.full-case-proof dt {
  color: var(--amber);
}

.full-case-proof dd {
  margin-top: 6px;
  text-wrap: pretty;
}

.full-case-row .button {
  align-self: end;
  white-space: nowrap;
}

.full-route-section {
  padding: 104px 0 92px;
  background: var(--paper-2);
}

.full-route-heading {
  margin-bottom: 34px;
}

.full-route-list {
  border-top: 1px solid var(--line);
}

.full-route-row {
  display: grid;
  grid-template-columns: 52px 110px minmax(0, 1fr) 34px;
  gap: 20px;
  align-items: center;
  min-height: 86px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease;
  touch-action: manipulation;
}

.full-route-number,
.full-route-label {
  color: var(--quiet);
  font-size: 12px;
  text-transform: uppercase;
}

.full-route-label {
  font-family: var(--font-mono);
  font-weight: 800;
}

.full-route-row strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.full-route-row i {
  color: var(--ember);
  font-size: 22px;
  font-style: normal;
  text-align: right;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-1px);
  }

  .full-chapter-nav a:hover {
    background: var(--paper);
    color: var(--ink);
  }

  .full-route-row:hover {
    color: var(--ember);
  }

  .lab-mode:hover:not(.active) {
    background: rgba(31, 43, 34, 0.14);
  }
}

@media (max-width: 900px) {
  body[data-page="full.html"] .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 2px;
    padding: 6px 10px 4px;
    background: var(--ink);
  }

  body[data-page="full.html"] .brand {
    min-height: 38px;
    gap: 8px;
  }

  body[data-page="full.html"] .brand-mark {
    width: 32px;
    height: 32px;
  }

  body[data-page="full.html"] .brand strong {
    font-size: 14px;
    line-height: 1;
  }

  body[data-page="full.html"] .brand small {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1;
  }

  body[data-page="full.html"] .site-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    border-top: 1px solid rgba(247, 244, 236, 0.12);
  }

  body[data-page="full.html"] .site-nav a {
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    padding: 7px 2px;
    border-radius: 0;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .dossier-grid,
  .hero-grid,
  .split,
  .resume-layout,
  .case-detail,
  .lab-layout,
  .surface-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 34px;
  }

  .dossier-facts,
  .surface-list,
  .protocol-grid,
  .scenario-grid,
  .signal-lanes {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .full-dossier-hero {
    height: auto;
    min-height: 820px;
    max-height: none;
  }

  .full-hero-image {
    object-position: 58% 22%;
  }

  .full-hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 17, 13, 0.97) 0%, rgba(10, 17, 13, 0.9) 48%, rgba(10, 17, 13, 0.3) 82%),
      linear-gradient(90deg, rgba(10, 17, 13, 0.62), rgba(10, 17, 13, 0.18));
  }

  .full-hero-layout {
    align-items: flex-end;
    padding-top: 280px;
    padding-bottom: 110px;
  }

  .full-hero-copy {
    width: 100%;
  }

  .full-dossier h1 {
    max-width: 100%;
    font-size: clamp(66px, 17vw, 96px);
  }

  .full-chapter-nav {
    padding: 0 14px;
  }

  .full-chapter-nav a {
    min-height: 62px;
    justify-content: center;
    padding: 12px 8px;
  }

  .full-section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .full-path-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .full-case-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
  }

  .full-case-proof,
  .full-case-row .button {
    grid-column: 2;
  }

  .full-case-row .button {
    justify-self: start;
  }

  .full-route-row {
    grid-template-columns: 42px 92px minmax(0, 1fr) 30px;
    gap: 14px;
  }

  .full-route-row i {
    grid-column: 4;
  }
}

@media (max-width: 520px) {
  .section-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .resume-dossier-hero,
  .page-hero {
    padding: 48px 0;
  }

  .section {
    padding: 48px 0;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 30px;
  }

  .lede {
    font-size: 17px;
  }

  .dossier-facts {
    grid-template-columns: 1fr;
  }

  .lab-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .lab-mode {
    min-height: 64px;
  }

  .lab-mode span {
    font-size: 24px;
  }

  .resume-row {
    grid-template-columns: 1fr;
  }

  .full-dossier-hero {
    min-height: 790px;
  }

  .full-hero-layout {
    padding-top: 250px;
    padding-bottom: 96px;
  }

  .full-dossier h1 {
    font-size: 64px;
  }

  .full-hero-copy .role-line {
    font-size: 21px;
  }

  .full-hero-copy .lede {
    font-size: 16px;
  }

  .full-hero-facts {
    grid-template-columns: 1fr;
  }

  .full-hero-facts div,
  .full-hero-facts div + div {
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid rgba(247, 244, 236, 0.14);
  }

  .full-hero-facts div:first-child {
    border-top: 0;
  }

  .full-chapter-nav a {
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }

  .full-practice-section,
  .full-proof-section,
  .full-route-section {
    padding: 72px 0 78px;
  }

  .full-section-heading h2 {
    font-size: 40px;
  }

  .full-path-intro h2 {
    font-size: 46px;
  }

  .full-path-step {
    gap: 20px;
    min-height: 142px;
    padding-bottom: 42px;
  }

  .full-case-row {
    grid-template-columns: 1fr;
  }

  .full-case-proof,
  .full-case-row .button {
    grid-column: 1;
  }

  .full-route-row {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    min-height: 88px;
  }

  .full-route-number {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .full-route-label,
  .full-route-row strong {
    grid-column: 2;
  }

  .full-route-row i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Library-owned content surfaces: projects, personal life, and public channels. */
.work-project-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.work-project-controls button {
  min-height: 38px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid rgba(16, 34, 41, 0.18);
  border-radius: 4px;
  background: var(--paper);
  font: 750 11px/1 var(--font-mono);
  cursor: pointer;
}

.work-project-controls button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--os-blue-dark);
  background: var(--os-blue-dark);
}

.work-project-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-project-tile {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(16, 34, 41, 0.16);
  border-radius: 6px;
  background: #eceae3;
}

.work-project-tile[hidden] { display: none; }
.work-project-tile-live { background: #dfead8; }
.work-project-tile-method { background: #dde9ef; }
.work-project-tile-building { background: #eee7dd; }

.work-project-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: var(--os-blue-dark);
  font: 900 13px/1 var(--font-mono);
}

.work-project-tile-live .work-project-mark { color: #17242a; background: var(--acid); }
.work-project-tile-building .work-project-mark { background: var(--os-rust); }

.work-project-tile small {
  color: var(--rust);
  font: 800 10px/1 var(--font-mono);
  text-transform: uppercase;
}

.work-project-tile h2 {
  margin: 8px 0 0;
  letter-spacing: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 0.95;
}

.work-project-tile p {
  max-width: 36ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.work-project-tile a,
.work-project-pending {
  width: fit-content;
  color: var(--ink);
  font: 800 11px/1 var(--font-mono);
  text-transform: uppercase;
}

.work-project-tile a { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.work-project-pending { color: var(--muted); }

.about-personal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: stretch;
}

.about-personal-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.about-personal-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}

.about-personal-portrait figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font: 650 11px/1.45 var(--font-mono);
}

.about-personal-notes {
  display: grid;
  border-top: 1px solid var(--line);
}

.about-personal-notes article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-content: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.about-personal-notes article > span {
  color: var(--rust);
  font: 850 11px/1 var(--font-mono);
}

.about-personal-notes h2,
.about-personal-notes p { margin: 0; }
.about-personal-notes h2 { letter-spacing: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1; }
.about-personal-notes p { max-width: 52ch; margin-top: 8px; color: var(--muted); line-height: 1.55; }

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.contact-channel-grid article {
  min-height: 190px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.contact-channel-grid article > span,
.contact-channel-grid article > small {
  color: var(--rust);
  font: 800 9px/1 var(--font-mono);
  text-transform: uppercase;
}

.contact-channel-grid h2 { margin: 26px 0 0; letter-spacing: 0; font-size: 24px; line-height: 1; }
.contact-channel-grid p { color: var(--muted); line-height: 1.45; }
.contact-channel-grid article > small { color: var(--muted); }

.contact-fit-line {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .work-project-board,
  .about-personal-grid,
  .contact-fit-line { grid-template-columns: minmax(0, 1fr); }
  .work-project-tile { min-height: 240px; }
  .contact-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .contact-channel-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-channel-grid article { min-height: 150px; }
}

/* Jiunian / metaphysics: bright contemporary Eastern editorial route. */
.metaphysics-body {
  margin: 0;
  background: #f4efe3;
  color: #201d18;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

.metaphysics-body * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.metaphysics-site {
  min-height: 100vh;
  overflow: hidden;
}

.metaphysics-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(24px, 5vw, 76px);
  color: #261e16;
}

.metaphysics-brand {
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  color: inherit;
  text-decoration: none;
}

.metaphysics-seal {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 41, 28, 0.48);
  background: #a33c2b;
  color: #fff9eb;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(95, 43, 26, 0.16);
}

.metaphysics-brand strong {
  align-self: end;
  font-size: 19px;
  line-height: 1.1;
}

.metaphysics-brand small {
  align-self: start;
  color: rgba(38, 30, 22, 0.67);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

.metaphysics-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 13px;
}

.metaphysics-nav nav a {
  color: inherit;
  text-decoration: none;
}

.metaphysics-nav nav a:hover,
.metaphysics-nav nav a:focus-visible {
  color: #9f3828;
}

.metaphysics-nav nav span {
  padding: 8px 12px;
  border: 1px solid rgba(38, 30, 22, 0.26);
  background: rgba(255, 251, 240, 0.54);
}

.metaphysics-hero {
  position: relative;
  min-height: min(900px, 92svh);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #e9dfca;
}

.metaphysics-hero-image {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
  filter: brightness(1.34) saturate(0.72) contrast(0.86);
  transform: scale(1.02);
  animation: metaphysicsImageDrift 18s ease-in-out infinite alternate;
}

.metaphysics-light-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 243, 224, 0.98) 0%, rgba(248, 238, 215, 0.84) 31%, rgba(247, 235, 208, 0.25) 57%, rgba(255, 244, 220, 0.1) 100%),
    linear-gradient(0deg, rgba(238, 219, 185, 0.56) 0%, transparent 46%);
}

.metaphysics-orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(153, 65, 42, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.metaphysics-orbit::after {
  content: "";
  position: absolute;
  top: 11%;
  left: 8%;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9e3929;
  box-shadow: 0 0 0 6px rgba(158, 57, 41, 0.1);
}

.metaphysics-orbit-one {
  width: min(64vw, 920px);
  aspect-ratio: 1;
  right: -15vw;
  top: -28vw;
  animation: metaphysicsOrbit 38s linear infinite;
}

.metaphysics-orbit-two {
  width: min(35vw, 510px);
  aspect-ratio: 1;
  right: 9vw;
  bottom: -18vw;
  border-color: rgba(34, 93, 67, 0.2);
  animation: metaphysicsOrbit 29s linear infinite reverse;
}

.metaphysics-orbit-two::after {
  background: #356f55;
  box-shadow: 0 0 0 6px rgba(53, 111, 85, 0.1);
}

.metaphysics-hero-copy {
  width: min(660px, calc(100% - 48px));
  margin-left: clamp(24px, 8vw, 124px);
  padding-top: 72px;
}

.metaphysics-year {
  margin: 0 0 34px;
  color: #7f3427;
  font-size: 15px;
  font-weight: 600;
}

.metaphysics-hero h1 {
  margin: 0;
  color: #1d1a15;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: clamp(96px, 12vw, 176px);
  font-weight: 500;
  line-height: 0.82;
}

.metaphysics-title-cn {
  margin: 34px 0 7px;
  color: #282119;
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.4;
}

.metaphysics-title-en {
  margin: 0;
  color: rgba(40, 33, 25, 0.58);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: clamp(15px, 1.4vw, 20px);
  font-style: italic;
}

.metaphysics-intro {
  max-width: 520px;
  margin: 30px 0 0;
  color: rgba(40, 33, 25, 0.76);
  font-size: 17px;
  line-height: 1.9;
}

.metaphysics-route {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  margin-top: 34px;
  padding: 11px 17px 11px 20px;
  background: #273f32;
  color: #fffaf0;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(30, 47, 38, 0.2);
  transition: transform 180ms ease, background-color 180ms ease;
}

.metaphysics-route:hover,
.metaphysics-route:focus-visible {
  background: #9d3a2b;
  transform: translateY(-2px);
}

.metaphysics-status {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: clamp(56px, 9vh, 96px);
  width: min(280px, calc(100% - 48px));
  padding: 16px 18px;
  border-top: 1px solid rgba(38, 30, 22, 0.42);
  background: rgba(250, 244, 228, 0.74);
  color: #282119;
}

.metaphysics-status span,
.metaphysics-status small,
.metaphysics-status strong {
  display: block;
}

.metaphysics-status span {
  color: #8d3829;
  font-size: 12px;
}

.metaphysics-status strong {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 600;
}

.metaphysics-status small {
  margin-top: 5px;
  color: rgba(40, 33, 25, 0.64);
  font-size: 12px;
}

.metaphysics-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(40, 33, 25, 0.63);
  font-size: 11px;
  text-decoration: none;
  transform: translateX(-50%);
}

.metaphysics-scroll i {
  width: 1px;
  height: 22px;
  background: currentColor;
}

.metaphysics-practice {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.5fr);
  gap: clamp(48px, 8vw, 130px);
  padding: 94px clamp(24px, 8vw, 124px) 110px;
  background: #f6f0e4;
}

.metaphysics-section-heading p,
.metaphysics-boundary > p {
  margin: 0 0 22px;
  color: #9d3a2b;
  font-size: 13px;
}

.metaphysics-section-heading h2,
.metaphysics-boundary h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.3;
}

.metaphysics-section-heading > span {
  display: block;
  margin-top: 24px;
  color: rgba(32, 29, 24, 0.65);
  font-size: 15px;
  line-height: 1.8;
}

.metaphysics-disciplines article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(32, 29, 24, 0.22);
}

.metaphysics-disciplines article > span {
  color: #a33c2b;
  font-family: Baskerville, serif;
  font-size: 14px;
}

.metaphysics-disciplines small {
  color: #41745b;
  font-family: Baskerville, serif;
  font-size: 12px;
  font-style: italic;
}

.metaphysics-disciplines h3 {
  margin: 4px 0 8px;
  font-size: 25px;
  font-weight: 500;
}

.metaphysics-disciplines p {
  max-width: 620px;
  margin: 0;
  color: rgba(32, 29, 24, 0.67);
  font-size: 15px;
  line-height: 1.8;
}

.metaphysics-boundary {
  padding: 76px clamp(24px, 8vw, 124px) 90px;
  background: #293e33;
  color: #fffaf0;
}

.metaphysics-boundary h2 {
  max-width: 880px;
}

.metaphysics-boundary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.metaphysics-boundary span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  color: rgba(255, 250, 240, 0.82);
  font-size: 13px;
}

@keyframes metaphysicsImageDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(-0.7%, -0.4%, 0); }
}

@keyframes metaphysicsOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .metaphysics-nav {
    min-height: 68px;
    padding: 12px 18px;
  }

  .metaphysics-nav nav a {
    display: none;
  }

  .metaphysics-nav nav span {
    padding: 7px 9px;
    font-size: 11px;
  }

  .metaphysics-hero {
    min-height: 92svh;
    align-items: flex-end;
    padding-bottom: 138px;
  }

  .metaphysics-hero-image {
    object-position: 58% 50%;
    filter: brightness(1.42) saturate(0.66) contrast(0.82);
  }

  .metaphysics-light-wash {
    background:
      linear-gradient(0deg, rgba(249, 240, 219, 0.98) 0%, rgba(248, 238, 214, 0.84) 43%, rgba(247, 236, 212, 0.2) 74%),
      linear-gradient(90deg, rgba(250, 243, 224, 0.78), rgba(250, 243, 224, 0.08));
  }

  .metaphysics-hero-copy {
    width: calc(100% - 36px);
    margin: 0 18px;
    padding: 0;
  }

  .metaphysics-year {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .metaphysics-hero h1 {
    font-size: clamp(82px, 28vw, 118px);
  }

  .metaphysics-title-cn {
    margin-top: 22px;
    font-size: clamp(18px, 5.4vw, 23px);
  }

  .metaphysics-intro {
    max-width: 34ch;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.75;
  }

  .metaphysics-route {
    margin-top: 22px;
  }

  .metaphysics-status {
    left: 18px;
    right: auto;
    bottom: 26px;
    width: min(202px, calc(100% - 36px));
    padding: 11px 12px;
  }

  .metaphysics-status strong {
    font-size: 14px;
  }

  .metaphysics-status small {
    font-size: 10px;
  }

  .metaphysics-scroll {
    display: none;
  }

  .metaphysics-practice {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 68px 20px 76px;
  }

  .metaphysics-boundary {
    padding: 64px 20px 70px;
  }
}

@media (max-width: 390px) {
  .metaphysics-brand small {
    display: none;
  }

  .metaphysics-brand {
    grid-template-columns: 38px auto;
  }

  .metaphysics-seal {
    width: 38px;
    height: 38px;
  }

  .metaphysics-nav nav span {
    max-width: 96px;
    text-align: center;
  }

  .metaphysics-hero {
    min-height: 860px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .metaphysics-hero-image,
  .metaphysics-orbit {
    animation: none;
  }
}

/* Kinetic Resume Ledger: person-first basic profile with one small AI-lens cut. */
body.basic-body {
  --basic-paper: oklch(96.5% 0.012 88);
  --basic-paper-2: oklch(91.5% 0.018 86);
  --basic-ink: oklch(18% 0.026 214);
  --basic-deep: oklch(14% 0.03 220);
  --basic-soft: oklch(39% 0.03 204);
  --basic-quiet: oklch(57% 0.026 174);
  --basic-rust: oklch(54% 0.115 34);
  --basic-acid: oklch(69% 0.105 132);
  --basic-gold: oklch(72% 0.082 78);
  --basic-blue: oklch(43% 0.064 222);
  --basic-line: rgba(24, 37, 54, 0.115);
  --basic-hairline: rgba(24, 37, 54, 0.07);
  --basic-shadow: 0 22px 70px rgba(27, 39, 55, 0.1);
  min-height: 100vh;
  background:
    linear-gradient(rgba(24, 37, 54, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 37, 54, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(184, 82, 60, 0.09), transparent 24%),
    linear-gradient(315deg, rgba(92, 151, 122, 0.052), transparent 26%),
    var(--basic-paper);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%, auto;
  color: var(--basic-ink);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
}

.basic-body::before,
.basic-body::after {
  display: none;
}

.basic-shell {
  position: relative;
  width: min(1372px, calc(100% - 36px));
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: minmax(330px, 0.36fr) minmax(0, 1fr) minmax(318px, 0.34fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  margin: 8px auto 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56) 46%, rgba(246, 242, 231, 0.92)),
    var(--basic-paper);
  box-shadow: var(--basic-shadow);
}

.basic-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 44%, rgba(24, 37, 54, 0.09) 44.1% 44.22%, transparent 44.32%),
    linear-gradient(116deg, transparent 0 67%, rgba(184, 82, 60, 0.11) 67.1% 67.2%, transparent 67.3%);
  opacity: 0.78;
}

.basic-shell > * {
  position: relative;
  z-index: 1;
}

.basic-masthead,
.basic-profile-card,
.basic-main-card,
.basic-outcomes-card {
  min-width: 0;
}

.basic-masthead {
  grid-column: 1 / -1;
}

.basic-main-card {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.basic-outcomes-card {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
}

.basic-profile-card {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.basic-scanline {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--basic-acid), var(--basic-rust), transparent);
  transform-origin: left center;
}

.basic-masthead {
  display: grid;
  grid-template-columns: 52px minmax(360px, 0.86fr) minmax(392px, auto);
  gap: 7px;
  align-items: center;
  min-height: 58px;
  padding: 5px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.76) inset,
    0 1px 2px rgba(24, 37, 54, 0.045);
}

.basic-nameplate {
  grid-column: 2;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 4px 16px 4px 12px;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(24, 37, 54, 0.052), rgba(24, 37, 54, 0.014)),
    rgba(255, 255, 255, 0.42);
}

.basic-signature {
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  display: grid;
  align-content: center;
  padding: 0 10px 4px 2px;
  color: var(--basic-deep);
  text-decoration: none;
  transform: rotate(-0.55deg);
}

.basic-signature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  font-family: "Bradley Hand", "Segoe Print", "Marker Felt", cursive;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.basic-signature-copy > span {
  white-space: nowrap;
}

.basic-signature i {
  position: absolute;
  left: 0;
  right: 3px;
  bottom: 4px;
  height: 7px;
  overflow: hidden;
  transform: skewX(-18deg);
}

.basic-signature i::before,
.basic-signature i::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 84%;
  height: 2px;
  border-radius: 999px;
  background: var(--basic-rust);
  transform: rotate(-1deg);
  transform-origin: left center;
}

.basic-signature i::after {
  left: auto;
  right: 0;
  width: 18%;
  transform: rotate(10deg);
}

.basic-action-grid {
  grid-column: 3;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 1px;
  min-height: 48px;
  padding: 1px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--basic-line);
}

.basic-action-grid a {
  min-width: 0;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.54);
  color: var(--basic-ink);
  font-size: 12.5px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.basic-action-grid a:first-child {
  border-radius: 6px 0 0 6px;
}

.basic-action-grid a:last-child {
  border-radius: 0 6px 6px 0;
  color: var(--basic-rust);
}

.basic-action-grid a.active {
  background: rgba(116, 196, 92, 0.14);
  color: var(--basic-deep);
  box-shadow: 0 -2px 0 var(--basic-acid) inset;
}

.basic-theme-switch {
  grid-column: 1;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(24, 37, 54, 0.088), rgba(24, 37, 54, 0.032)),
    rgba(255, 255, 255, 0.34);
}

.basic-theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--basic-deep);
  color: var(--basic-paper);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 8px 18px rgba(24, 37, 54, 0.15);
  cursor: pointer;
  transition: transform 160ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  touch-action: manipulation;
}

.basic-theme-icon {
  position: absolute;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 120ms cubic-bezier(0.2, 0, 0, 1), transform 120ms cubic-bezier(0.2, 0, 0, 1);
}

html[data-theme="day"] .basic-theme-icon-sun,
html[data-theme="night"] .basic-theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.basic-profile-card,
.basic-main-card,
.basic-outcomes-card {
  border-radius: 8px;
}

.basic-profile-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "identity"
    "portrait"
    "lab";
  gap: 8px;
  align-items: stretch;
  align-content: start;
  min-height: 0;
  height: auto;
}

.basic-id-block,
.basic-signal-lab,
.basic-main-card,
.basic-outcomes-card {
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 1px 2px rgba(24, 37, 54, 0.05);
}

.basic-id-block {
  grid-area: identity;
  display: grid;
  align-content: start;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--basic-hairline);
}

.basic-chip {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(184, 82, 60, 0.11);
  color: var(--basic-rust);
  font: 800 10.5px / 1.2 var(--font-mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.basic-id-block h1 {
  margin: 0;
  color: var(--basic-deep);
  font-family: var(--font-display);
  font-size: clamp(48px, 3.8vw, 54px);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: none;
}

.basic-role {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  color: var(--basic-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.24;
}

.basic-role span,
.basic-role em {
  display: block;
}

.basic-role em {
  color: var(--basic-soft);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 740;
}

.basic-summary {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--basic-soft);
  font-size: 13px;
  line-height: 1.34;
}

.basic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.basic-meta span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(24, 37, 54, 0.06);
  color: var(--basic-soft);
  font-size: 12px;
  font-weight: 700;
}

.basic-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--basic-line);
}

.basic-stat-grid div {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.basic-stat-link {
  transition: background-color 160ms ease, transform 160ms ease;
  touch-action: manipulation;
}

.basic-stat-link a {
  color: inherit;
  text-decoration: none;
}

.basic-stat-link:active {
  transform: scale(0.98);
}

.basic-stat-grid dt {
  color: var(--basic-rust);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.basic-stat-grid dd {
  margin: 3px 0 0;
  color: var(--basic-soft);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.1;
}

.basic-section-divider {
  grid-column: 1 / -1;
  position: relative;
  display: none;
  align-items: center;
  min-height: 12px;
}

.basic-section-divider::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 37, 54, 0.16), transparent);
}

.basic-section-divider::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: rgba(184, 82, 60, 0.46);
  transform: translateY(-50%);
}

.basic-portrait {
  grid-area: portrait;
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--basic-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.basic-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(11, 18, 27, 0.58)),
    linear-gradient(90deg, rgba(116, 196, 92, 0.18), transparent 32%);
}

.basic-portrait-person {
  background: oklch(15% 0.018 72);
  min-height: 198px;
  height: clamp(230px, 27vh, 270px);
}

.basic-portrait-person::after {
  background:
    linear-gradient(180deg, rgba(14, 14, 12, 0.02) 0 42%, rgba(14, 14, 12, 0.72) 100%),
    linear-gradient(90deg, rgba(184, 82, 60, 0.12), transparent 38%);
}

.basic-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.04);
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
}

.basic-portrait-person img {
  object-position: 50% 50%;
  filter: saturate(0.94) contrast(1.02);
}

.basic-portrait figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: rgba(13, 22, 31, 0.78);
  color: rgba(255, 255, 255, 0.86);
  font: 800 9.5px / 1.25 var(--font-mono);
  text-transform: uppercase;
}

.basic-portrait-person figcaption {
  background: rgba(13, 14, 13, 0.7);
  color: rgba(255, 249, 236, 0.9);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 760;
  text-transform: none;
}

.basic-signal-lab {
  grid-area: lab;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--basic-hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 245, 232, 0.68)),
    rgba(255, 255, 255, 0.74);
  color: var(--basic-ink);
}

.basic-lab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.basic-lab-head .basic-chip {
  background: rgba(116, 196, 92, 0.16);
  color: oklch(44% 0.095 132);
}

.basic-lab-head strong {
  max-width: 116px;
  color: var(--basic-deep);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.basic-mode-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.basic-mode {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: rgba(24, 37, 54, 0.075);
  color: var(--basic-soft);
  cursor: pointer;
  font: 800 10.5px var(--font-mono);
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.basic-mode.active {
  background: oklch(70% 0.1 132);
  color: oklch(15% 0.035 154);
}

.basic-live-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 0;
  padding: 5px 7px 7px;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 18%, rgba(116, 196, 92, 0.18), transparent 23%),
    linear-gradient(rgba(24, 37, 54, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 37, 54, 0.042) 1px, transparent 1px),
    rgba(255, 255, 255, 0.6);
  background-size: 100% 100%, 18px 18px, 18px 18px, auto;
}

.basic-character-actor {
  position: relative;
  width: min(100%, 224px);
  height: 132px;
  isolation: isolate;
}

.leo-character {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  pointer-events: none;
}

.leo-character-frame {
  position: absolute;
  inset: 0;
  display: block;
  background-image: url("images/leo-guide-blink-sprite.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}

.leo-character-frame--closed {
  background-position: left center;
}

.leo-character-frame--open {
  background-position: right center;
}

.leo-character--workshop {
  z-index: 2;
  left: 50%;
  bottom: -25px;
  width: 162px;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 13px rgba(24, 37, 54, 0.13));
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), filter 280ms ease;
}

.basic-character-aura {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 10px;
  width: 150px;
  height: 82px;
  border: 1px solid rgba(116, 196, 92, 0.2);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: border-color 200ms ease, transform 280ms ease;
}

.basic-character-aura::before,
.basic-character-aura::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(116, 196, 92, 0.14);
  border-radius: inherit;
}

.basic-character-aura::after {
  inset: 26px;
}

.basic-character-prop {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 3px;
  opacity: 0;
  color: var(--basic-soft);
  font: 800 9px / 1 var(--font-mono);
  text-transform: uppercase;
  transform: translateY(7px) scale(0.92);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.basic-character-prop i {
  position: relative;
  display: block;
  width: 30px;
  height: 25px;
  border: 2px solid rgba(24, 37, 54, 0.62);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

.basic-character-prop-work {
  right: 11px;
  bottom: 19px;
}

.basic-character-prop-work i::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  height: 10px;
  border-radius: 2px;
  background: rgba(116, 196, 92, 0.55);
}

.basic-character-prop-daily {
  left: 14px;
  top: 22px;
}

.basic-character-prop-daily i {
  width: 28px;
  height: 28px;
  border-color: rgba(116, 196, 92, 0.48);
  border-radius: 50%;
  background: transparent;
}

.basic-character-prop-daily i::before,
.basic-character-prop-daily i::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(116, 196, 92, 0.42);
  border-radius: inherit;
}

.basic-character-prop-daily i::after {
  inset: 10px;
}

.basic-character-prop-travel {
  right: 13px;
  top: 16px;
}

.basic-character-prop-travel i {
  width: 25px;
  height: 31px;
  border-radius: 50% 50% 50% 4px;
  background: rgba(184, 82, 60, 0.13);
  transform: rotate(-45deg);
}

.basic-character-prop-travel i::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(24, 37, 54, 0.5);
  border-radius: 50%;
}

.basic-shell[data-basic-mode-state="work"] .basic-character-prop-work,
.basic-shell[data-basic-mode-state="daily"] .basic-character-prop-daily,
.basic-shell[data-basic-mode-state="travel"] .basic-character-prop-travel {
  opacity: 1;
  transform: none;
}

.basic-shell[data-basic-mode-state="work"] .leo-character--workshop,
.basic-shell[data-basic-mode-state="travel"] .leo-character--workshop {
  transform: translateX(-50%) translateY(-2px);
}

.basic-shell[data-basic-mode-state="daily"] .basic-character-aura {
  border-color: rgba(116, 196, 92, 0.36);
  animation: leoCharacterBreathe 3.2s ease-in-out infinite;
}

.basic-shell[data-basic-mode-state="work"] .leo-character--workshop .leo-character-frame--closed,
.basic-shell[data-basic-mode-state="travel"] .leo-character--workshop .leo-character-frame--closed {
  opacity: 0;
}

.basic-shell[data-basic-mode-state="work"] .leo-character--workshop .leo-character-frame--open,
.basic-shell[data-basic-mode-state="travel"] .leo-character--workshop .leo-character-frame--open {
  opacity: 1;
}

.basic-shell[data-basic-mode-state="daily"] .leo-character--workshop .leo-character-frame--open {
  opacity: 0;
  animation: leoCharacterBlink 6.2s linear infinite;
}

.basic-status-line {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.basic-status-line span {
  align-self: center;
  min-width: 38px;
  min-height: 25px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(116, 196, 92, 0.16);
  color: oklch(44% 0.095 132);
  font: 800 10px / 1 var(--font-mono);
  text-transform: uppercase;
}

.basic-status-line strong {
  color: var(--basic-deep);
  font-size: 14.5px;
  line-height: 1.06;
}

.basic-status-line p {
  display: none;
}

.basic-main-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-content: start;
  min-height: 0;
  padding: 11px;
  border: 1px solid var(--basic-hairline);
}

.basic-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: end;
  gap: 8px;
  padding: 0 0 8px;
  border-right: 0;
  border-bottom: 1px solid var(--basic-line);
}

.basic-topline h2,
.basic-outcomes-card h2 {
  margin: 0;
  color: var(--basic-deep);
  font-family: var(--font-display);
  font-size: clamp(30px, 2.55vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.basic-main-card .basic-topline h2 {
  font-family: var(--font-body);
  font-size: clamp(25px, 2.05vw, 31px);
  font-weight: 820;
  line-height: 1.02;
}

.basic-outcomes-card h2 {
  max-width: 8.4em;
  font-size: clamp(27px, 2.18vw, 32px);
}

.basic-topline a {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(184, 82, 60, 0.11);
  color: var(--basic-rust);
  box-shadow:
    0 0 0 1px rgba(184, 82, 60, 0.2) inset,
    0 8px 20px rgba(184, 82, 60, 0.08);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.basic-credential-bar,
.basic-method-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--basic-line);
}

.basic-credential-bar {
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: transparent;
}

.basic-method-strip {
  grid-column: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.basic-credential-bar span,
.basic-method-strip span {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--basic-soft);
  font: 800 9.5px / 1.15 var(--font-mono);
  text-align: center;
  text-transform: uppercase;
}

.basic-method-strip span {
  flex-direction: column;
  gap: 2px;
}

.basic-method-strip b,
.basic-method-strip em {
  display: block;
  font-style: normal;
  line-height: 1.05;
}

.basic-method-strip b {
  color: var(--basic-rust);
  font-size: 8.6px;
}

.basic-method-strip em {
  color: var(--basic-soft);
  font-family: var(--font-body);
  font-size: 9px;
  text-transform: none;
}

.basic-credential-bar span {
  color: var(--basic-ink);
  font-family: var(--font-body);
  font-size: 11.2px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
  text-wrap: balance;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--basic-line) inset;
}

.basic-timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--basic-line);
}

.basic-timeline article {
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(126px, 0.24fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.66);
}

.basic-timeline article:first-child {
  border-left: 0;
}

.basic-timeline article.is-active,
.basic-shell[data-basic-mode-state="people"] .basic-timeline article[data-basic-lane="people"],
.basic-shell[data-basic-mode-state="data"] .basic-timeline article[data-basic-lane="data"],
.basic-shell[data-basic-mode-state="ai"] .basic-timeline article[data-basic-lane="ai"] {
  background:
    linear-gradient(90deg, rgba(116, 196, 92, 0.13), rgba(255, 255, 255, 0.76) 54%),
    rgba(255, 255, 255, 0.76);
}

.basic-node {
  display: inline-grid;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  align-items: center;
  justify-items: start;
  padding: 7px 8px;
  border-radius: 4px;
  background: rgba(24, 37, 54, 0.055);
  color: var(--basic-ink);
  font: 800 11px / 1.1 var(--font-body);
  text-transform: none;
}

.basic-timeline article.is-active .basic-node {
  background: var(--basic-acid);
  color: var(--basic-deep);
}

.basic-journey-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.basic-journey-head {
  display: grid;
  grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.basic-journey-head span,
.basic-stack-tags span,
.basic-outcome small,
.basic-point-list span,
.basic-footer {
  color: var(--basic-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.basic-journey-head div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.basic-journey-head em,
.basic-stack-tags span {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(24, 37, 54, 0.07);
  color: var(--basic-soft);
  font-family: var(--font-mono);
  font-size: 9.3px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
}

.basic-journey-copy h3 {
  margin: 0;
  color: var(--basic-deep);
  font: 820 13.8px / 1.08 var(--font-body);
}

.basic-journey-copy p {
  margin: 0;
  color: var(--basic-soft);
  font-size: 10.6px;
  line-height: 1.22;
}

.basic-stack-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-self: start;
  scroll-margin-top: 18px;
}

.basic-stack-tags:target span {
  background: rgba(116, 196, 92, 0.12);
  color: var(--basic-deep);
}

.basic-outcomes-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-content: start;
  align-items: stretch;
  padding: 11px;
  border: 1px solid var(--basic-hairline);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 235, 0.68) 54%, rgba(242, 236, 220, 0.86)),
    oklch(98% 0.008 90);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 1px 3px rgba(24, 37, 54, 0.06);
}

.basic-proof-copy {
  display: grid;
  align-content: start;
  padding-bottom: 2px;
}

.basic-outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.basic-outcome {
  position: relative;
  isolation: isolate;
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: start;
  column-gap: 8px;
  row-gap: 4px;
  padding: 9px;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(244, 240, 228, 0.68)),
    var(--basic-paper);
  color: var(--basic-ink);
  box-shadow:
    0 0 0 1px rgba(24, 37, 54, 0.045) inset,
    0 8px 18px rgba(24, 37, 54, 0.04);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.basic-outcome::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 86px;
  height: 86px;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(24, 37, 54, 0.055) 0 1px, transparent 1px 7px);
  opacity: 0.52;
  z-index: 0;
}

.basic-outcome::before {
  position: absolute;
  right: 10px;
  bottom: 6px;
  z-index: 0;
  color: rgba(24, 37, 54, 0.07);
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 800;
  line-height: 0.82;
  pointer-events: none;
}

.basic-outcome-featured {
  grid-column: 1 / -1;
  min-height: 110px;
  grid-template-columns: 48px minmax(0, 1fr);
  background:
    linear-gradient(132deg, rgba(116, 196, 92, 0.22), rgba(255, 255, 255, 0.82) 48%, rgba(184, 82, 60, 0.11)),
    var(--basic-paper);
  box-shadow:
    0 0 0 1px rgba(116, 196, 92, 0.25) inset,
    0 12px 26px rgba(24, 37, 54, 0.07);
}

.basic-outcome-featured::before {
  content: "CASE";
  right: 12px;
  bottom: 10px;
  color: rgba(134, 170, 104, 0.18);
  font-size: 54px;
}

.basic-outcome-lab {
  background:
    linear-gradient(150deg, rgba(184, 82, 60, 0.12), rgba(255, 255, 255, 0.82)),
    var(--basic-paper);
}

.basic-outcome-lab::before {
  content: "LAB";
}

.basic-outcome-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(24, 37, 54, 0.04) 0 1px, transparent 1px 9px),
    linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(237, 232, 219, 0.76)),
    var(--basic-paper);
}

.basic-outcome-placeholder::before {
  content: "NEXT";
  color: rgba(24, 37, 54, 0.06);
  font-size: 34px;
}

.basic-outcome-index {
  grid-column: 1 / -1;
  min-height: 82px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.9), rgba(116, 196, 92, 0.13) 54%, rgba(184, 82, 60, 0.1)),
    var(--basic-paper);
  box-shadow:
    0 0 0 1px rgba(116, 196, 92, 0.2) inset,
    0 10px 22px rgba(24, 37, 54, 0.05);
}

.basic-outcome-index::before {
  content: "INDEX";
  color: rgba(116, 196, 92, 0.17);
  font-size: 38px;
}

.basic-outcome span {
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  border-radius: 4px;
  background: rgba(184, 82, 60, 0.13);
  color: var(--basic-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.basic-outcome-featured span {
  width: 46px;
  height: 42px;
  background: var(--basic-acid);
  color: var(--basic-deep);
  font-size: 23px;
}

.basic-outcome-lab span {
  background: rgba(184, 82, 60, 0.16);
}

.basic-outcome-placeholder span {
  background: rgba(24, 37, 54, 0.075);
  color: var(--basic-soft);
  font-family: var(--font-mono);
  font-size: 16px;
}

.basic-outcome-index span {
  background: rgba(116, 196, 92, 0.2);
  color: var(--basic-deep);
  font-family: var(--font-display);
  font-size: 17px;
}

.basic-outcome i {
  position: relative;
  z-index: 1;
  grid-column: 2;
  color: var(--basic-rust);
  font: 800 9px / 1.05 var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
}

.basic-outcome strong {
  position: relative;
  z-index: 1;
  grid-column: 2;
  color: var(--basic-deep);
  font-size: 12.5px;
  line-height: 1.1;
}

.basic-outcome-featured strong {
  font-size: 20px;
  line-height: 0.98;
}

.basic-outcome small {
  position: relative;
  z-index: 1;
  grid-column: 2;
  color: var(--basic-soft);
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.22;
  text-transform: none;
}

.basic-outcome-featured small {
  font-size: 11.4px;
}

.basic-outcome-cuts {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  margin-top: 8px;
  font-style: normal;
}

.basic-outcome-cuts em {
  min-height: 17px;
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--basic-soft);
  font: 800 8px / 1 var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(24, 37, 54, 0.045) inset;
}

@media (min-width: 1101px) {
  html:has(body.basic-body:not(.resume-body)) {
    height: 100%;
    overflow: hidden;
  }

  body.basic-body:not(.resume-body) {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .basic-shell {
    width: min(1500px, calc(100% - 26px));
    height: calc(100svh - 16px);
    min-height: 0;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.96fr) minmax(286px, 0.4fr);
    grid-template-rows: 58px minmax(0, 1fr);
    gap: 7px;
    margin-top: 8px;
    padding: 7px;
  }

  .basic-masthead {
    min-height: 58px;
    padding: 5px;
  }

  .basic-profile-card,
  .basic-main-card,
  .basic-outcomes-card {
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .basic-profile-card {
    grid-template-rows: minmax(190px, 0.76fr) minmax(204px, 1.08fr) minmax(164px, 0.62fr);
    gap: 7px;
  }

  .basic-id-block,
  .basic-signal-lab,
  .basic-main-card,
  .basic-outcomes-card {
    min-height: 0;
    padding: 9px;
  }

  .basic-id-block {
    overflow: hidden;
  }

  .basic-id-block .basic-chip {
    min-height: 20px;
    margin-bottom: 7px;
    padding: 3px 6px;
    font-size: 9.2px;
  }

  .basic-id-block h1 {
    font-size: clamp(40px, 2.95vw, 49px);
  }

  .basic-role {
    margin-top: 6px;
    font-size: 11.2px;
    line-height: 1.18;
  }

  .basic-role em,
  .basic-meta span {
    font-size: 10.7px;
  }

  .basic-summary {
    margin-top: 6px;
    font-size: 11.6px;
    line-height: 1.25;
  }

  .basic-meta {
    gap: 5px;
    margin-top: 8px;
  }

  .basic-meta span {
    min-height: 20px;
    padding: 2px 6px;
  }

  .basic-stat-grid {
    margin-top: 8px;
  }

  .basic-stat-grid div {
    min-height: 31px;
    padding: 4px;
  }

  .basic-stat-grid dt {
    font-size: 15px;
  }

  .basic-stat-grid dd {
    font-size: 8.6px;
  }

  .basic-portrait-person {
    height: 100%;
    min-height: 0;
  }

  .basic-portrait figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 6px 8px;
  }

  .basic-signal-lab {
    gap: 5px;
    overflow: hidden;
  }

  .basic-lab-head .basic-chip {
    min-height: 20px;
    margin-bottom: 0;
    padding: 3px 6px;
    font-size: 9.2px;
  }

  .basic-lab-head strong {
    max-width: 96px;
    font-size: 18px;
  }

  .basic-mode-buttons {
    gap: 5px;
  }

  .basic-mode {
    min-height: 32px;
    font-size: 9px;
  }

  .basic-live-strip {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 90px);
    align-items: center;
    justify-items: stretch;
    gap: 2px;
    padding: 4px 5px 5px;
    background-size: 100% 100%, 16px 16px, 16px 16px, auto;
  }

  .basic-character-actor {
    width: 100%;
    height: 68px;
  }

  .leo-character--workshop {
    bottom: -18px;
    width: 104px;
  }

  .basic-character-aura {
    bottom: 2px;
    width: 96px;
    height: 50px;
  }

  .basic-character-prop b {
    display: none;
  }

  .basic-character-prop i {
    width: 20px;
    height: 18px;
  }

  .basic-character-prop-work {
    right: 2px;
    bottom: 7px;
  }

  .basic-character-prop-daily {
    left: 2px;
    top: 9px;
  }

  .basic-character-prop-travel {
    right: 2px;
    top: 7px;
  }

  .basic-status-line {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    gap: 3px;
  }

  .basic-status-line span {
    width: fit-content;
    min-width: 34px;
    min-height: 20px;
    font-size: 8.7px;
  }

  .basic-status-line strong {
    font-size: 12.7px;
  }

  .basic-status-line p {
    font-size: 9.1px;
    line-height: 1.08;
  }

  .basic-main-card {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 7px;
    overflow: hidden;
  }

  .basic-topline {
    padding-bottom: 6px;
  }

  .basic-topline h2,
  .basic-outcomes-card h2 {
    font-size: clamp(27px, 2.2vw, 34px);
  }

  .basic-main-card .basic-topline h2 {
    font-size: clamp(23px, 1.85vw, 29px);
  }

  .basic-topline a {
    min-height: 34px;
    padding: 7px 11px;
  }

  .basic-credential-bar span {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 8.8px;
  }

  .basic-credential-bar span {
    min-height: 27px;
    font-size: 9.7px;
  }

  .basic-method-strip {
    gap: 0;
    overflow: visible;
    border-top: 1px solid var(--basic-line);
    border-bottom: 1px solid var(--basic-line);
    border-radius: 0;
    background: transparent;
  }

  .basic-method-strip span {
    min-height: 30px;
    padding: 4px 5px;
    background: transparent;
    color: var(--basic-soft);
  }

  .basic-method-strip b {
    font-size: 7.6px;
  }

  .basic-method-strip em {
    font-size: 8.4px;
  }

  .basic-method-strip span + span {
    border-left: 1px solid var(--basic-line);
  }

  .basic-timeline {
    height: 100%;
  }

  .basic-timeline article {
    min-height: 0;
    grid-template-columns: minmax(116px, 0.24fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 8px;
    padding: 6px 8px;
  }

  .basic-node {
    min-height: 100%;
    padding: 6px 7px;
    font-size: 9.6px;
  }

  .basic-journey-head {
    gap: 4px;
    margin-bottom: 3px;
  }

  .basic-journey-head span,
  .basic-stack-tags span,
  .basic-outcome small,
  .basic-point-list span {
    font-size: 8.9px;
  }

  .basic-journey-head em,
  .basic-stack-tags span {
    min-height: 17px;
    padding: 2px 5px;
  }

  .basic-journey-copy h3 {
    font-size: 12.8px;
  }

  .basic-journey-copy {
    height: auto;
    display: block;
  }

  .basic-journey-copy p {
    font-size: 10px;
    line-height: 1.18;
  }

  .basic-stack-tags {
    gap: 4px;
  }

  .basic-outcomes-card {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  }

  .basic-proof-copy {
    padding-bottom: 7px;
    border-bottom: 1px solid var(--basic-line);
  }

  .basic-outcomes-card h2 {
    max-width: none;
    font-size: clamp(22px, 1.7vw, 25px);
    line-height: 0.98;
  }

  .basic-proof-copy .basic-chip {
    min-height: 20px;
    margin-bottom: 7px;
    padding: 3px 6px;
    font-size: 9.2px;
  }

  .basic-outcome-list {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows:
      minmax(0, 1.08fr)
      minmax(0, 0.86fr)
      minmax(0, 0.86fr)
      minmax(0, 0.96fr);
    gap: 5px;
  }

  .basic-outcome {
    min-height: 0;
    align-content: start;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(24, 37, 54, 0.07) inset;
  }

  .basic-outcome-featured {
    min-height: 0;
  }

  .basic-outcome-featured::before {
    font-size: 42px;
  }

  .basic-outcome-index {
    min-height: 0;
  }

  .basic-outcome-index::before {
    font-size: 34px;
  }

  .basic-outcome span {
    width: 34px;
    height: 30px;
    font-size: 18px;
  }

  .basic-outcome-featured span {
    width: 42px;
    height: 36px;
    font-size: 21px;
  }

  .basic-outcome i {
    font-size: 8.2px;
  }

  .basic-outcome strong {
    font-size: 11.4px;
  }

  .basic-outcome-featured strong {
    font-size: 18px;
  }

  .basic-outcome-index strong {
    font-size: 13px;
  }

  .basic-outcome small {
    font-size: 9.5px;
    line-height: 1.12;
  }

  .basic-outcome-cuts {
    margin-top: 4px;
    gap: 3px;
  }

  .basic-outcome-cuts em {
    min-height: 15px;
    padding: 2px 4px;
    font-size: 7.4px;
  }

  .basic-footer {
    display: none;
  }
}

@media (min-width: 1280px) {
  .basic-shell {
    grid-template-columns: minmax(300px, 0.46fr) minmax(0, 0.94fr) minmax(318px, 0.48fr);
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .basic-shell {
    grid-template-columns: minmax(296px, 0.44fr) minmax(0, 0.9fr) minmax(280px, 0.42fr);
  }

  .basic-profile-card {
    grid-template-rows: minmax(204px, 0.82fr) minmax(204px, 1.08fr) minmax(164px, 0.62fr);
  }

  .basic-main-card .basic-topline h2 {
    font-size: clamp(21px, 2.1vw, 25px);
  }

  .basic-outcomes-card h2 {
    font-size: 22px;
  }

  .basic-journey-copy p {
    font-size: 9.3px;
  }

  .basic-outcome-featured strong {
    font-size: 16px;
  }
}

.basic-point-list {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--basic-line);
}

.basic-point-list article {
  display: grid;
  gap: 4px;
  min-height: 36px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.62);
}

.basic-point-list strong {
  color: var(--basic-ink);
  font-size: 11px;
  line-height: 1.15;
}

.basic-footer {
  width: min(1372px, calc(100% - 36px));
  margin: 9px auto 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px 7px;
  padding: 8px 0 12px;
  color: var(--basic-soft);
  font-size: 9.5px;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.basic-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 82, 60, 0.48), rgba(116, 196, 92, 0.58), transparent);
  opacity: 0.48;
  transform: translateX(-50%) scaleX(0.62);
  transform-origin: center;
}

.basic-footer span,
.basic-footer i {
  position: relative;
  z-index: 1;
}

.basic-footer i {
  color: rgba(76, 98, 97, 0.5);
  font-style: normal;
}

.motion-ok .basic-footer::before {
  animation: basicFooterSignal 4.8s ease-in-out infinite;
}

@keyframes basicFooterSignal {
  0%, 100% {
    opacity: 0.34;
    transform: translateX(-50%) scaleX(0.52);
  }
  50% {
    opacity: 0.78;
    transform: translateX(-50%) scaleX(1);
  }
}

@media (min-width: 1101px) {
  .basic-footer {
    display: none;
  }
}

.basic-action-grid a:focus-visible,
.basic-theme-toggle:focus-visible,
.basic-topline a:focus-visible,
.basic-outcome:focus-visible,
.basic-stat-link:focus-within,
.basic-mode:focus-visible {
  outline: 3px solid rgba(116, 196, 92, 0.72);
  outline-offset: 3px;
}

@media (hover: hover) {
	  .basic-action-grid a:hover,
	  .basic-topline a:hover,
	  .basic-outcome:hover,
	  .basic-mode:hover,
	  .basic-theme-toggle:hover {
    transform: translateY(-2px);
  }

  .basic-action-grid a:hover {
    background: rgba(184, 82, 60, 0.1);
    color: var(--basic-rust);
  }

  .basic-topline a:hover {
    background: rgba(184, 82, 60, 0.16);
    color: var(--basic-rust);
  }

  .basic-stat-link:hover {
    background: rgba(116, 196, 92, 0.12);
  }
}

.basic-action-grid a:active,
.basic-theme-toggle:active,
.basic-topline a:active,
.basic-outcome:active,
.basic-mode:active {
  transform: scale(0.96);
}

html[data-theme="night"] {
  color-scheme: dark;
}

html[data-theme="night"] body.basic-body {
  --basic-paper: oklch(14% 0.018 225);
  --basic-paper-2: oklch(19% 0.022 222);
  --basic-ink: oklch(91% 0.012 87);
  --basic-deep: oklch(94% 0.014 91);
  --basic-soft: oklch(76% 0.018 204);
  --basic-quiet: oklch(66% 0.022 184);
  --basic-rust: oklch(69% 0.12 36);
  --basic-acid: oklch(74% 0.11 130);
  --basic-gold: oklch(77% 0.08 82);
  --basic-blue: oklch(72% 0.075 222);
  --basic-line: rgba(255, 255, 255, 0.1);
  --basic-hairline: rgba(255, 255, 255, 0.065);
  --basic-shadow: 0 24px 76px rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(rgba(229, 226, 211, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 226, 211, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, rgba(188, 85, 62, 0.07), transparent 24%),
    linear-gradient(315deg, rgba(103, 169, 136, 0.055), transparent 26%),
    var(--basic-paper);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, auto;
}

html[data-theme="night"] .basic-shell {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016) 46%, rgba(255, 255, 255, 0.035)),
    var(--basic-paper-2);
}

html[data-theme="night"] .basic-shell::before {
  opacity: 0.52;
}

html[data-theme="night"] .basic-masthead {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.024);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

html[data-theme="night"] .basic-nameplate,
html[data-theme="night"] .basic-theme-switch {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.022);
}

html[data-theme="night"] .basic-id-block,
html[data-theme="night"] .basic-signal-lab,
html[data-theme="night"] .basic-main-card,
html[data-theme="night"] .basic-outcomes-card {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset;
}

html[data-theme="night"] .basic-signal-lab {
  background:
    linear-gradient(180deg, rgba(25, 39, 56, 0.9), rgba(18, 29, 43, 0.95)),
    var(--basic-paper-2);
  color: var(--basic-ink);
}

html[data-theme="night"] .basic-portrait-person img {
  filter: saturate(0.98) contrast(1.04) brightness(1.16);
}

html[data-theme="night"] .basic-portrait-person::after {
  background:
    linear-gradient(180deg, rgba(14, 14, 12, 0.01) 0 50%, rgba(14, 14, 12, 0.5) 100%),
    linear-gradient(90deg, rgba(184, 82, 60, 0.08), transparent 38%);
}

html[data-theme="night"] .basic-lab-head .basic-chip {
  background: rgba(116, 196, 92, 0.16);
  color: var(--basic-acid);
}

html[data-theme="night"] .basic-lab-head strong {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="night"] .basic-mode {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="night"] .basic-live-strip {
  background:
    radial-gradient(circle at 28% 18%, rgba(116, 196, 92, 0.12), transparent 23%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.07);
  background-size: 100% 100%, 18px 18px, 18px 18px, auto;
}

html[data-theme="night"] .basic-character-prop {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="night"] .basic-character-prop i {
  border-color: rgba(255, 255, 255, 0.52);
  background-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="night"] .basic-status-line span {
  background: rgba(116, 196, 92, 0.14);
  color: var(--basic-acid);
}

html[data-theme="night"] .basic-status-line strong {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="night"] .basic-status-line p {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="night"] .basic-action-grid a,
html[data-theme="night"] .basic-meta span,
html[data-theme="night"] .basic-journey-head em,
html[data-theme="night"] .basic-stack-tags span {
  background: rgba(255, 255, 255, 0.052);
}

html[data-theme="night"] .basic-theme-toggle {
  background: var(--basic-rust);
  color: oklch(15% 0.025 36);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="night"] .basic-stat-grid div,
html[data-theme="night"] .basic-method-strip span,
html[data-theme="night"] .basic-point-list article {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="night"] .basic-credential-bar span {
  background: rgba(255, 255, 255, 0.052);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

html[data-theme="night"] .basic-topline a {
  background: rgba(188, 85, 62, 0.16);
  color: var(--basic-rust);
  box-shadow:
    0 0 0 1px rgba(188, 85, 62, 0.28) inset,
    0 8px 18px rgba(0, 0, 0, 0.16);
}

html[data-theme="night"] .basic-timeline {
  background: rgba(255, 255, 255, 0.025);
}

html[data-theme="night"] .basic-timeline article {
  background: rgba(255, 255, 255, 0.062);
}

html[data-theme="night"] .basic-node {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="night"] .basic-journey-copy h3 {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="night"] .basic-journey-copy p,
html[data-theme="night"] .basic-journey-head span {
  color: rgba(255, 255, 255, 0.74);
}

html[data-theme="night"] .basic-timeline article.is-active,
html[data-theme="night"] .basic-shell[data-basic-mode-state="people"] .basic-timeline article[data-basic-lane="people"],
html[data-theme="night"] .basic-shell[data-basic-mode-state="data"] .basic-timeline article[data-basic-lane="data"],
html[data-theme="night"] .basic-shell[data-basic-mode-state="ai"] .basic-timeline article[data-basic-lane="ai"] {
  background:
    linear-gradient(90deg, rgba(116, 196, 92, 0.16), rgba(255, 255, 255, 0.085) 58%),
    rgba(255, 255, 255, 0.085);
}

html[data-theme="night"] .basic-timeline article.is-active .basic-node {
  background: var(--basic-acid);
  color: oklch(15% 0.024 220);
}

html[data-theme="night"] .basic-outcome {
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

html[data-theme="night"] .basic-outcome span {
  background: rgba(188, 85, 62, 0.18);
}

html[data-theme="night"] .basic-action-grid a:hover {
  background: rgba(188, 85, 62, 0.16);
  color: var(--basic-rust);
}

@media (max-width: 1100px) {
  .basic-shell {
    width: min(920px, calc(100% - 28px));
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .basic-mode {
    min-height: 42px;
  }

  .basic-masthead,
  .basic-profile-card,
  .basic-main-card,
  .basic-outcomes-card {
    grid-template-columns: 1fr;
    grid-column: 1;
    grid-row: auto;
  }

  .basic-masthead {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .basic-action-grid {
    grid-column: 1 / -1;
  }

  .basic-theme-switch {
    grid-column: 1;
    grid-row: 1;
  }

  .basic-nameplate {
    grid-column: 2;
    grid-row: 1;
  }

  .basic-profile-card {
    grid-template-areas:
      "identity"
      "portrait"
      "lab";
    height: auto;
    min-height: 0;
  }

  .basic-portrait-person {
    width: min(100%, 420px);
    height: 524px;
    min-height: 524px;
    justify-self: center;
  }

  .basic-section-divider {
    display: grid;
  }

  .basic-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .basic-topline {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--basic-line);
    padding-bottom: 12px;
  }

  .basic-credential-bar,
  .basic-method-strip {
    grid-column: 1;
  }

  .basic-timeline {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .basic-timeline article {
    min-height: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    border-left: 0;
    border-top: 1px solid var(--basic-line);
  }

  .basic-timeline article:first-child {
    border-top: 0;
  }

  .basic-outcome-list,
  .basic-point-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .basic-outcome {
    min-height: 80px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
  }

  .basic-outcome-featured {
    grid-column: 1 / -1;
  }

  .basic-outcome span,
  .basic-outcome i,
  .basic-outcome strong,
  .basic-outcome small,
  .basic-outcome-cuts {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  body.basic-body {
    font-size: 14px;
  }

  .basic-shell {
    width: min(720px, calc(100% - 18px));
    gap: 10px;
    margin-top: 9px;
    padding: 9px;
  }

  .basic-masthead {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    padding: 6px;
  }

  .basic-nameplate {
    min-height: 56px;
    padding: 4px 9px;
  }

  .basic-signature {
    min-height: 46px;
    padding-bottom: 6px;
  }

  .basic-signature-copy {
    flex-wrap: wrap;
    gap: 0;
    font-size: 22.5px;
    line-height: 0.92;
  }

  .basic-signature-copy > span:last-child {
    flex-basis: 100%;
  }

  .basic-theme-switch {
    min-height: 42px;
    padding: 0;
    background: transparent;
  }

  .basic-theme-toggle {
    width: 44px;
    height: 44px;
  }

  .basic-theme-icon svg {
    width: 30px;
    height: 30px;
  }

  .basic-stat-grid,
  .basic-method-strip,
  .basic-point-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .basic-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .basic-outcome-list {
    grid-template-columns: 1fr;
  }

  .basic-method-strip span:last-child {
    grid-column: 1 / -1;
  }

  .basic-id-block,
  .basic-signal-lab,
  .basic-main-card,
  .basic-outcomes-card {
    padding: 13px;
  }

  .basic-id-block h1 {
    font-size: 58px;
  }

  .basic-summary {
    font-size: 14px;
  }

  .basic-portrait {
    min-height: 220px;
  }

  .basic-portrait-person {
    width: 100%;
    height: clamp(390px, 116vw, 440px);
    min-height: 390px;
  }

  .basic-lab-head strong {
    font-size: 24px;
  }

  .basic-mode-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .basic-character-actor {
    width: min(100%, 252px);
    height: 152px;
  }

  .leo-character--workshop {
    bottom: -31px;
    width: 184px;
  }

  .basic-status-line strong {
    font-size: 16px;
  }

  .basic-status-line p {
    font-size: 11.5px;
  }

  .basic-topline h2,
  .basic-outcomes-card h2 {
    font-size: 33px;
  }

  .basic-outcomes-card h2 {
    font-size: 31px;
  }

  .basic-credential-bar {
    grid-template-columns: 1fr;
  }

  .basic-outcome {
    min-height: 108px;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 4px;
  }

  .basic-outcome-featured {
    min-height: 124px;
  }

  .basic-outcome span {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .basic-outcome i,
  .basic-outcome strong,
  .basic-outcome small,
  .basic-outcome-cuts {
    grid-column: 2;
  }

  .basic-journey-copy h3 {
    font-size: 15px;
  }

  .basic-footer {
    width: min(720px, calc(100% - 18px));
    font-size: 9.5px;
  }
}

/* linkaiworks.com temporary Signal Orbit holding page: minimal future signal. */
body[data-page="holding.html"] {
  --holding-void: oklch(10% 0.025 166);
  --holding-void-2: oklch(16% 0.035 158);
  --holding-ink: oklch(94% 0.018 118);
  --holding-muted: oklch(72% 0.042 142);
  --holding-dim: oklch(50% 0.052 150);
  --holding-signal: oklch(74% 0.14 133);
  --holding-rust: oklch(62% 0.14 38);
  --holding-gold: oklch(78% 0.11 80);
  --holding-line: rgba(185, 231, 170, 0.14);
  --holding-soft-line: rgba(185, 231, 170, 0.07);
  --holding-panel: rgba(10, 25, 21, 0.64);
  --holding-panel-strong: rgba(231, 245, 220, 0.94);
  --orbit-x: 0px;
  --orbit-y: 0px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at calc(52% + var(--orbit-x)) calc(48% + var(--orbit-y)), rgba(114, 200, 93, 0.22), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(191, 113, 67, 0.18), transparent 28%),
    linear-gradient(rgba(185, 231, 170, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 231, 170, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, var(--holding-void), var(--holding-void-2));
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  color: var(--holding-ink);
}

body[data-page="holding.html"]::before,
body[data-page="holding.html"]::after {
  background: none;
}

.holding-shell {
  width: min(1180px, calc(100% - 34px));
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 28px 0;
}

.holding-stage {
  width: 100%;
  min-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.holding-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 620px;
}

.holding-kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(185, 231, 170, 0.1);
  color: var(--holding-signal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.holding-copy h1 {
  max-width: 100%;
  margin: 0;
  color: var(--holding-ink);
  font-size: clamp(52px, 5.05vw, 78px);
  font-weight: 800;
  line-height: 0.88;
  text-transform: none;
  text-wrap: balance;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.holding-summary {
  margin: 26px 0 0;
  color: var(--holding-signal);
  font-family: var(--font-mono);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
}

.holding-cn {
  margin: 6px 0 0;
  color: var(--holding-muted);
  font-size: 18px;
}

.holding-preview-wrap {
  position: relative;
  width: fit-content;
  margin-top: 30px;
}

.holding-preview-button {
  position: relative;
  width: 148px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(241, 249, 232, 0.96), rgba(204, 222, 192, 0.92));
  color: var(--holding-void);
  font: inherit;
  font-weight: 900;
  box-shadow:
    0 18px 48px rgba(115, 198, 94, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -8px 18px rgba(7, 16, 12, 0.09);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, filter 180ms ease;
  touch-action: manipulation;
  cursor: pointer;
  overflow: hidden;
}

.holding-preview-button:active {
  transform: scale(0.96);
}

.holding-preview-button:focus-visible {
  outline: 3px solid rgba(185, 231, 170, 0.72);
  outline-offset: 4px;
}

.holding-preview-label {
  position: relative;
  z-index: 4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.holding-preview-hatch {
  position: absolute;
  inset: 4px;
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.2%, rgba(7, 16, 12, 0.38) 50%, transparent 50.8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

.holding-preview-gate,
.holding-preview-scan,
.holding-preview-seal {
  position: absolute;
  pointer-events: none;
}

.holding-preview-gate {
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    repeating-linear-gradient(135deg, rgba(7, 16, 12, 0.08) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, rgba(242, 250, 232, 0.92), rgba(195, 217, 184, 0.82));
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), filter 240ms ease;
}

.holding-preview-gate-left {
  left: 0;
  transform-origin: left center;
}

.holding-preview-gate-right {
  right: 0;
  transform-origin: right center;
}

.holding-preview-scan {
  left: 9px;
  right: 9px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(115, 198, 94, 0.72);
  box-shadow: 0 0 16px rgba(115, 198, 94, 0.8);
  animation: holdingPreviewScan 2.15s linear infinite;
}

.holding-preview-seal {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--holding-rust);
  box-shadow:
    0 0 0 5px rgba(191, 113, 67, 0.14),
    0 0 18px rgba(191, 113, 67, 0.36);
  transform: translate(-50%, -50%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.holding-peek-message {
  position: absolute;
  left: calc(100% + 14px);
  bottom: -7px;
  z-index: 5;
  min-width: 176px;
  max-width: calc(100vw - 40px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px 10px 11px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 248, 226, 0.98), rgba(206, 230, 197, 0.98));
  color: var(--holding-void);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  opacity: 0;
  transform: translate3d(-16px, 16px, 0) scale(0.86) rotate(-2deg);
  transform-origin: left bottom;
  transition: opacity 180ms ease, transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.holding-peek-message::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: inherit;
  rotate: 45deg;
}

.holding-peek-message strong {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  font-size: 18px;
}

.holding-peek-person,
.holding-peek-person span,
.holding-peek-person i {
  position: absolute;
  display: block;
}

.holding-peek-person {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 54px;
  flex: 0 0 48px;
}

.holding-peek-face {
  left: 10px;
  top: 2px;
  width: 29px;
  height: 29px;
  border-radius: 45% 45% 50% 50%;
  background: var(--holding-void);
  box-shadow:
    inset 9px -2px 0 rgba(185, 231, 170, 0.14),
    0 0 0 3px rgba(7, 16, 12, 0.05);
}

.holding-peek-hair {
  left: 23px;
  top: 0;
  z-index: 3;
  width: 13px;
  height: 13px;
  border-radius: 70% 30% 70% 30%;
  background: var(--holding-signal);
  transform: rotate(-24deg);
}

.holding-peek-eye {
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--holding-panel-strong);
}

.holding-peek-eye-left {
  left: 9px;
}

.holding-peek-eye-right {
  left: 19px;
}

.holding-peek-eye::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--holding-void);
}

.holding-peek-mouth {
  left: 13px;
  top: 20px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--holding-panel-strong);
  border-radius: 0 0 999px 999px;
}

.holding-peek-body {
  left: 6px;
  bottom: 0;
  width: 37px;
  height: 26px;
  border-radius: 17px 17px 8px 8px;
  background:
    linear-gradient(135deg, var(--holding-rust), oklch(67% 0.16 39));
  box-shadow: inset -7px 0 0 rgba(7, 16, 12, 0.08);
}

.holding-peek-hand {
  z-index: 4;
  bottom: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: oklch(78% 0.09 72);
  box-shadow: 0 0 0 2px rgba(7, 16, 12, 0.06);
}

.holding-peek-hand-left {
  left: 1px;
  transform: rotate(-12deg);
}

.holding-peek-hand-right {
  right: 1px;
  transform: rotate(12deg);
}

.holding-shell.is-pranked .holding-preview-button {
  filter: saturate(1.04);
  box-shadow:
    0 10px 34px rgba(191, 113, 67, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 -8px 18px rgba(7, 16, 12, 0.09);
}

.holding-shell.is-pranked .holding-preview-gate-left {
  transform: translateX(-34%) skewY(-5deg);
}

.holding-shell.is-pranked .holding-preview-gate-right {
  transform: translateX(34%) skewY(5deg);
}

.holding-shell.is-pranked .holding-preview-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
}

.holding-shell.is-pranked .holding-preview-label {
  transform: translateY(1px) scale(0.96);
}

.holding-shell.is-pranked .holding-peek-message {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.holding-orbit-board {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, transparent 49.8%, var(--holding-soft-line) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, var(--holding-soft-line) 50%, transparent 50.2%),
    radial-gradient(circle at center, rgba(185, 231, 170, 0.11), rgba(10, 25, 21, 0.12) 58%, rgba(10, 25, 21, 0.36));
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.32), inset 0 0 0 1px var(--holding-line);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.holding-orbit-board.is-dragging {
  cursor: grabbing;
}

.holding-orbit-board::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, var(--holding-soft-line) 1px, transparent 1px),
    linear-gradient(var(--holding-soft-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 0 62%, transparent 84%);
  pointer-events: none;
}

.holding-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(185, 231, 170, 0.18), transparent);
  transform: translateY(-100%);
  animation: holdingScan 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.holding-orbit {
  position: relative;
  z-index: 3;
  width: min(100%, 620px);
  aspect-ratio: 1;
  transform: translate(var(--orbit-x), var(--orbit-y));
}

.holding-axis,
.holding-ring,
.holding-orbiter,
.holding-node,
.holding-core {
  position: absolute;
  left: 50%;
  top: 50%;
}

.holding-axis {
  width: 86%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--holding-line), transparent);
  transform: translate(-50%, -50%);
}

.holding-axis-y {
  rotate: 90deg;
}

.holding-ring {
  border: 1px solid rgba(185, 231, 170, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 34px rgba(115, 198, 94, 0.08);
}

.holding-ring::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--holding-signal);
  box-shadow: 0 0 0 8px rgba(115, 198, 94, 0.14), 0 0 26px rgba(115, 198, 94, 0.42);
}

.holding-ring-one {
  width: 94%;
  height: 38%;
  animation: holdingOrbitSpin 18s linear infinite;
}

.holding-ring-one::before {
  right: 13%;
  top: 3%;
}

.holding-ring-two {
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%) rotate(51deg);
  animation: holdingOrbitSpinReverse 24s linear infinite;
}

.holding-ring-two::before {
  left: 12%;
  bottom: 12%;
  background: var(--holding-rust);
  box-shadow: 0 0 0 8px rgba(191, 113, 67, 0.15), 0 0 24px rgba(191, 113, 67, 0.4);
}

.holding-ring-three {
  width: 48%;
  height: 84%;
  transform: translate(-50%, -50%) rotate(-34deg);
  animation: holdingOrbitSpin 30s linear infinite;
}

.holding-ring-three::before {
  left: 50%;
  top: -5px;
  background: var(--holding-gold);
  box-shadow: 0 0 0 8px rgba(211, 171, 84, 0.14), 0 0 24px rgba(211, 171, 84, 0.38);
}

.holding-orbiter {
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%) rotate(var(--orbit-start, 0deg));
  animation: holdingOrbiterTurn var(--orbit-speed, 24s) linear infinite;
  animation-delay: var(--orbit-delay, 0s);
  transform-origin: center;
  pointer-events: none;
}

.holding-node {
  --node-distance: 180px;
  left: 0;
  top: 0;
  width: 118px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(calc(var(--node-distance) - 50%), -50%) rotate(calc((var(--orbit-start, 0deg) + var(--orbit-delay-rotation, 0deg)) * -1));
  animation: holdingNodeCounter var(--orbit-speed, 24s) linear infinite;
  animation-delay: var(--orbit-delay, 0s);
  transform-origin: center;
  pointer-events: auto;
}

.holding-node::before {
  content: "";
  width: var(--node-size, 12px);
  height: var(--node-size, 12px);
  border-radius: 50%;
  background: var(--holding-gold);
  box-shadow: 0 0 0 9px rgba(211, 171, 84, 0.12), 0 0 26px rgba(211, 171, 84, 0.34);
  animation: holdingNodePulse 2.4s ease-in-out infinite;
}

.holding-node::after {
  content: attr(data-teaser);
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: max-content;
  max-width: 132px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(231, 245, 220, 0.08);
  color: rgba(231, 245, 220, 0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.56;
  text-align: center;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
  white-space: nowrap;
}

.holding-orbit-board:hover .holding-node::after,
.holding-orbit-board.is-dragging .holding-node::after {
  background: rgba(231, 245, 220, 0.14);
  opacity: 1;
  transform: translate(-50%, 16px) scale(1);
}

.holding-orbiter-data {
  --orbit-start: 190deg;
  --orbit-speed: 22s;
  --node-distance: 184px;
  --orbit-delay: -4s;
}

.holding-orbiter-ai {
  --orbit-start: 310deg;
  --orbit-speed: 28s;
  --node-distance: 224px;
  --orbit-delay: -10s;
}

.holding-orbiter-framework {
  --orbit-start: 30deg;
  --orbit-speed: 36s;
  --node-distance: 246px;
  --orbit-delay: -17s;
}

.holding-orbiter-workflow {
  --orbit-start: 92deg;
  --orbit-speed: 30s;
  --node-distance: 150px;
  --orbit-delay: -8s;
}

.holding-orbiter-brain {
  --orbit-start: 132deg;
  --orbit-speed: 24s;
  --node-distance: 118px;
  --orbit-delay: -13s;
}

.holding-orbiter-soon {
  --orbit-start: 248deg;
  --orbit-speed: 18s;
  --node-distance: 266px;
  --orbit-delay: -3s;
}

.holding-node-data {
  --node-size: 13px;
}

.holding-node-data::before {
  background: var(--holding-signal);
  box-shadow: 0 0 0 9px rgba(115, 198, 94, 0.13), 0 0 26px rgba(115, 198, 94, 0.34);
  animation-delay: 360ms;
}

.holding-node-framework::before,
.holding-node-workflow::before {
  background: var(--holding-rust);
  box-shadow: 0 0 0 9px rgba(191, 113, 67, 0.14), 0 0 26px rgba(191, 113, 67, 0.34);
  animation-delay: 720ms;
}

.holding-node-brain::before {
  background: var(--holding-signal);
  box-shadow: 0 0 0 9px rgba(115, 198, 94, 0.13), 0 0 26px rgba(115, 198, 94, 0.34);
  animation-delay: 1040ms;
}

.holding-node-soon::before {
  --node-size: 9px;
  background: var(--holding-gold);
  box-shadow: 0 0 0 7px rgba(211, 171, 84, 0.12), 0 0 20px rgba(211, 171, 84, 0.34);
  animation-delay: 1280ms;
}

.holding-core {
  width: 162px;
  height: 162px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--holding-panel-strong);
  color: var(--holding-void);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), 0 0 0 14px rgba(185, 231, 170, 0.045);
  transform: translate(-50%, -50%);
  text-align: center;
}

.holding-core span {
  display: block;
}

.holding-core span {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 0.78;
}

@keyframes holdingOrbitSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes holdingOrbitSpinReverse {
  from { rotate: 0deg; }
  to { rotate: -360deg; }
}

@keyframes holdingNodePulse {
  0%, 100% {
    opacity: 0.62;
    scale: 0.74;
  }
  50% {
    opacity: 1;
    scale: 1.16;
  }
}

@keyframes holdingOrbiterTurn {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

@keyframes holdingNodeCounter {
  from {
    rotate: 0deg;
  }
  to {
    rotate: -360deg;
  }
}

@keyframes holdingScan {
  0% { transform: translateY(-100%); opacity: 0; }
  14% { opacity: 1; }
  54% { opacity: 0.34; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes holdingPreviewScan {
  0% {
    transform: translateY(0);
    opacity: 0.38;
  }
  45% {
    transform: translateY(34px);
    opacity: 0.86;
  }
  100% {
    transform: translateY(0);
    opacity: 0.38;
  }
}

@media (hover: hover) {
  .holding-preview-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(115, 198, 94, 0.3);
  }
}

@media (max-width: 900px) {
  .holding-shell {
    min-height: 0;
    padding: 18px 0;
  }

  .holding-stage {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .holding-orbit-board {
    min-height: 500px;
  }
}

@media (max-width: 560px) {
  .holding-shell {
    width: min(720px, calc(100% - 20px));
  }

  .holding-copy h1 {
    font-size: clamp(42px, 11vw, 54px);
  }

  .holding-summary {
    margin-top: 18px;
    font-size: 18px;
  }

  .holding-cn {
    font-size: 15px;
  }

  .holding-preview-wrap,
  .holding-preview-button {
    max-width: 100%;
  }

  .holding-preview-button {
    min-width: 128px;
  }

  .holding-peek-message {
    left: calc(100% + 10px);
    right: auto;
    bottom: 0;
  }

  .holding-orbit-board {
    min-height: 410px;
    margin-top: 34px;
  }

  .holding-orbit {
    width: min(100%, 350px);
  }

  .holding-core {
    width: 108px;
    height: 108px;
  }

  .holding-core span {
    font-size: 50px;
  }

  .holding-node {
    width: 104px;
    height: 34px;
  }

  .holding-node::after {
    max-width: 118px;
    font-size: 9px;
  }

  .holding-orbiter-data {
    --node-distance: 104px;
  }

  .holding-orbiter-ai {
    --node-distance: 132px;
  }

  .holding-orbiter-framework {
    --node-distance: 152px;
  }

  .holding-orbiter-workflow {
    --node-distance: 86px;
  }

  .holding-orbiter-brain {
    --node-distance: 72px;
  }

  .holding-orbiter-soon {
    --node-distance: 164px;
  }

}

@media (max-width: 360px) {
  .holding-copy h1 {
    white-space: normal;
  }

  .holding-peek-message {
    left: 0;
    bottom: -54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .holding-shell .holding-scanline,
  .holding-shell .holding-ring,
  .holding-shell .holding-ring::before,
  .holding-shell .holding-orbiter,
  .holding-shell .holding-node,
  .holding-shell .holding-node::before,
  .holding-shell .holding-preview-scan {
    animation: none;
  }

  .holding-shell .holding-preview-button,
  .holding-shell .holding-preview-gate,
  .holding-shell .holding-preview-seal,
  .holding-shell .holding-preview-label,
  .holding-shell .holding-peek-message,
  .holding-shell .holding-node::after {
    transition-duration: 1ms;
  }
}

/* Jiunian final profile sync: banner atmosphere + unframed identity band. */
.metaphysics-profile-hero {
  position: relative;
  background: #f4efe3;
  border-bottom: 1px solid rgba(34, 44, 35, 0.16);
}

.metaphysics-banner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  max-height: 500px;
  min-height: 340px;
  overflow: hidden;
  background: #10241b;
}

.metaphysics-banner-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.metaphysics-banner-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 23, 15, 0.18) 0%, transparent 34%, rgba(8, 23, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 18, 13, 0.22) 0%, transparent 34%, rgba(7, 18, 13, 0.18) 100%);
  pointer-events: none;
}

.metaphysics-profile-hero + .metaphysics-practice {
  margin-top: 0;
}

.metaphysics-profile-hero .metaphysics-nav,
.metaphysics-site > .metaphysics-nav {
  color: #fff8e9;
}

.metaphysics-site > .metaphysics-nav .metaphysics-brand small {
  color: rgba(255, 248, 233, 0.72);
}

.metaphysics-site > .metaphysics-nav nav span {
  border-color: rgba(255, 248, 233, 0.34);
  background: rgba(10, 28, 19, 0.52);
  color: #fff8e9;
}

.metaphysics-profile-band {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 262px;
  align-items: end;
  gap: 34px;
  margin: -78px auto 0;
  padding: 0 0 58px;
}

.metaphysics-avatar {
  width: 196px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 7px solid #f4efe3;
  border-radius: 50%;
  background: #e9e0ce;
  box-shadow: 0 18px 50px rgba(18, 35, 26, 0.18);
}

.metaphysics-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.metaphysics-profile-copy {
  min-width: 0;
  padding-top: 104px;
}

.metaphysics-profile-copy .metaphysics-year {
  margin: 0 0 12px;
  color: #9a3c2b;
  font-size: 13px;
  line-height: 1.5;
}

.metaphysics-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.metaphysics-name-line h1 {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  margin: 0;
  color: #1e211c;
  font-size: clamp(48px, 5.4vw, 62px);
  font-weight: 500;
  line-height: 1;
}

.metaphysics-name-line h1 > span {
  color: inherit;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 1em;
}

.metaphysics-name-line h1 > em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82em;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.metaphysics-name-line span {
  color: #486754;
  font-size: 17px;
}

.metaphysics-bio {
  max-width: 720px;
  margin: 18px 0 0;
  color: #292a24;
  font-size: 16px;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metaphysics-bio i {
  font-style: normal;
}

.metaphysics-profile-copy .metaphysics-intro {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(41, 42, 36, 0.62);
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metaphysics-profile-band .metaphysics-status {
  position: static;
  width: auto;
  margin-bottom: 4px;
  padding: 18px 0 2px 24px;
  border-top: 0;
  border-left: 1px solid rgba(39, 63, 50, 0.28);
  background: transparent;
}

.metaphysics-profile-band .metaphysics-status a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  margin-top: 13px;
  color: #325b45;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.metaphysics-profile-band .metaphysics-status a:hover,
.metaphysics-profile-band .metaphysics-status a:focus-visible {
  color: #9a3c2b;
}

.metaphysics-practice {
  position: relative;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(52, 95, 70, 0.035) 0%, transparent 34%),
    #f8f3e9;
}

.metaphysics-disciplines article {
  transition: transform 180ms ease, border-color 180ms ease;
}

.metaphysics-disciplines article:hover {
  border-color: rgba(154, 60, 43, 0.48);
  transform: translateX(4px);
}

@media (max-width: 920px) {
  .metaphysics-profile-band {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 26px;
    margin-top: -62px;
    padding-bottom: 48px;
  }

  .metaphysics-avatar {
    width: 156px;
  }

  .metaphysics-profile-copy {
    padding-top: 78px;
  }

  .metaphysics-profile-band .metaphysics-status {
    grid-column: 1 / -1;
    margin: 4px 0 0 182px;
    padding: 15px 0 0;
    border-top: 1px solid rgba(39, 63, 50, 0.2);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .metaphysics-site > .metaphysics-nav {
    align-items: flex-start;
    min-height: 64px;
    padding: 12px 16px;
  }

  .metaphysics-site > .metaphysics-nav nav span {
    max-width: 112px;
    font-size: 10px;
    text-align: center;
  }

  .metaphysics-banner-stage {
    height: 246px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .metaphysics-banner-stage img {
    object-position: 38% center;
  }

  .metaphysics-profile-band {
    width: calc(100% - 32px);
    display: block;
    margin: 0 auto;
    padding-bottom: 42px;
  }

  .metaphysics-avatar {
    width: 112px;
    margin: -48px 0 18px;
    border-width: 5px;
  }

  .metaphysics-profile-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .metaphysics-profile-copy .metaphysics-year {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .metaphysics-name-line {
    display: block;
  }

  .metaphysics-name-line h1 {
    font-size: 40px;
  }

  .metaphysics-name-line span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
  }

  .metaphysics-bio {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .metaphysics-bio span,
  .metaphysics-profile-copy .metaphysics-intro span {
    display: block;
    width: fit-content;
    max-width: 100%;
  }

  .metaphysics-bio i {
    display: none;
  }

  .metaphysics-profile-copy .metaphysics-intro {
    margin: 8px 0 0;
    font-size: 13px;
  }

  .metaphysics-profile-band .metaphysics-status {
    margin: 24px 0 0;
    padding-top: 15px;
  }

  .metaphysics-profile-band .metaphysics-status strong {
    font-size: 16px;
  }

  .metaphysics-practice {
    padding-top: 62px;
  }

  .metaphysics-practice > *,
  .metaphysics-boundary > * {
    width: min(100%, 350px);
    max-width: 350px;
  }

  .metaphysics-section-heading h2,
  .metaphysics-boundary h2 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metaphysics-disciplines article {
    transition: none;
  }

  .basic-character-aura,
  .leo-character-frame--open,
  .lab-character-halo,
  .leo-character--lab {
    animation: none !important;
    transition: none !important;
  }

  .basic-shell[data-basic-mode-state="daily"] .leo-character--workshop .leo-character-frame--closed,
  .leo-character--lab .leo-character-frame--closed {
    opacity: 0;
  }

  .basic-shell[data-basic-mode-state="daily"] .leo-character--workshop .leo-character-frame--open,
  .leo-character--lab .leo-character-frame--open {
    opacity: 1;
  }
}

/* Resume / Public Workshop V3: a day-first, single-axis editorial workpaper. */
body.resume-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.resume-body .site-header {
  background: var(--paper);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.resume-body .site-header .brand strong {
  color: var(--ink);
}

.resume-body .site-header .brand small {
  color: var(--quiet);
}

.resume-body .site-header .site-nav a:not(.active) {
  color: var(--muted);
}

.resume-body .site-nav a.active {
  background: var(--acid);
  color: #102015;
  box-shadow: inset 0 -3px 0 var(--ember);
}

.resume-workshop-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  display: block;
  margin: 24px auto 0;
  padding: 0;
}

.resume-workshop-shell::before {
  display: none;
}

.resume-workshop-shell > * {
  position: relative;
  min-width: 0;
}

.resume-workshop-index,
.resume-timeline-card {
  border: 1px solid var(--basic-hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 44px rgba(27, 39, 55, 0.055);
}

.resume-workshop-index {
  overflow: hidden;
  padding: 22px 26px 0;
}

.resume-workshop-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--basic-line);
}

.resume-workshop-heading .basic-chip {
  margin-bottom: 7px;
}

.resume-workshop-heading p:last-child {
  margin: 0;
  color: var(--basic-quiet);
  font: 800 10px / 1.3 var(--font-mono);
  text-transform: uppercase;
}

.resume-theme-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.resume-theme-toggle .basic-theme-icon {
  font-size: 24px;
  line-height: 1;
}

.resume-intro-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: 30px;
  align-items: end;
  min-height: 258px;
}

.resume-identity-copy {
  align-self: center;
  padding: 26px 0 32px;
}

.resume-identity-copy h1 {
  max-width: none;
  margin: 0;
  color: var(--basic-deep);
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 98px);
  font-weight: 780;
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

.resume-identity-copy .basic-role {
  margin-top: 16px;
}

.resume-identity-copy .basic-role em {
  color: var(--basic-blue);
  font-size: 15px;
}

.resume-identity-copy .basic-summary {
  max-width: 58ch;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.52;
  text-wrap: pretty;
}

.resume-guide {
  position: relative;
  height: 246px;
  margin: 0;
  isolation: isolate;
}

.resume-guide-rule {
  position: absolute;
  right: 10px;
  bottom: 18px;
  width: 92%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--basic-line) 22%, var(--basic-rust));
}

.leo-character--resume {
  z-index: 1;
  right: -8px;
  bottom: -23px;
  width: min(310px, 100%);
  filter: drop-shadow(0 18px 18px rgba(27, 39, 55, 0.13));
}

.leo-character--resume .leo-character-frame--closed {
  opacity: 1;
}

.leo-character--resume .leo-character-frame--open {
  opacity: 1;
  animation: resume-guide-blink 7.6s 1.2s ease-in-out infinite;
}

@keyframes resume-guide-blink {
  0%, 6%, 9%, 88%, 91%, 100% { opacity: 1; }
  7.1%, 8.1%, 89.1%, 90.1% { opacity: 0; }
}

.resume-route-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -26px;
  border-top: 1px solid var(--basic-line);
  scroll-margin-top: 90px;
}

.resume-route-heading {
  grid-column: 1 / -1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 26px;
  color: var(--basic-rust);
  font: 800 10px / 1.2 var(--font-mono);
  text-transform: uppercase;
}

.resume-route-heading strong {
  color: var(--basic-quiet);
  font-weight: 800;
}

.resume-route {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  padding: 12px 16px;
  border-top: 1px solid var(--basic-line);
  color: var(--basic-ink);
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
  touch-action: manipulation;
}

.resume-route > span {
  grid-row: 1 / -1;
  align-self: center;
  color: var(--basic-rust);
  font: 800 12px / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.resume-route i {
  grid-column: 2;
  color: var(--basic-rust);
  font: 800 9px / 1.15 var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
}

.resume-route strong {
  grid-column: 2;
  color: var(--basic-deep);
  font-size: 14px;
  line-height: 1.15;
}

.resume-route > b {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  color: var(--basic-quiet);
  font-size: 16px;
  font-weight: 500;
  transition: transform 180ms ease, color 180ms ease;
}

.resume-route + .resume-route {
  border-left: 1px solid var(--basic-line);
}

.resume-route--featured > span,
.resume-route--index > span {
  color: var(--basic-acid);
}

@media (hover: hover) {
  .resume-route:hover {
    background: rgba(116, 196, 92, 0.09);
  }

  .resume-route:hover > b {
    color: var(--basic-acid);
    transform: translate(2px, -2px);
  }
}

.resume-route:active {
  transform: scale(0.985);
}

.resume-route:focus-visible,
.resume-theme-toggle:focus-visible {
  outline: 3px solid rgba(116, 196, 92, 0.72);
  outline-offset: 3px;
}

.resume-timeline-card {
  display: block;
  height: auto;
  margin-top: 14px;
  padding: 26px;
}

.resume-timeline-card .basic-topline {
  align-items: end;
  padding-bottom: 20px;
}

.resume-timeline-card .basic-topline h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.96;
}

.resume-path-range {
  margin: 0 0 4px;
  color: var(--basic-quiet);
  font: 800 11px / 1 var(--font-mono);
  text-transform: uppercase;
}

.resume-path-list {
  display: grid;
  height: auto;
  border-top: 1px solid var(--basic-line);
  border-radius: 0;
  background: transparent;
}

.resume-path-list article {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(112px, 0.18fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--basic-line);
  border-radius: 0;
  background: transparent;
}

.resume-path-list article.is-active {
  background: linear-gradient(90deg, rgba(116, 196, 92, 0.14), transparent 58%);
  box-shadow: inset 3px 0 0 var(--basic-acid);
}

.resume-stage-marker {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 0 16px;
  border-right: 1px solid var(--basic-line);
}

.resume-stage-marker span {
  color: var(--basic-rust);
  font: 800 21px / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.resume-stage-marker b {
  color: var(--basic-soft);
  font: 800 10px / 1.3 var(--font-mono);
  text-transform: uppercase;
}

.resume-path-list .basic-journey-head {
  margin-bottom: 6px;
}

.resume-path-list .basic-journey-copy h3 {
  font-size: 20px;
  line-height: 1.08;
}

.resume-path-list .basic-journey-copy p {
  max-width: 78ch;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.42;
}

.resume-timeline-card .basic-stack-tags {
  margin-top: 12px;
  scroll-margin-top: 90px;
}

.resume-skills-label {
  margin: 20px 0 0;
  color: var(--basic-rust);
  font: 800 10px / 1.2 var(--font-mono);
  text-transform: uppercase;
}

html[data-theme="night"] .resume-workshop-index,
html[data-theme="night"] .resume-timeline-card {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset;
}

@media (max-width: 900px) {
  .resume-workshop-shell {
    width: min(860px, calc(100% - 28px));
    margin-top: 14px;
  }

  .resume-intro-main {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    min-height: 232px;
  }

  .resume-identity-copy h1 {
    font-size: clamp(58px, 10vw, 82px);
  }

  .resume-route-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-route:nth-of-type(3) {
    border-left: 0;
  }

  .resume-route:nth-of-type(n + 3) {
    border-top: 1px solid var(--basic-line);
  }

  .leo-character--resume {
    width: 230px;
  }
}

@media (max-width: 640px) {
  .resume-body .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 8px 12px 6px;
  }

  .resume-body .brand {
    min-height: 42px;
  }

  .resume-body .site-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
  }

  .resume-body .site-nav a {
    min-width: 0;
    min-height: 38px;
    justify-content: center;
    padding: 7px 2px;
    font-size: 10px;
    white-space: nowrap;
  }

  .resume-workshop-shell {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .resume-workshop-index,
  .resume-timeline-card {
    padding: 13px;
  }

  .resume-workshop-index {
    padding-bottom: 0;
  }

  .resume-workshop-heading {
    gap: 10px;
    padding-bottom: 12px;
  }

  .resume-workshop-heading p:last-child {
    display: none;
  }

  .resume-intro-main {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 4px;
    min-height: 194px;
  }

  .resume-identity-copy h1 {
    font-size: clamp(46px, 15.5vw, 62px);
  }

  .resume-identity-copy {
    padding: 18px 0 20px;
  }

  .resume-identity-copy .basic-role {
    margin-top: 10px;
  }

  .resume-identity-copy .basic-role em {
    font-size: 12px;
  }

  .resume-identity-copy .basic-summary {
    grid-column: 1 / -1;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .resume-identity-copy .basic-meta {
    gap: 4px;
  }

  .resume-identity-copy .basic-meta span {
    min-height: 26px;
    font-size: 9.5px;
  }

  .resume-guide {
    height: 172px;
  }

  .leo-character--resume {
    right: -18px;
    bottom: -12px;
    width: 150px;
  }

  .resume-guide-rule {
    bottom: 12px;
    width: 110%;
  }

  .resume-route-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 -13px;
  }

  .resume-route-heading {
    grid-column: 1 / -1;
    padding: 0 13px;
  }

  .resume-route {
    min-height: 66px;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    gap: 7px;
    padding: 9px 10px;
  }

  .resume-route strong {
    font-size: 12px;
  }

  .resume-route i {
    font-size: 8px;
  }

  .resume-timeline-card {
    margin-top: 8px;
  }

  .resume-timeline-card .basic-topline {
    align-items: start;
    padding-bottom: 14px;
  }

  .resume-timeline-card .basic-topline h2 {
    max-width: 12ch;
    font-size: clamp(30px, 10vw, 40px);
  }

  .resume-path-range {
    margin-top: 4px;
    font-size: 9px;
  }

  .resume-path-list article {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 15px 2px;
  }

  .resume-stage-marker {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0;
    border-right: 0;
  }

  .resume-stage-marker span {
    font-size: 15px;
  }

  .resume-stage-marker b {
    font-size: 9px;
  }

  .resume-path-list .basic-journey-head {
    align-items: flex-start;
  }

  .resume-path-list .basic-journey-head div {
    justify-content: flex-start;
  }

  .resume-path-list .basic-journey-copy h3 {
    font-size: 18px;
  }

  .resume-path-list .basic-journey-copy p {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .resume-intro-main {
    grid-template-columns: minmax(0, 1fr) 96px;
    min-height: 170px;
  }

  .resume-identity-copy {
    padding: 14px 0 16px;
  }

  .resume-identity-copy h1 {
    font-size: 44px;
  }

  .resume-identity-copy .basic-summary {
    font-size: 11.2px;
    line-height: 1.34;
  }

  .resume-guide {
    height: 146px;
  }

  .leo-character--resume {
    right: -16px;
    bottom: -8px;
    width: 126px;
  }

  .resume-route-heading {
    min-height: 36px;
  }

  .resume-route {
    min-height: 56px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .resume-route strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resume-route,
  .resume-route > b {
    transition: none;
  }

  .leo-character--resume .leo-character-frame--open {
    animation: none;
    opacity: 1;
  }
}

/* Release guardrails: preserve the desktop composition while ensuring every
   narrow-screen reading surface is bounded by the actual viewport. */
@media (max-width: 820px) {
  body[data-page="writing.html"] .writing-studio,
  body[data-page="writing.html"] .writing-studio-head,
  body[data-page="writing.html"] .writing-columns,
  body[data-page="writing.html"] .writing-column,
  body[data-page="writing.html"] .writing-column-stream,
  body[data-page="writing.html"] .writing-card,
  body[data-page="writing.html"] .writing-card-open,
  body[data-page="writing.html"] .writing-card-copy {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="writing.html"] .writing-columns.section-inner {
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr);
    margin-inline: auto;
  }

  body[data-page="writing.html"] .writing-card-copy strong,
  body[data-page="writing.html"] .writing-card-copy > span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .full-hero-layout.section-inner,
  .full-hero-copy,
  .full-hero-copy .role-line,
  .full-hero-copy .lede,
  .full-hero-meta,
  .full-hero-facts {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .full-hero-copy .role-line,
  .full-hero-copy .lede,
  .full-hero-meta {
    overflow-wrap: anywhere;
  }

  .leo-os-computer {
    width: min(88vw, 520px);
  }

  .leo-os-boot-meta span:last-child {
    max-width: 46%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
