/* Quirky Worlds tokens — Night is the default; Paper follows a light OS or the Night/Paper switch */
:root{--space-1:4px;--space-2:10px;--space-3:14px;--space-4:20px;--space-5:44px;--space-6:64px;--gutter:48px;--frame:980px;--hatch-pitch:4px;--montage-gutter:6px;--radius-none:0;--radius-mark:12px;--radius-pill:999px;--tilt-none:0deg;--tilt-slight:-1.5deg;--tilt-lean:-4deg;--tilt-caligari:-9deg;--shape-flat:polygon(0 0, 100% 3%, 98% 100%, 1% 96%);--shape-door:polygon(8% 0, 92% 4%, 100% 100%, 0 100%);--shape-shard:polygon(0 12%, 100% 0, 88% 100%, 6% 84%);--armature-diagonal:0.22;--armature-reciprocal:0.17;--armature-hairline:0.1;--scene-hatch-opacity:0.09;--font-display:"Alfa Slab One", "Rockwell", Georgia, serif;--font-sans:"Archivo", "Segoe UI", Arial, sans-serif;--font-mono:"IBM Plex Mono", Consolas, "Courier New", monospace;--font-geo:"Jost", "Futura", "Century Gothic", sans-serif;--bg:#0d1014;--bg-raise:#151a21;--bg-raise-2:#1a2029;--ink:#eae4d8;--ink-dim:#a29a8c;--line:#2a3038;--line-strong:#6b7480;--gold:#d9a441;--gold-bright:#eec06a;--gold-faint:rgba(217, 164, 65, 0.12);--on-gold:#0d1014;--eye:#9e9b94;--tint-cyan:#6fc2c4;--tint-rose:#e57a8e;--tint-acid:#c9d45a;--tint-sepia:#b08858;--stage-shadow:#000000;--scene-sky:#3a2f4a;--scene-sky-2:#5a3a4e;--scene-sun:#e8743b;--scene-far:#4c6a78;--scene-mid:#2f5559;--scene-near:#1b3a3c;--scene-tree:#0f2224;--scene-ground:#1f3a2a;--scene-hatch:#eae4d8;--scene-clay:#b0603f;--scene-barn:#b8433a;--scene-cream:#e6d8bc;--scene-water:#3f7f86;--scene-accent:var(--gold);--shadow-none:none;--shadow-flat:6px 6px 0 #000000;--shadow-flat-lg:14px 10px 0 #000000;color-scheme:dark;}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--bg:#efe6d2;--bg-raise:#e5d8bd;--bg-raise-2:#e0d1b3;--ink:#221b13;--ink-dim:#5a4c3a;--line:#c4ae88;--line-strong:#7d6a4a;--gold:#7a4f0c;--gold-bright:#6e4708;--gold-faint:rgba(122, 79, 12, 0.12);--on-gold:#f6efe0;--eye:#7a705f;--tint-cyan:#175a60;--tint-rose:#8a2842;--tint-acid:#4a5309;--tint-sepia:#6a4c2a;--stage-shadow:#3a2c1c;--scene-sky:#f0dcae;--scene-sky-2:#e9c98f;--scene-sun:#d4552c;--scene-far:#a9bfb4;--scene-mid:#5f8c80;--scene-near:#2f5a55;--scene-tree:#1c3634;--scene-ground:#5d6b32;--scene-hatch:#221b13;--scene-clay:#c46a3e;--scene-barn:#a93a2c;--scene-cream:#fbf3e2;--scene-water:#7fb3ae;--scene-accent:var(--gold);--shadow-none:none;--shadow-flat:6px 6px 0 #3a2c1c;--shadow-flat-lg:14px 10px 0 #3a2c1c;color-scheme:light;}}
:root[data-theme="light"]{--bg:#efe6d2;--bg-raise:#e5d8bd;--bg-raise-2:#e0d1b3;--ink:#221b13;--ink-dim:#5a4c3a;--line:#c4ae88;--line-strong:#7d6a4a;--gold:#7a4f0c;--gold-bright:#6e4708;--gold-faint:rgba(122, 79, 12, 0.12);--on-gold:#f6efe0;--eye:#7a705f;--tint-cyan:#175a60;--tint-rose:#8a2842;--tint-acid:#4a5309;--tint-sepia:#6a4c2a;--stage-shadow:#3a2c1c;--scene-sky:#f0dcae;--scene-sky-2:#e9c98f;--scene-sun:#d4552c;--scene-far:#a9bfb4;--scene-mid:#5f8c80;--scene-near:#2f5a55;--scene-tree:#1c3634;--scene-ground:#5d6b32;--scene-hatch:#221b13;--scene-clay:#c46a3e;--scene-barn:#a93a2c;--scene-cream:#fbf3e2;--scene-water:#7fb3ae;--scene-accent:var(--gold);--shadow-none:none;--shadow-flat:6px 6px 0 #3a2c1c;--shadow-flat-lg:14px 10px 0 #3a2c1c;color-scheme:light;}
:root[data-theme="dark"]{--bg:#0d1014;--bg-raise:#151a21;--bg-raise-2:#1a2029;--ink:#eae4d8;--ink-dim:#a29a8c;--line:#2a3038;--line-strong:#6b7480;--gold:#d9a441;--gold-bright:#eec06a;--gold-faint:rgba(217, 164, 65, 0.12);--on-gold:#0d1014;--eye:#9e9b94;--tint-cyan:#6fc2c4;--tint-rose:#e57a8e;--tint-acid:#c9d45a;--tint-sepia:#b08858;--stage-shadow:#000000;--scene-sky:#3a2f4a;--scene-sky-2:#5a3a4e;--scene-sun:#e8743b;--scene-far:#4c6a78;--scene-mid:#2f5559;--scene-near:#1b3a3c;--scene-tree:#0f2224;--scene-ground:#1f3a2a;--scene-hatch:#eae4d8;--scene-clay:#b0603f;--scene-barn:#b8433a;--scene-cream:#e6d8bc;--scene-water:#3f7f86;--scene-accent:var(--gold);--shadow-none:none;--shadow-flat:6px 6px 0 #000000;--shadow-flat-lg:14px 10px 0 #000000;color-scheme:dark;}

/* design-system components */
@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Jost:wght@400;500&family=Archivo:wdth,wght@62..125,400..700&family=IBM+Plex+Mono:wght@400;500&display=swap");

body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; }
.qw-lean { transform: rotate(var(--tilt-lean)); transform-origin: left bottom; }

/* Hero */
.qw-hero { position: relative; padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.qw-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.qw-hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 9vw, 104px); line-height: .95; letter-spacing: -.01em; margin: 0 0 22px; text-wrap: balance; color: var(--ink); }
.qw-amp { color: var(--gold); font-family: var(--font-sans); font-style: italic; font-weight: 400; }
.qw-lede { max-width: 34em; font-size: clamp(16px, 2.2vw, 19px); margin: 0 0 10px; }
.qw-sub { max-width: 40em; color: var(--ink-dim); font-size: 15px; margin: 0; }

/* Section head */
.qw-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.qw-section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0; white-space: nowrap; color: var(--ink); }
.qw-rule { flex: 1; height: 1px; background: var(--line); position: relative; }
.qw-rule::after { content: ""; position: absolute; right: 0; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .7; }
.qw-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.qw-rule { min-width: 40px; }

/* Card */
.qw-card { display: flex; flex-direction: column; gap: 10px; background: var(--bg-raise); border: 1px solid var(--line); padding: 20px 20px 18px; text-decoration: none; color: var(--ink); transition: border-color .18s, background .18s, transform .18s; }
a.qw-card:hover, .qw-card:focus-visible { border-color: var(--gold); background: var(--bg-raise-2); transform: translateY(-2px); }
.qw-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qw-glyph { width: 52px; height: 52px; display: block; }
.qw-glyph-inline { color: var(--gold); }
.qw-glyph-inline svg { width: 100%; height: 100%; display: block; }
.qw-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.qw-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; text-wrap: balance; }
.qw-card p { margin: 0; font-size: 14px; color: var(--ink-dim); flex: 1; }
.qw-laurel { font-family: var(--font-mono); font-size: 11.5px; color: var(--gold); letter-spacing: .04em; }
.qw-go { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); letter-spacing: .06em; transition: color .18s; }
a.qw-card:hover .qw-go { color: var(--gold-bright); }
.qw-card-crooked { border: 0; clip-path: var(--shape-flat); transform: rotate(var(--tilt-slight)); padding: 26px 24px 24px; }
.qw-card-crooked:nth-child(even) { transform: rotate(1.5deg); }
a.qw-card-crooked:hover { transform: rotate(0deg) translateY(-2px); }
.qw-burst-cyan .qw-tag { color: var(--tint-cyan); }
.qw-burst-rose .qw-tag { color: var(--tint-rose); }
.qw-burst-acid .qw-tag { color: var(--tint-acid); }
.qw-card[class*="qw-burst-"] { position: relative; }
.qw-card[class*="qw-burst-"]::before { content: ""; position: absolute; top: 12px; right: 24px; width: 40px; height: 4px; transform: rotate(var(--tilt-lean)); }
.qw-burst-cyan::before { background: var(--tint-cyan); }
.qw-burst-rose::before { background: var(--tint-rose); }
.qw-burst-acid::before { background: var(--tint-acid); }

/* Button */
.qw-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1.2; padding: 12px 20px; border-radius: var(--radius-none); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
.qw-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.qw-btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: var(--shadow-flat); }
.qw-btn-primary:hover { background: var(--gold-bright); transform: translate(-2px, -2px); box-shadow: var(--shadow-flat-lg); }
.qw-btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.qw-btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.qw-btn-ghost { background: transparent; color: var(--gold); padding-inline: 4px; }
.qw-btn-ghost:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }
.qw-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Pill */
.qw-pill { display: inline-block; font-family: var(--font-mono); font-size: 13px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--bg-raise); padding: 9px 16px; border-radius: var(--radius-pill); transition: border-color .18s, color .18s; }
.qw-pill:hover, .qw-pill:focus-visible { border-color: var(--gold); color: var(--gold-bright); }
.qw-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qw-at { color: var(--gold); }

/* Montage bar */
.qw-montage { display: inline-block; padding: 14px 40px 14px 28px; clip-path: var(--shape-shard); transform: rotate(var(--tilt-lean)); color: var(--on-gold); }
.qw-montage span { font-family: var(--font-sans); font-stretch: 75%; font-weight: 700; font-size: 40px; line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.qw-montage-gold { background: var(--gold); }
.qw-montage-cyan { background: var(--tint-cyan); }
.qw-montage-rose { background: var(--tint-rose); }
.qw-montage-acid { background: var(--tint-acid); }

/* Armature */
.qw-armature { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.qw-armature-fixed { position: fixed; z-index: 0; }
.qw-armature svg { display: block; }
.qw-armature line { stroke: var(--gold); stroke-width: 1; }
.qw-arm-diag { opacity: var(--armature-diagonal); }
.qw-arm-recip { opacity: var(--armature-reciprocal); }
.qw-arm-hair { opacity: var(--armature-hairline); }
.qw-arm-eye circle { fill: none; stroke: var(--eye); stroke-width: 1.2; opacity: .4; }
.qw-arm-eye .qw-arm-pupil { fill: var(--eye); stroke: none; opacity: .45; }
.qw-arm-note { position: absolute; right: 12px; bottom: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--gold); }

/* Title card */
.qw-titlecard { font-family: var(--font-geo); font-weight: 500; font-size: 18px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }

/* Vista — Designed Realism */
.qw-vista { display: block; width: 100%; height: auto; }
.qw-v-sky { fill: var(--scene-sky); }
.qw-v-sky2 { fill: var(--scene-sky-2); }
.qw-v-sky3 { fill: var(--scene-sky-2); opacity: .55; }
.qw-v-sun { fill: var(--scene-sun); }
.qw-v-far { fill: var(--scene-far); }
.qw-v-mid { fill: var(--scene-mid); }
.qw-v-near { fill: var(--scene-near); }
.qw-v-small { fill: var(--scene-near); }
.qw-v-ground { fill: var(--scene-ground); }
.qw-v-tree { fill: var(--scene-tree); }
.qw-v-rib { stroke: var(--scene-hatch); stroke-width: 1; opacity: calc(var(--scene-hatch-opacity) * 1.6); fill: none; }
.qw-v-hatch { opacity: var(--scene-hatch-opacity); }
.qw-v-hatchline { stroke: var(--scene-hatch); stroke-width: 1; }
.qw-v-arm line { stroke: var(--gold); stroke-width: 1; opacity: .5; }

/* Montage composition */
.qw-montage-comp { position: relative; width: 100%; background: var(--bg); container-type: inline-size; }
.qw-montage-comp svg { display: block; width: 100%; height: 100%; }
.qw-m-gutter { stroke: var(--bg); stroke-width: var(--montage-gutter); }
.qw-m-sun { fill: var(--scene-sun); }
.qw-m-gold { fill: var(--gold); }
.qw-m-ink { fill: var(--ink); }
.qw-m-tree { fill: var(--scene-tree); }
.qw-m-cyan { fill: var(--tint-cyan); }
.qw-m-caption { position: absolute; transform: translate(-12%, -50%) rotate(var(--tilt-lean)); background: var(--bg); color: var(--ink); font-family: var(--font-geo); font-weight: 400; font-size: clamp(12px, 3vw, 36px); font-size: clamp(12px, 3.4cqw, 36px); line-height: 1.05; letter-spacing: .12em; text-transform: uppercase; padding: .35em .6em; white-space: nowrap; }
.qw-m-caption-r { transform: translate(-88%, -50%) rotate(var(--tilt-lean)); }

/* Card with a vista header */
.qw-card-vista { margin: -20px -20px 4px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.qw-card-crooked .qw-card-vista { margin: -26px -24px 4px; }

/* World motifs */
.qw-v-clay { fill: var(--scene-clay); }
.qw-v-barn { fill: var(--scene-barn); }
.qw-v-cream { fill: var(--scene-cream); }
.qw-v-accent { fill: var(--scene-accent); }
.qw-v-fair { fill: var(--scene-mid); }
.qw-v-stripe { fill: var(--scene-hatch); }
.qw-v-stripes { opacity: .06; }
.qw-v-treeflat { fill: var(--scene-tree); }
.qw-v-nearTree { fill: var(--scene-near); }
.qw-v-ufo ellipse { fill: var(--scene-cream); }
.qw-v-beam { fill: var(--scene-cream); opacity: .18; }
.qw-v-pole, .qw-v-lampline, .qw-v-colline { stroke: var(--scene-tree); stroke-width: 4; fill: none; stroke-linecap: round; }
.qw-v-colline { stroke: var(--scene-near); stroke-width: 5; }
.qw-v-flag { fill: var(--scene-barn); }
.qw-v-lattice { stroke: var(--scene-mid); stroke-width: 1.5; fill: none; }
.qw-v-giraffe { fill: var(--scene-accent); }
.qw-v-giraffe .qw-v-spots { fill: var(--scene-clay); }
.qw-v-trim { stroke: var(--scene-cream); stroke-width: 3; fill: none; }
.qw-v-track { stroke: var(--scene-far); fill: none; }
.qw-v-curb { stroke: var(--scene-cream); fill: none; }
.qw-v-mullion { stroke: var(--scene-tree); stroke-width: 6; }
.qw-v-ray { stroke: var(--scene-accent); stroke-width: 3; stroke-linecap: round; }
.qw-v-plank { stroke: var(--scene-hatch); stroke-width: 1.2; opacity: .18; }
.qw-v-arch { stroke: var(--scene-cream); stroke-width: 12; fill: none; stroke-linecap: butt; }
.qw-v-arch2 { stroke: var(--scene-far); stroke-width: 3; fill: none; opacity: .6; }
.qw-v-shadowflat { fill: var(--stage-shadow); opacity: .35; }
.qw-v-hatchlines { stroke: var(--scene-tree); stroke-width: 3; opacity: .5; }

.qw-v-window { fill: var(--scene-accent); opacity: .75; }
.qw-v-road { fill: var(--scene-near); }
.qw-v-center { stroke: var(--scene-accent); stroke-width: 3; opacity: .8; }
.qw-v-lamp { fill: var(--scene-cream); }
.qw-v-banner { fill: var(--scene-barn); }
.qw-v-barn2 { fill: var(--scene-barn); fill: color-mix(in oklab, var(--scene-barn) 80%, #000); }
.qw-v-cut { stroke: var(--scene-accent); stroke-width: 2; }
.qw-v-wheel { fill: var(--scene-near); stroke: var(--scene-cream); stroke-width: 2; }
.qw-v-speed { stroke: var(--scene-cream); stroke-width: 3; stroke-linecap: round; opacity: .6; }
.qw-v-rat { fill: var(--scene-tree); }
.qw-v-rat .qw-v-tail { fill: none; stroke: var(--scene-tree); stroke-width: 3; stroke-linecap: round; }
.qw-v-rat .qw-v-box { fill: var(--scene-cream); }
.qw-v-beam-glow { fill: var(--tint-acid); opacity: .22; }
.qw-v-beam-core { fill: var(--tint-acid); opacity: .55; }
.qw-motion .qw-v-beam-g { animation: qw-beam 2.4s ease-in-out infinite alternate; }
@keyframes qw-beam { from { opacity: .55; } to { opacity: 1; } }

.qw-v-water { fill: var(--scene-water); }
.qw-v-ripple { stroke: var(--scene-cream); stroke-width: 2; opacity: .5; stroke-linecap: round; }
.qw-v-rock { fill: var(--scene-clay); fill: color-mix(in oklab, var(--scene-clay) 82%, #000); }
.qw-v-path { fill: var(--scene-cream); opacity: .9; }
.qw-v-pathline { stroke: var(--scene-accent); stroke-width: 2; stroke-dasharray: 8 10; fill: none; opacity: .8; }
.qw-v-elephant { fill: var(--scene-far); fill: color-mix(in oklab, var(--scene-far) 90%, #000); }
.qw-v-elephant .qw-v-ear { fill: var(--scene-near); }
.qw-v-elephant .qw-v-trunk { fill: none; stroke: var(--scene-far); stroke-width: 12; stroke-linecap: round; }
.qw-v-elephant .qw-v-tusk { fill: none; stroke: var(--scene-cream); stroke-width: 5; stroke-linecap: round; }
.qw-v-pin { fill: var(--scene-barn); }
.qw-v-pin .qw-v-pindot { fill: var(--scene-cream); }
.qw-motion .qw-v-pin { animation: qw-bob 2.2s ease-in-out infinite alternate; }
@keyframes qw-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.qw-v-cloud { fill: var(--scene-cream); opacity: .92; }
.qw-v-meadow { fill: var(--scene-mid); }
.qw-v-trackfill { fill: var(--scene-sky-2); }
.qw-v-lane { stroke: var(--scene-cream); stroke-width: 3; stroke-dasharray: 14 16; opacity: .7; }
.qw-v-hedge { fill: var(--scene-near); }
.qw-v-coin { fill: var(--scene-accent); stroke: var(--scene-cream); stroke-width: 2; }
.qw-motion .qw-v-coin { animation: qw-bob 1.6s ease-in-out infinite alternate; }

.qw-v-star { fill: var(--scene-cream); opacity: .7; }
.qw-v-moon { fill: var(--scene-cream); }
.qw-v-glass { fill: var(--scene-cream); opacity: .22; stroke: var(--scene-cream); stroke-width: 2; }
.qw-v-mull { stroke: var(--scene-cream); stroke-width: 1.5; opacity: .7; }
.qw-v-reflect { opacity: .28; }
.qw-v-ochre { fill: var(--scene-accent); fill: color-mix(in oklab, color-mix(in oklab, var(--scene-accent) 70%, #8a8a8a) 85%, #000); }
.qw-v-litwin { fill: var(--scene-cream); opacity: .9; }
.qw-v-rail { stroke: var(--scene-cream); stroke-width: 1.5; opacity: .8; }
.qw-motion .qw-v-star { animation: qw-twinkle 3s ease-in-out infinite alternate; }
@keyframes qw-twinkle { from { opacity: .25; } to { opacity: .85; } }

.qw-v-armline { stroke: var(--gold); stroke-width: 1.2; opacity: .8; }
.qw-v-frameline { fill: none; stroke: var(--scene-accent); stroke-width: 4; }
.qw-v-link { stroke: var(--scene-cream); stroke-width: 2; stroke-dasharray: 6 7; fill: none; opacity: .8; }
.qw-v-avatar { fill: var(--scene-cream); }
.qw-v-avatar .qw-v-visor { fill: var(--scene-tree); }
.qw-v-onair { fill: var(--scene-sun); }
.qw-v-wave { fill: none; stroke: var(--scene-accent); stroke-width: 3; stroke-linecap: round; opacity: .75; }
.qw-v-grille { stroke: var(--scene-near); stroke-width: 2; }
.qw-v-grid { stroke: var(--tint-cyan); stroke-width: 1.2; opacity: .55; }
.qw-v-axis-x { stroke: var(--scene-barn); stroke-width: 4; stroke-linecap: round; }
.qw-v-axis-y { stroke: var(--scene-cream); stroke-width: 4; stroke-linecap: round; }
.qw-v-axis-z { stroke: var(--tint-cyan); stroke-width: 4; stroke-linecap: round; }
.qw-v-reel { fill: var(--scene-near); }
.qw-v-wire { fill: none; stroke: var(--tint-cyan); stroke-width: 2.5; stroke-linecap: round; }
.qw-motion .qw-v-wave { animation: qw-twinkle 1.8s ease-in-out infinite alternate; }

.qw-v-chalk { fill: none; stroke: var(--scene-cream); stroke-width: 2; opacity: .85; }
.qw-v-joint { fill: var(--scene-sun); }
.qw-v-clay2 { fill: var(--scene-clay); fill: color-mix(in oklab, var(--scene-clay) 85%, #fff); }
.qw-v-sculptline { fill: none; stroke: var(--scene-tree); stroke-width: 3; stroke-linecap: round; }
.qw-v-toolloop { fill: none; stroke: var(--scene-cream); stroke-width: 3; }
.qw-v-dpad { fill: none; stroke: var(--scene-cream); stroke-width: 5; stroke-linecap: round; }

.qw-v-virus { fill: var(--scene-sun); }
.qw-v-spike { stroke: var(--scene-sun); stroke-width: 5; stroke-linecap: round; }
.qw-v-virus-spot { fill: var(--scene-barn); opacity: .75; }
.qw-v-virus-rim { fill: none; stroke: var(--scene-cream); stroke-width: 4; stroke-linecap: round; opacity: .45; }
.qw-v-virus-halo { fill: var(--scene-sun); opacity: .12; }
.qw-v-virus-reflect { fill: var(--scene-sun); opacity: .45; }
.qw-motion .qw-v-virus-g { animation: qw-spin 90s linear infinite; }
@keyframes qw-spin { to { transform: rotate(360deg); } }

.qw-v-distant { fill: var(--scene-far); fill: color-mix(in oklab, var(--scene-far) 88%, #fff); opacity: .75; }
.qw-v-arch-far { fill: none; stroke: var(--scene-cream); stroke-width: 6; opacity: .75; }

.qw-v-cagedark { fill: var(--scene-near); opacity: .42; }
.qw-v-cagehaze { fill: none; stroke: var(--scene-far); stroke-width: 1.4; opacity: .35; }

.qw-v-beamlight { fill: var(--scene-cream); opacity: .22; }
.qw-v-stripe2 { fill: var(--tint-cyan); }
.qw-v-sick { fill: var(--tint-acid); }
.qw-v-wire2 { stroke: var(--scene-tree); stroke-width: 1.5; }
.qw-v-dune1 { fill: var(--scene-clay); fill: color-mix(in oklab, color-mix(in oklab, var(--scene-clay) 80%, #fff) 80%, #8a8a8a); }
.qw-v-dune2 { fill: var(--scene-accent); fill: color-mix(in oklab, var(--scene-accent) 75%, #8a8a8a); }
.qw-v-stone { fill: var(--scene-clay); fill: color-mix(in oklab, var(--scene-clay) 90%, #000); }
.qw-v-glyph { fill: none; stroke: var(--scene-cream); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.qw-v-predeyes { fill: var(--tint-acid); }
.qw-v-flame { fill: var(--scene-sun); }
.qw-v-torchglow { fill: var(--scene-sun); opacity: .15; }
.qw-v-seam { stroke: var(--scene-accent); stroke-width: 4; }
.qw-v-blade { stroke: var(--scene-cream); stroke-width: 4; stroke-linecap: round; }
.qw-v-spill { fill: var(--scene-cream); opacity: .14; }
.qw-v-mattress { fill: var(--scene-far); fill: color-mix(in oklab, var(--scene-far) 85%, #000); }
.qw-v-cyanfill { fill: var(--tint-cyan); }
.qw-v-tick { stroke: var(--scene-tree); stroke-width: 2; }
.qw-v-hands { stroke: var(--scene-tree); stroke-width: 3; stroke-linecap: round; fill: none; }
.qw-v-neon1 { fill: var(--tint-rose); }
.qw-v-neon2 { fill: var(--tint-cyan); }
.qw-v-accentfill { fill: var(--scene-accent); }
.qw-v-reflect2 { opacity: .35; }
.qw-v-rain { stroke: var(--scene-cream); stroke-width: 1.2; opacity: .28; stroke-linecap: round; }
.qw-motion .qw-v-predeyes { animation: qw-twinkle 2.6s ease-in-out infinite alternate; }
.qw-motion .qw-v-flame { animation: qw-twinkle .5s ease-in-out infinite alternate; }

.qw-v-ledge { stroke: var(--scene-tree); stroke-width: 2; opacity: .35; }
.qw-v-carve { fill: var(--scene-clay); fill: color-mix(in oklab, color-mix(in oklab, var(--scene-clay) 65%, #fff) 80%, #8a8a8a); }
.qw-v-carvedark { fill: var(--scene-clay); fill: color-mix(in oklab, var(--scene-clay) 75%, #000); }
.qw-v-glyphdark { fill: none; stroke: var(--scene-tree); stroke-width: 2; opacity: .6; }
.qw-v-strata { stroke: var(--scene-tree); stroke-width: 2; opacity: .25; }
.qw-v-canyon { fill: var(--scene-clay); fill: color-mix(in oklab, color-mix(in oklab, var(--scene-clay) 45%, #000) 90%, #8a8a8a); }
.qw-v-patch { fill: var(--scene-far); opacity: .35; }
.qw-v-stain { fill: none; stroke: var(--scene-tree); stroke-width: 7; opacity: .25; stroke-linecap: round; }
.qw-v-peel { fill: var(--scene-cream); opacity: .35; }
.qw-v-lath { stroke: var(--scene-clay); stroke-width: 3; }
.qw-v-grime { fill: var(--scene-tree); opacity: .3; }
.qw-v-mstain { fill: var(--scene-clay); opacity: .45; }
.qw-v-baggie { fill: var(--scene-cream); opacity: .55; stroke: var(--scene-cream); stroke-width: 1; }
.qw-v-bottle { fill: var(--scene-mid); fill: color-mix(in oklab, var(--scene-mid) 70%, #fff); }
.qw-v-castle { fill: var(--scene-far); fill: color-mix(in oklab, var(--scene-far) 85%, #fff); }
.qw-v-neonheart { fill: none; stroke: var(--tint-rose); stroke-width: 3; }
.qw-v-cobble { fill: var(--scene-near); }
.qw-v-mouse { fill: var(--scene-far); fill: color-mix(in oklab, var(--scene-far) 80%, #000); }
.qw-v-mouse2 { fill: var(--scene-far); fill: color-mix(in oklab, var(--scene-far) 80%, #fff); }
.qw-v-mousetail { fill: none; stroke: var(--scene-far); stroke-width: 3; stroke-linecap: round; }
.qw-v-pinstripe { stroke: var(--scene-cream); stroke-width: 1.2; opacity: .5; }
.qw-v-stem { stroke: var(--scene-mid); stroke-width: 2.5; }
.qw-v-gown { fill: var(--tint-rose); }
.qw-v-heart { fill: var(--tint-rose); }
.qw-v-space { fill: #0b0f1a; }
.qw-v-nebula1 { fill: var(--tint-rose); opacity: .14; }
.qw-v-nebula2 { fill: var(--tint-cyan); opacity: .12; }
.qw-v-orbit { fill: none; stroke: var(--scene-accent); stroke-width: 1.4; opacity: .5; }
.qw-v-timeline { fill: none; stroke: var(--scene-cream); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.qw-v-branch { fill: none; stroke: var(--tint-cyan); stroke-width: 2; opacity: .75; }
.qw-v-node { fill: var(--scene-sun); stroke: var(--scene-cream); stroke-width: 2; }
.qw-v-ghostnode { fill: var(--tint-cyan); opacity: .8; }
.qw-v-traveller { fill: var(--scene-far); }
.qw-v-domino { fill: var(--scene-cream); stroke: #0b0f1a; stroke-width: 1.5; }
.qw-v-smog { fill: var(--tint-rose); opacity: .08; }
.qw-v-mega { fill: #151c2b; }
.qw-v-mega2 { fill: #1c2436; }
.qw-v-ant { stroke: #151c2b; stroke-width: 2; }
.qw-v-holo { fill: none; stroke: var(--tint-cyan); stroke-width: 2.5; opacity: .75; }
.qw-v-holofill { fill: var(--tint-rose); opacity: .8; }
.qw-v-scan { stroke: var(--tint-cyan); stroke-width: 1; opacity: .18; }
.qw-v-trail { stroke: var(--tint-rose); stroke-width: 2; opacity: .6; stroke-linecap: round; }
.qw-v-steam { fill: none; stroke: #e6d8bc; stroke-width: 2; opacity: .3; }
.qw-v-neonglow { fill: var(--tint-rose); opacity: .12; }
.qw-v-silh { fill: #06080e; }
.qw-v-collar { fill: #1c2436; }
.qw-v-ember { fill: #e8743b; }
.qw-v-rimlight { stroke: var(--tint-cyan); stroke-width: 2; opacity: .8; }
.qw-motion .qw-v-holo, .qw-motion .qw-v-ember { animation: qw-twinkle 1.8s ease-in-out infinite alternate; }

.qw-v-colshade { fill: var(--scene-clay); fill: color-mix(in oklab, var(--scene-clay) 70%, #000); opacity: .6; }
.qw-v-dust { fill: var(--scene-cream); opacity: .55; }
.qw-v-walker { fill: #2a140e; }
.qw-v-rimwarm { fill: none; stroke: var(--scene-accent); stroke-width: 3; opacity: .55; stroke-linecap: round; }
.qw-v-beast { fill: #120806; }
.qw-v-pack { fill: var(--scene-barn); fill: color-mix(in oklab, var(--scene-barn) 55%, #000); }
.qw-v-pack2 { fill: var(--scene-mid); fill: color-mix(in oklab, var(--scene-mid) 60%, #000); }
.qw-v-rope { fill: none; stroke: var(--scene-accent); stroke-width: 2; opacity: .7; }
.qw-motion .qw-v-dust { animation: qw-twinkle 3.4s ease-in-out infinite alternate; }

/* Motion: parallax planes, drifting layers, montage cuts */
.qw-motion .qw-layer-in { animation: qw-drift calc(26s - var(--d) * 12s) ease-in-out infinite alternate; }
.qw-motion .qw-sun-g { animation: qw-rise 16s ease-in-out infinite alternate; }
.qw-motion .qw-shard { animation: qw-cut-in .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0s) both; }
.qw-motion .qw-push { animation: qw-push 14s ease-in-out infinite alternate; }
.qw-tilt-prompt { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-gold); background: var(--gold); border: 0; border-radius: var(--radius-pill); padding: 10px 16px; box-shadow: var(--shadow-flat); cursor: pointer; }
.qw-tilt-prompt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@keyframes qw-drift { from { transform: translateX(calc(var(--d) * -10px)); } to { transform: translateX(calc(var(--d) * 10px)); } }
@keyframes qw-rise { from { transform: translateY(6px); } to { transform: translateY(-10px); } }
@keyframes qw-cut-in { from { transform: translate(var(--tx), var(--ty)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qw-push { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Of Mice and Men — the valley, the bridge, the rider */
.qw-v-field1 { fill: var(--scene-ground); }
.qw-v-field2 { fill: var(--scene-mid); }
.qw-v-field3 { fill: var(--scene-accent); fill: color-mix(in oklab, var(--scene-accent) 55%, var(--scene-ground)); }
.qw-v-furrow { stroke: var(--scene-tree); stroke-width: 1; opacity: .25; }
.qw-v-roadline { fill: none; stroke: var(--scene-cream); stroke-width: 2.5; opacity: .55; stroke-linecap: round; }
.qw-v-city2 { fill: var(--scene-tree); }
.qw-v-billboard { fill: var(--tint-rose); opacity: .85; }
.qw-v-cable { fill: none; stroke: var(--scene-tree); stroke-width: 2.5; }
.qw-v-hanger { stroke: var(--scene-tree); stroke-width: 1; opacity: .8; }
.qw-v-lampcone { fill: var(--scene-cream); opacity: .3; }
.qw-v-castshadow { fill: #000; opacity: .35; }
.qw-v-grass { fill: none; stroke: var(--scene-tree); stroke-width: 2; stroke-linecap: round; }
.qw-v-horse { fill: var(--scene-tree); }
.qw-v-horsemane { fill: none; stroke: var(--scene-tree); stroke-width: 5; stroke-linecap: round; }
.qw-v-cape { fill: var(--scene-barn); }
.qw-v-lance { stroke: var(--scene-cream); stroke-width: 2; stroke-linecap: round; }
/* The Last Case — the alley */
.qw-v-screen { fill: #2a1030; stroke: var(--tint-rose); stroke-width: 1.5; }
.qw-v-geishahair { fill: #050608; }
.qw-v-geishaface { fill: #f4ece2; }
.qw-v-geishaeye { fill: none; stroke: #050608; stroke-width: 1.6; stroke-linecap: round; }
.qw-v-geishalips { fill: #d8283e; }
.qw-v-pin2 { stroke: var(--tint-acid); stroke-width: 1.5; }
.qw-v-bladeglow { opacity: .1; }
.qw-v-hull { fill: #2b3350; stroke: var(--tint-cyan); stroke-width: 1.2; stroke-opacity: .5; }
.qw-v-riverline { fill: none; stroke: var(--scene-water); stroke-width: 16; stroke-linejoin: round; stroke-linecap: round; }
.qw-v-fireesc { fill: none; stroke: #06080e; stroke-width: 3; }
.qw-v-cable2 { fill: none; stroke: #06080e; stroke-width: 1.5; }
.qw-v-lantern { fill: #e8743b; }
.qw-v-wet { fill: #10141f; }
.qw-v-crowd { fill: #06080e; }
.qw-v-umbneon { fill: #06080e; stroke: var(--tint-cyan); stroke-width: 1.5; }
.qw-v-umbneon2 { fill: #06080e; stroke: var(--tint-rose); stroke-width: 1.5; }
.qw-v-umbstick { stroke: #06080e; stroke-width: 1.2; }
.qw-motion .qw-v-rainfall { animation: qw-rainfall .9s linear infinite; }
.qw-motion .qw-v-blimp { animation: qw-blimp 30s ease-in-out infinite alternate; }
.qw-motion .qw-v-bladeglow { animation: qw-neonhum 2.2s ease-in-out infinite alternate; }
@keyframes qw-neonhum { from { opacity: .06; } to { opacity: .16; } }
@keyframes qw-rainfall { from { transform: translate(0, 0); } to { transform: translate(calc(var(--rh) * -0.25), var(--rh)); } }
@keyframes qw-blimp { from { transform: translateX(-24px); } to { transform: translateX(24px); } }

@media (prefers-reduced-motion: reduce) {
  .qw-card, .qw-go, .qw-pill, .qw-btn { transition: none; }
  a.qw-card:hover, .qw-btn-primary:hover { transform: none; }
  .qw-motion .qw-layer, .qw-motion .qw-layer-in, .qw-motion .qw-sun-g, .qw-motion .qw-shard, .qw-motion .qw-push, .qw-motion .qw-v-beam-g, .qw-motion .qw-v-pin, .qw-motion .qw-v-coin, .qw-motion .qw-v-star, .qw-motion .qw-v-wave, .qw-motion .qw-v-virus-g, .qw-motion .qw-v-predeyes, .qw-motion .qw-v-flame, .qw-motion .qw-v-holo, .qw-motion .qw-v-ember, .qw-motion .qw-v-dust, .qw-motion .qw-v-rainfall, .qw-motion .qw-v-blimp, .qw-motion .qw-v-bladeglow { animation: none; transform: none; transition: none; }
}

/* Quirky Worlds — page layout for colinfizgig.github.io (on top of the design-system stylesheet) */
html, body { background: var(--bg); color: var(--ink); margin: 0; }
body { font-family: var(--font-sans); }
.qwh { position: relative; min-height: 100vh; overflow-x: clip; }
.qwh-frame { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); padding-block: 0 64px; }
.qwh-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.qwh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.qwh-brand svg { width: 32px; height: 32px; display: block; }
.qwh-brand span { font-family: var(--font-geo); font-weight: 500; font-size: 14px; letter-spacing: .32em; text-transform: uppercase; }
.qwh-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qwh-nav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); text-decoration: none; }
.qwh-nav a:hover, .qwh-nav a:focus-visible { color: var(--gold-bright); }
.qwh-nav a:focus-visible, .qwh-theme:focus-visible, .qwh-feature-link:focus-visible, .qwp-shot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.qwh-theme { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink); background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 6px 12px; cursor: pointer; }
.qwh-hero-montage { margin-top: 4px; box-shadow: var(--shadow-flat-lg); }
.qwh-intro, .qwp-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.qwh-intro .qw-hero, .qwp-head .qw-hero { border-bottom: 0; padding-block: 40px 8px; }
.qwh-intro .qw-hero-title { font-size: clamp(48px, 7.4vw, 96px); }
.qwp-head .qw-hero-title { font-size: clamp(40px, 6vw, 80px); }
.qwh-role { display: block; font-family: var(--font-geo); font-size: .3em; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-dim); margin-top: .35em; }
.qwh-role em { font-style: normal; color: var(--gold); }
.qwh-cta { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; align-items: center; }
.qwh-interstitial { padding-block: 36px 8px; border-top: 1px solid var(--line); margin-top: 28px; }
.qwh-section { padding-block: 44px 8px; scroll-margin-top: 16px; }
.qwh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.qwh-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qwh-feature { position: relative; margin: 44px 0 0; }
.qwh-feature-link { display: block; color: inherit; }
.qwh-feature .qw-vista { aspect-ratio: 21 / 8; max-width: 100%; }
.qwt-hero .qw-vista { aspect-ratio: 3 / 1; }
.qwh-titlecard { position: absolute; left: clamp(12px, 4%, 40px); bottom: clamp(12px, 8%, 40px); background: var(--scene-tree); color: var(--scene-cream); padding: 14px 20px; transform: rotate(var(--tilt-lean)); transform-origin: left bottom; max-width: calc(100% - 24px); }
.qwh-titlecard small { display: block; font-family: var(--font-geo); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.qwh-titlecard strong { display: block; font-family: var(--font-geo); font-weight: 400; font-size: clamp(20px, 3.4vw, 36px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.05; margin-top: 4px; }
.qwh-connect { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.qwh-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); letter-spacing: .04em; }
.qwh-gridnote { color: var(--gold); }
.qw-m-clay { fill: var(--scene-clay); }
.qw-m-barn { fill: var(--scene-barn); }
.qw-m-cream { fill: var(--scene-cream); }

/* project pages */
.qwp-media { margin-top: 36px; }
.qwp-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--scene-tree); box-shadow: var(--shadow-flat-lg); }
.qwp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qwp-gallery { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.qwp-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-raise); box-shadow: var(--shadow-flat); }
.qwp-shot-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.qwp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.qwp-shot:hover img { transform: scale(1.04); }
.qwp-notes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: 32px 8px; border-bottom: 1px solid var(--line); }
.qwp-note { margin: 0; max-width: 40em; color: var(--ink-dim); }
.qwp-laurels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--gold); }

/* tutorials */
.qwt-list { display: grid; gap: 48px; margin-top: 40px; }
.qwt-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.qwt-flip .qwp-video { order: 2; }
.qwt-text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; margin: 8px 0 12px; text-wrap: balance; }
.qwt-text p { margin: 0 0 16px; color: var(--ink-dim); max-width: 36em; }
.qwt-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* interactive narratives */
.qwn-features { display: grid; gap: 56px; }
.qwn-story { display: grid; gap: clamp(18px, 3vw, 40px); align-items: center; }
.qwn-feature { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.qwn-flip .qwn-shot { order: 2; }
.qwn-shot { display: block; box-shadow: var(--shadow-flat-lg); }
.qwn-shot:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.qwn-text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; margin: 8px 0 12px; text-wrap: balance; }
.qwn-text p { margin: 0 0 14px; max-width: 36em; }
.qwn-detail { color: var(--ink-dim); font-size: 14px; }
.qwn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--space-4); }
.qwn-grid .qwn-shot { box-shadow: var(--shadow-flat); }
.qwn-grid .qwn-text h3 { font-size: 26px; }

/* static fallback shown before the scripts load (and to crawlers) */
.qw-static { max-width: 980px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px); }
.qw-static h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 80px); line-height: .95; margin: 0 0 16px; }
.qw-static h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 32px 0 8px; }
.qw-static a { color: var(--gold); }
.qw-static p { color: var(--ink-dim); max-width: 40em; }

@media (max-width: 980px) { .qwh-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .qwh-intro, .qwp-head, .qwp-notes, .qwt-item, .qwn-feature, .qwn-grid { grid-template-columns: 1fr; }
  .qwn-flip .qwn-shot { order: 0; }
  .qwt-flip .qwp-video { order: 0; }
  .qwh-nav { gap: 12px; }
  .qwh-feature .qw-vista, .qwt-hero .qw-vista { aspect-ratio: 16 / 9; }
  .qwh-hero-montage, .qwp-video { box-shadow: var(--shadow-flat); }
  .qwp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) { .qwh-cards-3 { grid-template-columns: 1fr; } }
