[data-page="home"] { max-width: none; padding: 0; }
.home-desktop { position: relative; padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 20px; }
.desktop-window { min-width: 0; overflow: hidden; outline-offset: 5px; }
.desktop-window .window-bar { height: 34px; min-height: 34px; }
.desktop-icons, .desktop-taskbar, .home-robcio { display: none; }
.home-welcome-content { padding: 24px 26px 26px; }
.home-welcome-heading { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 18px; align-items: end; }
.home-terminal { color: var(--coral-ink); font-size: 12px; margin-bottom: 12px; }
.home-welcome-content h1 { margin: 0 0 14px; font-size: 60px; font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.home-welcome-content h1 em { color: var(--coral-ink); font: italic 400 64px/.95 'Source Serif 4', Georgia, serif; letter-spacing: -.03em; }
.home-welcome-content p { font-size: 17px; line-height: 1.5; margin: 4px 0 18px; max-width: 470px; }
.home-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-welcome-actions .button { padding: 11px 18px; font-size: 15px; min-height: 44px; white-space: nowrap; }
.home-mobile-copy { display: none; }
.home-hero-robot { display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; }
.home-robot-antenna { display: block; width: 16px; height: 16px; background: var(--accent); border: 2px solid var(--ink); border-radius: 50%; }
.home-robot-stem { display: block; width: 3px; height: 14px; background: var(--ink); }
.home-robot-head { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; width: 116px; height: 90px; background: var(--accent); border: 3px solid var(--ink); border-radius: 18px; }
.home-hero-robot .home-robot-head::before, .home-hero-robot .home-robot-head::after { content: ''; position: absolute; top: 26px; width: 10px; height: 26px; background: var(--ink); border-radius: 4px; }
.home-hero-robot .home-robot-head::before { left: -12px; }
.home-hero-robot .home-robot-head::after { right: -12px; }
.home-robot-eye { display: block; width: 18px; height: 22px; background: var(--ink); border-radius: 5px; }
.home-robot-mouth { position: absolute; bottom: 14px; width: 28px; height: 6px; background: var(--ink); border-radius: 0 0 8px 8px; }
.home-robot-neck { display: block; width: 40px; height: 10px; background: var(--ink); }
.home-robot-base { display: flex; align-items: center; justify-content: center; gap: 6px; width: 90px; height: 36px; background: var(--win); border: 3px solid var(--ink); border-radius: 10px 10px 4px 4px; }
.home-robot-base i { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.home-robot-base i:nth-child(2) { background: #6a9bcc; }
.home-robot-base i:nth-child(3) { background: var(--ink); }
.home-desktop.is-blinking .home-robot-eye { height: 3px; }
.home-video-link { display: block; color: var(--ink); text-decoration: none; }
.home-video-link:hover { color: var(--ink); }
.home-video-image { position: relative; aspect-ratio: 16/9; border-bottom: 2px solid var(--ink); overflow: hidden; }
.home-video-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 66px; height: 66px; display: grid; place-items: center; padding-left: 3px; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent); box-shadow: 3px 3px 0 var(--ink); font-size: 22px; transition: scale .2s; }
.home-video-link:hover .home-play { scale: 1.08; }
.home-video-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.home-video-kicker { display: flex; align-items: center; gap: 6px; color: var(--coral-ink); font-size: 11px; margin-bottom: 4px; }
.home-video-caption h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.home-video-time { flex-shrink: 0; padding: 2px 6px; font-size: 12px; font-weight: 600; border: 2px solid var(--ink); border-radius: 4px; }
.home-guide-list { padding: 4px 0; }
.home-guide-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; min-height: 47px; color: var(--ink); text-decoration: none; font-size: 15px; border-bottom: 1px dashed var(--line); }
.home-guide-row:last-child { border-bottom: 0; }
.home-guide-row:hover { color: var(--ink); background: var(--tint); }
.home-guide-logo { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.home-guide-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.home-guide-all { display: none; }
.home-commands { padding: 10px 16px 12px; }
.home-command { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.home-command:last-child { border-bottom: 0; }
.home-command code { min-width: 64px; color: var(--coral-ink); font: 600 14px 'JetBrains Mono', monospace; }
.home-command > span { flex: 1; font-size: 14px; line-height: 1.35; }
.home-command button { flex-shrink: 0; min-width: 86px; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--win); font: 600 11px 'JetBrains Mono', monospace; color: var(--ink); cursor: pointer; }
.home-command button:hover { background: var(--tint); }
.home-author-link { display: block; text-decoration: none; color: var(--ink); }
.home-author-link:hover { color: var(--ink); }
.home-author-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.home-author-bio { padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.home-author-bio h2 { font-size: 16px; line-height: 1.2; margin: 0 0 4px; }
.home-author-bio p { margin: 0; }
.home-author-more { display: block; color: var(--coral-ink); font-weight: 600; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.home-tool-chips { display: none; }

@media (min-width: 900px) {
  .home-desktop.is-enhanced { height: calc(100svh - 40px); min-height: 820px; overflow: hidden; display: block; padding: 0; }
  .home-desktop.is-enhanced .desktop-window { position: absolute; left: var(--window-x,40px); top: var(--window-y,40px); width: var(--window-width,480px); z-index: var(--window-z,1); }
  .home-desktop.is-enhanced .desktop-window[data-state="closed"] { display: none; }
  .home-desktop.is-enhanced .desktop-window .window-bar { cursor: grab; touch-action: none; user-select: none; }
  .home-desktop.is-enhanced .desktop-window.is-dragging .window-bar { cursor: grabbing; }
  .home-desktop.is-enhanced .desktop-icons { position: absolute; right: 24px; top: 22px; display: grid; grid-template-columns: repeat(2,104px); gap: 14px 8px; justify-items: center; align-items: start; }
  .desktop-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 0; color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
  .desktop-icon:hover { color: var(--ink); transform: translateY(-5px) rotate(-5deg); }
  .desktop-icon-label { padding: 2px 6px; background: var(--win); border: 1.5px solid var(--ink); border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; max-width: 104px; }
  .desktop-icon-robot { min-height: 89px; }
  .home-desktop.is-enhanced .home-robcio { position: absolute; right: 20px; bottom: 56px; display: flex; align-items: flex-end; gap: 12px; z-index: 900; }
  .home-robcio-bubble { width: 290px; padding: 12px 14px; background: var(--win); border: 2px solid var(--ink); border-radius: 12px 12px 2px 12px; box-shadow: 4px 4px 0 var(--shd); font-size: 14px; line-height: 1.45; }
  .home-robcio-kicker { font-size: 11px; font-weight: 600; color: var(--coral-ink); margin-bottom: 4px; }
  .home-robcio-bubble p { margin: 0; }
  .home-robcio-bubble button { display: block; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--coral-ink); font: 600 13px 'Hanken Grotesk', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .home-robcio-robot { display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .home-robcio-robot .home-robot-antenna { width: 13px; height: 13px; background: #6a9bcc; }
  .home-robcio-robot .home-robot-stem { width: 2px; height: 8px; }
  .home-robcio-robot .home-robot-head { width: 62px; height: 50px; gap: 12px; border-width: 2px; border-radius: 12px; background: #6a9bcc; }
  .home-robcio-robot .home-robot-eye { width: 9px; height: 12px; border-radius: 3px; }
  .home-robcio-robot .home-robot-base { width: 44px; height: 22px; border-width: 2px; border-top: 0; border-radius: 0 0 8px 8px; }
  .home-desktop.is-enhanced .desktop-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 42px; padding: 0 10px; display: flex; align-items: center; gap: 8px; z-index: 1000; background: var(--win); border-top: 2px solid var(--ink); }
  .desktop-start, .desktop-task { padding: 3px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--win); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .desktop-start { background: var(--accent); font-size: 13px; font-weight: 700; }
  .desktop-task:hover, .desktop-task[aria-pressed="true"] { background: var(--tint); }
  .desktop-tasks { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .desktop-task[hidden] { display: none; }
  .desktop-taskbar-footer { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 12px; font-weight: 600; }
  .desktop-taskbar-footer a { color: var(--ink); }
  .home-desktop:not(.is-enhanced) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; max-width: 1400px; margin: auto; padding: 32px; }
  .home-desktop:not(.is-enhanced) .desktop-window--hello { grid-column: 1/-1; }
  .home-desktop:not(.is-enhanced) .desktop-window--me .home-author-image { max-height: 240px; }
  .home-desktop:not(.is-enhanced) .window-bar button { display: none; }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .desktop-taskbar-footer { gap: 10px; }
  .desktop-taskbar-footer > span { display: none; }
}

@media (max-width: 899px) {
  .home-desktop { max-width: 650px; margin-inline: auto; }
  .desktop-window { position: static; width: 100%; box-shadow: 5px 5px 0 var(--shd); }
  .desktop-window .window-bar { height: 30px; min-height: 30px; padding: 0 10px; font-size: 12px; }
  .desktop-window .window-bar button, .desktop-window .window-bar > .window-dot, .desktop-window .window-bar > .window-dots, .desktop-window .window-bar > [aria-hidden="true"] { display: none; }
  .home-welcome-content { padding: 18px 18px 20px; position: relative; }
  .home-welcome-heading { display: block; }
  .home-terminal, .home-desktop-copy, .home-desktop-break, .home-all-guides, .home-video-time { display: none !important; }
  .home-mobile-copy { display: inline; }
  .home-welcome-content h1 { font-size: 38px; line-height: .95; margin: 10px 0 12px; padding-right: 68px; }
  .home-welcome-content h1 em { font-size: 40px; line-height: .95; display: block; }
  .home-welcome-content p { font-size: 16px; margin: 0 0 16px; }
  .home-welcome-actions { display: block; }
  .home-welcome-actions .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 10px 8px; font-size: 16px; }
  .home-hero-robot { position: absolute; top: 18px; right: 16px; padding: 0; }
  .home-hero-robot .home-robot-antenna { width: 11px; height: 11px; }
  .home-hero-robot .home-robot-stem { width: 2px; height: 7px; }
  .home-hero-robot .home-robot-head { width: 64px; height: 50px; border-width: 2px; border-radius: 12px; gap: 12px; }
  .home-hero-robot .home-robot-head::before, .home-hero-robot .home-robot-head::after, .home-hero-robot .home-robot-mouth, .home-hero-robot .home-robot-neck, .home-hero-robot .home-robot-base i { display: none; }
  .home-hero-robot .home-robot-eye { width: 10px; height: 13px; border-radius: 3px; }
  .home-hero-robot .home-robot-base { width: 48px; height: 18px; border-width: 2px; border-top: 0; border-radius: 0 0 6px 6px; }
  .home-video-caption { padding: 12px 14px; }
  .home-play { width: 56px; height: 56px; box-shadow: none; font-size: 18px; }
  .home-tool-chips { display: flex; flex: none; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px -6px; padding: 0 16px 6px; }
  .home-tool-chips a { display: flex; align-items: center; flex: none; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--win); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
  .home-tool-chips .is-selected { background: var(--accent); }
  .home-guide-list { padding: 0; }
  .home-guide-row { grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; min-height: 62px; padding: 8px 14px; font-size: 15px; font-weight: 600; line-height: 1.25; }
  .home-guide-logo { width: 36px; height: 36px; border-radius: 7px; }
  .home-guide-logo .brand-icon { width: 23px; height: 23px; }
  .home-guide-time { font-size: 11px; font-weight: 500; }
  .home-guide-all { display: block; padding: 14px; border-top: 1px dashed var(--line); color: var(--coral-ink); font-size: 14px; font-weight: 600; }
  .desktop-window--cheat .window-bar { background: var(--tint-yellow); }
  .home-commands { padding: 6px 14px 10px; }
  .home-command { min-height: 58px; padding: 5px 0; gap: 8px; }
  .home-command code { min-width: 54px; }
  .home-command button { min-height: 44px; min-width: 80px; padding: 0 7px; font-size: 11px; }
  .desktop-window--me .window-bar { display: none; }
  .home-author-link { display: flex; align-items: center; gap: 14px; padding: 14px; }
  .home-author-image { width: 64px; height: 64px; flex-shrink: 0; border: 0; border-radius: 50%; }
  .home-author-bio { padding: 0; line-height: 1.4; }
  .home-author-more { margin-top: 4px; }
}

@media (max-width: 359px) {
  .home-welcome-content h1 { font-size: 33px; padding-right: 58px; }
  .home-welcome-content h1 em { font-size: 35px; }
  .home-hero-robot { right: 10px; scale: .85; transform-origin: top right; }
  .home-command { gap: 6px; }
  .home-command > span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-icon, .home-play { transition: none; }
  .desktop-icon:hover { transform: none; }
}
