/* Homepage: key-unlocked playbook hero and the content below it. */
.home-page {
  --desk-edge: #090d18;
  --desk-panel: #202b46;
  --desk-bar: #2b3d61;
  --desk-line: #536789;
  --desk-white: var(--desk-cream);
  --navy: var(--desk-night);
  --blue: #365583;
  --ink: var(--desk-ink);
  --muted: #4a5870;
  --paper: var(--desk-paper);
  --lavender: #cbd4df;
  --yellow: #d8e1ec;
  --line: #202a44;
  color: var(--desk-white);
  background: var(--desk-night);
}
.desk-wrap { width: min(1160px, calc(100% - 2 * var(--desk-gutter))); margin-inline: auto; }
.home-pixel { width: 24px; height: 24px; display: block; flex: none; }
.desk-label {
  color: #b2c2db;
  font: 10px/1.6 var(--mono);
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
.desk-status-light {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--desk-red);
  box-shadow: 0 0 10px #ed777a60;
}
/* Hero. Without .is-playing the window shows its finished, still state. */
.vault-hero {
  --vault-coral: #f2878a;
  --vault-panel: #121a2d;
  --vault-line: #3d5277;
  overflow: hidden;
  background: radial-gradient(ellipse at 76% 44%, #2a3e6188, transparent 58%), var(--desk-grid), #12182c;
  border-bottom: 1px solid #2c3b5a;
}
.vault-hero-layout {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: 48px 40px;
}
.home-page #home-heading {
  font: 800 clamp(40px, 5.6vw, 76px)/.98 var(--body);
  letter-spacing: -.055em;
  color: var(--desk-white);
  text-wrap: balance;
}
#home-heading em { font-style: normal; color: var(--vault-coral); white-space: nowrap; }
.vault-h1-end { color: var(--desk-blue); white-space: nowrap; }
.vault-h1-end b { color: var(--vault-coral); }
.vault-stage { position: relative; margin: 0; padding: 26px 30px 0 0; }
.vault-measure { position: absolute; color: #7f97bd; font: 10px/1 var(--mono); }
.vault-measure::before { content: ""; position: absolute; border: 0 solid #5f7aa3; }
.vault-measure span { position: relative; padding-inline: 8px; background: #141c30; }
.vault-measure-top { top: 0; left: 0; right: 30px; height: 12px; display: grid; place-items: center; }
.vault-measure-top::before { inset: 5px 0 auto; border-top-width: 1px; border-inline: 1px solid #5f7aa3; height: 6px; top: 3px; }
.vault-measure-side { top: 26px; bottom: 0; right: 0; width: 12px; display: grid; place-items: center; }
.vault-measure-side::before { inset: 0 5px; border-left-width: 1px; border-block: 1px solid #5f7aa3; width: 6px; left: 3px; }
.vault-measure-side span { writing-mode: vertical-rl; padding: 8px 0; }
.vault-window {
  background: var(--desk-cream);
  border: 2px solid #0b1120;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #070b16, 0 0 0 1px #c9bfa6 inset;
  overflow: hidden;
}
.vault-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  color: #dfe7f3;
  background: #18223a;
  font: 11px var(--mono);
}
.vault-lights { display: flex; gap: 6px; }
.vault-lights i { width: 9px; height: 9px; border-radius: 50%; background: #dfe7f3; }
.vault-title { flex: 1; letter-spacing: .03em; }
.vault-controls { letter-spacing: .3em; color: #aebbd0; }
.vault-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "key key" "map video" "map files";
  gap: 12px;
  padding: 14px;
}
.vault-key {
  grid-area: key;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px;
  color: #ffe4e1;
  background: var(--vault-panel);
  border: 2px solid var(--vault-coral);
  border-radius: 6px;
  box-shadow: 0 0 0 3px #f2878a2e;
  font: 12px var(--mono);
}
.vault-key-icon { width: 22px; height: 22px; color: var(--vault-coral); }
.vault-key-field { display: flex; align-items: center; gap: 2px; color: #c4d1e6; letter-spacing: .08em; }
.vault-caret { width: 7px; height: 14px; background: #c4d1e6; }
.vault-key-state { display: grid; margin-left: auto; color: var(--vault-coral); font-weight: 700; }
.vault-key-state > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.vault-key-state .home-pixel { width: 16px; height: 16px; }
.vault-key-state .is-locked { visibility: hidden; color: #9fb0ca; }
.vault-panel { position: relative; min-width: 0; padding: 26px 10px 10px; color: #dce6f4; background: var(--vault-panel); border-radius: 6px; }
.vault-label { position: absolute; top: 7px; left: 10px; color: #8fa5c6; font: 10px var(--mono); letter-spacing: .04em; }
.vault-map { grid-area: map; display: grid; align-items: center; }
.vault-map-art { width: 100%; height: auto; overflow: visible; }
.vault-wires path { fill: none; stroke: #6f8bb7; stroke-width: 1.5; stroke-dasharray: 1; }
.vault-node rect { fill: #17233b; stroke: var(--desk-blue); stroke-width: 1.5; }
.vault-node.is-red rect { stroke: var(--vault-coral); }
.vault-core rect { fill: #2a3c5d; stroke: #dce6f4; stroke-width: 1.5; }
.vault-map-art text { fill: #e6edf7; font: 600 12px var(--mono); text-anchor: middle; }
.vault-node, .vault-core { transform-box: fill-box; transform-origin: center; }
.vault-video { grid-area: video; display: grid; gap: 8px; }
.vault-screen {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg, #ffffff07 0 1px, transparent 1px 3px), #0c1324;
  border: 1px solid #2f4266;
  border-radius: 4px;
}
.vault-play { width: 38px; height: 38px; border-radius: 50%; background: var(--vault-coral); box-shadow: 3px 3px 0 #070b16; position: relative; }
.vault-play::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 12px solid #fff6f2; border-block: 8px solid transparent; }
.vault-progress { height: 4px; background: #2a3b5c; border-radius: 2px; overflow: hidden; }
.vault-progress span { display: block; width: 38%; height: 100%; background: var(--vault-coral); }
.vault-files { grid-area: files; }
.vault-files ul { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.vault-files li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  background: #1a2640;
  border: 1px solid #2f4266;
  border-radius: 4px;
  font: 11px var(--mono);
}
.vault-files li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-file-type { padding: 2px 0; text-align: center; text-transform: uppercase; font-size: 9px; font-weight: 700; color: #151f33; background: var(--desk-blue); border-radius: 2px; }
.vault-files li:nth-child(2) .vault-file-type { background: var(--vault-coral); }
.vault-files .home-pixel { width: 14px; height: 14px; color: var(--desk-blue); }
.vault-stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #9fb0ca; font: 11px var(--mono); }
.vault-pause { min-height: 32px; padding: 4px 10px; color: var(--desk-white); background: #283a59; border: 1px solid #65799c; border-radius: 3px; font: 10px var(--mono); }
.vault-pause:hover { background: #435b82; }

/* The unlock sequence: key typed, unlocked, map drawn, video and files appear. */
.vault-stage.is-playing .vault-window { animation: vault-rise .5s cubic-bezier(.2, .8, .2, 1) .1s both; }
.vault-stage.is-playing .vault-key { animation: vault-key-glow .35s ease-out 1.75s both; }
.vault-stage.is-playing .vault-key-code { animation: vault-type .9s steps(11, end) .7s both; }
.vault-stage.is-playing .vault-caret { animation: vault-caret 1s steps(2, start) infinite; }
.vault-stage.is-playing .vault-key-state .is-locked { animation: vault-hide .01s linear 1.75s both; visibility: visible; }
.vault-stage.is-playing .vault-key-state .is-open { animation: vault-pop .35s cubic-bezier(.2, .8, .2, 1.4) 1.8s both; }
.vault-stage.is-playing .vault-wires path { animation: vault-draw .6s ease-out calc(2.05s + var(--i) * .15s) both; }
.vault-stage.is-playing .vault-core { animation: vault-pop .35s ease-out 1.95s both, vault-pulse 3s ease-in-out 4.6s infinite; }
.vault-stage.is-playing .vault-node { animation: vault-pop .3s ease-out calc(2.4s + var(--i) * .15s) both; }
.vault-stage.is-playing .vault-video { animation: vault-fade .4s ease-out 3.1s both; }
.vault-stage.is-playing .vault-progress span { animation: vault-progress 9s linear 3.4s infinite both; }
.vault-stage.is-playing .vault-files li { animation: vault-slide .3s ease-out calc(3.6s + var(--i) * .15s) both; }
.vault-stage.is-paused * { animation-play-state: paused !important; }
@keyframes vault-rise { from { transform: translateY(18px); } }
@keyframes vault-key-glow { from { border-color: #3d5277; box-shadow: none; } }
@keyframes vault-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes vault-caret { to { visibility: hidden; } }
@keyframes vault-hide { to { visibility: hidden; } }
@keyframes vault-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes vault-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vault-pulse { 50% { filter: drop-shadow(0 0 6px #afc9efaa); } }
@keyframes vault-fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes vault-progress { from { width: 0; } to { width: 100%; } }
@keyframes vault-slide { from { opacity: 0; transform: translateX(-10px); } }

/* Shared section frame for the homepage story. */
.home-section { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid #2c3b5a; }
.home-section-head { max-width: 720px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.home-section h2 { font: 800 clamp(30px, 3.8vw, 50px)/1.05 var(--body); letter-spacing: -.045em; color: var(--desk-white); text-wrap: balance; }
.how-number { color: #8fa5c6; font: 12px var(--mono); letter-spacing: .06em; }

/* How it works: four numbered steps joined by arrows. */
.how-section { background: var(--desk-grid), #131a2e; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.how-steps > li, .unlock-grid > li { margin: 0; } /* retro.css spaces li+li for prose lists. */
.how-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 18px 18px 20px;
  background: #1a2540;
  border: 2px solid #46597d;
  border-radius: 8px;
  box-shadow: 6px 6px 0 #070b16;
}
.how-step + .how-step::before {
  content: "→";
  position: absolute;
  left: -27px;
  top: 50%;
  width: 26px;
  text-align: center;
  transform: translateY(-50%);
  color: var(--desk-blue);
  font: 700 20px var(--mono);
  text-shadow: 0 0 10px #afc9ef99;
}
.how-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--desk-blue); }
.how-icon.is-red { color: var(--vault-coral, #f2878a); }
.how-icon .home-pixel { width: 40px; height: 40px; filter: drop-shadow(2px 2px 0 #070b16); }
.how-step h3 { font: 750 20px/1.2 var(--body); letter-spacing: -.02em; color: var(--desk-white); }
.how-step p { color: #c4d0e2; font-size: 14px; line-height: 1.55; }

/* What unlocks: cream windows with a coral offset shadow and a live preview. */
.unlock-section { background: radial-gradient(ellipse at 20% 0%, #26385a77, transparent 60%), #111829; }
.unlock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.unlock-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 16px;
  min-height: 176px;
  padding: 18px;
  color: var(--desk-ink);
  background: var(--desk-cream);
  border: 2px solid #0b1120;
  border-radius: 8px;
  box-shadow: 7px 7px 0 #f2878a, 7px 7px 0 2px #0b1120;
  transition: transform .2s, box-shadow .2s;
}
.unlock-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 #f2878a, 9px 9px 0 2px #0b1120; }
.unlock-card .how-number { color: #6a5a4a; }
.unlock-card h3 { margin-top: 6px; font: 780 21px/1.15 var(--body); letter-spacing: -.025em; }
.unlock-card p { margin-top: 8px; color: #3f4a5e; font-size: 14px; line-height: 1.5; }
.unlock-art { height: 116px; display: grid; place-items: center; padding: 12px; background: #141d31; border: 2px solid #0b1120; border-radius: 6px; }
.art-video { width: 100%; display: grid; gap: 10px; justify-items: center; }
.art-play { width: 42px; height: 42px; border-radius: 50%; background: #f2878a; box-shadow: 3px 3px 0 #070b16; position: relative; }
.art-play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 13px solid #fff6f2; border-block: 9px solid transparent; }
.art-bar { width: 100%; height: 5px; background: #2a3b5c; border-radius: 3px; overflow: hidden; }
.art-bar span { display: block; width: 45%; height: 100%; background: #f2878a; }
.art-map { width: 100%; height: 100%; }
.art-map path { fill: none; stroke: #6f8bb7; stroke-width: 1.5; stroke-dasharray: 1; }
.art-map rect { fill: #2a3c5d; stroke: #dce6f4; stroke-width: 1.2; }
.art-map .is-node { fill: #17233b; stroke: var(--desk-blue); }
.art-map .is-node.is-red { stroke: #f2878a; }
.art-files { display: flex; gap: 10px; }
.art-files span {
  width: 48px;
  height: 60px;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  color: #151f33;
  background: linear-gradient(135deg, transparent 12px, #ece7d7 12px);
  border-radius: 3px;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #070b16;
}
.art-files span:nth-child(2) { background: linear-gradient(135deg, transparent 12px, #f2878a 12px); }
.art-files span:nth-child(3) { background: linear-gradient(135deg, transparent 12px, var(--desk-blue) 12px); }
.art-sequence { width: 100%; display: grid; gap: 6px; }
.art-sequence span { display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: #dce6f4; background: #1d2a45; border: 1px solid #34486c; border-radius: 4px; font: 12px var(--mono); }
.art-sequence .home-pixel { width: 14px; height: 14px; color: #f2878a; }

/* Scroll reveal: hidden states exist only once home.js has confirmed motion is welcome. */
.reveal-on [data-reveal]:not(.is-visible) > * { opacity: 0; }
.reveal-on .how-steps.is-visible .how-step { animation: art-rise .4s ease-out calc(var(--i) * .12s) backwards; }
.reveal-on .how-steps.is-visible .how-step::before { animation: art-glow .5s ease-out calc(.35s + var(--i) * .12s) backwards; }
.reveal-on .unlock-grid.is-visible .unlock-card { animation: art-rise .45s ease-out calc(var(--i) * .1s) backwards; }
@keyframes art-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes art-glow { from { opacity: .15; text-shadow: none; } }
.reveal-on .unlock-grid.is-visible .art-bar span { animation: art-fill 1.4s ease-out .5s both; }
.reveal-on .unlock-grid.is-visible .art-map path { animation: vault-draw .7s ease-out .6s both; }
.reveal-on .unlock-grid.is-visible .art-map .is-node { animation: art-node .3s ease-out 1.1s both; }
.reveal-on .unlock-grid.is-visible .art-files span { animation: art-drop .4s cubic-bezier(.2, .8, .2, 1.3) calc(.6s + var(--i) * .12s) both; }
.reveal-on .unlock-grid.is-visible .art-sequence .home-pixel { animation: art-node .25s ease-out calc(.7s + var(--i) * .25s) both; }
@keyframes art-fill { from { width: 0; } }
@keyframes art-node { from { opacity: 0; } }
@keyframes art-drop { from { opacity: 0; transform: translateY(-14px); } }
.home-section-lead { margin-top: 12px; color: #c4d0e2; font-size: 16px; line-height: 1.55; }

/* Playbook shelf: niche tabs over one window. */
.shelf-section { background: var(--desk-grid), #141b2f; }
.shelf-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shelf-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #e2e9f3; font: 12px var(--mono); }
.shelf-all span { color: #f2878a; }
.shelf-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.shelf-tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  color: #e2e9f3;
  background: #1a2540;
  border: 2px solid #5a6f96;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #070b16;
  font: 700 14px var(--body);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.shelf-tabs [role="tab"]:hover { background: #24345a; }
.shelf-tabs [role="tab"]:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #070b16; }
.shelf-tabs [role="tab"][aria-selected="true"] { color: #121c31; background: #b3c6df; border-color: #dbe6f3; }
.shelf-tab-note { padding: 2px 6px; color: #f6c9c9; background: #3a2533; border-radius: 3px; font: 10px var(--mono); }
.shelf-tabs [aria-selected="true"] .shelf-tab-note { color: #6b2b33; background: #f4d6d6; }
.shelf-window { box-shadow: inset 0 1px #fff8e9, 7px 7px 0 #070b16; }
.shelf-panel:focus-visible { outline: 3px solid var(--desk-focus); outline-offset: -3px; border-radius: 10px; }
.shelf-research { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(18px, 2.6vw, 30px); }
.shelf-research h3 { margin-top: 10px; font: 780 clamp(24px, 2.6vw, 32px)/1.1 var(--body); letter-spacing: -.03em; }
.shelf-research p { margin-top: 10px; color: #3f4a5e; line-height: 1.55; }
.shelf-research .desk-button { margin-top: 18px; }
.shelf-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: #7a2f38; background: #f4d6d6; border-radius: 4px; font: 700 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.shelf-status .home-pixel { width: 14px; height: 14px; }
.shelf-includes { font-size: 14px; }
.shelf-flow-frame { position: relative; padding: 30px 16px 16px; background: #141d31; border: 2px solid #0b1120; border-radius: 8px; }
.shelf-flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.shelf-flow > li { position: relative; margin: 0; padding: 9px 12px; color: #e6edf7; background: #1d2a45; border: 2px solid var(--desk-blue); border-radius: 6px; font: 600 13px var(--mono); }
.shelf-flow > li.is-red { border-color: #f2878a; }
.shelf-flow > li + li::before { content: ""; position: absolute; left: 22px; top: -16px; height: 14px; border-left: 2px dashed #6f8bb7; }

/* Why one system: a tangle of tabs beside one connected path. */
.why-section { background: #111829; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.why-card { display: grid; align-content: start; gap: 16px; padding: clamp(18px, 2.6vw, 28px); border-radius: 8px; }
.why-card h3 { font: 780 22px/1.2 var(--body); letter-spacing: -.02em; }
.why-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.why-card ul > li { margin: 0; padding-left: 26px; position: relative; line-height: 1.45; }
.why-old { color: #b9c4d6; background: #18203a; border: 2px dashed #4a5876; }
.why-old ul > li::before { content: "✕"; position: absolute; left: 0; color: #f2878a; font-weight: 700; }
.why-new { color: var(--desk-ink); background: var(--desk-cream); border: 2px solid #0b1120; box-shadow: 7px 7px 0 var(--desk-blue), 7px 7px 0 2px #0b1120; }
.why-new ul > li::before { content: "✓"; position: absolute; left: 0; color: #2f7a4f; font-weight: 800; }
.why-new .desk-button { justify-self: start; }
.why-art { position: relative; height: 150px; border-radius: 6px; overflow: hidden; }
.why-chaos { background: repeating-linear-gradient(45deg, #ffffff06 0 6px, transparent 6px 12px), #10172a; }
.why-chaos span { position: absolute; padding: 5px 9px; color: #c4d0e2; background: #24304d; border: 1px solid #4a5876; border-radius: 4px; font: 11px var(--mono); white-space: nowrap; }
.why-chaos span:nth-child(1) { left: 6%; top: 12%; transform: rotate(-6deg); }
.why-chaos span:nth-child(2) { left: 52%; top: 8%; transform: rotate(4deg); }
.why-chaos span:nth-child(3) { left: 28%; top: 40%; transform: rotate(-2deg); }
.why-chaos span:nth-child(4) { left: 64%; top: 46%; transform: rotate(7deg); }
.why-chaos span:nth-child(5) { left: 8%; top: 70%; transform: rotate(5deg); }
.why-chaos span:nth-child(6) { left: 46%; top: 74%; transform: rotate(-5deg); }
.why-engine { display: grid; align-items: center; padding-inline: 12px; background: #141d31; border: 2px solid #0b1120; }
.why-engine ol { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.why-engine li { margin: 0; padding: 12px 4px; text-align: center; color: #e6edf7; background: #1d2a45; border: 2px solid var(--desk-blue); border-radius: 6px; font: 600 12px var(--mono); }
.why-engine li:nth-child(even) { border-color: #f2878a; }
.why-engine::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 2px solid #6f8bb7; }
.why-pulse { position: absolute; left: 12px; top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #f2878a; box-shadow: 0 0 12px #f2878a; opacity: 0; }

.reveal-on .why-grid.is-visible .why-card { animation: art-rise .45s ease-out backwards; }
.reveal-on .why-grid.is-visible .why-new { animation-delay: .15s; }
.reveal-on .why-grid.is-visible .why-chaos span { animation: why-jitter 2.4s ease-in-out calc(var(--i) * .2s); }
.reveal-on .why-grid.is-visible .why-engine li { animation: art-rise .35s ease-out calc(.5s + var(--i) * .15s) backwards; }
.reveal-on .why-grid.is-visible .why-pulse { animation: why-pulse 1.8s ease-in-out 1.3s 2; }
.reveal-on .shelf-panel:not([hidden]) .shelf-flow > li { animation: art-rise .3s ease-out calc(var(--i) * .1s) backwards; }
@keyframes why-jitter { 50% { translate: 3px -3px; } }
@keyframes why-pulse { 0% { opacity: 1; left: 12px; } 90% { opacity: 1; left: calc(100% - 22px); } 100% { opacity: 0; left: calc(100% - 22px); } }

/* Custom builds: an inline first question beside five service bricks. */
.build-section { background: var(--desk-grid), #141b2f; }
.build-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.build-request {
  grid-row: span 2;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  color: var(--desk-ink);
  background: var(--desk-cream);
  border: 2px solid #0b1120;
  border-radius: 8px;
  box-shadow: 7px 7px 0 #f2878a, 7px 7px 0 2px #0b1120;
  scroll-margin-top: 24px;
}
.build-step { color: #6a5a4a; font: 12px var(--mono); }
.build-step::after { content: ""; display: block; height: 6px; margin-top: 8px; background: linear-gradient(90deg, var(--desk-blue) 0 20%, #d8d0bb 20%); border-radius: 3px; }
.build-request h3 { font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--body); letter-spacing: -.03em; }
.build-choices { display: grid; gap: 9px; }
.build-choices button {
  min-height: 46px;
  padding: 8px 14px;
  text-align: left;
  color: var(--desk-ink);
  background: #fffaf0;
  border: 2px solid #0b1120;
  border-radius: 23px;
  box-shadow: 3px 3px 0 #0b1120;
  font: 650 15px var(--body);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.build-choices button:hover { background: #dfe8f4; }
.build-choices button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #0b1120; }
.build-other { color: #3f4a5e; font-size: 14px; }
.build-other .text-link { padding: 0; color: inherit; background: none; border: 0; font: inherit; font-weight: 700; text-decoration: underline; }
.build-brick { position: relative; display: grid; align-content: start; gap: 8px; padding: 16px; color: #dce6f4; background: #1a2540; border: 2px solid #46597d; border-radius: 8px; box-shadow: 5px 5px 0 #070b16; }
.build-brick h3 { font: 750 18px/1.2 var(--body); color: var(--desk-white); }
.build-brick p { color: #c4d0e2; font-size: 14px; line-height: 1.5; }
.build-details { justify-self: start; display: inline-flex; gap: 5px; align-items: center; min-height: 32px; color: #e2e9f3; font: 12px var(--mono); }
.build-details span { color: #f2878a; }
.build-ai-automation { grid-column: span 2; }
.service-art { height: 70px; display: grid; place-items: center; margin-bottom: 4px; background: #121a2d; border: 1px solid #2f4266; border-radius: 6px; }
.art-notes { display: flex; gap: 6px; }
.art-notes i { padding: 5px 7px; color: #151f33; background: #f6e39a; font: normal 600 10px var(--mono); transform: rotate(-3deg); box-shadow: 2px 2px 0 #070b16; }
.art-notes i:nth-child(2) { background: var(--desk-blue); transform: rotate(2deg); }
.art-notes i:nth-child(3) { background: #f2878a; transform: rotate(-1deg); }
.art-browser { width: 92px; height: 52px; display: grid; align-content: start; gap: 5px; padding: 0 0 6px; background: #1d2a45; border: 2px solid var(--desk-blue); border-radius: 4px; overflow: hidden; }
.art-browser b { height: 9px; background: var(--desk-blue); }
.art-browser i { height: 5px; margin-inline: 7px; background: #4b6290; border-radius: 2px; }
.art-browser i:nth-of-type(2) { width: 60%; background: #f2878a; }
.art-phone { width: 34px; height: 56px; display: grid; align-content: center; gap: 6px; padding: 6px; border: 2px solid var(--desk-blue); border-radius: 7px; }
.art-phone i { height: 7px; border-radius: 4px; background: #4b6290; }
.art-phone i:nth-child(2) { background: #f2878a; }
.art-film { position: relative; width: 110px; height: 44px; background: repeating-linear-gradient(90deg, #dce6f4 0 6px, transparent 6px 12px) top / 100% 5px no-repeat, repeating-linear-gradient(90deg, #dce6f4 0 6px, transparent 6px 12px) bottom / 100% 5px no-repeat, #24304d; border-radius: 3px; }
.art-film i { position: absolute; left: 48px; top: 13px; border-left: 14px solid #f2878a; border-block: 9px solid transparent; }
.art-film b { position: absolute; left: 6px; bottom: 8px; width: 2px; height: 28px; background: #f6e39a; }
.art-nodes { position: relative; width: 150px; height: 40px; }
.art-nodes::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 2px solid #6f8bb7; }
.art-nodes i { position: absolute; top: 10px; width: 20px; height: 20px; background: #1d2a45; border: 2px solid var(--desk-blue); border-radius: 50%; }
.art-nodes i:nth-child(1) { left: 0; } .art-nodes i:nth-child(2) { left: 65px; border-color: #f2878a; } .art-nodes i:nth-child(3) { right: 0; }
.art-nodes b { position: absolute; top: 15px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: #f2878a; opacity: 0; }

.reveal-on .build-grid.is-visible > * { animation: art-rise .4s ease-out calc(var(--i, 0) * .08s) backwards; }
.reveal-on .build-grid.is-visible .art-film b { animation: art-scrub 2.4s linear .6s; }
.reveal-on .build-grid.is-visible .art-nodes b { animation: why-pulse-short 1.6s ease-in-out .8s 2; }
.reveal-on .build-grid.is-visible .art-browser i { animation: art-fill .5s ease-out calc(.5s + var(--i, 0) * .1s) backwards; }
@keyframes art-scrub { to { left: calc(100% - 8px); } }
@keyframes why-pulse-short { 0% { opacity: 1; left: 6px; } 90% { opacity: 1; left: calc(100% - 16px); } 100% { opacity: 0; left: calc(100% - 16px); } }

/* Latest article. */
.latest-section { background: #111829; }
.latest-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: clamp(16px, 2.4vw, 24px); background: #1a2540; border: 2px solid #46597d; border-radius: 8px; box-shadow: 6px 6px 0 #070b16; }
.latest-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--desk-blue); background: #121a2d; border-radius: 8px; }
.latest-icon .home-pixel { width: 32px; height: 32px; }
.latest-card h3 { margin-top: 4px; font: 760 clamp(20px, 2.2vw, 26px)/1.2 var(--body); }
.latest-card h3 a { color: var(--desk-white); text-decoration: none; }
.latest-card h3 a:hover { text-decoration: underline; }
.latest-card p:not(.how-number) { margin-top: 6px; color: #c4d0e2; line-height: 1.5; }
.latest-link { color: #e2e9f3; font: 12px var(--mono); text-decoration: none; }
.latest-link span { color: #f2878a; }

@media print { .reveal-on [data-reveal] * { opacity: 1 !important; transform: none !important; } }

.desk-deck {
  max-width: 36ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.62;
  color: #d1d8e5;
  margin-top: 21px;
}
.desk-actions, .desk-product-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.desk-actions { margin-top: 24px; }
.desk-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  min-height: 44px;
  border: 1px solid #aebed3;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 #e2e9f277, 3px 3px 0 #090e1c;
  color: #121c31;
  background: #b3c6df;
  font: 700 12px/1.35 var(--body);
  text-decoration: none;
  vertical-align: middle;
  transition: box-shadow .18s, transform .18s, background .18s;
}
.desk-button .home-pixel { width: 17px; height: 17px; color: #25466f; }
.desk-button:hover { background: #d0dfed; box-shadow: inset 1px 1px 0 #fff8, 4px 4px 0 #9b4854; transform: translate(-1px, -1px); }
.desk-button:active { transform: translate(2px, 2px); box-shadow: inset 1px 1px 0 #fff8, 1px 1px 0 #090e1c; }
.desk-button-quiet { background: #26344f; border-color: #617291; color: var(--desk-white); box-shadow: inset 1px 1px 0 #90a4bf38, 3px 3px 0 #090e1c; }
.desk-button-quiet:hover { background: #3d5174; }
.desk-button-quiet span { color: #cad9ee; }
.desk-window {
  min-width: 0;
  background: var(--desk-paper);
  color: var(--desk-ink);
  border: 1px solid #b4aa94;
  border-radius: 10px;
  box-shadow: inset 0 1px #fff8e9, 4px 6px 0 #090e1c;
}
.desk-product { display: grid; grid-template-columns: 40% minmax(0, 1fr); min-height: 240px; padding: 16px; gap: 20px; }
.desk-book-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 206px;
  text-decoration: none;
  perspective: 800px;
  background:
    radial-gradient(ellipse at 50% 65%, #52698b86, transparent 69%),
    repeating-linear-gradient(0deg, #b8c7e617 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, #b8c7e617 0 1px, transparent 1px 18px),
    #263754;
  border: 1px solid #1a263e;
}
.desk-book {
  position: relative;
  flex: none;
  width: 111px;
  height: 151px;
  transform-style: preserve-3d;
  transform: rotateX(9deg) rotateY(-23deg) rotateZ(-10deg);
  transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.desk-book-art:hover .desk-book { transform: rotateX(3deg) rotateY(-11deg) rotateZ(-4deg) translateY(-5px); }
.desk-book::before { content: ''; position: absolute; inset: 0; transform: translateZ(-7px); background: #101a2d; box-shadow: 11px 12px 18px #090e1bb0; }
.desk-book-cover {
  position: absolute;
  inset: 0;
  color: #eff1ee;
  background: #182742;
  border: 1px solid #8399ba;
  padding: 11px;
  box-shadow: inset 3px 0 #435a7e;
  transform: translateZ(7px);
}
.desk-book-title { display: block; font: 700 24px/.9 var(--desk-display); letter-spacing: -.04em; }
.desk-book-title span { color: var(--desk-red); }
.desk-book-spine,
.desk-book-pages { display: block; position: absolute; width: 14px; height: 100%; transform-origin: left center; }
.desk-book-spine { left: 0; background: #9b4655; transform: translateZ(7px) rotateY(90deg); }
.desk-book-pages { height: calc(100% - 4px); top: 2px; left: 100%; background: repeating-linear-gradient(90deg, #dfe3e8 0 1px, #a5afbd 1px 2px); transform: translateZ(7px) rotateY(90deg); }
.desk-book-cover .book-window { width: 47px; height: 47px; position: absolute; left: 24px; top: 65px; color: #a6c0e6; }
.desk-book-cover .book-cursor { width: 28px; height: 28px; position: absolute; top: 85px; left: 51px; color: #f2e9e6; filter: drop-shadow(2px 2px 0 #cd6975); }
.desk-book-brand { position: absolute; left: 11px; right: 10px; bottom: 7px; border-top: 1px solid #7692b580; font: 8px/1.6 var(--mono); }
.desk-product-details { align-self: center; }
.desk-file-kind { display: flex; align-items: center; gap: 6px; font: 9px/1.35 var(--mono); color: #3c5072; }
.desk-file-kind .home-pixel { width: 14px; height: 14px; }
.desk-product-details h3 { margin-block: 7px 8px; font: 700 33px/.95 var(--desk-display); letter-spacing: -.025em; }
.desk-product-details h3 a { text-decoration: none; }
.desk-product-details h3 a:hover { text-decoration: underline; }
.desk-product-details > p:not(.desk-file-kind) { font-size: 13px; line-height: 1.55; }
.desk-price-row { display: flex; align-items: center; gap: 9px; font: 10px var(--mono); color: #36455e; margin-block: 11px 9px; }
.desk-price { font: 800 23px var(--body); color: #151f33; }
.desk-product-details > .desk-delivery-note { margin-bottom: 12px; padding-left: 9px; color: #4a3a2c; border-left: 3px solid #f2878a; font-size: 12px; }
.desk-product-actions { gap: 11px 12px; }
.desk-product-actions .desk-button { min-height: 36px; padding: 6px 9px; box-shadow: inset 1px 1px 0 #ffffffb0, 2px 2px 0 #4e5c76; }
.desk-tour { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; }
.desk-tour span { color: #a1404e; font-size: 10px; }
.home-page .toast,
.home-page dialog { background: var(--desk-paper); color: var(--desk-ink); border-color: #8899b4; box-shadow: 5px 5px 0 #121a2f; }
.home-page .toast button { color: var(--desk-ink); }
.home-page .wizard-shell { background: var(--desk-paper); border: 0; box-shadow: none; }
.home-page dialog .titlebar { background: #314b70; color: var(--desk-white); }
.home-page dialog .titlebar .home-pixel { width: 21px; height: 21px; color: #d7e4f1; }
.home-page .wizard-body { background: var(--desk-paper); color: var(--desk-ink); }
.home-page .wizard-body .button { background: #b5c7e0; color: #151f33; }
.home-page dialog::backdrop { background: #0a1020c5; }
.home-page .text-input { background: #f0f1f0; color: var(--desk-ink); }
.home-page .wizard-error { color: #8a2e3a; }
@media (max-width: 900px) {
  .vault-hero-layout { grid-template-columns: 1fr; min-height: auto; padding-block: 36px 32px; }
  .vault-intro { max-width: 620px; }
  .home-page .vault-intro .desk-deck { font-size: 15px; max-width: 42ch; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .how-step { min-height: 0; }
  .how-step + .how-step::before { display: none; }
  .unlock-grid { grid-template-columns: 1fr; gap: 22px; }
  .shelf-research, .why-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .build-request { grid-column: 1 / -1; grid-row: auto; }
  .build-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vault-stage { padding: 0; }
  .vault-measure { display: none; }
  .vault-body { grid-template-columns: 1fr; grid-template-areas: "key" "map" "video" "files"; gap: 10px; padding: 10px; }
  .vault-key { flex-wrap: wrap; gap: 6px 10px; }
  .vault-key-state { margin-left: 0; width: 100%; }
  .vault-key-state > span { justify-content: flex-start; }
  .vault-video { grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .vault-progress { align-self: center; }
  .vault-stage figcaption { flex-wrap: wrap; }
  .how-steps { grid-template-columns: 1fr; gap: 14px; }
  .how-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 14px; }
  .how-step .how-number { grid-column: 1 / -1; }
  .how-step .how-icon { grid-row: span 2; }
  .unlock-card { grid-template-columns: 1fr; box-shadow: 5px 5px 0 #f2878a, 5px 5px 0 2px #0b1120; }
  .shelf-tabs { display: grid; gap: 8px; }
  .shelf-tabs [role="tab"] { justify-content: space-between; }
  .why-engine ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-engine::before, .why-pulse { display: none; }
  .why-new { box-shadow: 5px 5px 0 var(--desk-blue), 5px 5px 0 2px #0b1120; }
  .build-grid, .build-choices { grid-template-columns: 1fr; }
  .build-ai-automation { grid-column: auto; }
  .build-request { box-shadow: 5px 5px 0 #f2878a, 5px 5px 0 2px #0b1120; }
  .latest-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .latest-icon { width: 44px; height: 44px; }
  .latest-link { display: none; }
}
@media (max-width: 850px) {
  .desk-label { font-size: 8px; gap: 7px; }
  .desk-deck { font-size: 13px; max-width: 280px; }
  .desk-product { gap: 12px; padding: 12px; grid-template-columns: 34% minmax(0,1fr); }
  .desk-book { scale: .83; }
  .desk-product-details h3 { font-size: 28px; }
  .desk-file-kind { font-size: 8px; }
  .desk-product-details > p:not(.desk-file-kind) { font-size: 12px; }
}
@media (max-width: 650px) {
  .desk-label { font-size: 8.5px; margin-bottom: 14px; }
  .desk-deck { margin-top: 12px; max-width: 352px; font-size: 13px; }
  .desk-actions { margin-top: 17px; }
  .desk-product { min-height: 197px; grid-template-columns: 35% minmax(0, 1fr); }
  .desk-book-art { min-height: 171px; }
  .desk-book { scale: .78; }
  .home-page dialog { width: calc(100% - 26px); max-height: calc(100dvh - 26px); margin: auto; }
  .home-page .wizard-body { padding: 25px 19px; }
}
@media (max-width: 365px) {
  .desk-product { padding: 9px; gap: 9px; }
  .desk-book { scale: .67; }
  .desk-product-actions .desk-button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .desk-book-art:hover .desk-book { transform: rotateX(9deg) rotateY(-23deg) rotateZ(-10deg); }
}
