@font-face { font-family: 'Pixelify Sans'; src: url('fonts/pixelify.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #2b2233;
  --ink-soft: #4a3f55;
  --plum: #5b3a4a;
  --plum-hi: #7d5266;
  --night: #221830;
  --night-2: #33243f;
  --dusk: #4d2f4f;
  --butter: #ffd166;
  --butter-deep: #f4b93a;
  --cream: #fffaf0;
  --peach: #f3d9b8;
  --wall: #fbe9d0;
  --working: #3a86ff;
  --waiting: #e09f1f;
  --stuck: #e63946;
  --done: #2a9d4b;
  --px: 4px; /* one "art pixel" at page scale */
  --display: 'Pixelify Sans', ui-rounded, system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { image-rendering: pixelated; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 3px; }
html { scrollbar-color: var(--plum) var(--wall); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
p { margin: 0; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
  background: var(--butter); color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 var(--px) 0 var(--ink), 0 10px 24px rgba(43, 34, 51, 0.25);
  padding: 12px 22px; font-size: 1.15rem;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 120ms;
}
.btn:hover { background: #ffdb85; transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink), 0 14px 28px rgba(43, 34, 51, 0.28); }
.btn:active { transform: translateY(var(--px)); box-shadow: 0 0 0 var(--ink), 0 4px 10px rgba(43, 34, 51, 0.2); }
.btn-big { font-size: 1.45rem; padding: 16px 30px; }
.btn-small { padding: 6px 14px; font-size: 1rem; box-shadow: 0 3px 0 var(--ink); }
.btn-ghost { background: var(--cream); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--plum);
  border-bottom: 3px solid var(--ink);
  color: var(--cream);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--butter); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; color: #f6e9ee; }
.nav-links a:hover { color: var(--butter); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night);
  color: var(--cream);
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 40px) 0;
  display: grid; justify-items: center; gap: clamp(20px, 3vw, 32px);
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; }
.hero-copy { text-align: center; max-width: 820px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); color: var(--cream); }
.hl { color: var(--butter); display: inline-block; animation: bob 2.4s steps(4) infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.lede { margin: 14px auto 0; max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #eadbe6; }
.cta { margin-top: 20px; display: grid; justify-items: center; gap: 12px; }
.cta-note { color: #cdb9c9; font-size: 0.95rem; }

.monitor { width: min(1180px, 100%); display: grid; justify-items: center; animation: power-on 900ms cubic-bezier(0.16, 1, 0.3, 1) both 150ms; }
@keyframes power-on { from { opacity: 0; transform: translateY(40px) scale(0.96); filter: brightness(2.2); } }
.screen {
  position: relative; width: 100%;
  background: #3f7a86;
  border: calc(var(--px) * 4) solid var(--ink);
  outline: var(--px) solid #4a3f55;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  display: grid; grid-template-rows: auto auto; grid-template-columns: minmax(0, 1fr);
  padding-top: 76px;
  overflow: hidden;
}
.screen::before { /* wallpaper: a quiet pixel hillside */
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(#5aa0a8, #5aa0a8) 0 100% / 100% 34% no-repeat,
    linear-gradient(#4b8f99, #4b8f99) 0 100% / 100% 22% no-repeat,
    #7cc4c6;
}
.screen > * { position: relative; z-index: 1; }
.desk-icons { position: absolute; left: 0; top: 0; display: grid; gap: 14px; padding: 14px; width: max-content; }
.desk-icon { display: grid; justify-items: center; gap: 4px; font-size: 0.8rem; color: #fff; text-shadow: 0 1px 0 var(--ink); width: 84px; text-align: center; }
.ico { display: block; width: 32px; height: 28px; image-rendering: pixelated; }
.ico-term { background: var(--ink); box-shadow: inset 0 4px 0 #5b5670, inset 4px 0 0 var(--ink); position: relative; }
.ico-term::after { content: ''; position: absolute; left: 6px; top: 10px; width: 8px; height: 4px; background: #7dff8a; box-shadow: 10px 6px 0 #7dff8a; }
.ico-folder { background: linear-gradient(var(--butter) 78%, var(--butter-deep) 78%); clip-path: polygon(0 12%, 40% 12%, 48% 0, 100% 0, 100% 100%, 0 100%); }
.ico-start { width: 16px; height: 16px; background: var(--butter); box-shadow: inset -8px -8px 0 #ffb3c1, inset 8px 8px 0 #9ad1ff; }

.demo-dock { position: relative; justify-self: end; align-self: end; padding: 0 clamp(8px, 2vw, 24px); width: 100%; display: grid; justify-items: end; }
.demo { display: block; border: 0; background: transparent; width: 100%; max-width: 1080px; height: 312px; }
.demo-drag-cover { position: fixed; inset: 0; z-index: 1000; cursor: move; }
.hint {
  position: absolute; right: clamp(24px, 22%, 280px); top: -56px;
  font-family: var(--display); font-size: 1.15rem; color: #fff; text-shadow: 0 2px 0 var(--ink);
  display: flex; align-items: end; gap: 6px; transform: rotate(-3deg);
  animation: hint 3s ease-in-out infinite;
}
.hint svg { transform: translateY(18px); }
@keyframes hint { 50% { transform: rotate(-3deg) translateY(-5px); } }

.taskbar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px;
  background: #d8d3c8; border-top: 3px solid #fffaf0; color: var(--ink); font-size: 0.85rem;
}
.start { display: grid; place-items: center; width: 30px; height: 28px; background: var(--cream); border: 2px solid var(--ink); }
.task { padding: 4px 10px; background: #eee9df; border: 2px solid #b9b2a4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 2px inset #eee9df; font-variant-numeric: tabular-nums; }
.monitor-foot { display: grid; justify-items: center; }
.neck { width: 90px; height: 34px; background: var(--ink); }
.base { width: 260px; height: 14px; background: var(--ink); box-shadow: 0 -4px 0 #4a3f55 inset; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 18px 0 30px; color: #cdb9c9; font-size: 0.95rem; }
.chip-btn { font: 700 0.9rem var(--display); background: var(--cream); color: var(--ink); border: 3px solid var(--ink); padding: 3px 12px; cursor: pointer; }
.chip-btn[aria-pressed='true'] { background: var(--butter); }

/* ---------- how ---------- */
section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.center { text-align: center; }
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1240px; margin: 0 auto; }
.how-copy p { margin-top: 16px; max-width: 52ch; color: var(--ink-soft); }
.legend { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.legend b { color: var(--ink); }
.dot { width: 14px; height: 14px; border: 2px solid var(--ink); flex: none; }
.dot.working { background: var(--working); }
.dot.waiting { background: var(--waiting); }
.dot.stuck { background: var(--stuck); animation: blink 1s steps(2) infinite; }
.dot.done { background: var(--done); }
@keyframes blink { 50% { opacity: 0.35; } }

.compare { position: relative; margin: 0; border: 3px solid var(--ink); background: var(--ink); box-shadow: 0 18px 40px rgba(43, 34, 51, 0.25); }
.compare img { display: block; width: 100%; height: auto; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--butter); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.compare-line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--butter); border: 3px solid var(--ink); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare figcaption { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; font: 700 0.95rem var(--display); color: var(--ink-soft); }

/* ---------- features ---------- */
.features { background: var(--cream); border-block: 3px solid var(--ink); }
.features h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1180px; margin: 0 auto; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature.flip .feature-art { order: 2; }
.feature-copy p { color: var(--ink-soft); max-width: 48ch; }
.feature-art { position: relative; }
.feature-art > img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: 0 16px 36px rgba(43, 34, 51, 0.22); }

.rooms-deck { display: grid; aspect-ratio: 360 / 150; outline-offset: 8px; }
.rooms-deck img { grid-area: 1 / 1; transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.rooms-deck img:nth-child(1) { transform: translate(0, 0); z-index: 3; }
.rooms-deck img:nth-child(2) { transform: translate(3%, 10%) rotate(1.5deg); z-index: 2; }
.rooms-deck img:nth-child(3) { transform: translate(6%, 20%) rotate(3deg); z-index: 1; }
.rooms-deck:hover img:nth-child(1), .rooms-deck:focus img:nth-child(1) { transform: translate(-4%, -6%) rotate(-2deg); }
.rooms-deck:hover img:nth-child(2), .rooms-deck:focus img:nth-child(2) { transform: translate(4%, 14%) rotate(1deg); }
.rooms-deck:hover img:nth-child(3), .rooms-deck:focus img:nth-child(3) { transform: translate(12%, 34%) rotate(4deg); }

.board-flip { justify-self: center; width: min(460px, 100%); cursor: pointer; perspective: 800px; }
.board-flip img { box-shadow: none; border: 0; background: transparent; transition: transform 260ms ease-in; }
.board-flip.spinning img { transform: rotateY(90deg); }
.board-flip::after { content: 'click to spin'; position: absolute; right: -6px; bottom: -30px; font: 700 0.95rem var(--display); color: var(--plum); }

.alert-art img { animation: nag 1.2s steps(2) infinite; }
@keyframes nag { 50% { box-shadow: 0 0 0 6px var(--stuck), 0 16px 36px rgba(43, 34, 51, 0.22); } }
.station-art { justify-self: center; width: min(220px, 60%); }
.station-art img { border: 0; box-shadow: none; }

/* ---------- setup ---------- */
.setup { text-align: center; max-width: 1080px; margin: 0 auto; }
.setup > p { margin: 16px auto 0; max-width: 56ch; color: var(--ink-soft); }
.notes { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.note { width: 190px; padding: 18px 16px 20px; display: grid; gap: 4px; text-align: left; border: 3px solid var(--ink); box-shadow: 0 10px 20px rgba(43, 34, 51, 0.2); position: relative; transition: transform 200ms ease-out; }
.note::before { content: ''; position: absolute; top: -9px; left: calc(50% - 6px); width: 12px; height: 12px; background: var(--stuck); border: 3px solid var(--ink); }
.note b { font: 700 1.25rem var(--display); }
.note span { color: var(--ink-soft); font-size: 0.95rem; }
.n1 { background: #ffe66d; transform: rotate(-2deg); }
.n2 { background: #8ee59b; transform: rotate(1.5deg); }
.n3 { background: #ffc4a8; transform: rotate(-1deg); }
.n4 { background: #d9c6ff; transform: rotate(2deg); }
.note:hover { transform: rotate(0) translateY(-6px); }
.fine { margin-top: 30px; font-size: 0.92rem; color: var(--ink-soft); max-width: 62ch; margin-inline: auto; }

/* ---------- sponsors ---------- */
.sponsors { background: var(--plum); color: var(--cream); text-align: center; border-block: 3px solid var(--ink); }
.sponsors > p { margin: 14px auto 0; color: #eadbe6; max-width: 52ch; }
.pyramid { margin: 44px auto 36px; display: grid; gap: 12px; justify-content: center; }
.pyramid-row { display: flex; justify-content: center; gap: 12px; }
.slot {
  --s: clamp(54px, 9vw, 104px);
  width: var(--s); height: var(--s);
  display: grid; place-content: center; gap: 4px; padding: 6px;
  text-decoration: none; color: #eadbe6;
  background: rgba(255, 250, 240, 0.06);
  border: 3px dashed #b58ca3;
  font: 700 clamp(0.62rem, 1vw, 0.8rem)/1.15 var(--display);
  transition: background-color 150ms, color 150ms, transform 150ms ease-out;
}
.slot i { font-style: normal; font-size: 1.4em; color: var(--butter); }
.slot:hover, .slot:focus-visible { background: var(--butter); color: var(--ink); border-style: solid; border-color: var(--ink); transform: translateY(-3px); }
.slot:hover i { color: var(--ink); }
.sponsors .pyramid-row:first-child .slot { --s: clamp(96px, 15vw, 168px); font-size: clamp(0.8rem, 1.4vw, 1rem); border-color: var(--butter); color: var(--butter); }

/* ---------- download ---------- */
.download { text-align: center; }
.download > p { margin-top: 12px; color: var(--ink-soft); }
.os-row { margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.os { width: 220px; padding: 20px; display: grid; gap: 4px; text-decoration: none; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 var(--px) 0 var(--ink); transition: transform 120ms ease-out, background-color 120ms; }
.os b { font: 700 1.5rem var(--display); }
.os span { color: var(--ink-soft); font-size: 0.95rem; }
.os:hover { transform: translateY(-3px); background: #fff4d6; }
.os.mine { background: var(--butter); }
.os.mine span { color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px clamp(16px, 4vw, 40px); background: var(--ink); color: #cdb9c9; font-size: 0.9rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .how, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .desk-icons { display: none; }
  .hint { top: -48px; right: 16px; font-size: 1rem; }
  .task { display: none; }
  .screen { padding-top: 64px; }
  .pyramid, .pyramid-row { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- sponsor walls: the page is framed by two brick walls with posters on them ---------- */
:root { --rail: 0px; }
.rail { display: none; }
@media (min-width: 1280px) {
  :root { --rail: clamp(160px, 11.5vw, 210px); --nav-h: 67px; }
  body { padding-inline: var(--rail); }
  .rail {
    position: fixed; z-index: 20; top: var(--nav-h); bottom: 0;
    width: var(--rail);
    display: grid; align-content: center; justify-items: center; gap: 14px;
    padding: 18px 14px;
    /* pixel brickwork in the room's plum: mortar lines plus offset joints */
    background:
      linear-gradient(90deg, transparent 0 calc(50% - 2px), #3d2733 calc(50% - 2px) 50%, transparent 50%) 0 0 / 48px 32px,
      linear-gradient(90deg, #3d2733 0 4px, transparent 4px) 0 16px / 48px 32px,
      linear-gradient(#3d2733 0 4px, transparent 4px) 0 0 / 100% 16px,
      #5b3a4a;
  }
  .rail-left { left: 0; border-right: 4px solid var(--ink); box-shadow: 10px 0 0 rgba(43, 34, 51, 0.18); }
  .rail-right { right: 0; border-left: 4px solid var(--ink); box-shadow: -10px 0 0 rgba(43, 34, 51, 0.18); }
  .rail::before { /* a little roof sign, like the one on the room */
    content: 'SPONSORS';
    font: 700 0.8rem var(--display); letter-spacing: 0.08em; color: var(--butter);
    background: var(--ink); padding: 4px 10px; border: 2px solid #1d1624;
  }
  .rail .pyramid { margin: 0; gap: 10px; width: 100%; }
  .rail .pyramid-row { gap: 6px; }
  .rail .slot {
    --s: calc((var(--rail) - 28px - 4 * 6px) / 5);
    position: relative; padding: 2px; font-size: 0.6rem;
    background: #f3e6cf; color: var(--plum); border: 2px solid var(--ink);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
    transform: rotate(var(--tilt, 0deg));
    transition: transform 160ms ease-out, background-color 160ms;
  }
  .rail .slot::before { /* push pin */
    content: ''; position: absolute; top: -4px; left: calc(50% - 3px); width: 6px; height: 6px;
    background: var(--stuck); border: 1px solid var(--ink);
  }
  .rail .slot:nth-child(3n + 1) { --tilt: -2deg; }
  .rail .slot:nth-child(3n + 2) { --tilt: 1.5deg; }
  .rail .slot:nth-child(4n + 3) { --tilt: -1deg; }
  .rail .slot i { color: var(--plum); }
  .rail .slot:hover, .rail .slot:focus-visible { --tilt: 0deg; background: var(--butter); color: var(--ink); transform: rotate(0) translateY(-3px); }
  .rail .pyramid-row:nth-child(2) .slot { --s: calc((var(--rail) - 28px - 6px) / 2); font-size: 0.7rem; }
  .rail .pyramid-row:nth-child(3) .slot { --s: calc((var(--rail) - 28px - 12px) / 3); }
  .rail .pyramid-row:nth-child(4) .slot { --s: calc((var(--rail) - 28px - 18px) / 4); }
  /* the top spot is a lit marquee */
  .rail .pyramid-row:nth-child(1) .slot {
    --s: calc(var(--rail) - 28px); --tilt: 0deg;
    font-size: 0.95rem; color: var(--ink); background: var(--butter);
    border: 3px solid var(--ink);
    box-shadow: 0 0 0 4px #2b2233, 0 0 0 7px var(--butter-deep), 0 6px 0 7px rgba(0, 0, 0, 0.35);
    animation: marquee 1.6s steps(2) infinite;
  }
  .rail .pyramid-row:nth-child(1) .slot::before { display: none; }
  .rail .pyramid-row:nth-child(1) .slot i { color: var(--ink); font-size: 1.8em; }
  @keyframes marquee { 50% { box-shadow: 0 0 0 4px #2b2233, 0 0 0 7px #fff3b0, 0 6px 0 7px rgba(0, 0, 0, 0.35); } }
  .rail-cta { font: 700 0.85rem var(--display); color: var(--butter); text-decoration: underline; text-underline-offset: 4px; }
  .rail-cta:hover { color: #fff; }
  /* the walls are the sponsor space now, so the in-page pyramid steps aside */
  .sponsors .pyramid { display: none; }
  .nav { margin-inline: calc(-1 * var(--rail)); }
}
