/* Stepped pixel corners, same shapes as the live hub (pixel size --p). Written by a script. */
:root {
  --p: 3px;
  --px16: polygon(0 calc(var(--p) * 5), var(--p) calc(var(--p) * 5), var(--p) calc(var(--p) * 3), calc(var(--p) * 2) calc(var(--p) * 3), calc(var(--p) * 2) calc(var(--p) * 2), calc(var(--p) * 3) calc(var(--p) * 2), calc(var(--p) * 3) var(--p), calc(var(--p) * 5) var(--p), calc(var(--p) * 5) 0, calc(100% - var(--p) * 5) 0, calc(100% - var(--p) * 5) var(--p), calc(100% - var(--p) * 3) var(--p), calc(100% - var(--p) * 3) calc(var(--p) * 2), calc(100% - var(--p) * 2) calc(var(--p) * 2), calc(100% - var(--p) * 2) calc(var(--p) * 3), calc(100% - var(--p)) calc(var(--p) * 3), calc(100% - var(--p)) calc(var(--p) * 5), 100% calc(var(--p) * 5), 100% calc(100% - var(--p) * 5), calc(100% - var(--p)) calc(100% - var(--p) * 5), calc(100% - var(--p)) calc(100% - var(--p) * 3), calc(100% - var(--p) * 2) calc(100% - var(--p) * 3), calc(100% - var(--p) * 2) calc(100% - var(--p) * 2), calc(100% - var(--p) * 3) calc(100% - var(--p) * 2), calc(100% - var(--p) * 3) calc(100% - var(--p)), calc(100% - var(--p) * 5) calc(100% - var(--p)), calc(100% - var(--p) * 5) 100%, calc(var(--p) * 5) 100%, calc(var(--p) * 5) calc(100% - var(--p)), calc(var(--p) * 3) calc(100% - var(--p)), calc(var(--p) * 3) calc(100% - var(--p) * 2), calc(var(--p) * 2) calc(100% - var(--p) * 2), calc(var(--p) * 2) calc(100% - var(--p) * 3), var(--p) calc(100% - var(--p) * 3), var(--p) calc(100% - var(--p) * 5), 0 calc(100% - var(--p) * 5));
  --px12: polygon(0 calc(var(--p) * 4), var(--p) calc(var(--p) * 4), var(--p) calc(var(--p) * 2), calc(var(--p) * 2) calc(var(--p) * 2), calc(var(--p) * 2) var(--p), calc(var(--p) * 4) var(--p), calc(var(--p) * 4) 0, calc(100% - var(--p) * 4) 0, calc(100% - var(--p) * 4) var(--p), calc(100% - var(--p) * 2) var(--p), calc(100% - var(--p) * 2) calc(var(--p) * 2), calc(100% - var(--p)) calc(var(--p) * 2), calc(100% - var(--p)) calc(var(--p) * 4), 100% calc(var(--p) * 4), 100% calc(100% - var(--p) * 4), calc(100% - var(--p)) calc(100% - var(--p) * 4), calc(100% - var(--p)) calc(100% - var(--p) * 2), calc(100% - var(--p) * 2) calc(100% - var(--p) * 2), calc(100% - var(--p) * 2) calc(100% - var(--p)), calc(100% - var(--p) * 4) calc(100% - var(--p)), calc(100% - var(--p) * 4) 100%, calc(var(--p) * 4) 100%, calc(var(--p) * 4) calc(100% - var(--p)), calc(var(--p) * 2) calc(100% - var(--p)), calc(var(--p) * 2) calc(100% - var(--p) * 2), var(--p) calc(100% - var(--p) * 2), var(--p) calc(100% - var(--p) * 4), 0 calc(100% - var(--p) * 4));
  --px7: polygon(0 calc(var(--p) * 2), var(--p) calc(var(--p) * 2), var(--p) var(--p), calc(var(--p) * 2) var(--p), calc(var(--p) * 2) 0, calc(100% - var(--p) * 2) 0, calc(100% - var(--p) * 2) var(--p), calc(100% - var(--p)) var(--p), calc(100% - var(--p)) calc(var(--p) * 2), 100% calc(var(--p) * 2), 100% calc(100% - var(--p) * 2), calc(100% - var(--p)) calc(100% - var(--p) * 2), calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - var(--p) * 2) calc(100% - var(--p)), calc(100% - var(--p) * 2) 100%, calc(var(--p) * 2) 100%, calc(var(--p) * 2) calc(100% - var(--p)), var(--p) calc(100% - var(--p)), var(--p) calc(100% - var(--p) * 2), 0 calc(100% - var(--p) * 2));
  --px4: polygon(0 var(--p), var(--p) var(--p), var(--p) 0, calc(100% - var(--p)) 0, calc(100% - var(--p)) var(--p), 100% var(--p), 100% calc(100% - var(--p)), calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - var(--p)) 100%, var(--p) 100%, var(--p) calc(100% - var(--p)), 0 calc(100% - var(--p)));
}

/* Scene request page. Same build as the top-down waitlist (version 2): her name and the promise
   on the left with one big picture, the white sheet with the form on a colour block on the right
   (on a phone: the picture on top, the sheet under it). Hana's pink instead of the yellow:
   block #ff5ca8 (her thumbnail title pink), buttons a deeper pink with white text, soft fills
   #fff1f6 / #fbd9e7 (her thumbnail background and Croncos). The stepped pixel corner shapes
   (--px4, --px7, --px12, --px16) are the block above. */
@font-face { font-family: "Pirkkala"; src: url("/pirkkala.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root { --ink2: #1d1d1b; --pink: #ff5ca8; --hot: #e8217a; --blush: #fff1f6; --rose: #fbd9e7; --sun: #ffc93c; --text: #5d534d; --line: #ecdfe5; --grot: "Inter Tight", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--grot); color: var(--ink2); background: #fff; -webkit-text-size-adjust: 100%; }

.pg { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; font: 16px/1.45 var(--grot); color: var(--ink2); background: #fff; }
.lay { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.pg h1, .pg h2 { font-family: var(--grot); color: var(--ink2); }
.pxl, .stk, .emo { image-rendering: pixelated; image-rendering: crisp-edges; }
.stk { position: absolute; z-index: 3; pointer-events: none; }
.dt { position: absolute; z-index: 1; width: 12px; height: 12px; pointer-events: none; clip-path: var(--px4); }
.draft { position: fixed; left: 50%; bottom: 8px; z-index: 9; transform: translateX(-50%); padding: 4px 12px 5px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--sun); clip-path: var(--px7); }
mark.todo { color: inherit; background: linear-gradient(transparent 12%, #ffe27a 12%, #ffe27a 88%, transparent 88%); padding: 0 2px; }

/* Left: her name, the promise, the picture. Stays put on a PC while the form moves. */
.left { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; padding: 16px 36px 14px; position: sticky; top: 0; }
.bar2 { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* Her two black pills: the same Pirkkala, the same size. Pirkkala pills put the letter body (x-height,
   .57em, sitting .18em under the line top) in the middle: .07em more padding on top than at the bottom. */
.logo, .kick { padding: .5em .7em .43em; font: 400 19px/1 "Pirkkala", system-ui, sans-serif; color: #fff; white-space: nowrap; text-transform: lowercase; background: var(--ink2); clip-path: var(--px12); }
.pg h1 { flex: none; margin: 14px 0 12px; font-size: clamp(40px, 4vw, 64px); line-height: 1.04; text-wrap: balance; font-weight: 700; letter-spacing: -.045em; text-transform: lowercase; }

/* The picture: Hana's farm scene loose on the page, as big as the space allows. Numbers are pixels
   of her 256x256 canvas, the same as BOX and LINES in page.js: the box is x 26, y 100, 172 x 128
   (her art plus room for the labels), so left = (x - 26) / 172, top = (y - 100) / 128. */
.pwrap { flex: 1 1 0; min-height: 0; display: grid; place-items: center; container: pw / size; }
.art { position: relative; width: min(100cqw, calc(100cqh * 172 / 128)); aspect-ratio: 172 / 128; container-type: inline-size; }
.art img { position: absolute; display: block; max-width: none; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
/* Both islands float up and down 2 art pixels, a little out of step. */
.isle { position: absolute; inset: 0; animation: float 3.6s ease-in-out infinite alternate; }
.isle.small { animation-delay: -1.4s; }
@keyframes float { to { transform: translateY(calc(-2 / 128 * 100%)); } }
.p-big { left: calc((61 - 26) / 172 * 100%); top: calc((117 - 100) / 128 * 100%); width: calc(133 / 172 * 100%); }
.p-small { left: calc((30 - 26) / 172 * 100%); top: calc((191 - 100) / 128 * 100%); width: calc(35 / 172 * 100%); }
/* The small farmer turns: 8 views of her ring, 320 ms each (as her E24 turn). */
.turn { position: absolute; left: calc((31 - 26) / 172 * 100%); top: calc((162 - 100) / 128 * 100%); width: calc(35 / 172 * 100%); height: calc(40 / 128 * 100%); overflow: hidden; }
.turn img { position: static; width: 800%; height: 100%; animation: turn 2.56s steps(8) infinite; }
@keyframes turn { to { transform: translateX(-100%); } }
/* Lines out of the picture to plain pink labels. */
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* No stroke colour here: each line's stroke is its own gradient (page.js). It pops where it points
   (Hana, Dec 6): deep pink at the dot on the white beside the art, light pink at the label. */
.lines line { stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lines .s0 { stop-color: var(--hot); }
.lines .s1 { stop-color: #ffa8d0; }
.lines circle { fill: var(--hot); }
.lbl { position: absolute; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2)); }
.lbl b { display: block; padding: .5em .66em .43em; font: 400 clamp(12px, 2.8cqw, 18px)/1 "Pirkkala", system-ui, sans-serif; color: #fff; white-space: nowrap; background: var(--hot); clip-path: var(--px7); }
.l-assets { left: calc((78 - 26) / 172 * 100%); top: calc((116 - 100) / 128 * 100%); transform: translate(-50%, -100%); }
.l-character { left: calc((168 - 26) / 172 * 100%); top: calc((113 - 100) / 128 * 100%); transform: translate(-50%, -100%); }
.l-tiles { left: calc((182 - 26) / 172 * 100%); top: calc((210 - 100) / 128 * 100%); transform: translate(-50%, 0); }
.l-animation { left: calc((46 - 26) / 172 * 100%); top: calc((140 - 100) / 128 * 100%); transform: translate(-50%, -100%); }
@media (prefers-reduced-motion: reduce) { .isle, .turn img { animation: none; } }

/* Under the picture on a PC: Hanapix says one line. */
.under { flex: none; display: flex; align-items: flex-end; gap: 13px; margin: 12px 0 0; }
.emo { flex: none; width: 77px; height: 84px; }
.chat { position: relative; isolation: isolate; max-width: 25em; margin: 0 0 20px; padding: 11px 16px 12px; font-size: 14.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.chat::before, .chat::after { content: ""; position: absolute; z-index: -1; background: #fff; }
.chat::before { top: 0; right: 0; bottom: 0; left: 0; clip-path: var(--px12); }
.chat::after { left: -6px; bottom: 15px; width: 7px; height: 9px; clip-path: polygon(100% 0, 100% 100%, 50% 100%, 50% 66.67%, 0 66.67%, 0 33.33%, 50% 33.33%, 50% 0); }
.wave { margin-left: auto; }

/* Right: the pink block with one white sheet. */
.right { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 56px 28px 40px; background: var(--pink); }
.right .d1 { right: 9%; top: 26px; background: #fff; } .right .d2 { left: 6%; top: 15%; background: var(--ink2); }
.right .d3 { right: 5%; bottom: 17%; background: var(--sun); } .right .d4 { left: 30%; bottom: 20px; background: #fff; }
.sheetbox { position: relative; z-index: 2; width: 100%; max-width: 470px; margin: 0 auto; }
.sheet { padding: 22px 22px 24px; background: #fff; border-radius: 18px; box-shadow: 0 12px 26px rgba(80, 0, 40, .25); container: sheet / inline-size; }
.stk.on-tr { right: 14px; bottom: 100%; margin-bottom: -9px; }
.stk.float { left: 26px; bottom: 22px; animation: bob 2.4s steps(1) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(-6px); } 75% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .stk { animation: none !important; } }

.sheet h2 { margin: 0 0 4px; font-size: 25px; line-height: 1.06; font-weight: 800; letter-spacing: -.04em; text-transform: lowercase; }
.sheet h2:focus { outline: none; }
.sub { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; letter-spacing: -.005em; color: var(--text); }
.soft { margin: 12px 0 0; font-size: 15px; line-height: 1.35; color: var(--text); }

/* One step per screen, with a thin progress line. */
.qtop { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin: 14px 0 0; }
.prog { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: #8a7f84; }
.track { height: 6px; margin: 4px 0 14px; background: var(--blush); }
.track i { display: block; width: 0; height: 100%; background: var(--pink); transition: width .25s; }
.sheet .qh { margin: 0 0 4px; font-size: 22px; text-transform: none; letter-spacing: -.035em; }

.sheet label, .sheet .lab { display: block; margin: 14px 0 6px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.sheet input, .sheet textarea { display: block; width: 100%; font: inherit; color: var(--ink2); background: #fff; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line); }
.sheet input { height: 45px; padding: 0 14px; }
.sheet textarea { padding: 11px 14px; line-height: 1.4; resize: vertical; min-height: 70px; }
.sheet input::placeholder, .sheet textarea::placeholder { color: #a8999f; }
.sheet .bad input, .sheet .bad textarea, .sheet .bad .opts { box-shadow: inset 0 0 0 2px #e8217a; border-radius: 12px; }
.sheet .bad .opts { box-shadow: none; }
.fmsg { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: #b0154f; }

.pill, .opt { position: relative; isolation: isolate; display: inline-block; font: inherit; text-align: center; text-decoration: none; background: none; border: 0; cursor: pointer; }
.pill::before, .opt::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: var(--fill); }
.pill { --fill: var(--hot); padding: 13px 28px 14px; font-weight: 700; letter-spacing: -.01em; text-transform: lowercase; color: #fff; filter: drop-shadow(0 4px 5px rgba(120, 0, 60, .22)); }
.pill::before { clip-path: var(--px16); }
.pill.quiet { --fill: #f3eef0; color: var(--ink2); filter: none; }
.pill[disabled] { opacity: .6; cursor: default; }
.opt { --fill: var(--blush); padding: 9px 15px 10px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.opt::before { clip-path: var(--px12); }
.opt[aria-pressed="true"] { --fill: var(--hot); color: #fff; filter: drop-shadow(0 4px 5px rgba(120, 0, 60, .22)); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.col { flex-direction: column; }
.opts.col .opt { width: 100%; padding: 13px 18px 14px; text-align: left; }
.pill:focus-visible, .opt:focus-visible, .sheet input:focus-visible, .sheet textarea:focus-visible, .linkish:focus-visible { outline: 3px solid rgba(232, 33, 122, .4); outline-offset: 2px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 0; }
.nav .pill:last-child { margin-left: auto; }
.linkish { padding: 6px 2px; font: inherit; font-size: 14.5px; font-weight: 600; color: #8a7f84; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.35; color: #7d7378; }
.msg { margin: 12px 0 0; padding: 9px 12px; font-size: 14px; color: #8a0d3f; background: #ffe6f0; border-radius: 12px; }
/* The spam check only shows itself when it needs the visitor to do something. */
.ts { margin: 0; }
.pg.ts-on .ts { margin: 10px 0 0; }

/* The last screen. */
.done { text-align: center; padding: 6px 0 0; }
.done .emo { display: block; margin: 0 auto 8px; }
.done .sub { max-width: 21em; margin: 0 auto; }
.done .linkish { margin: 14px 0 0; }

.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; margin: 0; padding: 10px 14px; font-size: 14px; text-align: center; color: #fff; background: var(--ink2); }

@supports not (width: 1cqw) {
  .pwrap { display: block; }
  .art { width: 100%; }
}

/* A PC window that is very short: the line under the picture goes first. */
@media (min-width: 701px) and (max-height: 540px) {
  .under { display: none; }
}

/* ---- Phone, and a tablet held upright: the picture on top, the sheet under it ---- */
@media (max-width: 700px), (orientation: portrait) and (max-width: 1000px) {
  .lay { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .left { position: relative; height: auto; padding: 10px 12px 12px; }
  .logo, .kick { font-size: 17px; }
  .pg h1 { margin: 10px 0 9px; font-size: 28px; letter-spacing: -.035em; }
  .pwrap { flex: none; display: block; container-type: inline-size; }
  .art { width: 100cqw; }
  .under, .stk.float, .right .dt { display: none; }
  .right { justify-content: flex-start; padding: 34px 12px 24px; }
  .sheet { padding: 16px 15px 18px; border-radius: 16px; }
  .stk.on-tr { right: 8px; width: 56px; height: 56px; margin-bottom: -6px; }
  .sheet h2 { font-size: 21px; }
  .sub { font-size: 14px; }
  .sheet .qh { font-size: 19px; }
  .opts.col { gap: 7px; }
  .opts.col .opt { padding: 12px 15px 13px; }
  .draft { bottom: 4px; }
}
@media (orientation: portrait) and (min-width: 701px) and (max-width: 1000px) {
  .left { padding: 16px 24px 18px; }
  .pg h1 { font-size: 40px; }
  .art { width: min(100cqw, 50vh * 172 / 128); margin: 0 auto; }
  .right { padding: 48px 24px 32px; }
}

/* After sending, the sheet's heading makes room for the thank you. */
.pg[data-step="done"] #sheet-title, .pg[data-step="done"] .sheet > .sub { display: none; }
.field { margin: 0; }

/* References: the picture picker. */
.hint { margin: -2px 0 8px; font-size: 13.5px; line-height: 1.35; color: #7d7378; }
.vh { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.pic { position: relative; display: block; width: 96px; }
.pic img { display: block; width: 96px; height: 72px; object-fit: cover; background: var(--blush); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.picx { display: block; width: 100%; padding: 4px 0 0; font: inherit; font-size: 13px; font-weight: 600; color: #8a7f84; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.sheet label.addpic { display: inline-block; margin: 0; padding: 10px 20px 11px; font-size: 15px; }
.addpic:focus-within, .vh:focus-visible + .addpic { outline: 3px solid rgba(232, 33, 122, .4); outline-offset: 2px; }
