:root {
  --graph: #f4efe4;
  --graph-line: #cfcabd;
  --paper: #e0d7ce;
  --ink: #0a0a0a;
  --ink-soft: #3c3830;
  --highlight: #c2b89e;
  --label: #f1e4cd;
  --pin: #ebc67f;
  --red: #bb2a24;
  --pill: #6b665e;
  --sans: "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  --cell: 38px;
  --sw: min(1120px, 90vw, calc((100svh - 90px) * 1.613));
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='32' viewBox='0 0 11 16' shape-rendering='crispEdges'%3E%3Cpath fill='%230a0a0a' d='M0 0h1v1h-1zM0 1h2v1h-2zM0 2h1v1h-1zM2 2h1v1h-1zM0 3h1v1h-1zM3 3h1v1h-1zM0 4h1v1h-1zM4 4h1v1h-1zM0 5h1v1h-1zM5 5h1v1h-1zM0 6h1v1h-1zM6 6h1v1h-1zM0 7h1v1h-1zM7 7h1v1h-1zM0 8h1v1h-1zM8 8h1v1h-1zM0 9h1v1h-1zM6 9h4v1h-4zM0 10h1v1h-1zM3 10h1v1h-1zM6 10h1v1h-1zM0 11h1v1h-1zM2 11h1v1h-1zM4 11h1v1h-1zM7 11h1v1h-1zM0 12h2v1h-2zM4 12h1v1h-1zM7 12h1v1h-1zM0 13h1v1h-1zM5 13h1v1h-1zM8 13h1v1h-1zM5 14h1v1h-1zM8 14h1v1h-1zM6 15h2v1h-2z'/%3E%3Cpath fill='%23fff' d='M1 2h1v1h-1zM1 3h2v1h-2zM1 4h3v1h-3zM1 5h4v1h-4zM1 6h5v1h-5zM1 7h6v1h-6zM1 8h7v1h-7zM1 9h5v1h-5zM1 10h2v1h-2zM4 10h2v1h-2zM1 11h1v1h-1zM5 11h2v1h-2zM5 12h2v1h-2zM6 13h2v1h-2zM6 14h2v1h-2z'/%3E%3C/svg%3E") 1 1, auto;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: var(--cur); }
a, button { cursor: var(--cur); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--graph);
  background-image:
    linear-gradient(var(--graph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--graph-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  overflow-x: hidden;
}
#ghost { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
section { position: relative; }
.paper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; filter: drop-shadow(0 5px 9px rgba(60, 45, 30, .24)); }
.top { position: relative; z-index: 2; }

.pill {
  position: fixed; top: 18px; right: 18px; z-index: 6;
  background: var(--pill); color: #fff; font-size: 15px;
  padding: 6px 13px; border-radius: 99px; font-variant-numeric: tabular-nums;
}

.hero { min-height: 100svh; display: grid; place-items: center; padding: 45px 0; }
.sheet { position: relative; width: var(--sw); aspect-ratio: 2000 / 1240; }
.sheet .top { height: 100%; padding: calc(var(--sw) * .1) calc(var(--sw) * .085) calc(var(--sw) * .06); display: flex; flex-direction: column; }

.label {
  position: relative; display: inline-block; width: fit-content;
  background: var(--label); padding: .28em .5em; font-weight: 700; font-size: calc(var(--sw) * .0235); line-height: 1.2;
  border-left: 2px solid var(--pin); border-right: 2px solid var(--pin);
}
.label::before, .label::after { content: ""; position: absolute; width: .62em; height: .62em; border-radius: 50%; background: var(--pin); }
.label::before { left: -.36em; top: -.36em; }
.label::after { right: -.36em; bottom: -.36em; }

h1 { margin: calc(var(--sw) * .022) 0 0; font-size: calc(var(--sw) * .142); font-weight: 700; letter-spacing: -.025em; line-height: 1; isolation: isolate; }
.hl { position: relative; display: block; width: fit-content; }
.hl::before { content: ""; position: absolute; z-index: -1; background: var(--highlight); top: .215em; bottom: .05em; left: -.04em; right: -.04em; }
.hl-1::before { right: -.9em; }
.hl-2 { margin-left: 1.55em; margin-top: .06em; }
.hl-2::before { left: -.75em; }

.sub {
  margin: auto 0 0; display: flex; gap: calc(var(--sw) * .02); align-items: center; flex-wrap: wrap;
  font-size: calc(var(--sw) * .0185);
}
.sub p { margin: 0; background: var(--label); padding: .3em .55em; }
.sub a { color: var(--ink); font-weight: 700; text-decoration: none; background: var(--highlight); padding: .3em .55em; transition: transform .15s; }
.sub a:hover { transform: rotate(-2deg) scale(1.05); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.stk { position: absolute; z-index: 3; user-select: none; -webkit-user-drag: none; touch-action: none; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)); transition: filter .15s; filter: drop-shadow(0 3px 3px rgba(50, 35, 20, .28)); }
.stk:hover { filter: drop-shadow(0 7px 7px rgba(50, 35, 20, .3)); }
.s-swirl { width: 17%; left: -4.5%; top: -7%; }
.s-spark { width: 10.5%; right: -3%; top: -8%; }
.s-stars { width: 13.5%; left: -7%; bottom: -13%; }
.s-tape  { width: 21%; right: -5%; bottom: -13%; }
.s-cat   { width: 10.5%; right: 1.2%; bottom: 15%; z-index: 4; }
.s-clip  { width: 4.2%; left: 47%; top: -5.5%; filter: drop-shadow(1px 2px 1.5px rgba(30, 20, 10, .4)); }

.work, .say { width: min(1120px, 90vw); margin: 0 auto; padding: 70px 0; }
h2 { margin: 0 0 54px; font-size: clamp(48px, 8vw, 92px); font-weight: 700; letter-spacing: -.025em; line-height: 1; isolation: isolate; position: relative; z-index: 2; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.scrap { position: relative; aspect-ratio: 820 / 640; }
.scrap:nth-child(1) { grid-column: 1 / 7; }
.scrap:nth-child(2) { grid-column: 7 / 13; margin-top: 56px; }
.scrap .paper { transform: rotate(var(--t, 0deg)); }
.scrap .top { height: 100%; padding: 9% 9%; transform: rotate(var(--t, 0deg)); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.scrap .label { font-size: 14px; }
.scrap h3 { margin: 0; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; width: fit-content; background: var(--highlight); padding: 0 .16em; }
.scrap p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-soft); max-width: 34ch; background: var(--label); padding: .35em .55em; width: fit-content; }

.say { padding-bottom: 130px; }
.say .links { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; font-size: 20px; }
.say a { color: var(--ink); font-weight: 700; text-decoration: none; background: var(--label); padding: .35em .6em; transition: transform .15s; }
.say a:hover { transform: rotate(-2deg) scale(1.05); background: var(--highlight); }

@media (max-width: 760px) {
  :root { --sw: 90vw; --cell: 30px; }
  .sheet { aspect-ratio: 1100 / 1400; }
  .sheet .top { padding: 17vw 8vw 9vw; }
  .label { font-size: 15px; }
  h1 { font-size: 21vw; margin-top: 7vw; }
  .hl-2 { margin-left: .75em; }
  .hl-2::before { left: -.4em; }
  .hl-1::before { right: -.5em; }
  .sub { font-size: 15px; gap: 8px; }
  .s-swirl { width: 27%; left: -5%; top: -5%; }
  .s-spark { width: 16%; top: -5%; }
  .s-stars { width: 18%; left: -5%; bottom: -8%; }
  .s-tape { width: 30%; bottom: -11%; right: -6%; }
  .s-cat { width: 17%; bottom: 3%; right: -1%; }
  .sub p { max-width: 74%; }
  .s-clip { width: 7%; top: -3.5%; }
  .scrap:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sub a, .say a { transition: none; } }

.scrap .more { font-size: 14px; font-weight: 700; }
.open { color: inherit; text-decoration: none; }
.open::after { content: ""; position: absolute; inset: 0; }
.scrap .paper { transition: transform .18s ease-out; }
.scrap:hover .paper { transform: rotate(calc(var(--t, 0deg) * -1)) translateY(-5px); }
.scrap:hover .more { text-decoration: underline; }

.about { width: min(1120px, 90vw); margin: 0 auto; padding: 70px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-text { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: start; }
.about-text p { margin: 0; background: var(--label); padding: .5em .7em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; }
.about-text p:nth-child(even) { margin-left: 26px; }
.about-text .next { background: var(--highlight); font-weight: 400; }
.portrait { -webkit-tap-highlight-color: transparent; position: relative; margin: 0; aspect-ratio: 1100 / 1400; width: min(100%, 510px); justify-self: center; }
.portrait canvas { position: absolute; inset: 6% 5% 6%; width: 90%; height: 88%; z-index: 2; }
.portrait .label { position: absolute; z-index: 3; left: 50%; bottom: -8px; transform: translateX(-50%) rotate(-2deg); font-size: 14px; white-space: nowrap; }

.hero.short { min-height: 0; padding: 70px 0 34px; }
.short .sheet { aspect-ratio: 2000 / 450; }
.short .paper { object-fit: fill; }
.short .s-swirl { width: 12%; left: auto; right: -2.5%; top: auto; bottom: -22%; }
.short h1 { font-size: calc(var(--sw) * .078); margin-top: calc(var(--sw) * .012); }
.short .hl { display: inline-block; }
.short .hl-1::before { right: -.04em; }
.short .hl-2 { margin: 0 0 0 .2em; }
.short .hl-2::before { left: -.04em; }
.short .sheet .top { padding: calc(var(--sw) * .045) calc(var(--sw) * .08) calc(var(--sw) * .03); }
.back { position: fixed; top: 18px; left: 18px; z-index: 6; background: var(--label); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; padding: 6px 12px; }
.back:hover { background: var(--highlight); }
.detail { width: min(960px, 90vw); margin: 0 auto; padding: 8px 0 110px; display: grid; gap: 46px; }
.detail section { display: grid; gap: 18px; justify-items: start; }
.detail h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 8px; }
.note { position: relative; z-index: 2; margin: 0; max-width: 62ch; background: var(--label); padding: .6em .8em; font-size: 18px; line-height: 1.5; }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; aspect-ratio: 820 / 640; counter-increment: s; }
@media (min-width: 761px) { .steps.four { grid-template-columns: repeat(4, 1fr); } .steps.four li { aspect-ratio: 1; } .steps.four .top { padding: 12% 11%; } }
.steps .top { height: 100%; padding: 13% 12%; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.steps h3 { margin: 0; font-size: 21px; letter-spacing: -.015em; width: fit-content; background: var(--highlight); padding: 0 .2em; }
.steps h3::before { content: counter(s) ". "; }
.steps p { margin: 0; font-size: 15px; line-height: 1.35; background: var(--label); padding: .25em .45em; }
.tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--highlight); font-weight: 700; font-size: 15px; padding: .25em .55em; }
.built { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; max-width: 68ch; display: grid; gap: 8px; justify-items: start; }
.built li { background: var(--label); padding: .4em .7em; font-size: 17px; line-height: 1.45; }
.built li:nth-child(even) { margin-left: 18px; }
.ledger { position: relative; z-index: 2; margin: 0; width: 100%; max-width: 760px; display: grid; gap: 8px; }
.ledger div { display: grid; grid-template-columns: 170px 1fr; background: var(--label); }
.ledger dt { background: var(--highlight); font-weight: 700; padding: .5em .7em; font-size: 16px; }
.ledger dd { margin: 0; padding: .5em .7em; font-size: 17px; line-height: 1.45; }
.artifact { position: relative; z-index: 2; margin: 6px 0 0; max-width: 640px; display: grid; gap: 10px; justify-items: start; background: #fbf6ea; padding: 22px 24px 18px; box-shadow: 0 3px 9px rgba(60, 45, 30, .2); transform: rotate(-.5deg); }
.artifact .label { font-size: 14px; }
.artifact blockquote { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 15px; line-height: 1.55; }
.artifact figcaption { font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.go { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; }
.go a { color: var(--ink); font-weight: 700; text-decoration: none; background: var(--label); padding: .4em .65em; font-size: 18px; transition: transform .15s; }
.go a:hover { transform: rotate(-2deg) scale(1.05); background: var(--highlight); }

.flow { position: relative; z-index: 2; margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; }
.flow li { background: var(--highlight); font-weight: 700; font-size: 15px; padding: .25em .55em; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; margin-left: .75em; font-weight: 400; }
.flow li:not(:last-child) { margin-right: 34px; }
.shot { position: relative; z-index: 2; margin: 0; width: 100%; display: grid; gap: 8px; }
.shot img { display: block; width: 100%; height: auto; border: 8px solid #fbf6ea; box-shadow: 0 3px 9px rgba(60, 45, 30, .22); }
.shot figcaption { background: var(--label); padding: .45em .7em; font-size: 16px; line-height: 1.45; max-width: 68ch; width: fit-content; }
.shot a { display: block; cursor: zoom-in; }
html.zoomed { overflow: hidden; }
.zoom { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 62px 3vw 28px; background: rgba(32, 27, 20, .84); overflow: auto; }
.zoom::backdrop { background: transparent; }
.zoom img { display: block; width: min(1240px, 100%); height: auto; margin: 0 auto; border: 8px solid #fbf6ea; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.zoom button { position: fixed; top: 16px; right: 18px; z-index: 1; border: 0; background: var(--label); color: var(--ink); font: 700 16px var(--sans); padding: .4em .7em; }
.zoom button:hover { background: var(--highlight); }
.artifact.wide { max-width: 100%; width: 100%; transform: none; }
.ipx-demo { width: 100%; background: #f2f3f5; color: #1f242c; font: 13px/1.35 system-ui, -apple-system, "Helvetica Neue", sans-serif; border: 1px solid #bfc3ca; }
.ipx-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; background: #522d80; color: #fff; padding: 9px 14px; }
.ipx-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 6px; padding: 3px 8px; }
.ipx-badge b { color: #f56600; font-size: 16px; } .ipx-badge i { color: #522d80; font-size: 10px; font-style: normal; }
.ipx-tabs { display: flex; gap: 4px; font-size: 12px; } .ipx-tabs span, .ipx-tabs u { padding: 4px 11px; border-radius: 99px; text-decoration: none; } .ipx-tabs u { background: #f56600; }
.ipx-clock { margin-left: auto; }
.ipx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; padding: 12px 14px; }
.ipx-tiles span { background: linear-gradient(#d8dbe0, #cdd0d6); color: #3a414c; border-radius: 4px; min-height: 54px; display: grid; place-content: center; text-align: center; font-weight: 500; padding: 4px; }
.ipx-tiles .on { background: #522d80; color: #fff; } .ipx-tiles small { display: block; font-size: 10.5px; font-weight: 400; opacity: .8; }
.ipx-cols { display: grid; grid-template-columns: 1fr 1.7fr .8fr; border-top: 1px solid #bfc3ca; }
.ipx-cols > div { padding: 0 10px 12px; border-left: 1px solid #bfc3ca; min-width: 0; } .ipx-cols > div:first-child { border-left: 0; }
.ipx-cols h4 { margin: 0 -10px 10px; background: #5e3594; color: #fff; text-align: center; font-weight: 500; font-size: 13px; padding: 6px; }
.ipx-cols p { margin: 0 0 6px; }
.ipx-cols .dev { background: linear-gradient(#d8dbe0, #cdd0d6); border-radius: 4px; padding: 6px 9px; font-size: 11.5px; } .dev b { display: block; font-size: 12.5px; } .dev em { font-style: normal; color: #c2410c; }
.ipx-cols .msg { background: #fff; border: 1px solid #bfc3ca; border-radius: 6px; padding: 8px 10px; } .ipx-cols .me { background: #ece6f5; border-color: #d4c8e6; }
.ipx-cols code { font: 11px ui-monospace, Menlo, monospace; color: #6b7280; overflow-wrap: anywhere; }
.ipx-cols .stat { background: #e6e1c9; color: #6d6850; border: 1px solid #d6d0b4; text-align: center; padding: 5px; } .stat small { display: block; font-size: 10px; } .stat b { color: #4f4a35; font-weight: 500; font-size: 15px; }
.peek { display: block; width: 100%; flex: 1 1 0; min-height: 0; margin: 6px 0; }
@media (min-width: 761px) { .scrap:nth-child(3) { grid-column: 1 / 7; } .scrap:nth-child(4) { grid-column: 7 / 13; margin-top: 56px; } }
@media (max-width: 760px) {
  .ledger div { grid-template-columns: 1fr; }
  .built li:nth-child(even) { margin-left: 0; }
  .artifact { padding: 18px 16px 14px; }
  .peek { flex: 0 0 auto; height: 74px; }
  .ipx-cols { grid-template-columns: 1fr; }
  .ipx-cols > div { border-left: 0; }
  .ipx-clock { display: none; }
  .scrap { aspect-ratio: auto; min-height: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text p:nth-child(even) { margin-left: 0; }
  .short .sheet { aspect-ratio: 1100 / 620; }
  .short h1 { font-size: 13vw; margin-top: 4vw; }
  .short .s-swirl { width: 21%; left: auto; right: -3%; top: auto; bottom: -13%; }
  .short .s-spark { width: 12%; top: -12%; }
  .short .sheet .top { padding: 9vw 8vw 7vw; }
  .note { font-size: 17px; }
}
