/* pixel · gallery. A quiet white wall, ink, one periwinkle pixel. */
:root {
  --wall: #F5F5F2;
  --paper: #FFFFFF;
  --ink: #16171B;
  --ink-2: #3E4049;
  --muted: #6B6E78;
  --faint: #A5A8B0;
  --line: #E3E3DE;
  --blue: #3B5BDB;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--wall); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code, kbd { font-family: var(--mono); font-size: .82em; color: var(--ink-2); }
kbd { padding: 0 .4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--paper); }
::selection { background: var(--blue); color: #fff; }

.page { max-width: 640px; margin: 0 auto; padding: 30px 24px 56px; }

/* ---- top ---------------------------------------------------------------------- */
.top { display: flex; justify-content: space-between; align-items: center; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--sans); text-decoration: none; letter-spacing: -.01em; }
.px { display: grid; grid-template-columns: repeat(3, 4px); gap: 1.5px; }
.px i { width: 4px; height: 4px; background: var(--ink); opacity: .14; }
.px i.on { background: var(--blue); opacity: 1; animation: blink 3.6s steps(1) infinite; }
@keyframes blink { 0%, 86% { opacity: 1; } 90% { opacity: .2; } 94% { opacity: 1; } }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; transition: color .25s; }
.top nav a:hover { color: var(--ink); }

/* ---- hero --------------------------------------------------------------------- */
.hero { padding: 84px 0 44px; }
.kicker { margin: 0 0 18px; font: 12px var(--mono); color: var(--muted); letter-spacing: .03em; }
h1 { margin: 0; font: 500 clamp(48px, 10.5vw, 76px)/.95 var(--sans); letter-spacing: -.045em; }
h1 em { color: var(--blue); font-weight: 400; }
.lead { max-width: 500px; margin: 26px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }

/* ---- compare ------------------------------------------------------------------ */
.compare { margin: 0; }
.stage {
  --x: 50%;
  position: relative;
  aspect-ratio: 1600 / 1143;
  overflow: hidden;
  background: var(--paper);
  outline: 10px solid var(--paper);
  box-shadow: 0 0 0 11px var(--line), 0 40px 60px -40px rgba(30, 30, 60, .45);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.stage:focus-visible { box-shadow: 0 0 0 11px var(--blue), 0 40px 60px -40px rgba(30, 30, 60, .45); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.stage .after { clip-path: inset(0 0 0 var(--x)); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1.5px; margin-left: -.75px; background: rgba(255, 255, 255, .9); }
.knob {
  position: absolute; top: 50%; left: 50%;
  display: flex; gap: 6px; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(20, 20, 50, .25);
  backdrop-filter: blur(6px);
}
.knob i { width: 0; height: 0; border-block: 5px solid transparent; }
.knob i:first-child { border-right: 6px solid var(--ink); }
.knob i:last-child { border-left: 6px solid var(--ink); }
.tag {
  position: absolute; bottom: 14px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(16, 17, 30, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 11px var(--mono);
  white-space: nowrap;
  transition: opacity .3s;
}
.tag b { font-weight: 500; }
.tag-l { left: 14px; } .tag-r { right: 14px; }
.compare figcaption { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 14px; }
.ran { color: var(--ink-2); font-size: 12.5px; }
.ps { color: var(--blue); font-family: var(--mono); }

/* ---- install ------------------------------------------------------------------ */
.label { margin: 0 0 16px; font: 12px var(--mono); color: var(--faint); letter-spacing: .14em; text-transform: uppercase; }
.install { padding-top: 86px; }
.line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.line code { flex: 1; min-width: 0; color: var(--ink); font-size: 13px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.line code::-webkit-scrollbar { display: none; }
.copy { padding: 0; border: 0; background: none; color: var(--muted); font: 12px var(--mono); cursor: pointer; transition: color .25s; }
.copy:hover { color: var(--ink); }
.copy.done { color: var(--blue); }
.aside { margin: 12px 2px 0; color: var(--muted); font-size: 13.5px; }
.notes code { white-space: nowrap; }
@media (min-width: 601px) { .aside code { white-space: nowrap; } }

/* ---- contact sheet ------------------------------------------------------------ */
.sheet { padding-top: 86px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1;
  padding: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: default;
  transition: border-color .25s, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.tile svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.4; transition: stroke .25s; }
.tile b { font: 500 13px var(--mono); }
.tile small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.tile::after { content: attr(data-n); position: absolute; top: 9px; right: 10px; font: 10px var(--mono); color: var(--faint); }
.tile:hover, .tile.on { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(59, 91, 219, .6); }
.tile:hover svg, .tile.on svg { stroke: var(--blue); }
.peek { display: flex; gap: 8px; align-items: baseline; margin: 16px 2px 0; min-height: 3em; }
.peek code { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---- notes -------------------------------------------------------------------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-top: 86px; }
.notes h3 { margin: 0 0 6px; font: 500 15px var(--sans); letter-spacing: -.01em; }
.notes p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- foot --------------------------------------------------------------------- */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 96px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.foot a:hover { color: var(--ink); border-color: var(--blue); }

/* ---- motion ------------------------------------------------------------------- */
.hero > *, .compare { opacity: 0; animation: up 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; }
.compare { animation-delay: .26s; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero > *, .compare, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .px i.on { animation: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .page { padding: 22px 16px 44px; }
  .top nav a:first-child { display: none; }
  .hero { padding: 60px 0 36px; }
  .stage { outline-width: 6px; box-shadow: 0 0 0 7px var(--line), 0 30px 40px -30px rgba(30, 30, 60, .45); }
  .tag { font-size: 9.5px; bottom: 9px; padding: 4px 7px; }
  .tag-l { left: 9px; } .tag-r { right: 9px; }
  .tag .dim { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: auto; min-height: 96px; gap: 12px; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .install, .sheet, .notes { padding-top: 64px; }
}
