/* LAN in a Van · Toybox */
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #10143A;
  --navy-70: rgba(16, 20, 58, .72);
  --navy-50: rgba(16, 20, 58, .5);
  --blue: #245EDC;
  --green: #5DBB4A;
  --orange: #FF9F5A;
  --c1: #BFE3FF;
  --c2: #EAF6FF;
  --a1: #FFFFFF;
  --a2: #9ED0FF;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--navy); background: var(--c2);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Background + stage ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 78%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; will-change: transform; }
.b1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle, var(--a1), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
.b2 { width: 50vmax; height: 50vmax; right: -16vmax; top: 18vh; background: radial-gradient(circle, var(--a2), transparent 65%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.b3 { width: 44vmax; height: 44vmax; left: 30vw; bottom: -30vmax; background: radial-gradient(circle, var(--a1), transparent 65%); opacity: .55; animation: drift 34s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.08); } }
.stage { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: linear-gradient(180deg, #BFE3FF, #EAF6FF); transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__box { display: grid; justify-items: center; gap: 18px; }
.loader__logo { display: grid; gap: 6px; width: 64px; }
.loader__logo i { height: 12px; border-radius: 99px; background: var(--blue); animation: bar 1.2s var(--ease) infinite alternate; }
.loader__logo i:nth-child(2) { width: 66%; background: var(--green); animation-delay: .15s; }
.loader__logo i:nth-child(3) { width: 82%; background: var(--orange); animation-delay: .3s; }
@keyframes bar { from { transform: scaleX(.35); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.loader p { font: 500 14px/1 var(--display); letter-spacing: .02em; color: var(--navy-70); }
.loader b { color: var(--blue); }
.xpbar { width: 200px; height: 18px; padding: 2px; border: 1.5px solid rgba(16, 20, 58, .35); border-radius: 6px; background: #fff; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .35s linear;
  background: repeating-linear-gradient(90deg, transparent 0 9px, #fff 9px 11px), linear-gradient(180deg, #ACEDAD, #4CDA50 40%, #2ED330 55%, #8FE791); }

/* ---------- Progress (XP bar) ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 5px; background: rgba(255, 255, 255, .5); }
.progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, .8) 10px 12px), linear-gradient(180deg, #7BE47D, #2ED330 60%, #42D845); }

/* ---------- Header ---------- */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: 5px; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); }
.top::before { content: ""; position: absolute; inset: -5px 0 -26px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 70%, transparent) 55%, transparent); -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font: 700 16px/1 var(--display); letter-spacing: -.01em; }
.brand__mark { display: grid; gap: 3px; width: 26px; }
.brand__mark i { height: 6px; border-radius: 9px; background: var(--blue); }
.brand__mark i:nth-child(2) { width: 62%; background: var(--green); }
.brand__mark i:nth-child(3) { width: 80%; background: var(--orange); }
.top__nav { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.top__nav a { padding: 8px 14px; border-radius: 999px; font: 500 14px/1 var(--body); color: var(--navy-70); transition: background .25s, color .25s; }
.top__nav a:hover, .top__nav a.is-on { background: #fff; color: var(--navy); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font: 600 14px/1 var(--display); letter-spacing: .01em; white-space: nowrap; transition: transform .4s var(--ease), box-shadow .4s, background .3s; }
.pill:hover { transform: translateY(-2px); }
.pill--dark { background: var(--navy); color: #fff; box-shadow: 0 12px 30px -12px rgba(16, 20, 58, .6); }
.pill--dark:hover { background: var(--blue); box-shadow: 0 16px 34px -12px rgba(36, 94, 220, .7); }
/* Nerd mode: a little XP Start button that leads to the Windows XP version */
.nerd { gap: 8px; background: linear-gradient(180deg, #6CC468 0%, #3E9E3B 48%, #2F8A2E 100%); color: #fff; font-style: italic; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 24px -12px rgba(47, 138, 46, .8); }
.nerd:hover { transform: translateY(-1px); filter: brightness(1.08); }
.nerd__flag { display: grid; grid-template-columns: 7px 7px; gap: 2px; transform: skewY(-8deg); }
.nerd__flag i { width: 7px; height: 7px; border-radius: 2px; background: #F35325; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.nerd__flag i:nth-child(2) { background: #81BC06; }
.nerd__flag i:nth-child(3) { background: #05A6F0; }
.nerd__flag i:nth-child(4) { background: #FFBA08; }
.pill--glass { background: rgba(255, 255, 255, .55); color: var(--navy); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.pill--lg { height: 56px; padding: 0 28px; font-size: 15px; }

/* ---------- Chapter dots ---------- */
.dots { position: fixed; z-index: 40; right: calc(var(--gutter) * .6); top: 50%; translate: 0 -50%; display: grid; gap: 14px; }
.dots a { position: relative; display: block; width: 12px; height: 12px; border-radius: 4px; background: rgba(16, 20, 58, .18); transition: background .3s, transform .4s var(--ease); }
.dots a.is-on { background: var(--blue); transform: scale(1.25); }
.dots span { position: absolute; right: 22px; top: 50%; translate: 0 -50%; padding: 6px 10px; border-radius: 8px; background: var(--navy); color: #fff; font: 500 12px/1 var(--body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.dots a:hover span { opacity: 1; }

/* ---------- Chapters ---------- */
.ch { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter) 110px; }
.ch--r { justify-content: flex-end; }
.ch__copy { width: min(540px, 44vw); }
.ch__stage { display: none; }
.ch--r .ch__copy { margin-right: 3vw; }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-70); }
.kicker .num { display: grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--navy); color: #fff; letter-spacing: 0; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #3CD35A; box-shadow: 0 0 0 4px rgba(60, 211, 90, .2); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.title { font: 800 clamp(2.3rem, 4.3vw, 4.5rem)/.98 var(--display); letter-spacing: -.035em; text-wrap: balance; }
h1.title { font-size: clamp(2.8rem, 5.2vw, 5.4rem); }
.title .w { display: inline-block; }
.lede { margin-top: 22px; max-width: 34ch; font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: var(--navy-70); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.services { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.services a { display: grid; gap: 3px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); transition: transform .4s var(--ease), background .3s; }
.services a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .8); }
.services b { font: 700 15px/1.1 var(--display); }
.services span { font-size: 13px; color: var(--navy-70); }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-50); }
.scroll-hint i { position: relative; width: 60px; height: 2px; border-radius: 2px; background: rgba(16, 20, 58, .15); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--navy); animation: hint 2s var(--ease) infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 10px 15px; border-radius: 999px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px -10px rgba(16, 20, 58, .35); font-size: 14px; font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 30px; }
.facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-50); }
.facts dd { margin-top: 4px; font: 700 18px/1.2 var(--display); letter-spacing: -.01em; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.kit li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); font-size: 14px; font-weight: 500; line-height: 1.25; }
.kit b { flex: none; display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 11px; background: var(--navy); color: #fff; font: 700 13px/1 var(--display); }
.kit li:nth-child(3) b { background: var(--blue); }
.kit li:nth-child(4) b { background: #E3A04F; }
.kit li:nth-child(5) b { background: #C8323A; }
.tagline { margin-top: 24px; font: 700 15px/1.3 var(--display); color: var(--blue); }

.steps { display: grid; gap: 10px; margin-top: 30px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font: 700 16px/1 var(--display); flex: none; }
.steps li:nth-child(2) b { background: var(--blue); }
.steps li:nth-child(3) b { background: var(--green); }
.steps li:nth-child(4) b { background: var(--orange); }
.steps span { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.steps small { display: block; margin-top: 3px; font: 400 13px/1.3 var(--body); color: var(--navy-70); letter-spacing: 0; }
.needs { margin-top: 20px; font-size: 14px; color: var(--navy-70); }

/* ---------- Book ---------- */
.ch--book { flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 90px; }
.ch--book .ch__copy { width: min(560px, 46vw); }
.form { display: grid; gap: 12px; margin-top: 28px; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 30px 60px -30px rgba(16, 20, 58, .4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; }
.form label > span, .toggle legend { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-50); }
.form input:not([type=radio]), .form textarea { width: 100%; padding: 13px 15px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(16, 20, 58, .1); font-size: 15px; transition: box-shadow .25s; color-scheme: light; }
.form textarea { resize: vertical; min-height: 88px; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(36, 94, 220, .15); }
.form .is-bad { box-shadow: inset 0 0 0 2px #E5484D !important; }
.toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.toggle legend { float: left; margin-right: 8px; padding: 0; }
.toggle label { display: block; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label span { display: block; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(16, 20, 58, .1); font-size: 14px; font-weight: 600; transition: background .25s, color .25s, box-shadow .25s; }
.toggle input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.toggle input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 4px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__note { min-height: 1.2em; font-size: 14px; color: var(--navy-70); }
.foot { margin-top: 22px; font-size: 13px; color: var(--navy-70); }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--navy); }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .top__nav, .dots { display: none; }
  .top { gap: 10px; }
  .top .pill { margin-left: auto; }
  .top .nerd + .pill { margin-left: 0; }
  /* Each chapter = a clear stage where the 3D world lives, then a compact text panel below it. */
  .ch, .ch--r, .ch--book { display: block; min-height: 0; padding: 0 var(--gutter) 22px; }
  .ch__stage { display: block; height: 58vh; height: 58svh; min-height: 380px; pointer-events: none; }
  #top .ch__stage { height: 53vh; height: 53svh; }
  .ch--book .ch__stage { height: 50vh; height: 50svh; }
  .ch__copy, .ch--r .ch__copy, .ch--book .ch__copy { width: 100%; margin: 0; }
  .ch__copy {
    position: relative; padding: 22px 20px 24px; border-radius: 26px;
    background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 24px 50px -30px rgba(16, 20, 58, .45);
  }
  .title { font-size: clamp(2rem, 9vw, 3rem); }
  h1.title { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
  .kicker { margin-bottom: 14px; }
  .lede { margin-top: 12px; font-size: 1rem; }
  .cta { margin-top: 20px; }
  .services { margin-top: 18px; }
  .chips { margin-top: 18px; gap: 6px; }
  .chips li { padding: 8px 12px; font-size: 13px; background: rgba(255, 255, 255, .85); }
  .facts { margin-top: 18px; gap: 10px 26px; }
  .kit { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }
  .kit li { padding: 8px; gap: 8px; font-size: 12.5px; background: rgba(255, 255, 255, .85); }
  .kit b { min-width: 30px; height: 30px; font-size: 11px; border-radius: 9px; }
  .tagline { margin-top: 16px; font-size: 14px; }
  .steps { margin-top: 18px; gap: 6px; }
  .steps li { padding: 8px 14px 8px 8px; background: rgba(255, 255, 255, .85); }
  .steps b { width: 34px; height: 34px; font-size: 14px; }
  .steps span { font-size: 15px; }
  .scroll-hint { display: none; }
  .ch--book { padding-bottom: 96px; }
  .ch--book .ch__copy { padding-bottom: 20px; }
  .form { padding: 16px; margin-top: 18px; background: rgba(255, 255, 255, .7); }
  .foot { position: static; margin-top: 22px; padding: 0 20px; text-align: center; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand span:last-child { font-size: 14px; }
  .top .pill { height: 38px; padding: 0 14px; font-size: 12px; }
  .nerd { padding: 0 12px; }
  .nerd__txt { display: none; }
  .pill--lg { height: 50px; padding: 0 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .led, .loader__logo i, .scroll-hint i::after { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* Nerd mode on a phone: the XP blue screen */
.bsod { position: fixed; inset: 0; z-index: 200; overflow: auto; padding: max(24px, env(safe-area-inset-top)) 18px 24px; background: #0000AA; color: #fff; cursor: pointer; animation: bsod-in .08s steps(1) both; }
.bsod pre { margin: 0; white-space: pre-wrap; font: 13px/1.45 "Lucida Console", "Courier New", ui-monospace, monospace; }
.bsod b { font-weight: 400; }
.bsod__caret { font-style: normal; animation: bsod-blink 1s steps(1) infinite; }
@keyframes bsod-blink { 50% { opacity: 0; } }
@keyframes bsod-in { from { opacity: 0; } }

