:root {
  color-scheme: dark; --ink:#211436; --deep:#170e26; --cream:#fff6e7;
  --muted:#d9c9e6; --gold:#ffca59; --lilac:#c7a6ff;
  --line:rgba(242,220,255,.24);
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:78px; overscroll-behavior-y:contain }
body { margin:0; color:var(--cream); background:var(--deep); overflow-wrap:break-word }
a { color:inherit }
a:focus-visible { outline:3px solid var(--gold); outline-offset:6px }
img { display:block; max-width:100%; height:auto }
h1,h2,h3,p,figure { margin:0 }
.wrap { width:min(1180px,calc(100% - 96px)); margin-inline:auto }
.skip { position:fixed; z-index:5; top:8px; left:8px; padding:12px; background:var(--gold); color:var(--ink); transform:translateY(-150%) }
.skip:focus { transform:none }
header { position:sticky; z-index:4; top:0; background:#211436f5; border-bottom:1px solid var(--line) }
header .wrap,footer .wrap { min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:16px }
.brand { display:inline-flex; gap:10px; align-items:center; font-weight:800; text-decoration:none; letter-spacing:-.035em }
.spark { color:var(--gold); font-size:1.35em }
nav { display:flex; gap:clamp(12px,3vw,36px); align-items:center }
nav a { text-decoration:none; color:var(--muted); font-size:.92rem; font-weight:650 }
nav a:hover { color:var(--gold) }
.hero { position:relative; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse at 74% 42%,#58337f 0%,#372151 36%,#211436 76%) }
.hero .wrap { position:relative; min-height:min(680px,86vh); display:grid; grid-template-columns:1.05fr 1fr; align-items:center; padding-block:78px 85px }
.hero-copy { position:relative; z-index:2 }
.kicker,.marker { color:var(--gold); font:750 .76rem/1.4 ui-monospace,monospace; letter-spacing:.17em; text-transform:uppercase }
.kicker { display:flex; align-items:center; gap:12px; margin-bottom:24px }
.kicker::before { content:""; display:inline-block; width:25px; height:2px; background:currentColor }
h1 { font-size:clamp(3rem,7.2vw,7.25rem); line-height:.88; font-weight:850; letter-spacing:-.087em }
h1 span { display:block; color:var(--gold) }
.hero-copy p { max-width:33ch; margin-block:26px; color:var(--muted); font-size:clamp(1rem,1.8vw,1.2rem); line-height:1.6 }
.button { display:inline-flex; align-items:center; gap:16px; color:var(--ink); background:var(--gold); padding:13px 19px; border-radius:8px; font-weight:800; text-decoration:none }
.button:hover { background:#ffe096 }
.scene { position:relative; width:113%; margin-left:-7%; transform:translateY(var(--drift,0px)) rotate(var(--tilt,0deg)); }
.scene::before,.scene::after { content:""; position:absolute; z-index:-1; inset:9% 4% 6%; border:1px solid #d0a6ff57; border-radius:50%; transform:rotate(-24deg) }
.scene::after { inset:17% -4% 14%; border-style:dashed; border-color:#d0a6ff38 }
.scene img { width:100%; filter:drop-shadow(0 23px 25px #180a2b9c) }
.scene figcaption { position:absolute; right:6%; bottom:-9%; padding:8px 12px; border:1px solid #b88ff678; border-radius:6px; background:#28183c; color:var(--cream); font:750 .66rem/1.4 ui-monospace,monospace; letter-spacing:.13em; transform:rotate(-7deg) }
.star { position:absolute; color:var(--gold); font-size:clamp(16px,3vw,38px); line-height:1 }
.star.one { top:9%; right:14% }.star.two { bottom:14%; left:7%; color:var(--lilac) }.star.three { top:31%; left:2%; font-size:17px }
.ribbon { background:var(--gold); color:var(--ink); border-block:1px solid #ffdb87 }
.ribbon .wrap { display:flex; flex-wrap:wrap; justify-content:center; gap:10px clamp(16px,4vw,52px); padding-block:16px; text-align:center; font:800 .73rem/1.5 ui-monospace,monospace; letter-spacing:.13em; text-transform:uppercase }
.ribbon span::before { content:"✦"; margin-right:10px }
section { padding-block:clamp(65px,10vw,130px) }
.section-label { display:flex; align-items:center; gap:15px; margin-bottom:23px }
.section-label::after { content:""; flex:1; height:1px; background:var(--line) }
h2 { font-size:clamp(2.75rem,6.6vw,6.1rem); line-height:.94; letter-spacing:-.078em }
.catalog { background:linear-gradient(145deg,#211436,#2d1a46 70%,#211436) }
.app { display:grid; grid-template-columns:.83fr 1.17fr; gap:clamp(28px,6vw,82px); align-items:start }
.app-copy { position:sticky; top:112px; padding-block:35px }
.app + .app { margin-top:100px; padding-top:75px; border-top:1px solid var(--line) }
.download { margin-top:6px }
.download-meta { margin-top:14px; color:var(--muted); font-size:.9rem; line-height:1.6 }
.install-help { margin-top:20px; color:var(--muted); line-height:1.7 }
.install-help summary { cursor:pointer; color:var(--cream); font-weight:700 }
.install-help p { margin-top:12px }
.checksum code { overflow-wrap:anywhere; font-size:.8rem }
.app-title { display:flex; flex-wrap:wrap; align-items:center; gap:16px }
.app-title img { width:64px; height:64px; border-radius:14px }
.order-screens { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:24px 16px }
.order-screens figure:nth-child(2) { padding-top:40px }
.subtitle { color:var(--lilac); font-weight:750; margin-block:13px 20px }
.description { max-width:44ch; color:var(--muted); line-height:1.7; font-size:1.06rem }
.features { margin:22px 0; padding:0; list-style:none }
.features li { padding:12px 0; border-bottom:1px solid var(--line); font-size:.92rem }
.features li::before { content:"↳"; color:var(--gold); margin-right:10px }
.status { font-size:.83rem; color:var(--muted) }
.screens { display:grid; grid-template-columns:1fr 1fr; gap:clamp(10px,2vw,26px); padding:28px clamp(12px,2.5vw,32px); background:#170f28; border:1px solid var(--line); border-radius:20px; background-image:radial-gradient(#b48ce844 1px,transparent 1px); background-size:19px 19px }
.screens figure:nth-child(2) { padding-top:clamp(18px,7vw,80px) }
.screens img { width:100%; border:3px solid #75599c; border-radius:clamp(9px,2vw,22px); box-shadow:0 10px 18px #10091e9e }
.screens figcaption { color:var(--muted); font:650 .67rem/1.5 ui-monospace,monospace; letter-spacing:.07em; text-transform:uppercase; padding-top:12px }
.philosophy { background:#f5eaff; color:var(--ink) }
.philosophy .marker { color:#633b92 }
.philosophy .section-label::after { background:#cdb9e0 }
.split { display:grid; grid-template-columns:1.1fr .9fr; align-items:end; gap:clamp(24px,6vw,76px) }
.philosophy p { color:#503b65; line-height:1.7; font-size:clamp(1.03rem,1.6vw,1.21rem) }
.support { background:radial-gradient(ellipse at 95% 100%,#492a6d,transparent 65%),#211436 }
.support h2 { color:var(--gold) }
.support p { color:var(--muted); line-height:1.7; font-size:1.07rem }
.support .status { margin-top:15px; font-size:.83rem }
footer { border-top:1px solid var(--line); color:var(--muted); font-size:.87rem }
footer a:hover { color:var(--gold) }
.reveal.in-view { animation:arrive .62s cubic-bezier(.2,.7,.3,1) both }
@keyframes arrive { from { opacity:.32; transform:translateY(22px) } to { opacity:1; transform:none } }
@media(max-width:760px) {
  .wrap { width:calc(100% - 40px) }
  .hero .wrap { grid-template-columns:1fr; padding-block:52px 63px; min-height:0 }
  .hero-copy p { margin-block:20px }
  .scene { width:min(94%,500px); margin:30px auto 0 }
  .app,.split { grid-template-columns:1fr }
  .app-copy { position:static; padding-block:0 }
}
@media(max-width:410px) {
  .wrap { width:calc(100% - 30px) }
  header .wrap { align-items:flex-start; justify-content:center; flex-direction:column; gap:7px; padding-block:8px }
  nav a { font-size:.82rem }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto }
  .scene { transform:none }
  .reveal.in-view { animation:none }
}


/* Personal programming archive notice. */
.archive-notice { max-width:85ch; padding:22px 24px; margin-bottom:30px; border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:8px; color:var(--muted); line-height:1.75; background:#170f28 }
.archive-notice a { color:var(--cream); text-underline-offset:3px }

/* Connected archive exhibits; numbering deliberately avoids invented dates. */
.archive-home .hero .wrap { min-height:490px; grid-template-columns:1.4fr .7fr; gap:50px; padding-block:70px }
.archive-home h1 { font-size:clamp(3rem,6vw,5.6rem); line-height:1; letter-spacing:-.065em }
.archive-home .hero-copy p { max-width:58ch; font-size:1.06rem }
.archive-home .scene { width:100%; margin:0 }
.archive-home .ribbon { background:#291c3b; color:var(--muted); border-color:var(--line) }
.timeline-intro { color:var(--muted); line-height:1.7; margin:0 0 36px; font-size:.92rem }
.project-timeline { position:relative; border-left:2px solid #80629d; margin-left:8px; padding-left:38px }
.project-timeline .app { position:relative; gap:28px 42px; padding:0 0 65px; margin:0; border:0 }
.project-timeline .app + .app { padding-top:45px; border-top:1px solid var(--line) }
.timeline-stamp { grid-column:1 / -1; color:var(--gold); font:650 .8rem/1.7 ui-monospace,monospace; letter-spacing:.035em; text-transform:uppercase }
.timeline-stamp::before { content:""; position:absolute; left:-46px; margin-top:4px; width:14px; height:14px; border:3px solid var(--lilac); border-radius:50%; background:var(--deep); box-shadow:0 0 0 6px #291b3d }
.project-timeline .app-copy { position:static; padding:0 }
.project-timeline h2 { font-size:clamp(2rem,4vw,3.4rem); line-height:1.04; letter-spacing:-.05em }
.project-timeline .screens { background-image:none; border-radius:8px; padding:20px; gap:14px }
.project-timeline .screens figure:nth-child(2) { padding-top:0 }
.project-timeline .button { background:transparent; color:var(--cream); border:1px solid #9777b7; font-size:.9rem; font-weight:650 }
.project-timeline .button:hover { background:#39264f }
.file-caution { color:var(--lilac); font-size:.8rem; line-height:1.6; margin:22px 0 8px }
@media(max-width:760px) {
 .archive-home .hero .wrap { grid-template-columns:1fr; gap:20px; min-height:0; padding-block:45px }
 .archive-home .scene { width:min(65%,260px); margin:10px auto 25px }
 .project-timeline { padding-left:24px }
 .project-timeline .app { grid-template-columns:1fr }
 .timeline-stamp::before { left:-32px }
 .timeline-stamp { grid-column:1 }
 .project-timeline .screens { padding:12px; gap:10px }
}

/* Purple atmosphere and compact glass navigation. */
body {
 background:radial-gradient(ellipse at 0% 15%,#39234f 0,transparent 45%),
            linear-gradient(145deg,#1b112c,#281a3c 55%,#160f25);
}
header {
 background:linear-gradient(110deg,rgba(30,18,49,.88),rgba(66,39,92,.80) 55%,rgba(30,21,52,.88));
 -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
 border-bottom:1px solid rgba(199,166,255,.32);
 box-shadow:0 5px 24px #10091c35,inset 0 1px 0 #f5eaff0c;
}
header .wrap { min-height:54px; gap:16px }
header nav { gap:clamp(8px,2vw,24px) }
header nav a {
 position:relative; padding:9px 8px; border-radius:6px;
 transition:color .18s ease,background-color .18s ease;
}
header nav a::after {
 content:""; position:absolute; left:8px; right:8px; bottom:4px; height:2px;
 background:linear-gradient(90deg,var(--lilac),var(--gold));
 transform:scaleX(0); transform-origin:left; transition:transform .2s ease;
}
header nav a:hover,header nav a:focus-visible { background:#c7a6ff12; color:var(--gold) }
header nav a:hover::after,header nav a:focus-visible::after,
header nav a[aria-current="page"]::after { transform:scaleX(1) }
html { scroll-padding-top:64px }
.hero {
 background:radial-gradient(ellipse at 80% 30%,#77519865,transparent 55%),
            radial-gradient(ellipse at 12% 95%,#4a346c99,transparent 60%),
            linear-gradient(120deg,#241735,#422858 58%,#251a3d);
}
.archive-home .ribbon {
 background:linear-gradient(100deg,#261a38,#3b2850 50%,#251b3b);
 box-shadow:inset 0 1px 0 #ead8ff0a;
}
.catalog {
 background:radial-gradient(ellipse at 95% 10%,#54347766,transparent 40%),
            radial-gradient(ellipse at 0% 65%,#45336466,transparent 45%),
            linear-gradient(175deg,#21162f,#302040 50%,#21182f);
}
.project-timeline .app { isolation:isolate }
.project-timeline .app::before {
 content:""; position:absolute; z-index:-1; pointer-events:none;
 inset:-14px -22px 24px -22px; border-radius:14px;
 background:radial-gradient(ellipse at 95% 0%,#70529538,transparent 65%),
            linear-gradient(125deg,#3e2b514d,#241d3859);
 border:1px solid #d9baff0d;
}
.project-timeline .app:nth-child(2)::before {
 background:radial-gradient(ellipse at 0% 40%,#56447745,transparent 70%),
            linear-gradient(125deg,#26233e80,#40305260);
}
.project-timeline .app:nth-child(3)::before {
 background:radial-gradient(ellipse at 90% 60%,#794a7138,transparent 65%),
            linear-gradient(125deg,#40263d66,#30203f70);
}
.project-timeline .app:nth-child(4)::before {
 background:radial-gradient(ellipse at 5% 70%,#40567c33,transparent 65%),
            linear-gradient(125deg,#28263e80,#3e2c5460);
}
.project-timeline .app + .app { border-top-color:transparent }
.project-timeline .app + .app::before { top:24px }
.project-timeline .screens {
 background:linear-gradient(140deg,#20152de6,#322441c7);
 box-shadow:inset 0 1px 0 #e4caff0c,0 12px 35px #10091b20;
}
.archive-notice { background:linear-gradient(115deg,#21162fe6,#382449a6) }
.philosophy {
 background:radial-gradient(ellipse at 95% 10%,#d3b9ec88,transparent 60%),
            linear-gradient(120deg,#f6edfc,#e7d9f2 65%,#eedff5);
}
.support {
 background:radial-gradient(ellipse at 90% 20%,#71457f55,transparent 60%),
            linear-gradient(120deg,#231730,#392345 65%,#2a1b3e);
}
body .support-content {
 background:radial-gradient(ellipse at 0% 30%,#65427644,transparent 65%),
            linear-gradient(130deg,#241931,#382348 65%,#291e3b);
}
body .feedback {
 background:radial-gradient(ellipse at 100% 65%,#47416d55,transparent 65%),
            linear-gradient(140deg,#1d162d,#30213e);
}
footer { background:linear-gradient(100deg,#1a1228,#2e203e,#20162e) }
@media(max-width:760px) {
 .project-timeline .app::before { left:-12px; right:-8px }
 header .wrap { gap:8px }
 header nav { gap:4px }
 header nav a { padding-inline:6px }
}
@media(max-width:410px) {
 header .wrap { min-height:0; padding-block:6px; gap:2px }
 header nav a { padding-block:7px }
 html { scroll-padding-top:84px }
}
@media(prefers-reduced-motion:reduce) {
 header nav a,header nav a::after { transition:none }
}

/* Han’s face badge includes its own circle and overlapping muzzle. */
.brand-icon { display:block; flex:0 0 36px; width:36px; height:36px; object-fit:contain; filter:drop-shadow(0 2px 3px #10091b40) }
footer .brand-icon { flex-basis:30px; width:30px; height:30px }

/* More visible purple variation, with no scroll-progress indicator. */
header {
 background:linear-gradient(105deg,rgba(32,17,57,.94) 0%,rgba(104,55,137,.89) 48%,rgba(48,35,94,.92) 100%);
 border-bottom:1px solid #c7a6ff70;
 box-shadow:0 4px 22px #09051460,inset 0 1px 0 #ead8ff20;
}
header nav a:hover,header nav a:focus-visible { background:#e2c7ff24; box-shadow:0 0 18px #c7a6ff20 }
.hero {
 background:radial-gradient(ellipse at 85% 35%,#9863b57d,transparent 60%),
            linear-gradient(115deg,#221333 0%,#58326e 55%,#312350 100%);
}
.catalog {
 background:radial-gradient(ellipse at 95% 10%,#80529b50,transparent 45%),
            linear-gradient(180deg,#2b193d,#302447 45%,#251832);
}
.project-timeline .app::before {
 inset:-14px -22px 24px -22px;
 background:radial-gradient(ellipse at 90% 0%,#9661ac55,transparent 65%),
            linear-gradient(120deg,#513366,#2f2346 85%);
 border-color:#d9baff24;
 box-shadow:0 12px 36px #10071925,inset 0 1px 0 #ead8ff0c;
}
.project-timeline .app:nth-child(2)::before {
 background:radial-gradient(ellipse at 0% 10%,#7b72bf55,transparent 65%),
            linear-gradient(120deg,#30294d,#493c70 60%,#302547);
}
.project-timeline .app:nth-child(3)::before {
 background:radial-gradient(ellipse at 90% 10%,#ae6f9c45,transparent 65%),
            linear-gradient(120deg,#59304f,#472742 65%,#30203f);
}
.project-timeline .app:nth-child(4)::before {
 background:radial-gradient(ellipse at 5% 15%,#7486b84d,transparent 65%),
            linear-gradient(120deg,#303653,#42335f 65%,#2c2341);
}
.project-timeline .app + .app::before { top:24px }
.philosophy {
 background:radial-gradient(ellipse at 90% 10%,#c4a0e1aa,transparent 60%),
            linear-gradient(115deg,#faf1ff,#e0c7ef 65%,#cdb1e4);
}
.support {
 background:radial-gradient(ellipse at 90% 20%,#ac6aa155,transparent 65%),
            linear-gradient(115deg,#291836,#613650 65%,#3e2856);
}
body .support-content {
 background:radial-gradient(ellipse at 0% 20%,#9a63b25c,transparent 65%),
            linear-gradient(125deg,#382344,#563361 65%,#322546);
}
body .feedback {
 background:radial-gradient(ellipse at 90% 50%,#8171b75c,transparent 65%),
            linear-gradient(120deg,#251c39,#42365e);
}
@media(max-width:760px) {
 .project-timeline .app::before { left:-12px; right:-8px }
}

/* Solid pale-lavender reading surface for the archive introduction. */
.philosophy .split { align-items:center }
.philosophy .split > p {
 background:#faf1ff;
 padding:clamp(24px,3vw,36px);
 border:1px solid #ffffff80;
 border-radius:12px;
 box-shadow:0 10px 30px #56336f16;
}

/* Gold action buttons, including archived-file downloads. */
.button,.project-timeline .button {
 color:var(--ink);
 background:linear-gradient(135deg,#ffe5a0 0%,#ffca59 48%,#e9aa38 100%);
 border:1px solid #ffdc85;
 box-shadow:inset 0 1px 0 #fff5d480,0 3px 10px #10071922;
 transition:box-shadow .18s ease,filter .18s ease;
}
.button:hover,.project-timeline .button:hover {
 background:linear-gradient(135deg,#fff0bd 0%,#ffd675 48%,#f1b84d 100%);
 box-shadow:inset 0 1px 0 #fff8e2a6,0 0 14px #ffca5980,0 0 32px #ffca5959,0 6px 48px #ffb52e38;
}
.button:disabled { filter:saturate(.6) }
@media(prefers-reduced-motion:reduce) { .button { transition:none } }

/* Larger hero mascot, tucked behind the right edge of the introduction. */
.archive-home .hero .wrap { grid-template-columns:1.25fr .85fr; gap:0; min-height:570px }
.archive-home .hero-copy { z-index:2 }
.archive-home .hero-copy p {
 font-weight:600;
 text-shadow:0 1px 5px #211436,0 0 16px #211436b3;
}
.archive-home .hero .scene { width:158%; margin-left:-28%; z-index:1 }
.archive-home .hero .scene figcaption { right:15%; bottom:-4% }
@media(max-width:760px) {
 .archive-home .hero .wrap { grid-template-columns:1fr; min-height:0; gap:0 }
 .archive-home .hero .scene { width:min(100%,460px); margin:12px -5% 28px auto }
}

/* Give the archive story two-thirds of the section, without a card. */
.philosophy .split { grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:clamp(24px,4vw,48px); align-items:start }
.philosophy .split > p {
 background:none; padding:0; border:0; border-radius:0; box-shadow:none;
 font-weight:700; color:#362245;
}
@media(max-width:760px) { .philosophy .split { grid-template-columns:1fr } }
