/* The same copy panel slides right to reveal the software stage on the left. */
.home-page {
  --ground: #191919;
  --copy-ground: #252525;
  --display-ground: #80877e;
  --ink: #e3e2d4;
  --muted: #b9c2b4;
  --accent: #e4c797;
  --gutter: clamp(32px, 4.2vw, 64px);
  height: 100svh; overflow: hidden; overscroll-behavior: none;
  color: var(--ink); background: var(--ground); color-scheme: dark;
}
.home-page:before { content: none; }
.home-page *, .home-page *:before, .home-page *:after { border-radius: 0; box-shadow: none; text-shadow: none; }
.home-page a, .home-page button { transition: color 120ms linear, background-color 120ms linear, border-color 120ms linear, opacity 180ms linear; }
.home-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-page .site-header { position: absolute; inset: 0 0 auto; width: 100%; height: 88px; min-height: 0; margin: 0; padding: 0 var(--gutter); display: flex; justify-content: space-between; gap: 32px; background: #181e1a; }
.home-page .site-header:after { display: none; }
.home-page .site-name { color: #e3e2d4; font-size: 22px; gap: 13px; letter-spacing: -.02em; }
.home-page .brand-icon { width: 26px; height: 34px; }
.home-page .site-nav { gap: clamp(18px, 2.5vw, 36px); color: #bbc4b6; font-size: 12px; letter-spacing: 0; }
.home-page .site-nav a { min-height: 44px; }
.home-page .site-nav a[aria-current], .home-page .site-nav a:hover { color: #e4c797; }
.home-page .site-nav a:after { background: #e4c797; bottom: 8px; transform: none; transition: opacity 120ms linear; }
.project-deck { width: 100%; height:calc(100dvh - var(--site-header-height)); margin: 0; outline: none; }
.home-viewport { height:100%; }
.deck-layout { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height:100%; overflow: hidden; isolation: isolate; }
.deck-visual, .software-visual, .deck-copy { min-width: 0; min-height:0; height:100%; position: relative; }
.deck-visual, .software-visual { grid-area: 1 / 2; background: var(--display-ground); color: #101e14; overflow: hidden; }
.deck-visual { z-index: 2; transition: opacity 240ms linear, visibility 240ms; }
.software-visual { grid-area: 1 / 1; z-index: 1; background: #505956; color: #dde2d2; transition: background-color 650ms linear; }
.software-visual .visual-register { color: #f1f1e1; border-color: #8ba196; }
.project-deck[data-state='3'] .software-visual { background: #3e4641; }
.visual-register { position: absolute; top:24px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid #445843; font: 11px/1.6 Consolas, monospace; letter-spacing: .05em; z-index: 3; }
.stage-composition { position: absolute; inset: 13% 0 11%; pointer-events: none; }
.terminal-art { width: 100%; height: 100%; color: #243c29; opacity: .4; }
.visual-word, .software-word { position: absolute; left: 5%; right: 5%; bottom: -1%; text-align: center; color: #213e28; opacity: .25; font: 700 clamp(60px, 9.5vw, 170px)/.9 Arial, sans-serif; letter-spacing: -.065em; pointer-events: none; }
.visual-sideword { position: absolute; right: 23px; top: 35%; writing-mode: vertical-rl; font: 10px/1.5 Consolas, monospace; letter-spacing: .14em; color: #263e2b; }
.software-word { bottom: 12%; font-size: clamp(48px, 7.6vw, 140px); color: #d0dcc5; opacity: .13; }
.model-stage { position: absolute; inset: 21% 0 18%; isolation: isolate; transition: opacity 240ms linear; }
.model-canvas { position: absolute; inset: 0; opacity: 0; z-index: 2; cursor: grab; touch-action: none; transition: opacity 300ms linear; }
.model-canvas:active { cursor: grabbing; }
.model-button-hint { position:absolute; bottom:-18px; left:0; right:0; text-align:center; font:10px/1.4 var(--font-mono,monospace); letter-spacing:.12em; opacity:.55; pointer-events:none; }
.model-button-hint[hidden] { display:none; }
.model-stage.is-command-error .model-status { position:absolute; clip-path:none; width:auto; height:auto; inset:auto 8% -18px; white-space:normal; text-align:center; color:#633d2b; font-size:12px; }
.model-stage.is-command-error .model-button-hint { visibility:hidden; }
.model-canvas canvas { display: block; width: 100%; height: 100%; }
.model-stage.is-ready .model-canvas { opacity: 1; }
.model-placeholder { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity 180ms linear; }
.model-stage.is-ready:not(.is-loading) .model-placeholder { opacity: 0; }
.model-loader { width: 48px; height: 2px; background: #52674f; position: relative; overflow: hidden; }
.model-loader:after { content: ''; position: absolute; inset: 0; background: #e4c797; animation: terminal-load 1.4s linear infinite; transform-origin: left; }
@keyframes terminal-load { 0%,100% { transform: scaleX(.15); } 50% { transform: scaleX(1); } }
.model-stage.is-error .model-loader { display: none; }
.model-stage.is-error .model-status { position: absolute; clip-path: none; width: auto; height: auto; inset: auto 8% 15%; white-space: normal; text-align: center; color: #18291d; font-size: 13px; }
.deck-copy { grid-area: 1 / 1; z-index: 4; background: var(--copy-ground); padding:28px var(--gutter) 26px; display: flex; flex-direction: column; overflow: hidden; transition: transform 900ms cubic-bezier(.45,0,.25,1); }
.project-deck[data-presentation='software'] .deck-copy { transform: translateX(100%); }
.copy-watermark { position: absolute; bottom: 10%; left: -3%; white-space: nowrap; font: 700 clamp(82px, 10.5vw, 180px)/1 Arial, sans-serif; letter-spacing: -.075em; color: #d0d5bb; opacity: .035; pointer-events: none; user-select: none; }
.chapter-register { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 18px; border-top: 1px solid #465246; color: #bdc5b6; font: 11px/1.6 Consolas, monospace; }
.copy-panels { flex: 1; min-height: 0; position: relative; margin: 12px 0 20px; }
.copy-state { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; scrollbar-width: thin; padding: 28px 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms linear, visibility 260ms; }
.copy-state.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.copy-state h1, .copy-state h2 { flex-shrink: 0; font-size: clamp(40px, 4.65vw, 76px); line-height: 1.35; font-weight: 700; letter-spacing: -.065em; color: #e3e2d4; }
.copy-state h1 > span, .copy-state h2 > span { display: block; }
.copy-state h1 > span:last-child { color: #e4c797; }
.type-character { opacity: 0; transition: opacity 100ms linear; }
.type-character.is-typed { opacity: 1; }
.copy-state .placeholder-copy { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.8; margin-top: 28px; color: #d4d9c8; }
.section-description { font-size: 14px; line-height: 1.95; color: #b9c2b4; max-width: 43ch; margin-top: 14px; }
.copy-state .actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; margin-top: 30px; }
.home-page .button { min-width: 0; min-height: 54px; padding: 16px 32px; display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; border: 1px solid #b3bfaa; }
.home-page .button.primary { background: #dddcca; color: #18231b; border-color: #dddcca; }
.home-page .button.outline { background: transparent; color: #e3e2d4; }
.home-page .button.primary:hover { background: #181e1a; color: #f3f1df; }
.home-page .button.outline:hover { background: #e3e2d4; color: #181e1a; }
.home-page .button, .home-page .button:hover, .home-page .button:active { transform: none; box-shadow: none; }
.home-page .button:hover span { transform: none; transition: none; }
.chapter-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; align-self: start; width: min(350px, 100%); gap: 20px; margin-top: 38px; padding: 18px 0; border-block: 1px solid #677561; color: #e4c797; }
.chapter-link > :first-child { font-size: 24px; font-weight: 600; letter-spacing: .06em; }
.chapter-link > :nth-child(2) { font: 10px/1.7 Consolas, monospace; color: #c1cbb8; }
.chapter-link > :last-child { font-size: 27px; }
.chapter-link:hover { background: #29372a; color: #f0e4c5; border-color: #d8c192; }
.availability-note { font: 10px/1.8 Consolas, monospace; margin-top: 22px; color: #b9c2b4; max-width: 55ch; }
.deck-pagination { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #465246; padding-top: 20px; position: relative; }
.deck-page-count { display: flex; align-items: baseline; gap: 12px; font: 12px/1 Consolas, monospace; color: #b9c2b4; }
.deck-page-count > [data-home-page] { font: 400 34px/1 Arial, sans-serif; letter-spacing: -.065em; color: #e3e2d4; min-width: 34px; }
.deck-page-count i { font-style: normal; }
.page-controls { display: flex; gap: 8px; }
.page-turn { padding: 16px 32px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 1px solid #718066; background: transparent; color: #e3e2d4; font: 600 11px/1.5 Consolas, monospace; }
.page-turn-previous { padding: 16px; min-width: 52px; }
.page-turn:hover:not(:disabled) { background: #e3e2d4; border-color: #e3e2d4; color: #181e1a; }
.home-page .page-turn:active { transform: none; }
.page-turn:disabled { opacity: .4; }
.visual-footer { position: absolute; bottom: 30px; right: var(--gutter); width: calc(50% - 2 * var(--gutter)); z-index: 5; color: #101e14; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: transform 900ms cubic-bezier(.45,0,.25,1); }
.project-deck[data-presentation='software'] .visual-footer { display: none; }
.product-register { font: 10px/1.5 Consolas, monospace; letter-spacing: .14em; opacity: .65; }
.product-select { appearance:none; min-height:44px; min-width:190px; margin-left:auto; padding:11px 42px 11px 18px; border:1px solid #344036; border-left:3px solid #d8c192; background:#29312b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d8c192' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 16px center; color:#e4e2d5; font:12px/1.5 'Microsoft YaHei',sans-serif; letter-spacing:.08em; color-scheme:dark; cursor:pointer; transition:background-color 180ms,border-color 180ms; }
.product-select:hover, .product-select:focus-visible { border-color:#d8c192; background-color:#202822; }
.product-select option { background:#252d27; color:#e4e2d5; }
.product-select:focus-visible { outline-color:#e4c797; outline-offset:3px; }
@supports (appearance:base-select) {
  .product-select, .product-select::picker(select) { appearance:base-select; }
  .product-select { background-image:none; padding-right:16px; gap:28px; }
  .product-select::picker-icon { color:#d8c192; transition:rotate 220ms cubic-bezier(.2,.7,.2,1); }
  .product-select:open::picker-icon { rotate:180deg; }
  .product-select::picker(select) { background:#252d27; color:#e4e2d5; border:1px solid #d8c192; padding:5px; margin-block:7px; opacity:0; transform:translateY(7px); transition:opacity 180ms ease,transform 220ms cubic-bezier(.2,.7,.2,1),display 220ms allow-discrete,overlay 220ms allow-discrete; }
  .product-select:open::picker(select) { opacity:1; transform:translateY(0); }
  @starting-style { .product-select:open::picker(select) { opacity:0; transform:translateY(7px); } }
  .product-select option { padding:12px 15px; gap:15px; font:inherit; transition:background-color 120ms; }
  .product-select option:checked { color:#ead3a7; background:#364236; }
  .product-select option:hover, .product-select option:focus { background:#465446; }
  .product-select option::checkmark { color:#e4c797; }
}
.app-art { position: absolute; inset: 17% 3% 13%; height: auto; display: block; isolation: isolate; opacity: 0; visibility: hidden; pointer-events: none; }
.monitor-demo { position: absolute; left: 8%; top: 14%; width: 84%; }
.monitor-shell { border: 1px solid #465543; padding: 12px 12px 20px; background: #202a22; position: relative; }
.monitor-screen { width: 100%; aspect-ratio: 16 / 10; background: #1e1e1e; position: relative; overflow: hidden; }
.demo-screen iframe { position: absolute; inset: 0 auto auto 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #191919; }
.monitor-indicator { display: block; position: absolute; width: 3px; height: 3px; background: #a8baa1; bottom: 8px; left: calc(50% - 1px); }
.monitor-neck { width: 13%; height: 36px; margin: 0 auto; background: #344132; }
.monitor-foot { width: 40%; height: 8px; background: #243324; margin: 0 auto; }
.phone-demo { position: absolute; width: 27%; left: 3%; bottom: 5%; max-width: 180px; }
.phone-shell { padding: 17px 6px 13px; border: 1px solid #6a7d61; background: #19221b; position: relative; }
.phone-screen { aspect-ratio: 390 / 844; width: 100%; overflow: hidden; position: relative; background: #191919; }
.phone-speaker { position: absolute; width: 20%; height: 2px; top: 8px; left: 40%; background: #849276; }
.phone-home { display: block; width: 23%; height: 2px; background: #687a5f; margin: 7px auto -4px; }
.index-art { position: absolute; inset: 23% 12% 23%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 35px; opacity: 0; visibility: hidden; pointer-events: none; }
.index-seal { width: min(180px, 45%); background: #273c2b; padding: 24px; }
.index-seal img { display: block; width: 100%; height: 215px; object-fit: contain; }
.index-art p { font-size: 19px; letter-spacing: .18em; text-align: center; color: #e3e2d4; }
.index-art p span { display: block; margin-top: 12px; font: 10px/1.7 Consolas, monospace; letter-spacing: .05em; }
.project-deck[data-presentation='software'] .deck-visual { opacity: 0; visibility: hidden; pointer-events: none; }
.project-deck[data-state='2'] .app-art, .project-deck[data-state='3'] .index-art { opacity: 1; visibility: visible; }
.project-deck[data-state='2'] .monitor-demo { animation: monitor-arrive 900ms 150ms both cubic-bezier(.2,.7,.25,1); }
.project-deck[data-state='2'] .phone-demo { animation: phone-arrive 900ms 320ms both cubic-bezier(.2,.7,.25,1); }
.project-deck[data-state='3'] .index-seal { animation: seal-arrive 1000ms 120ms both cubic-bezier(.2,.7,.25,1); }
.project-deck[data-state='3'] .index-art p { animation: inscription-arrive 600ms 400ms both linear; }
@keyframes monitor-arrive { from { opacity: 0; transform: translate(36px, 25px); } to { opacity: 1; transform: none; } }
@keyframes phone-arrive { from { opacity: 0; transform: translate(-25px, 42px); } to { opacity: 1; transform: none; } }
@keyframes seal-arrive { from { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(18px); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes inscription-arrive { from { opacity: 0; } to { opacity: 1; } }
.project-deck.wipe-forward .deck-visual, .project-deck.wipe-backward .deck-visual { transition-delay: 340ms; }
.project-deck.wipe-forward .copy-state.is-active, .project-deck.wipe-backward .copy-state.is-active { transition-delay: 600ms; }
.project-deck.wipe-forward .copy-state.is-leaving, .project-deck.wipe-backward .copy-state.is-leaving { transition-delay: 260ms; }
.project-deck.wipe-forward .monitor-demo { animation-delay: 470ms; }
.project-deck.wipe-forward .phone-demo { animation-delay: 640ms; }
.friends-state h2 { font-size: clamp(40px, 4.65vw, 76px); }
.recommendation-signature { margin-bottom: 22px; color: #e4c797; font: 14px/1.5 Consolas, monospace; }
.website-pending { opacity: .6; cursor: default; }
.friend-list { margin-top: 24px; }
.friend-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid #465246; font-size: 14px; color: #d8dfca; }
.friend-row:hover { color: #e4c797; background: #29372a; }
@media (max-width: 1150px) and (min-width: 1024px) {
  .home-page .button { padding-inline: 24px; gap: 18px; }
  .chapter-link { width: min(310px, 100%); }
  .phone-demo { bottom: 12%; }
}
@media (max-width: 1023px) {
  .home-page { height:100dvh; overflow:hidden; overscroll-behavior:none; }
  .home-page .site-header { position: relative; height: auto; min-height: 116px; padding: 22px 32px 10px; display: grid; grid-template-columns: 1fr; gap: 14px; }
  .home-page .site-name { font-size: 20px; }
  .home-page .site-nav { grid-column: 1; justify-content: flex-start; gap: clamp(14px, 4vw, 30px); flex-wrap: wrap; font-size: 12px; }
  .deck-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:clamp(170px,31dvh,310px) minmax(0,1fr); }
  .deck-visual, .software-visual { grid-area:1 / 1; min-height:0; height:100%; }
  .visual-register { top:8px; left:24px; right:24px; padding-top:8px; font-size:9px; }
  .visual-sideword { display: none; }
  .stage-composition { inset: 9% 2% 12%; }
  .visual-word { font-size: clamp(70px, 18vw, 160px); bottom: 1%; }
  .model-stage { inset:25px 0 38px; }
  .model-button-hint { bottom:auto; top:0; font-size:8px; letter-spacing:.06em; }
  .model-stage.is-command-error .model-status { inset:0 8% auto; font-size:10px; }
  .software-word { bottom: 17%; font-size: clamp(64px, 16vw, 140px); }
  .visual-footer { left:24px; right:24px; width:auto; bottom:auto; top:calc(clamp(170px,31dvh,310px) - 39px); }
  .product-select { min-height:32px; min-width:160px; padding:6px 32px 6px 12px; font-size:10px; background-position:right 12px center; }
  .product-register { font-size:9px; }
  .app-art { inset:32px 3% 10px; }
  .monitor-demo { top: 4%; left: 14%; width: 78%; max-width: 480px; }
  .monitor-shell { padding: 7px 7px 13px; }
  .monitor-indicator { bottom: 5px; }
  .monitor-neck { height: 20px; }
  .monitor-foot { height: 5px; }
  .phone-demo { width: 26%; max-width: 155px; left: 6%; bottom: 1%; }
  .phone-shell { padding-top: 13px; }
  .phone-speaker { top: 6px; }
  .index-art { inset: 18% 10% 18%; gap: 18px; }
  .index-seal { width: 130px; padding: 16px; }
  .index-seal img { height: 145px; }
  .index-art p { font-size: 16px; }
  .deck-copy, .project-deck[data-presentation='software'] .deck-copy { grid-area:2 / 1; height:100%; min-height:0; padding:14px 24px 12px; transform:none; }
  .project-deck[data-presentation='software'] .visual-footer { transform: none; }
  .copy-watermark { bottom: 14%; font-size: clamp(80px, 20vw, 150px); }
  .chapter-register { padding-top: 0; border-top: 0; }
  .copy-panels { position:relative; display:grid; flex:1; min-height:0; margin:6px 0; }
  .copy-state { position:absolute; inset:0; padding:12px 0; overflow-y:auto; overscroll-behavior:contain; display:none; justify-content:safe center; }
  .copy-state.is-active { display: flex; }
  .copy-state h1, .copy-state h2 { font-size:clamp(27px,7.5vw,40px); line-height:1.25; }
  .copy-state .placeholder-copy { margin-top:12px; font-size:13px; line-height:1.6; }
  .section-description { font-size:12px; line-height:1.6; margin-top:8px; }
  .copy-state .actions { margin-top:15px; gap:8px; }
  .home-page .button { min-height:38px; padding:9px 16px; gap:16px; font-size:11px; }
  .chapter-link { margin-top:16px; padding:9px 0; gap:14px; }
  .chapter-link > :first-child { font-size:20px; }
  .chapter-link > :nth-child(2) { font-size:9px; }
  .chapter-link > :last-child { font-size:22px; }
  .chapter-register { font-size:9px; }
  .deck-pagination { margin-top:auto; padding-top:9px; gap:10px; }
  .deck-page-count > [data-home-page] { font-size:25px; }
  .page-turn,.page-turn-previous { min-height:36px; padding:9px 16px; gap:18px; }
  .page-turn-previous { min-width:36px; padding:9px; }
  .availability-note { font-size:10px; margin-top:12px; }
  .recommendation-signature { margin-bottom:12px; font-size:12px; }
  .transition-curtain { display: none; }
}
@media (max-width: 374px) {
  .home-page .site-header { padding-inline: 24px; }
  .home-page .site-nav { gap: 14px; font-size: 11px; }
  .visual-register, .visual-footer { left: 24px; right: 24px; }
  .deck-copy { padding-inline: 24px; }
  .home-page .button { padding-inline: 23px; gap: 18px; }
  .page-turn { padding-inline: 24px; gap: 18px; }
  .page-turn-previous { padding-inline: 16px; }
  .chapter-link { gap: 14px; }
  .chapter-link > :nth-child(2) { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *:before, .home-page *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .transition-curtain { display: none; }
}
