/* Ink. — everything after the sheet. The page follows one line of writing: written, taped, kept (above), then set on a
   photograph (the small picture opens to the whole screen), then a wall of sheets set the same way, then a blank sheet. */

/* the corner words turn light while a photograph is behind them */
.hc.tl, .hc.tr { transition: color .5s ease; }
html.on-photo .hc.tl, html.on-photo .hc.tr { color: rgba(244, 242, 236, .78); }

/* a poster: the real app, held in a frame */
.piece { margin: 0; position: relative; }
.poster { position: absolute; inset: 0; overflow: hidden; background: #1b1b1a; }
.poster iframe { pointer-events: auto; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- the small picture opens ---------- */
.grow { position: relative; z-index: 6; height: calc(100svh + 250vh); margin-top: -100svh; pointer-events: none; }
.grow .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; clip-path: inset(var(--ct, 40%) var(--cr, 2%) var(--cb, 40%) var(--cl, 88%)); opacity: var(--on, 0); will-change: clip-path; }
.grow.open .pin { pointer-events: auto; }
.grow .stage { position: absolute; inset: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1)); will-change: transform; }
.grow .st { position: absolute; z-index: 2; margin: 0; font-size: 11px; line-height: 1.7; letter-spacing: .08em; color: rgba(244, 242, 236, .82); opacity: var(--t, 0); pointer-events: none; }
.grow .st.bl { left: calc(100vw / 48 + 4px); bottom: calc(100vw / 48 + 2px); }
/* a fine grid over the picture: forty-eight columns of square cells (the wall's twelve, each cut in four), drawn faintly; every fourth line a little firmer.
   The line that is set on the picture keeps to it — one letter to a cell */
.grow .lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--t, 0); --c: calc(100vw / 48);
  background-image: linear-gradient(to right, rgba(244,242,236,.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(244,242,236,.13) 1px, transparent 1px),
    linear-gradient(to right, rgba(244,242,236,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(244,242,236,.055) 1px, transparent 1px);
  background-size: calc(var(--c) * 4) 100%, 100% calc(var(--c) * 4), var(--c) 100%, 100% var(--c); }
/* the same grid comes up on a piece of the wall while the pointer is over it (when its words can be moved) */
.wall .poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; --c: calc(var(--u) / 4);
  background-image: linear-gradient(to right, rgba(244,242,236,.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(244,242,236,.09) 1px, transparent 1px);
  background-size: var(--c) 100%, 100% var(--c); }
/* no grid over the pictures (removed 2026-11-20) */
.grow .lines, .wall .poster::after { display: none; }
html.growing .hc.mr { visibility: hidden; }

/* ---------- the wall: twelve columns of square modules; the pieces take different numbers of them and leave some empty ---------- */
html { overflow-x: clip; }
.wall { --u: calc(100vw / 12);   /* flow.js sets it in px from the wall's real width */
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--u); gap: 0; padding: 24vh 0 0; }
.wall .piece { grid-column: var(--c); grid-row: var(--r); }
.wall .poster { opacity: 0; transition: opacity 1.4s ease; }
.wall .piece.in .poster { opacity: 1; }
.wall figcaption { position: absolute; left: 0; top: calc(100% + 8px); display: flex; gap: 10px; white-space: nowrap; font-size: 8.5px; line-height: 1.6; letter-spacing: .12em; color: var(--dim);
  opacity: 0; transition: opacity 1.2s ease .9s; }
.wall .piece.in figcaption { opacity: 1; }
/* a caption sits where its picture leaves room: under it, over it, or running down its side */
.wall figcaption { left: 10px; }
.wall .cap-below-r { left: auto; right: 10px; }
.wall .cap-above-r { top: auto; bottom: calc(100% + 8px); left: auto; right: 10px; }
.wall .cap-left { writing-mode: vertical-rl; left: auto; right: calc(100% + 7px); top: 10px; }
.wall .cap-above { top: auto; bottom: calc(100% + 8px); }
.wall .cap-side, .wall .cap-side-b { writing-mode: vertical-rl; left: calc(100% + 7px); top: 10px; }
.wall .cap-side-b { top: auto; bottom: 10px; }
.wall figcaption .who { color: var(--ink); }

/* ---------- the paper turns to ink ---------- */
.dusk { position: relative; height: 150vh; margin-top: 4vh; }
.dusk canvas { position: sticky; top: 0; display: block; width: 100%; height: 100svh; pointer-events: none; }

/* ---------- the foot, on ink: two panels of properties, as the app's own panels set them, and one line of small print ---------- */
.colophon { --u: calc(100vw / 12); position: relative; background: var(--ink); color: color-mix(in srgb, var(--paper) 46%, transparent); padding: 6vh 0 calc(var(--u) * .5);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: calc(var(--u) * 1.2); font-size: 12px; line-height: 1; letter-spacing: .06em; }
.colophon .p1 { grid-column: 2 / 6; } .colophon .p2 { grid-column: 7 / 12; }
.colophon .ph { margin: 0 0 26px; color: color-mix(in srgb, var(--paper) 46%, transparent); }
.colophon .pr { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; column-gap: 1.2em; height: 38px; }
.colophon .v { grid-column: 2 / 4; display: flex; flex-wrap: nowrap; gap: 1.5em; white-space: nowrap; }
.colophon b { font-weight: 400; } .colophon b.on, .colophon .n, .colophon .c1 { color: var(--paper); }
.colophon .n { min-width: 4.6em; text-align: right; font-variant-numeric: tabular-nums; }
.colophon .bar { position: relative; height: 13px; background: color-mix(in srgb, var(--paper) 13%, transparent); }
.colophon .bar i { position: absolute; left: 0; top: -1px; bottom: -1px; width: calc(var(--v) * 100%); background: #fbfbf9; transform-origin: left; scale: 0 1; transition: scale 1.1s cubic-bezier(.45,.05,.2,1);
  clip-path: polygon(0 6%, 96% 0, 100% 10%, 98% 46%, 100% 92%, 97% 100%, 0 96%); }
.colophon.in .bar i { scale: 1 1; }
.colophon .pr:nth-child(3) .bar i { transition-delay: .08s; } .colophon .pr:nth-child(4) .bar i { transition-delay: .16s; } .colophon .pr:nth-child(5) .bar i { transition-delay: .24s; } .colophon .pr:nth-child(6) .bar i { transition-delay: .32s; }
.colophon .pr:nth-child(9) .bar i { transition-delay: .4s; }
.colophon .fine { grid-column: 2 / 12; display: flex; align-items: flex-end; gap: 2.4em; font-size: 11px; }
.colophon .fine a { color: inherit; transition: color .2s ease; } .colophon .fine a:hover { color: var(--paper); }
.colophon .cm { display: block; width: 58px; aspect-ratio: 360 / 179; margin-right: auto; background: var(--paper); -webkit-mask: url(ink-logo.png) left bottom / contain no-repeat; mask: url(ink-logo.png) left bottom / contain no-repeat; }

/* ---------- narrow screens: one column, each piece at its own proportion ---------- */
@media (max-width: 699px) {
  .grow { height: calc(100svh + 200vh); }
  .wall { display: block; padding-top: 16vh; }
  .wall .piece { aspect-ratio: 4 / 5; margin: 0 0 20vh; }
  .wall figcaption { writing-mode: horizontal-tb !important; left: 0 !important; right: auto !important; top: calc(100% + 10px) !important; bottom: auto !important; }
  .wall .piece:nth-child(3n + 2) { margin-left: 22vw; } .wall .piece:nth-child(3n) { margin-right: 30vw; }
  .dusk { height: 170vh; } .colophon { display: block; padding: 4vh var(--m) 5vh; } .colophon .panel { margin-bottom: 9vh; } .colophon .pr { grid-template-columns: 6.4em 1fr auto; } .colophon .v { flex-wrap: wrap; row-gap: 12px; gap: 1.1em; } .colophon .fine { flex-wrap: wrap; gap: 1.4em; }
}
@media (max-width: 599px) { .poster iframe { pointer-events: none; } .poster.live iframe { pointer-events: auto; } .poster { cursor: pointer; } }

/* the small picture is one picture now: nothing to drag */
.hc.mr { cursor: default !important; touch-action: auto !important; }

/* ---------- 2026-11-20: the panels were read as controls that did nothing. Now a small, quiet list of what Ink. handles, top right; no tape bars ---------- */
.colophon { min-height: 82svh; align-content: space-between; padding-top: 7vh; }
.colophon .p1 { grid-column: 6 / 9; } .colophon .p2 { grid-column: 9 / 12; }
.colophon .panel { font-size: 10px; letter-spacing: .05em; line-height: 1.5; }
.colophon .ph { margin: 0 0 12px; color: var(--paper); }
.colophon .pr { grid-template-columns: 6.6em 1fr; height: auto; padding: 2px 0; align-items: baseline; }
.colophon .pr .bar { display: none; }
.colophon .pr .n { grid-column: 2; min-width: 0; text-align: left; }
.colophon .v { grid-column: 2; flex-wrap: wrap; gap: 0 1em; white-space: normal; }
@media (max-width: 699px) { .colophon .panel { margin-bottom: 6vh; } .colophon .pr { grid-template-columns: 6.6em 1fr; } }

/* ---------- 2026-11-20: the wall had no room. Outer margins and a gutter between the pictures; rows stay square to the columns (flow.js) ---------- */
@media (min-width: 700px) { .wall { --gap: 2.6vw; gap: var(--gap); padding-left: 6vw; padding-right: 6vw; } }

/* ---------- 2026-11-20 b: the foot has more room; the list is lighter and finer ---------- */
.colophon { min-height: 118svh; padding-top: 22vh; padding-bottom: 7vh; }
.colophon .panel { font-size: 9.5px; font-weight: 300; letter-spacing: .09em; line-height: 1.5; color: color-mix(in srgb, var(--paper) 34%, transparent); }
.colophon .ph { font-weight: 300; margin-bottom: 18px; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.colophon .pr { padding: 3.5px 0; grid-template-columns: 7.4em 1fr; }
.colophon .panel b.on, .colophon .panel .n { color: color-mix(in srgb, var(--paper) 82%, transparent); font-weight: 300; }
.colophon .fine { font-weight: 300; }

/* ---------- 2026-11-20 b: the wall off the grid. Twenty-four fine columns, no gutter; each picture keeps its own proportion and
   sits where it likes, with air around it (rows are only where a piece starts) ---------- */
@media (min-width: 700px) {
  .wall { --gap: 0px; gap: 0; grid-template-columns: repeat(24, minmax(0, 1fr)); padding-left: 5vw; padding-right: 5vw; }
  .wall .piece { aspect-ratio: var(--a); align-self: start; }
}

/* ---------- 2026-11-20 c: tempo after union-tec.jp — one set of eases, short reveals that open (not fade), a little scale and drift on the wall ---------- */
:root { --e0: cubic-bezier(.26, .06, 0, 1); --e1: cubic-bezier(.18, .06, .23, 1); --e2: cubic-bezier(.43, .05, .17, 1); --e3: cubic-bezier(.47, .16, .24, 1); }
@media (prefers-reduced-motion: no-preference) {
  .wall .poster { opacity: 1; clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--e0); }
  .wall .piece.in .poster { clip-path: inset(0 0 0 0); }
  .wall .poster > .screen, .wall .poster > img { scale: 1.14; transition: scale 1.7s var(--e0); }
  .wall .piece.in .poster > .screen, .wall .piece.in .poster > img { scale: 1; }
  .wall .piece { will-change: transform; }
  .wall figcaption { opacity: 1; overflow: hidden; transition: none; }
  .wall figcaption > span { display: inline-block; translate: 0 110%; transition: translate .8s var(--e2); }
  .wall figcaption > span + span { transition-delay: .08s; }
  .wall .piece.in figcaption > span { translate: 0 0; transition-delay: .55s; }
  .wall .piece.in figcaption > span + span { transition-delay: .63s; }
  .colophon .panel > * { opacity: 0; translate: 0 60%; transition: opacity .3s var(--e3), translate .5s var(--e1); }
  .colophon.in .panel > * { opacity: 1; translate: 0 0; transition-delay: calc(var(--i, 0) * 45ms); }
}
/* the dunes open from a square to the whole width as they come up (flow.js sets the clip each frame) */
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) { .wall .piece.widen .poster { transition: none; } .wall .piece.widen figcaption { left: calc(var(--wx, 0px) + 10px); } }
/* the squish when the pictures move round: pulled sideways, overshoots, settles */
@keyframes goo { 0% { transform: none; } 22% { transform: scale(.955, 1.025) skewX(calc(var(--d) * -5deg)) translateX(calc(var(--d) * -1.2%)); }
  48% { transform: scale(1.025, .985) skewX(calc(var(--d) * 2.5deg)) translateX(calc(var(--d) * .6%)); } 70% { transform: scale(.995, 1.004) skewX(calc(var(--d) * -.8deg)); } 100% { transform: none; } }
.wall .poster.goo, .grow .poster.goo { animation: goo .86s cubic-bezier(.26, .06, 0, 1) both; transform-origin: 50% 60%; }

/* ---------- the film: the app at work, between the wall and the ink ---------- */
.film { padding: 26vh 5vw 8vh; display: flex; justify-content: center; }
.film .piece { width: min(78vw, 1500px); aspect-ratio: 1760 / 1052; }
.film .poster { background: var(--paper); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film figcaption { position: absolute; left: 0; top: calc(100% + 10px); display: flex; gap: 10px; font-size: 8.5px; letter-spacing: .12em; color: var(--dim); }
.film figcaption .who { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .film .poster { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--e0); } .film .piece.in .poster { clip-path: inset(0); }
  .film video { scale: 1.1; transition: scale 1.7s var(--e0); } .film .piece.in video { scale: 1; }
  .film figcaption { overflow: hidden; } .film figcaption > span { display: inline-block; translate: 0 110%; transition: translate .8s var(--e2) .55s; } .film .piece.in figcaption > span { translate: 0 0; }
}
@media (max-width: 699px) { .film { padding: 12vh var(--m) 4vh; } .film .piece { width: 100%; } }
/* captions flush with the picture's edge */
.wall figcaption { left: 0; } .wall .cap-below-r, .wall .cap-above-r { left: auto; right: 0; } .wall .cap-left { top: 0; }
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) { .wall .piece.widen figcaption { left: var(--wx, 0px); } }
.wall .cap-side { top: 0; } .wall .cap-side-b { top: auto; bottom: 0; }
/* captions wait until their picture has opened */
@media (prefers-reduced-motion: no-preference) {
  .wall figcaption, .film figcaption { opacity: 0; transition: opacity .6s var(--e3) 1.05s; }
  .wall .piece.in figcaption, .film .piece.in figcaption { opacity: 1; }
}

/* the ink rises over the last big picture (the dunes) instead of out of the blank paper below it */
.dusk { margin-top: -95vh; z-index: 8; pointer-events: none; }
.wall { padding-bottom: 0; }
.film { padding: 18vh 5vw 4vh; }
@media (max-width: 699px) { .dusk { margin-top: -80vh; } }

/* the foot keeps the same side margin as the corners of the first screen (var(--m)), not a twelfth of the screen; the small print is smaller */
@media (min-width: 700px) {
  .colophon { padding-left: var(--m); padding-right: var(--m); }
  .colophon .fine { grid-column: 1 / -1; }
  .colophon .p1 { grid-column: 7 / 10; } .colophon .p2 { grid-column: 10 / 13; }
}
.colophon .fine { font-size: 8px; letter-spacing: .12em; gap: 2.6em; }
.colophon .cm { width: 46px; }
.colophon .soon { color: color-mix(in srgb, var(--paper) 46%, transparent); margin-left: .4em; }
/* the wall reaches the sides: the same margin as the corners */
@media (min-width: 700px) { .wall { padding-left: var(--m); padding-right: var(--m); } .film { padding-left: var(--m); padding-right: var(--m); } .film .piece { width: 100%; } }
/* the opening: the page starts on ink and the sand falls away (the end of the page, run backwards) */
.veil { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 50; pointer-events: none; }
html.opening body { background: var(--paper); }
/* the foot: the same air below as at its sides */
.colophon { padding-bottom: var(--m) !important; }
@media (prefers-reduced-motion: no-preference) { html.opening:not(.veiled)::before { content: ""; position: fixed; inset: 0; z-index: 51; background: var(--ink); } }

/* ---------- the index (after kei-inc.jp): a big picture on the left, the list on the right; the pointer on a line shows it ---------- */
.index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2vw; padding: 24vh var(--m) 0; align-items: start; }
.ix-pic { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #1b1b1a; margin-left: calc(-1 * var(--m)); }
.ix-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--e0), scale 1.6s var(--e0); }
.ix-pic img + img { opacity: 0; scale: 1.06; } .ix-pic.swap img + img { opacity: 1; scale: 1; }
.ix-list { padding-top: 0; }
.ix-h { display: grid; grid-template-columns: 9em 1fr 11em 3.5em; margin: 0 0 9vh; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 11px; letter-spacing: .04em; color: var(--ink); }
.ix-list ul { list-style: none; margin: 0; padding: 0; }
.ix-list li { position: relative; display: grid; grid-template-columns: 9em 1fr 11em 3.5em; align-items: baseline; padding: 7px 0; font-size: 12px; letter-spacing: .04em; color: color-mix(in srgb, var(--ink) 34%, transparent); cursor: pointer; transition: color .35s var(--e1); }
.ix-list li .head { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 2em; }
.ix-list li .yr { font-size: 10px; font-variant-numeric: tabular-nums; }
.ix-list li.on, .ix-list li:hover { color: var(--ink); }
.ix-list li .th { position: absolute; right: -0.5em; top: 50%; width: 64px; aspect-ratio: 4 / 5; translate: 100% -50%; background: center / cover; opacity: 0; clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--e0), opacity .3s; pointer-events: none; }
.ix-list li.on .th { opacity: 1; clip-path: inset(0); }
.ix-list { padding-right: 80px; }
@media (max-width: 699px) { .index { display: block; padding-top: 14vh; } .ix-pic { display: none; } .ix-h, .ix-list li { grid-template-columns: 7em 1fr 3em; } .ix-h span:nth-child(3), .ix-list li .what { display: none; } .ix-list { padding-right: 0; } .ix-list li .th { display: none; } }
.ix-h, .ix-list li { grid-template-columns: 9em 1fr 13em 3.5em; } .ix-list li .what { white-space: nowrap; }
.ix-pic img { object-position: 30% 50%; }
/* the film as a small piece of the wall */
.wall .filmp .poster { background: var(--paper); }
.wall .filmp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 699px) { .wall .filmp { aspect-ratio: 1760 / 1052 !important; margin-right: 0 !important; margin-left: 0 !important; } }

/* ---------- the pictures in the app: only pictures, small, each at its own proportion, rows filling the width ---------- */
.index { display: block !important; padding: 26vh var(--m) 0 !important; }
.index .pics { display: flex; flex-wrap: wrap; gap: 6px; }
.index .pics img { height: clamp(46px, 5.4vw, 92px); width: auto; flex: var(--r) 1 auto; aspect-ratio: var(--r); object-fit: cover; display: block; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.index .pics::after { content: ""; flex: 10 1 auto; }
.index .pics-n { margin: 14px 0 0; font-size: 8px; letter-spacing: .12em; color: var(--dim); }
@media (prefers-reduced-motion: no-preference) {
  .index .pics img { opacity: 0; translate: 0 14px; transition: opacity .6s var(--e3), translate .9s var(--e0); transition-delay: calc(var(--i, 0) * 12ms); }
  .index.in .pics img { opacity: 1; translate: 0 0; }
}
@media (max-width: 699px) { .index .pics img { height: 54px; } }

/* the film sits small in the foot, at the left, level with the list of what the app does */
.colophon .footfilm { grid-column: 1 / 6; grid-row: 1; align-self: start; position: relative; margin: 0; aspect-ratio: 1760 / 1052; }
.colophon .footfilm .poster { position: absolute; inset: 0; overflow: hidden; background: #2a2a28; clip-path: none; }
.colophon .footfilm video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1; }
.colophon .footfilm figcaption { position: absolute; left: 0; top: calc(100% + 10px); display: flex; gap: 10px; font-size: 8px; letter-spacing: .12em; color: color-mix(in srgb, var(--paper) 40%, transparent); opacity: 1; }
.colophon .footfilm figcaption .who { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.colophon .footfilm figcaption > span { translate: none !important; }
@media (min-width: 700px) { .colophon .p1, .colophon .p2 { grid-row: 1; } }
@media (max-width: 699px) { .colophon .footfilm { margin-bottom: 9vh; } }
/* the rolling digits */
.colophon .n { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.colophon .od { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: bottom; }
.colophon .od > span { display: flex; flex-direction: column; translate: 0 0; transition: translate 1.6s var(--e0); transition-delay: calc(.35s + var(--k) * 55ms); }
.colophon .od i { font-style: normal; height: 1.25em; }
.colophon.in .od > span { translate: 0 calc((var(--d) + 10) * -1.25em); }
.colophon .u { margin-left: .35em; color: color-mix(in srgb, var(--paper) 34%, transparent); }
/* the foot: three panels side by side, the first is about Ink. itself, its film small under it */
@media (min-width: 700px) { .colophon .p0 { grid-column: 1 / 5; grid-row: 1; } .colophon .p1 { grid-column: 6 / 9; } .colophon .p2 { grid-column: 9 / 13; } }
.colophon .p0 .footfilm { grid-column: auto; margin-top: 28px; width: 100%; }
.colophon .p0 .footfilm figcaption { position: static; margin-top: 8px; }
/* digits sit on the same line as the rest */
.colophon .n, .colophon .n .dot, .colophon .n .u { line-height: 1.25em; }
.colophon .od, .colophon .n .dot { vertical-align: top; height: 1.25em; display: inline-block; }
.colophon .n { align-items: flex-start; }
.colophon .p0 .footfilm { width: 58%; }
/* the wall's pictures no longer open from below: they come in with the same give as the swipe (drawn in the app) */
@media (prefers-reduced-motion: no-preference) { .wall .piece:not(.filmp) .poster { clip-path: none !important; transition: none; background: var(--paper); } .wall .piece:not(.filmp) .poster > .screen { scale: 1 !important; } }

/* the pictures in the app: one quiet strip, all at one height, drifting slowly sideways (it stops under the pointer) */
.index { padding: 26vh 0 0 !important; }
.index .pics { display: block; overflow: hidden; }
.index .pics .run { display: flex; gap: 1.2vw; width: max-content; animation: drift 260s linear infinite; }
.index .pics:hover .run { animation-play-state: paused; }
.index .pics img { height: 22vw; max-height: 300px; min-height: 140px; flex: none; width: auto; opacity: 1 !important; translate: none !important; }
.index .pics::after { content: none; }
.index .pics-n { padding: 0 var(--m); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .index .pics .run { animation: none; } .index .pics { overflow-x: auto; } }
/* the wall goes right to the edges of the screen */
@media (min-width: 700px) { .wall { padding-left: 10px !important; padding-right: 10px !important; } }
/* the film in the foot: small, and taken into the ink (its paper turns to the foot's own dark) */
.colophon .p0 .footfilm { width: 40%; margin-top: 34px; }
.colophon .footfilm .poster { background: transparent; }
.colophon .footfilm video { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.96); mix-blend-mode: lighten; opacity: .85; }

/* ---------- the opening line, written on the ink; tape over たぶん; it closes up; then the sand falls away ---------- */
.veil-line { position: fixed; z-index: 52; left: 0; right: 0; top: 50%; translate: 0 -50%; margin: 0; text-align: center; font-size: 13px; letter-spacing: .14em; font-weight: 300; color: var(--paper); pointer-events: none; transition: opacity .9s var(--e3); }
.veil-line.out { opacity: 0; }
.veil-line .tp { position: relative; display: inline-block; vertical-align: bottom; white-space: nowrap; max-width: 4em; overflow: visible; transition: max-width .8s cubic-bezier(.4,0,.2,1), opacity .5s ease; }
.veil-line .tp .bar { position: absolute; left: -.2em; right: -.2em; top: .1em; bottom: .1em; background: #efeeea; transform-origin: left; scale: 0 1; rotate: -1deg; transition: scale .5s cubic-bezier(.3,.7,.2,1), rotate .5s; clip-path: polygon(0 6%, 96% 0, 100% 12%, 98% 50%, 100% 90%, 97% 100%, 0 95%); }
.veil-line .tp.on .bar { scale: 1 1; rotate: 0deg; }
.veil-line .tp.gone { max-width: 0; opacity: 0; }
/* the line no longer waits under the mark on the paper */
.hero .typing { visibility: hidden; }

/* ---------- the foot: the information gathers on the right; the film sits small at the bottom left, above the mark ---------- */
@media (min-width: 700px) {
  .colophon .p0 { grid-column: 5 / 7; } .colophon .p1 { grid-column: 7 / 10; } .colophon .p2 { grid-column: 10 / 13; }
  .colophon .p0 .footfilm { position: absolute; left: var(--m); bottom: calc(var(--m) + 64px); width: 22vw; margin: 0; }
}
.colophon .p0 .footfilm figcaption { display: none; }
/* a phone's poster: the picture, and the words over it */
.poster .screen > img.ph, .poster .screen > img.pw { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .screen > img.pw { z-index: 2; }
/* the ink starts later: the sand stays low over the dunes for longer */
.dusk { margin-top: -40vh !important; }
@media (max-width: 699px) { .dusk { margin-top: -35vh !important; } }
/* numbers: set close, light, figures of even width (no tracking pulling the digits apart) */
.colophon .n { letter-spacing: -.01em; font-weight: 300; font-feature-settings: "tnum" 1, "ss01" 1, "cv11" 1; }
.colophon .n .u { letter-spacing: .06em; margin-left: .45em; }
/* the three panels gathered tighter to the right */
@media (min-width: 700px) {
  .colophon { column-gap: 0; }
  .colophon .p0 { grid-column: 6 / 8; } .colophon .p1 { grid-column: 8 / 10; } .colophon .p2 { grid-column: 10 / 13; }
  .colophon .pr { grid-template-columns: 6.2em 1fr; }
}
/* the opening line stays on the page (under the mark), ink on paper once the sand has gone */
.veil-line { position: absolute; translate: 0 -50%; transition: color 1.6s var(--e3) .6s; }
.veil-line.stay { color: var(--ink); z-index: 5; }
/* the film in the foot: its own colours, quiet */
.colophon .footfilm video { filter: saturate(.75) brightness(.8) !important; mix-blend-mode: normal !important; opacity: .8 !important; }
/* the mark and the small print sit with the panels on the right, on the same grid */
@media (min-width: 700px) { .colophon .fine { grid-column: 6 / 13; } }
/* the small picture's swipe layer */
.hc.mr img.mg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hc.mr { overflow: hidden; }
html.growing .hc.ml { visibility: hidden; }
.veil-line .tp:not(.gone) { cursor: pointer; }
/* the film as it is: no inversion, no blending, no dimming */
.colophon .footfilm video { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
.colophon .footfilm .poster { background: #1c1c1b !important; }
/* the mark sits under the film, on its left edge */
@media (min-width: 700px) { .colophon .fine { grid-column: 1 / -1 !important; } }
.veil-line.stay .tp .bar { background: #fbfbf9; filter: drop-shadow(0 .6px .8px rgba(0,0,0,.18)); }
/* 清書 stays until the opening picture has covered it (the picture passes over it), then it is gone */
html.growing .hc.ml { visibility: visible; }
html.covered .hc.ml { visibility: hidden; }
/* the wall's pictures: shown straight away, opening from below as before (the paper-to-picture reveal is gone) */
@media (prefers-reduced-motion: no-preference) { .wall .piece:not(.filmp) .poster { clip-path: inset(100% 0 0 0) !important; transition: clip-path 1.15s var(--e0) !important; } .wall .piece.in:not(.filmp) .poster { clip-path: inset(0) !important; } }
/* the film sits on the foot's bottom line, its lower edge level with the mark and the small print; the mark follows it */
@media (min-width: 700px) {
  .colophon .p0 .footfilm { bottom: var(--m) !important; left: var(--m) !important; width: 22vw !important; }
  .colophon .fine { padding-left: calc(22vw + 2.4vw); align-items: flex-end; }
}
.veil-line.stay .tp { pointer-events: auto; cursor: pointer; padding: 6px 0; margin: -6px 0; }
/* the tape keeps its thin strip: the larger tap area is an invisible layer, not padding */
.veil-line.stay .tp { padding: 0 !important; margin: 0 !important; }
.veil-line.stay .tp::after { content: ""; position: absolute; left: -.3em; right: -.3em; top: -10px; bottom: -10px; }
.veil-line { font-family: "dnp-shuei-gothic-gin-std", var(--type); font-weight: 400; }

/* the line on the full picture: small */
.grow .st { font-size: 8px !important; letter-spacing: .12em; }

/* the small picture as it is: no darkening (it used to carry words), square corners like the wall */
.hc.mr::after { content: none !important; } .hc.mr { border-radius: 0 !important; }
/* the language switch, beside the date */
.hc.tr .lang { margin-left: 1.6em; color: inherit; text-decoration: none; pointer-events: auto; transition: color .2s; }
.hc.tr .lang:hover { color: var(--ink); }
.hc.tr { pointer-events: auto; }
/* the small picture is one size, whatever the window */
@media (min-width: 600px) { .hc.mr { width: 150px !important; } }
.hc.tr #hcount { margin-right: 1.6em; font-variant-numeric: tabular-nums; }
/* the mark under the film: its left edge on the second column (Write's), as before */
@media (min-width: 700px) { .colophon .fine { padding-left: 0 !important; display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); } .colophon .fine .cm { grid-column: 8; } .colophon .fine > :not(.cm) { grid-row: 1; } .colophon .fine .c1 { grid-column: 9 / 11; } .colophon .fine > a:not(.cm), .colophon .fine > span:not(.c1) { justify-self: end; } }
/* phone: a simple reading of the page (Ink. is for iPad and Mac) */
@media (max-width: 699px) {
  .colophon .footfilm { display: none !important; }
  .wall .piece { margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 12vh !important; aspect-ratio: auto !important; }
  .wall .piece .poster { position: relative !important; aspect-ratio: var(--a, 4 / 3); clip-path: none !important; }
  .wall figcaption { position: static !important; margin-top: 8px; writing-mode: horizontal-tb !important; }
  .colophon { min-height: 0 !important; padding: 12vh var(--m) var(--m) !important; }
  .colophon .fine { display: flex !important; flex-wrap: wrap; gap: 1em 1.6em; padding-left: 0 !important; }
}
.hc.tr .soon-sp { display: none; }
@media (max-width: 699px) {
  .hc.tr #hcount, .hc.tr #hdate { display: none; }
  .hc.tr .soon-sp { display: inline; }
  .hc.tr .lang { margin-left: 1em; }
}
/* the small picture: a window onto the picture at full-screen size (the same crop the full picture opens to) */
@media (min-width: 600px) {
  .hc.mr { clip-path: inset(0); }
  .hc.mr img.mg { position: fixed !important; left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; inset: auto !important; object-fit: cover; }
}
/* the tape is paper tape: the word under it still shows through, faintly */
.veil-line .tp .bar, .veil-line.stay .tp .bar { background: rgba(251, 251, 249, .72) !important; }
.veil-line .tp .w { position: relative; z-index: 0; }
@media (min-width: 600px) { .hc.mr img.mg { position: absolute !important; inset: auto !important; } }
/* the release note sits in the header on every screen */
.hc.tr .soon-sp { display: inline !important; margin-right: 1.6em; }
/* the tape covers its own word only */
.veil-line .tp .bar { left: -.08em !important; right: -.08em !important; }
.veil-line .tp { margin: 0 .12em !important; }
/* the small picture comes in as a plain fade (the clip reveal could stall) */
.hero .hc.mr { clip-path: none !important; opacity: 0; transition: opacity 1s var(--e3) .4s !important; }
html.arrived .hero .hc.mr { opacity: 1; }
html.growing .hero .hc.mr { visibility: hidden; }

/* ---------- the foot, rebuilt on one grid: a label at the left, three panels on the right;
   bottom row: the film at the left, the mark on the panels' first column, the small print to the right ---------- */
@media (min-width: 700px) {
  .colophon { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; grid-template-rows: auto 1fr auto; column-gap: 1.6vw !important; row-gap: 14vh !important; min-height: 100svh !important; padding: 18vh var(--m) var(--m) !important; }
  .colophon .props { grid-column: 1 / 4; grid-row: 1; margin: 0; font-size: 9.5px; font-weight: 300; letter-spacing: .09em; color: color-mix(in srgb, var(--paper) 78%, transparent); }
  .colophon .p0 { grid-column: 6 / 8 !important; grid-row: 1 !important; } .colophon .p1 { grid-column: 8 / 10 !important; grid-row: 1 !important; } .colophon .p2 { grid-column: 10 / 13 !important; grid-row: 1 !important; }
  .colophon .footfilm { position: relative !important; left: auto !important; bottom: auto !important; grid-column: 1 / 5 !important; grid-row: 3 !important; width: 100% !important; align-self: end; margin: 0 !important; }
  .colophon .fine { grid-column: 6 / 13 !important; grid-row: 3 !important; align-self: end; display: flex !important; align-items: flex-end; gap: 2.4em; padding: 0 !important; }
  .colophon .fine .cm { margin-right: auto !important; grid-column: auto !important; }
  .colophon .fine > * { justify-self: auto !important; }
}
@media (max-width: 699px) { .colophon .props { display: none; } }
.colophon .footfilm figcaption { display: none !important; }
/* the tape is opaque again; a tap (or the pointer) lifts it to peek at the word under it */
.veil-line .tp .bar, .veil-line.stay .tp .bar { background: #fbfbf9 !important; transition: opacity .3s ease, scale .5s cubic-bezier(.3,.7,.2,1), rotate .5s; }
.veil-line .tp { max-width: 12em !important; }
.veil-line .tp:hover .bar, .veil-line .tp.peek .bar { opacity: .25; }
/* the small picture shows the whole picture again (the window crop was a blurry close-up) */
@media (min-width: 600px) { .hc.mr img.mg { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; } }
.hc.tr .soon-sp .soon { opacity: .6; margin-left: .4em; }
@media (min-width: 600px) { .hc.mr img.mg { position: absolute !important; inset: auto !important; object-fit: cover; } }
@media (min-width: 700px) { .colophon .footfilm { grid-column: 1 / 4 !important; } }
/* the release note reads in ink (over pictures and the dark foot it turns light with the other corner words) */
.hc.tr .soon-sp { color: var(--ink); }
.hc.tr .soon-sp .soon { opacity: 1; color: var(--ink); }
html.on-photo .hc.tr .soon-sp, html.on-photo .hc.tr .soon-sp .soon { color: #f4f2ec; }
/* a few seconds after the page opens, the release note is filled in ink: the fill runs across it like a stroke of the pen */
.hc.tr .soon-sp { position: relative; display: inline-block; padding: 3px 7px; margin-right: 1.2em !important; transition: color .35s ease .25s; }
.hc.tr .soon-sp::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform-origin: left; scale: 0 1; transition: scale .7s cubic-bezier(.65, 0, .15, 1); }
.hc.tr .soon-sp.filled::before { scale: 1 1; }
.hc.tr .soon-sp.filled, .hc.tr .soon-sp.filled .soon { color: var(--paper) !important; }
html.on-photo .hc.tr .soon-sp.filled::before { background: #f4f2ec; }
html.on-photo .hc.tr .soon-sp.filled, html.on-photo .hc.tr .soon-sp.filled .soon { color: #1c1c1b !important; }
.hc.tr { isolation: isolate; }
/* the release note: at full strength (the corner words are dimmed by their own colour, not by opacity) */
.hc.tr .soon-sp.filled::before { background: var(--ink); }
/* the release note: no box. Its letters start pale and fill with ink, left to right, a few seconds after the page opens */
.hc.tr .soon-sp { padding: 0 !important; color: var(--dim) !important; background: linear-gradient(90deg, var(--ink) 0 50%, color-mix(in srgb, var(--ink) 38%, transparent) 50% 100%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position 1.1s cubic-bezier(.65, 0, .15, 1); }
.hc.tr .soon-sp::before { content: none !important; }
.hc.tr .soon-sp .soon { -webkit-text-fill-color: transparent; color: inherit !important; }
.hc.tr .soon-sp.filled { background-position: 0 0; }
html.on-photo .hc.tr .soon-sp { background-image: linear-gradient(90deg, #f4f2ec 0 50%, rgba(244,242,236,.45) 50% 100%); }
/* the full picture's words can be picked up once it is open */
.grow.open .poster, .grow.open .poster iframe { pointer-events: auto; }
/* the corner reads as the app's: 11.20  2行  28字, set close */
.hc.tr #hdate { margin-right: 1.1em; }
.hc.tr #hcount { margin-right: 0 !important; white-space: pre; }
.hc.tr .lang { margin-left: 2.2em !important; }
/* the big mark is gone from the first screen: the line alone stands in the middle (the mark still runs underneath for its timing) */
.hero #mark { visibility: hidden !important; }
.veil-line { font-size: 15px; letter-spacing: .16em; }
/* the first screen's line, set vertically in three columns, in the middle */
html[lang="ja"] .veil-line { writing-mode: vertical-rl; white-space: pre; left: 50%; right: auto; top: 50%; translate: -50% -50%; text-align: start; font-size: 16px; letter-spacing: .3em; line-height: 2.4; }
html[lang="ja"] .veil-line .tp { max-width: none !important; max-height: 12em; margin: .12em 0 !important; transition: max-height .7s cubic-bezier(.4,0,.2,1), opacity .5s ease; }
html[lang="ja"] .veil-line .tp .bar { left: .1em !important; right: .1em !important; top: -.08em !important; bottom: -.08em !important; transform-origin: top; scale: 1 0; }
html[lang="ja"] .veil-line .tp.on .bar { scale: 1 1; }
html[lang="ja"] .veil-line .tp.gone { max-width: none !important; max-height: 0; }
/* the vertical line: larger, and its tape a narrow strip down the one column (ragged at its two ends, like torn tape) */
html[lang="ja"] .veil-line { font-size: 22px; letter-spacing: .32em; line-height: 2.3; }
html[lang="ja"] .veil-line .tp .bar { left: 50% !important; right: auto !important; width: 1.25em; translate: -50% 0; top: -.15em !important; bottom: -.05em !important;
  clip-path: polygon(8% 0, 35% 2%, 62% 0, 92% 1.5%, 100% 50%, 96% 98.5%, 70% 100%, 40% 98%, 10% 100%, 0 50%) !important; rotate: .4deg !important; }
/* the mark, small, at the top left (in place of the word) */
.hc.tl { font-size: 0 !important; width: 40px; aspect-ratio: 360 / 179; background: var(--ink); -webkit-mask: url(ink-logo.png) left center / contain no-repeat; mask: url(ink-logo.png) left center / contain no-repeat; }
html.on-photo .hc.tl { background: #f4f2ec; }
@media (min-width: 600px) { .hc.mr img.mg { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover; } }
/* a dictionary entry: the headword small, its own column, then the definition */
.veil-line .hw { font-size: .5em; letter-spacing: .2em; margin-left: 1.6em; opacity: .7; }
html[lang="en"] .veil-line .hw { margin: 0 1.2em 0 0; }
.grow .pin .gimg { position: absolute; z-index: 3; object-fit: cover; pointer-events: none; transition: opacity .35s ease; }
/* the headword: a small column of its own, to the right of the definition */
html[lang="ja"] .veil-line .hw { display: block; margin: 0 0 0 2.2em; font-size: .5em; }
.hc.tl.over { background: #f4f2ec !important; }
.hc.tr.over, .hc.tr.over * { color: #f4f2ec !important; }
.hc.tr.over .soon-sp { background-image: linear-gradient(90deg, #f4f2ec 0 50%, rgba(244,242,236,.45) 50% 100%) !important; }
.veil-line .rest { visibility: hidden; }
/* the vertical tape: the same strip as the sheet's tape (its torn edge turned on its side), drawn top to bottom */
html[lang="ja"] .veil-line .tp .bar { background: #fbfbf9 !important; filter: drop-shadow(.6px 0 .8px rgba(0,0,0,.18));
  clip-path: polygon(8% 0, 0 3%, 4% 97%, 0 100%, 30% 98%, 62% 100%, 100% 97%, 94% 4%, 100% 0, 60% 2%, 34% 0) !important;
  transform-origin: 50% 0 !important; scale: 1 0; rotate: .4deg !important; transition: scale .5s cubic-bezier(.45,.05,.2,1), opacity .3s ease !important; }
html[lang="ja"] .veil-line .tp.on .bar { scale: 1 1 !important; }
html[lang="ja"] .veil-line .tp:hover .bar, html[lang="ja"] .veil-line .tp.peek .bar { opacity: .25; }
/* in the foot, the header steps aside (the foot has its own mark and release note) */
.hc.tl, .hc.tr { transition: opacity .4s ease; }
html.at-foot .hc.tl, html.at-foot .hc.tr { opacity: 0 !important; pointer-events: none; }
/* the corner set tight, as in the app: 11.20 10行 208字 */
.hc.tr #hdate { margin-right: .9em !important; } .hc.tr #hcount { margin-left: 0 !important; word-spacing: -.2em; }
/* the header's spacing is set by each item alone (the old 18px flex gap doubled it) */
.hc.tr { gap: 0 !important; align-items: baseline; }
.hc.tr .soon-sp { font-weight: 500; }
/* 清書 reads clearly at rest */
.hc.ml { color: color-mix(in srgb, var(--ink) 68%, transparent) !important; } .hc.ml:hover, .hc.ml[aria-pressed="true"] { color: var(--ink) !important; }
/* the hero tape is drawn by the app's own tape (an SVG inside the bar): the bar itself is only its box, wiped in along the stroke */
.veil-line .tp .bar.drawn { background: none !important; clip-path: inset(0 100% 0 0) !important; scale: 1 1 !important; rotate: none !important; filter: drop-shadow(0 .3px .35px rgba(0,0,0,.06)) !important; transition: clip-path .55s cubic-bezier(.45,.05,.2,1), opacity .3s ease !important; overflow: visible; }
.veil-line .tp.on .bar.drawn { clip-path: inset(-8px -8px -8px -8px) !important; }
html[lang="ja"] .veil-line .tp .bar.drawn { clip-path: inset(0 0 100% 0) !important; }
html[lang="ja"] .veil-line .tp.on .bar.drawn { clip-path: inset(-8px -8px -8px -8px) !important; }
/* the vertical line as three blocks; on 清書 the taped line closes up and the other two come together */
html[lang="ja"] .veil-line .l { display: block; block-size: 2.3em; transition: block-size .7s cubic-bezier(.4,0,.2,1), opacity .4s ease; }
html[lang="ja"] .veil-line .tp, html[lang="ja"] .veil-line .tp.gone { max-height: none !important; opacity: 1; }
html[lang="ja"] .veil-line.cleaned .l.tl { block-size: 0; opacity: 0; overflow: hidden; }

/* ---------- tablets (touch, 700px and up): the desktop page, with two changes ---------- */
@media (min-width: 700px) { /* html.touch */
  /* the pictures do not take the finger: the page scrolls under it everywhere (a sideways swipe still moves the pictures round) */
  html.touch .poster iframe, html.touch .grow.open .poster iframe, html.touch .grow.open .pin { pointer-events: none !important; }
  /* the small picture waits at the right edge, a sliver showing; a touch brings it out */
  html.touch .hero .hc.mr, html.touch .hc.mr { translate: calc(100% + var(--m) - 26px) -50% !important; transition: translate .55s var(--e0), opacity 1s var(--e3) .4s !important; cursor: pointer; }
  html.touch .hc.mr.out { translate: 0 -50% !important; }
}
/* on a touch screen the statement sheet is for reading: a tap on it never brings the keyboard up (it scrolls with the page) */
/* (the sheet takes the finger again: its lines are read-only inside, see app/sheet.css html.readonly) */

/* ---------- the foot on a tablet-sized window (700–1100px): the three panels take the whole width under the label, set very small ---------- */
@media (min-width: 700px) and (max-width: 1100px) {
  .colophon { grid-template-rows: auto auto 1fr auto !important; row-gap: 5vh !important; padding-top: 14vh !important; }
  .colophon .props { grid-column: 1 / -1 !important; grid-row: 1 !important; }
  .colophon .p0 { grid-column: 1 / 5 !important; grid-row: 2 !important; } .colophon .p1 { grid-column: 5 / 9 !important; grid-row: 2 !important; } .colophon .p2 { grid-column: 9 / 13 !important; grid-row: 2 !important; }
  .colophon .panel, .colophon .props { font-size: 8px !important; letter-spacing: .06em !important; }
  .colophon .pr { grid-template-columns: 6em 1fr !important; padding: 2.5px 0 !important; }
  .colophon .v { flex-wrap: wrap !important; gap: 0 .8em !important; white-space: nowrap; }
  .colophon .footfilm { grid-row: 4 !important; grid-column: 1 / 5 !important; }
  .colophon .fine { grid-row: 4 !important; grid-column: 5 / 13 !important; font-size: 7.5px !important; gap: 1.6em !important; }
}

/* on a touch screen the opened picture holds for a shorter stretch, so the page moves on with fewer swipes */
@media (min-width: 700px) { html.touch .grow { height: calc(100svh + 185vh) !important; } }
/* the tape answers a tap only (no half-lifting under the pointer): lifted, the word shows; tapped again, the tape goes back on */
.veil-line .tp:hover .bar, html[lang="ja"] .veil-line .tp:hover .bar { opacity: 1 !important; }
.veil-line .hw { animation: hwin .9s var(--e3) both; }
@keyframes hwin { from { opacity: 0; } to { opacity: .7; } }

/* ---------- the foot on a tablet-sized window, again: the label at the left, the three groups gathered at the right, one under another ---------- */
@media (min-width: 700px) and (max-width: 1100px) {
  .colophon { grid-template-rows: auto auto auto 1fr auto !important; row-gap: 4.5vh !important; padding-top: 12vh !important; }
  .colophon .props { grid-column: 1 / 6 !important; grid-row: 1 !important; }
  .colophon .p0 { grid-column: 8 / 13 !important; grid-row: 1 !important; } .colophon .p1 { grid-column: 8 / 13 !important; grid-row: 2 !important; } .colophon .p2 { grid-column: 8 / 13 !important; grid-row: 3 !important; }
  .colophon .ph { margin-bottom: 10px !important; }
  .colophon .footfilm { grid-row: 5 !important; grid-column: 1 / 5 !important; }
  .colophon .fine { grid-row: 5 !important; grid-column: 8 / 13 !important; flex-wrap: wrap; row-gap: .8em; }
  .colophon .fine .cm { flex-basis: 100%; margin-right: 0 !important; margin-bottom: 1.2em; }
}
@media (min-width: 700px) and (max-width: 1100px) { .colophon .fine .cm { flex: none !important; width: 46px !important; margin-right: calc(100% - 46px) !important; margin-bottom: 1em !important; } }
/* the line's body sits in its own box beside the headword (in Japanese: the next columns to the left) */
.veil-line .bd { display: inline; } html[lang="ja"] .veil-line .bd { display: block; white-space: pre; }
/* a very small Apple mark before the platforms: this is an app, not a web page */
.hc.tr .ap { width: 8px; height: 8px; flex: none; align-self: center; margin-right: .55em; translate: 0 -.8px; fill: var(--ink); transition: fill .3s ease; }
html.on-photo .hc.tr .ap, .hc.tr.over .ap { fill: #f4f2ec; }
@media (max-width: 699px) { .hc.tr .ap { width: 7px; height: 7px; } }

/* ---------- the foot on a tablet-sized window, shorter: the label at the left; at the right two columns (Ink. over Write, and Set on a picture) ---------- */
@media (min-width: 700px) and (max-width: 1100px) {
  .colophon { grid-template-rows: auto auto 1fr auto !important; row-gap: 4vh !important; min-height: 0 !important; }
  .colophon .p0 { grid-column: 6 / 10 !important; grid-row: 1 !important; } .colophon .p1 { grid-column: 6 / 10 !important; grid-row: 2 !important; }
  .colophon .p2 { grid-column: 10 / 13 !important; grid-row: 1 / 3 !important; }
  .colophon .footfilm { grid-row: 4 !important; } .colophon .fine { grid-row: 4 !important; grid-column: 6 / 13 !important; }
  .colophon .pr { grid-template-columns: 5.4em 1fr !important; }
}
/* nothing shows under the foot: the page ends in ink (a frame that pads the page, as the staging artifact does, shows ink there too) */
html.at-foot, html.at-foot body { background: var(--ink); }
@media (min-width: 700px) and (max-width: 1100px) { .colophon .pr { grid-template-columns: 6.6em 1fr !important; } .colophon .k { white-space: nowrap; } }
/* on a touch screen, while the picture is opening over the sheet (and once it is open), the sheet underneath must not catch the finger:
   its width grip and its tapes sat invisibly under the picture and swallowed the scroll */
html.touch.opening-pic .sheet iframe { pointer-events: none !important; }
html.touch .grow, html.touch .grow * { touch-action: pan-y; }
/* on a touch screen every picture carries a clear sheet of the page's own over it: the finger meets the page, never the embedded frame
   (on iOS a frame can keep the scroll to itself even when told to let touches through) */
html.touch .poster { isolation: isolate; }
html.touch .poster::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: auto; touch-action: pan-y; background: transparent; }
html.touch .grow.open .pin { pointer-events: none !important; }
html.touch .poster iframe { pointer-events: none !important; touch-action: pan-y; }
/* the foot's film: a tap and it swells out from its corner (a tablet: to the foot's full content width; a desk: part of the way); another tap and it goes back */
.colophon .footfilm { cursor: pointer; z-index: 4; -webkit-tap-highlight-color: transparent; }
.colophon .footfilm .poster { inset: auto auto 0 0 !important; width: 100%; height: 100%; transition: width .9s cubic-bezier(.3, 1.36, .5, 1), height .9s cubic-bezier(.3, 1.36, .5, 1); will-change: width, height; }
.colophon .footfilm.wide .poster { width: var(--fw, 100%); height: calc(var(--fw, 100%) * 1052 / 1760); }
@media (prefers-reduced-motion: reduce) { .colophon .footfilm .poster { transition: none; } }
/* ---------- phone: one picture. It waits on the page under the statement, comes up with it, and opens;
   open, it is the photograph itself (not the wide still cropped) with its words set for a narrow screen ---------- */
.grow .stw { display: none; }
@media (max-width: 599px) {
  .hero .hc.mr { display: none !important; }
  .grow { height: calc(100svh + 190vh) !important; }
  .grow .pin { height: calc(100lvh + var(--stick, 0px)) !important; top: calc(-1 * var(--stick, 0px)) !important; }
  .grow .stage { top: var(--stick, 0px) !important; }
  .grow .st.bl { z-index: 4; left: 24px !important; bottom: 24px !important; }
}
@media (max-width: 599px) {
  .dusk { height: 115vh !important; }
  .wall figcaption { padding-left: var(--m); }
}
/* phone: the statement's sheet answers the finger as on a tablet (the width grip, the tape); it is read-only, so no keyboard */
@media (max-width: 599px) { html.touch .sheet iframe { pointer-events: auto; } }
/* phone, English: the opening line on one line, inside the screen */
@media (max-width: 599px) { html[lang="en"] .veil-line { font-size: 12px; letter-spacing: .08em; white-space: nowrap; } html[lang="en"] .veil-line .hw { display: block; margin: 0 0 1.4em; } }
@media (max-width: 599px) { html[lang="en"] .veil-line { left: 0 !important; right: 0 !important; width: auto !important; padding-left: 0 !important; margin-left: 0 !important; text-align: center !important; translate: 0 -50% !important; } html[lang="en"] .hc.ml { top: auto !important; bottom: calc(var(--m) + 8px); translate: none !important; } }
/* phone: the foot's lists smaller, air under them; the wall in large and small; the opening line smaller */
@media (max-width: 599px) {
  .colophon .panel { font-size: 8px !important; letter-spacing: .1em !important; margin-bottom: 5vh !important; }
  .colophon .ph { margin-bottom: 12px !important; }
  .colophon .pr { padding: 2.5px 0 !important; grid-template-columns: 7.4em 1fr !important; }
  .colophon .fine { margin-top: 20vh !important; font-size: 7.5px !important; }
  .colophon { padding-bottom: calc(var(--m) + 8px) !important; }
  .wall { padding-left: var(--m); padding-right: var(--m); }
  .wall .piece { margin-bottom: 9vh !important; }
  .wall figcaption { padding-left: 0 !important; }
  .wall .piece:nth-of-type(2) { width: 44%; margin-left: auto !important; }
  .wall .piece:nth-of-type(3) { width: 30%; margin-top: -16vh; margin-bottom: 14vh !important; }
  .wall .piece:nth-of-type(4) { width: 78%; margin-left: auto !important; }
  .wall .piece:nth-of-type(5) { width: calc(100% + var(--m) * 2); margin-left: calc(var(--m) * -1) !important; margin-bottom: 7vh !important; }
  .wall .piece:nth-of-type(5) figcaption { padding-left: var(--m) !important; }
  .wall .piece:nth-of-type(6) { width: 26%; margin-left: 58% !important; margin-bottom: 14vh !important; }
  html[lang="ja"] .veil-line { font-size: 17px !important; }
}
@media (max-width: 599px) { .wall .piece:nth-of-type(3) figcaption, .wall .piece:nth-of-type(6) figcaption { white-space: nowrap; overflow: visible; } .wall .piece:nth-of-type(3) figcaption span, .wall .piece:nth-of-type(6) figcaption span { display: block; margin: 0 !important; } }

/* a touch screen: a hole in the scrolling layer over the full picture's words, so they can be touched */
html.touch .grow .poster.hole::before { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--hl) var(--ht), var(--hl) var(--hb), var(--hr) var(--hb), var(--hr) var(--ht), var(--hl) var(--ht)); }
html.touch .grow.open .pin .poster.hole iframe { pointer-events: auto !important; }
/* phones get a tall cut of the platform picture (picture/source), centred */
/* the opening line: its columns a little closer, on every screen */
html[lang="ja"] .veil-line { line-height: 1.85 !important; }
html[lang="ja"] .veil-line .l { block-size: 1.85em !important; }
html[lang="ja"] .veil-line.cleaned .l.tl { block-size: 0 !important; }

/* ---------- the switch beside the language: dark / light. Dark turns everything round (see site.css); the tape stays paper tape ---------- */
.hc.tr .mode { all: unset; margin-left: 1.4em; color: inherit; cursor: pointer; pointer-events: auto; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.hc.tr .mode::before { content: "Dark"; } html.dark .hc.tr .mode::before { content: "Light"; }
.hc.tr .mode:hover { color: var(--ink); } html.on-photo .hc.tr .mode:hover { color: #f4f2ec; }
/* under a tape that is down, the word itself is not drawn: no dark fringe round a light tape (dark mode's opening, light ground).
   It is back the moment the tape lifts */
.veil-line .tp .w { transition: opacity .12s ease; }
.veil-line .tp.on:not(:hover):not(.peek) .w { opacity: 0; transition: opacity .15s ease .5s; }

/* the frame of a piece is the page's ground until its picture is there (never a dark box) */
.wall .piece:not(.filmp) .poster, .wall .piece:not(.filmp) .screen iframe { background: transparent !important; }
.wall .piece:not(.filmp) figcaption { opacity: 0 !important; transition: opacity .8s ease .5s; }
.wall .piece.pic:not(.filmp) figcaption { opacity: 1 !important; }

/* the frames keep the light scheme the app's page declares, so the browser never paints its own white behind them on a dark page */
.screen iframe, .sheet iframe { color-scheme: light; }
html.dark .wall .piece:not(.filmp) .poster, html.dark .wall .piece:not(.filmp) .screen iframe { background: #1c1c1b !important; }

/* phone: a wall piece is a picture and, over it, its words as a picture; the words come a moment after the picture */
.poster .screen > img.pw { z-index: 2; opacity: 0; transition: opacity .9s ease .35s; pointer-events: none; }
.poster .screen > img.pw.on { opacity: 1; }

/* dark <-> light eases: while the page is turning, every colour on it moves across in step */
html.turning, html.turning body, html.turning *, html.turning *::before, html.turning *::after { transition: background-color .8s ease, color .8s ease, border-color .8s ease, fill .8s ease, stroke .8s ease, opacity .8s ease !important; }
html.turning .dusk canvas { transition: none !important; }
/* the opening line turns from paper to ink as the edge of the sand passes it — a quick turn at that moment, not a long fade through nothing */
.veil-line { transition: color .45s linear 1.05s !important; }
html.turning .veil-line { transition: color .8s ease !important; }
/* the Latin on the page (Neue Haas Grotesk): closer set */
.hc, .hc.tl, .hc.tr, .hc.ml, .hc.tr .lang, .hc.tr .mode { letter-spacing: .02em !important; }
.colophon .panel, .colophon .props, .colophon .fine, .colophon .footfilm figcaption { letter-spacing: .02em !important; }
.wall figcaption, .film figcaption, .grow .st { letter-spacing: .03em !important; }
html[lang="en"] .veil-line { letter-spacing: .02em !important; }
.veil-line .hw { letter-spacing: .04em; } html[lang="ja"] .veil-line .hw { letter-spacing: .2em; }
html[lang="ja"] .hc.ml { letter-spacing: .08em !important; }
/* phone foot: Ink. and Write side by side, Set on a picture under them across the width; more room under the lists */
@media (max-width: 599px) {
  .colophon { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .colophon .p0 { grid-column: 1; grid-row: 1; } .colophon .p1 { grid-column: 2; grid-row: 1; }
  .colophon .p2 { grid-column: 1 / -1; grid-row: 2; }
  .colophon .p0 .pr, .colophon .p1 .pr, .colophon .p2 .pr { grid-template-columns: 5.6em minmax(0, 1fr) !important; column-gap: 1.2em !important; }   /* one label width everywhere: the lists line up above and below */
  .colophon .p0 .v, .colophon .p1 .v { flex-wrap: wrap; row-gap: 2px; }
  .colophon .fine { grid-column: 1 / -1; grid-row: 3; margin-top: 34vh !important; }
}
/* phone: the small Nail piece laps over the foot of the Taba Delivery picture above it; Taba's caption goes on two lines beside it */
@media (max-width: 599px) {
  .wall .piece:nth-of-type(5) { margin-bottom: 0 !important; }
  .wall .piece:nth-of-type(5) figcaption span { display: block; margin: 0 !important; }
  .wall .piece:nth-of-type(6) { position: relative; z-index: 3; width: 36%; margin-left: auto !important; margin-right: 6% !important; margin-top: -26vw; }
}
@media (max-width: 599px) { .wall .piece:nth-of-type(5) figcaption { display: flex !important; flex-direction: column !important; gap: 2px !important; } }
/* phone: Nail laps over Taba's picture only a little */
@media (max-width: 599px) { .wall .piece:nth-of-type(6) { margin-top: -17vw !important; } }
/* phone: while a wall picture passes under the corner words, they step out of its way (no words over words) */
.hc.tl, .hc.tr { transition: opacity .35s ease, color .3s ease; }
html.under-pic .hc.tl, html.under-pic .hc.tr { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 599px) { .wall .piece { margin-bottom: 14vh !important; } .wall .piece:nth-of-type(5) { margin-bottom: 0 !important; } .wall .piece:nth-of-type(3) { margin-top: -12vh !important; margin-bottom: 18vh !important; } .wall .piece:nth-of-type(6) { margin-bottom: 18vh !important; } }   /* phone: more air above and below each piece */
/* phone: the film is in the foot too — under the lists, smaller, at the left; a tap swells it to the full width */
@media (max-width: 599px) {
  .colophon .footfilm { display: block !important; position: relative !important; left: auto !important; bottom: auto !important; grid-column: 1 / -1 !important; grid-row: 3 !important; width: 62% !important; aspect-ratio: 1760 / 1052; margin: 16vh 0 0 !important; align-self: start; }
  .colophon .fine { grid-row: 4 !important; margin-top: 12vh !important; }
}
/* the film: the recording caught the app's photo edge at its right as a dark bar — trim that edge off (all screens) */
.colophon .footfilm video { transform: scale(1.025); transform-origin: 0 50%; }
/* phone: the film sits small at the top right of the lists; a tap swells it leftwards and down to the full width */
@media (max-width: 599px) {
  .colophon .footfilm { grid-row: 1 !important; grid-column: 1 / -1 !important; justify-self: end; width: 46% !important; margin: 0 0 7vh !important; }
  .colophon .footfilm .poster { inset: 0 0 auto auto !important; }
  .colophon .p0 { grid-row: 2 !important; } .colophon .p1 { grid-row: 2 !important; } .colophon .p2 { grid-row: 3 !important; }
  .colophon .fine { grid-row: 4 !important; margin-top: 30vh !important; }
}
/* phone: the film sits small in the empty right of "Set on a picture", its top on that list's heading line */
@media (max-width: 599px) {
  .colophon .p0 { grid-row: 1 !important; } .colophon .p1 { grid-row: 1 !important; } .colophon .p2 { grid-row: 2 !important; }
  .colophon .footfilm { grid-row: 2 !important; grid-column: 1 / -1 !important; justify-self: end; align-self: start; width: 36% !important; margin: 0 !important; }
  .colophon .fine { grid-row: 3 !important; margin-top: 34vh !important; }
}

/* phone: the film at the bottom right of the first screen, small; it comes with the corner words, a tap swells it up and to the left */
.hero .footfilm.fv { position: absolute !important; right: var(--m) !important; bottom: calc(var(--m) + env(safe-area-inset-bottom, 0px)) !important; left: auto !important; top: auto !important; width: 26vw !important; aspect-ratio: 1760 / 1052; margin: 0 !important; z-index: 6; opacity: 0; transition: opacity 1s ease .6s; }
html.arrived .hero .footfilm.fv { opacity: 1; }
.hero .footfilm.fv .poster { inset: auto 0 0 auto !important; }
.hero .footfilm.fv figcaption { display: none !important; }
.hero .footfilm.fv .poster { position: absolute !important; width: 100%; height: 100%; overflow: hidden; background: #1c1c1b; transition: width .9s cubic-bezier(.3, 1.36, .5, 1), height .9s cubic-bezier(.3, 1.36, .5, 1); }
.hero .footfilm.fv .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .footfilm.fv.wide .poster { width: var(--fw, 100%); height: calc(var(--fw, 100%) * 1052 / 1760); }
.hero .footfilm.fv .poster video { transform: scale(1.025); transform-origin: 0 50%; }   /* trim the recording's dark right edge here too */
@media (max-width: 599px) { html[lang="en"] .veil-line { font-size: 16px !important; } }   /* phone, English: the opening line a size up (it runs across, there is room) */
/* phone (both languages): 清書 / Clean copy stays at the left edge through the first and second screens, small, on two lines in English;
   it goes once the picture has opened over the sheet */
@media (max-width: 599px) {
  .hero .hc.ml, html[lang="en"] .hero .hc.ml { position: fixed !important; left: var(--m) !important; top: 50% !important; bottom: auto !important; translate: 0 -50% !important; font-size: 10px !important; line-height: 1.4 !important; max-width: 3.6em; white-space: normal; text-align: left; z-index: 7; }
  html[lang="ja"] .hero .hc.ml { max-width: none; }
}
/* tablet: the small English line on the opened photo sits at the bottom right */
@media (min-width: 600px) and (max-width: 1100px) { .grow .st.bl { left: auto !important; right: calc(100vw / 48 + 4px) !important; text-align: right; } }
@media (min-width: 600px) { html.touch .grow .st.bl { left: auto !important; right: calc(100vw / 48 + 4px) !important; text-align: right; } }

/* English: the statement is one line across the page, centred (the script puts it at left 50% for the vertical Japanese one) */
html:not([lang="ja"]) .veil-line { left: 0 !important; right: 0 !important; translate: 0 -50%; text-align: center; }
