/* The vision page. Loaded after guide.css, which supplies the tokens, header and footer. */
.vision { overflow: hidden; }
.v-hero { padding-top: 72px; padding-bottom: 24px; max-width: 900px; }
.v-eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.v-hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: .98; margin: 14px 0 20px; }
.v-hero h1 em { font-style: normal; color: var(--accent); }
.v-hint { margin: 18px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--dim); }

.v-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 24px; opacity: 0; transition: opacity .7s ease; }
.v-sec.in { opacity: 1; }
.v-sec.flip .v-copy { order: 2; }
.v-n { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--accent); }
.v-sec h2 { margin: 8px 0 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; }
.v-copy p { margin: 0 0 16px; color: var(--text-2); max-width: 46ch; }
.v-say { min-height: 3.2em; font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: var(--text) !important; }
.v-say b { color: var(--accent); font-weight: 500; }
.v-art { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: radial-gradient(ellipse at 50% 40%, rgba(var(--accent-rgb), .05), transparent 70%), var(--bg-2); }
svg.v-art text { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-anchor: middle; fill: var(--text-2); }

/* 01 · offline */
.v-switch { display: inline-flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; margin: 4px 0 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.v-switch:hover { border-color: var(--accent); }
.v-knob { position: relative; width: 52px; height: 28px; border-radius: 14px; background: rgba(var(--accent-rgb), .25); transition: background .3s; }
.v-knob::after { content: ""; position: absolute; top: 3px; left: 27px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transition: left .3s cubic-bezier(.2, .7, .2, 1), background .3s; }
.v-switch[aria-checked="false"] .v-knob { background: rgba(220, 232, 245, .12); }
.v-switch[aria-checked="false"] .v-knob::after { left: 3px; background: var(--dim); }
.v-switch b { color: var(--accent); } .v-switch[aria-checked="false"] b { color: var(--dim); }
.tile rect { fill: rgba(var(--accent-rgb), .08); stroke: rgba(var(--accent-rgb), .6); transition: fill .5s, stroke .5s; }
.tile text { fill: var(--text); transition: fill .5s; }
.wire { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 7; animation: flow 1.2s linear infinite; transition: stroke .5s, opacity .5s; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.hub rect { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; transition: stroke .5s; } .hub path { fill: none; stroke: var(--accent); stroke-width: 1.2; transition: stroke .5s; }
.off-note { opacity: 0; fill: var(--dimmer) !important; transition: opacity .5s; }
[data-net="off"] .tile rect { fill: transparent; stroke: rgba(220, 232, 245, .16); } [data-net="off"] .tile text { fill: var(--dimmer); }
[data-net="off"] .wire { stroke: rgba(220, 232, 245, .14); animation-play-state: paused; }
[data-net="off"] .hub rect, [data-net="off"] .hub path { stroke: rgba(220, 232, 245, .2); }
[data-net="off"] .off-note { opacity: 1; }
.deck .body { fill: #0d131c; stroke: var(--line-2); stroke-width: 1.5; }
.deck .scr { fill: #05080d; stroke: var(--accent); stroke-width: 1.5; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .45)); animation: lit 3s ease-in-out infinite; }
@keyframes lit { 50% { filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), .7)); } }
.deck .prompt { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none; }
.deck .kb rect { fill: rgba(220, 232, 245, .12); }
.deck text { fill: var(--accent) !important; }

/* 02 · build */
.v-btn { height: 44px; padding: 0 20px; background: var(--accent); border: 0; border-radius: 2px; color: #031018; font: 600 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.v-btn:hover { background: #fff; }
.layer { transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.layer rect, .layer circle { fill: rgba(13, 19, 28, .92); stroke: var(--line-2); stroke-width: 1.5; }
.layer text { transition: opacity .3s; }
.l1 { transform: translate(-150px, 18px); } .l2 { transform: translate(-50px, 6px); } .l3 { transform: translate(50px, -6px); } .l4 { transform: translate(150px, -18px); }
.l2 rect, .l2 circle { stroke: rgba(207, 224, 255, .7); stroke-dasharray: 4 4; }
.l3 rect { stroke: var(--accent); fill: #05080d; }
.l4 rect:first-child { fill: transparent; } .l4 rect:nth-child(2) { fill: transparent; stroke: var(--line-2); }
.built .layer { transform: none; } .built .layer text { opacity: 0; }
.built .l3 rect { filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .5)); }

/* 03 · pay once */
.v-range { display: grid; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.v-range b { color: var(--accent); font-size: 18px; }
.v-range input { width: min(320px, 100%); accent-color: var(--accent); margin: 0; }
.v-count { display: grid; gap: 28px; padding: 36px 28px; }
.v-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.v-row span { font-size: 15px; color: var(--text-2); }
.v-row b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.v-row.sub b { color: var(--text); }
.v-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(220, 232, 245, .5); transition: width .35s cubic-bezier(.2, .7, .2, 1); min-width: 6px; }
.v-bar.one { width: 6px; background: var(--accent); }

/* 04 · fix */
.v-parts { position: relative; aspect-ratio: 520 / 320; }
.v-part { position: absolute; display: grid; place-items: center; background: rgba(13, 19, 28, .9); border: 1.5px solid var(--line-2); border-radius: 4px; color: var(--text-2); font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.v-part:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.v-part[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px rgba(var(--accent-rgb), .3); }
.p-screen { left: 8%; top: 10%; width: 50%; height: 46%; }
.p-pi { left: 63%; top: 10%; width: 29%; height: 30%; border-style: dashed; }
.p-fan { left: 63%; top: 46%; width: 13%; height: 22%; border-radius: 50%; }
.p-card { left: 80%; top: 46%; width: 12%; height: 22%; }
.p-keys { left: 8%; top: 62%; width: 84%; height: 26%; }

/* story */
.v-time { display: block; max-width: 760px; }
.v-time ol { list-style: none; margin: 20px 0 0; padding: 0 0 0 2px; border-left: 1px solid var(--line-2); }
.v-time li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 26px; }
.v-time li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.v-time li:last-child::before { border-style: dashed; }
.v-time li b { font-family: var(--display); font-size: 22px; color: var(--text); }
.v-time li span { color: var(--text-2); }
.v-by { margin: 8px 0 0; color: var(--text-2); }

@media (max-width: 860px) {
  .v-sec { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; }
  .v-sec.flip .v-copy { order: 0; }
  .v-hero { padding-top: 48px; }
  .l1 { transform: translate(-96px, 14px); } .l2 { transform: translate(-32px, 5px); } .l3 { transform: translate(32px, -5px); } .l4 { transform: translate(96px, -14px); }
  .v-row b { font-size: 32px; }
}
/* visitors who ask for less motion: the page still responds to what they press, but nothing loops by itself */
@media (prefers-reduced-motion: reduce) {
  .wire { animation: none; }
  .v-sec { opacity: 1; transition: none; }
}
