@font-face{font-family:Geologica;font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geologica-cyrillic-wght-normal.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:Geologica;font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geologica-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/*
 * The Images entry page. The same family as the Init and Frame entries, in the Images visual language: a light table
 * (paper ground, ink, hairlines), Geologica for everything, light display weights, frosted glass only for what
 * floats, pills for controls, prints with a small radius. The page has no colour of its own: the only saturated
 * colour is the photographs' tones, which paint the tiles, the tone strip and the light in the room (the product's
 * `.im-tone-light`), and the viewer's graphite stage.
 * Rhythm: a centred poster with the album library; four chapters whose figure is pinned at 1280 × 620 and wider
 * (html.pinned, with motion allowed) and changes one sentence at a time, stacked in their final state below that;
 * what else the app does; the start; the footer.
 * Breakpoints: 1280 the pin and two columns, 1100 the list of four, 900 the tablet, 760 the figures recompose for
 * a phone, 480 the narrow phone.
 */

:root {
  --table: #ebe8e1;
  --paper: #f3f1ec;
  --raised: #fbfaf7;
  --raised-2: #ffffff;
  --sunken: #e5e1d9;
  --ink: #151514;
  --ink-2: #5d5a54;
  --ink-3: #67635c;
  --mute: #8a867e;
  --hair: rgb(0 0 0 / 0.08);
  --hair-2: rgb(0 0 0 / 0.14);
  --glass: rgb(251 250 247 / 0.74);
  --rim: inset 0 0 0 1px rgb(0 0 0 / 0.06);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  --deep: 0 0 0 1px var(--hair), 0 40px 80px -40px rgb(40 34 24 / 0.38), 0 14px 28px -14px rgb(40 34 24 / 0.16);
  --g-ground: #0b0b0a;
  --g-ink: #efede8;
  --g-ink-2: #a19e96;
  --g-glass: rgb(20 20 18 / 0.66);
  --g-rim: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.05);
  --danger: #c4311f;
  --strength: 0.3;
  --sans: Geologica, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --page: 1296px;
  --hdr: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--table);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
}

body {
  margin: 0;
  font: 400 clamp(1rem, 0.25vw + 0.94rem, 1.125rem) / 1.55 var(--sans);
  color: var(--ink);
  background: var(--table);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

code {
  font: inherit;
}

kbd {
  font: inherit;
}

::selection {
  background: color-mix(in oklab, var(--ink) 18%, transparent);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.defs {
  position: absolute;
}

.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.nw {
  white-space: nowrap;
}

.ic {
  display: block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
}

/* Glass: only for chrome that floats (the header, the album's action bar, the viewer's controls). */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--rim), var(--shadow);
}

/* The light a picture casts on the room: soft radial washes of its tone (the product's .im-tone-light). */
.room,
.light {
  --la: var(--im-tone, color-mix(in oklab, var(--ink) 40%, transparent));
  --lb: var(--im-tone-2, var(--la));
  --lc: var(--im-tone-3, var(--la));
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(55% 100% at 8% 0%, color-mix(in oklab, var(--la) calc(var(--strength) * 110%), transparent), transparent 72%),
    radial-gradient(45% 90% at 52% 0%, color-mix(in oklab, var(--lb) calc(var(--strength) * 90%), transparent), transparent 72%),
    radial-gradient(50% 100% at 94% 4%, color-mix(in oklab, var(--lc) calc(var(--strength) * 100%), transparent), transparent 72%);
}

.light {
  height: 75%;
}

/* ---------- type ---------- */

h1 {
  font: 300 clamp(2.5rem, 6vw, 5.25rem) / 1.02 var(--sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font: 300 clamp(2rem, 3.4vw, 3.1rem) / 1.08 var(--sans);
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h3 {
  font: 400 1.3rem / 1.25 var(--sans);
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

.ln {
  display: block;
}

/* a section's name: quiet meta type with a short strip of tones before it */
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 500 0.875rem / 1.2 var(--sans);
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.tag::before {
  content: "";
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a77545 0 25%, #789cb0 0 50%, #e3b0ab 0 75%, #a6c0a2 0);
}

/* the heading's marked words stand on a strip of the album's tones, drawn from the left on arrival */
.uw {
  padding-bottom: 0.04em;
  background: var(--strip) left bottom / 100% 0.1em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-reduced-motion: no-preference) {
  .uw {
    animation: strip 0.9s var(--ease) 0.35s both;
  }
}

@keyframes strip {
  from {
    background-size: 0% 0.1em;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 0.95rem / 1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease),
    transform 90ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-l {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.btn-s {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: color-mix(in oklab, var(--ink) 86%, var(--paper));
}

.btn-line {
  background: color-mix(in oklab, var(--ink) 7%, transparent);
  color: var(--ink);
}

.btn-line:hover {
  background: color-mix(in oklab, var(--ink) 12%, transparent);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- header: the product's floating glass bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 16px 0;
  pointer-events: none;
}

.bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--page);
  height: 56px;
  margin-inline: auto;
  padding: 0 8px 0 18px;
  border-radius: 999px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 1.0625rem / 1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo b {
  font-weight: 500;
}

/* the mark: four prints, the first in ink, the others in the tones of the latest photos */
.mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  flex: none;
}

.mark i {
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.mark i:first-child {
  background: var(--ink);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.langs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  font: 500 0.8125rem / 1 var(--sans);
}

.langs a {
  min-width: 38px;
  padding: 7px 0;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  color: var(--ink-2);
}

.langs a[aria-current] {
  background: var(--raised-2);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.link {
  max-width: 16em;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 0.95rem / 1.3 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- the poster: the library ---------- */

.cover {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 5vw, 72px) 0 clamp(40px, 5vw, 80px);
}

.cover > .room,
.finale > .room {
  z-index: -1;
  height: min(100%, 900px);
  --strength: 0.42;
}

.head {
  width: min(100% - 2 * var(--gutter), 1000px);
  margin-inline: auto;
  text-align: center;
}

.lede {
  max-width: 36em;
  margin: 26px auto 0;
  font: 300 clamp(1.1rem, 1.5vw, 1.35rem) / 1.45 var(--sans);
  color: var(--ink-2);
  text-wrap: balance;
}

.head .cta {
  justify-content: center;
  margin-top: 30px;
}

.poster {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin: clamp(32px, 4vw, 56px) auto 0;
}

.shot {
  container-type: inline-size;
}

.hint {
  display: none;
  margin-top: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}

@media (pointer: fine) {
  .js .hint {
    display: block;
  }
}

/* ---------- the product, as a picture: an app window on the table ---------- */

.app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.5em;
  background: var(--paper);
  box-shadow: var(--deep);
  color: var(--ink);
  line-height: 1.5;
}

.app > .light {
  z-index: -1;
}

.a-top {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.5em;
  margin: 0.9em 0.9em 0;
  padding: 0 0.5em 0 1.1em;
  border-radius: 999px;
}

.a-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: 1.05em;
}

.a-logo b {
  font-weight: 500;
}

.a-logo .mark {
  grid-template-columns: repeat(2, 0.5em);
  grid-template-rows: repeat(2, 0.5em);
  gap: 0.13em;
}

.a-r {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-left: auto;
}

.a-ic {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
}

.a-av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.2em;
  height: 2.2em;
  border-radius: 999px;
  background: #d9d3c7;
  font: 600 0.8em / 1 var(--sans);
  font-style: normal;
  color: var(--ink);
}

.disp {
  display: block;
  font: 300 3.4em / 1 var(--sans);
  letter-spacing: -0.035em;
}

.meta {
  display: block;
  font-size: 0.87em;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 2.5em;
  padding: 0 1.05em;
  border-radius: 999px;
  font-size: 0.93em;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.pill-solid {
  background: var(--ink);
  color: var(--paper);
}

.pill-q {
  background: color-mix(in oklab, var(--ink) 7%, transparent);
}

.pill-i {
  width: 2.5em;
  padding: 0;
}

.pill kbd {
  display: inline-block;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.35em;
  border-radius: 0.35em;
  font-size: 0.78em;
  line-height: 1.5em;
  text-align: center;
  background: color-mix(in oklab, var(--paper) 18%, transparent);
}

/* the library */
.app-lib {
  font-size: clamp(8px, 1.24cqw, 15px);
}

.lib-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6em 1.2em;
  padding: 2.4em 2.2em 1.6em;
}

.lib-head .pill {
  margin-left: auto;
  align-self: center;
}

.albums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8em 1.4em;
  padding: 0 2.2em 2.6em;
}

.album {
  position: relative;
  display: grid;
  gap: 0.15em;
}

/* the cover's own light falls on the paper under it when it is pointed at */
.album::before {
  content: "";
  position: absolute;
  inset: 12% -6% -10%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tone) 45%, transparent), transparent);
  opacity: 0;
  transition: opacity 420ms var(--ease);
}

.album:hover::before {
  opacity: 1;
}

.cv {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0.4em;
  background: var(--tone);
}

.cv .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.cv .ph.on {
  opacity: 1;
}

.ticks {
  position: absolute;
  inset: auto 0.7em 0.55em;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.album:hover .ticks {
  opacity: 1;
}

.ticks i {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgb(255 255 255 / 0.4);
}

.ticks i.on {
  background: rgb(255 255 255 / 0.95);
}

.al-name {
  display: block;
  margin-top: 0.7em;
  overflow: hidden;
  font-size: 1.3em;
  letter-spacing: -0.012em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* the library arrives like data: the albums settle one after another */
.armed .cover:not(.in) .album {
  opacity: 0;
  transform: translateY(1.2em);
}

.album {
  transition:
    opacity 420ms var(--ease) calc(0.2s + var(--k) * 90ms),
    transform 420ms var(--ease) calc(0.2s + var(--k) * 90ms);
}

/* an album page */
.al-head {
  display: grid;
  justify-items: start;
  gap: 0.3em;
  padding: 1.5em 2.2em 0.8em;
}

.al-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-bottom: 0.4em;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--ink-2);
}

.al-head .disp {
  font-size: 2.6em;
}

.al-desc {
  color: var(--ink-2);
}

/* the tone strip: the album as its photographs' colours, one bar a photo */
.bc {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 1.3em;
  margin: 0.2em 2.2em 0.9em;
}

.bc i {
  flex: 1 1 0;
  height: 0.85em;
  background: var(--t);
  opacity: 0.9;
  transition: height 160ms var(--ease);
}

.bc i:first-child {
  border-radius: 2px 0 0 2px;
}

.bc i:last-child {
  border-radius: 0 2px 2px 0;
}

/* the justified grid: in a row every tile grows by its proportions, so every tile of a row has the same height */
.grid {
  display: grid;
  gap: 0.3em;
  padding: 0 2.2em;
}

.row {
  display: flex;
  gap: 0.3em;
}

.tile,
.sp {
  position: relative;
  flex: var(--ar) 1 0;
  min-width: 0;
  aspect-ratio: var(--ar);
}

.tile {
  overflow: hidden;
  border-radius: 0.3em;
  background: var(--tone);
}

.tile .ph,
.dg .ph,
.vw-photo .ph,
.th .ph,
.fan-c .ph {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 420ms var(--ease);
}

.sp {
  visibility: hidden;
}

/* ---------- chapters: a pinned figure, one sentence at a time ---------- */

/* stacked (phones, tablets, short windows, reduced motion): text, then the figure in its final state */
.chap {
  padding: clamp(40px, 6vw, 80px) 0;
}

.chap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.chap-text h2 {
  max-width: 16em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 16px 28px;
  margin-top: 28px;
}

.step {
  position: relative;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--hair-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.step p {
  max-width: 26em;
}

.step .host {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.note {
  max-width: 34em;
  margin-top: 22px;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.chap-fig {
  min-width: 0;
}

.frame {
  container-type: inline-size;
  position: relative;
  display: grid;
  place-items: center;
}

/* a figure: 64 × --fh of its ems (44 by default, taller for an album page), the em a part of the frame */
.fig {
  --fh: 44;
  position: relative;
  width: 64em;
  height: calc(var(--fh) * 1em);
  font-size: clamp(9px, 1.5cqw, 15px);
}

/* two columns: the text beside the figure */
@media (min-width: 1280px) {
  .chap-grid {
    grid-template-columns: minmax(0, clamp(300px, 24vw, 360px)) minmax(0, 1fr);
    gap: clamp(32px, 3.4vw, 64px);
    align-items: center;
  }
  .chap-text h2 {
    max-width: none;
    font-size: clamp(1.9rem, 2.3vw, 2.4rem);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .step {
    font-size: 1.0625rem;
  }
}

/* pinned: the text and the figure stay, the step follows the scroll (page.js sets the chapter's data-step; with
   reduced motion, no script or a short window nothing is pinned) */
.pinned .chap {
  --pin-h: min(820px, 100svh - var(--hdr) - 40px);
  --run: 46svh;
  height: calc(var(--pin-h) + var(--n) * var(--run));
  margin-bottom: 18svh;
  padding: 0;
}

.pinned .chap-pin {
  position: sticky;
  top: max(calc(var(--hdr) + 16px), calc((100svh - var(--pin-h)) / 2));
  display: flex;
  align-items: center;
  height: var(--pin-h);
}

.pinned .chap-grid,
.pinned .chap-fig,
.pinned .frame {
  height: 100%;
}

.pinned .frame {
  container-type: size;
}

.pinned .fig {
  font-size: clamp(9px, min(1.5cqw, 96cqh / var(--fh)), 15px);
}

/* the rail: three bars, one a sentence, filled as far as the scroll has come */
.rail {
  display: none;
}

.pinned .rail {
  display: flex;
  gap: 4px;
  width: 132px;
  margin-bottom: 22px;
}

.rail i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--hair-2);
  transition: background-color 0.45s var(--ease);
}

.chap[data-step="1"] .rail i:nth-child(-n + 1),
.chap[data-step="2"] .rail i:nth-child(-n + 2),
.chap[data-step="3"] .rail i:nth-child(-n + 3) {
  background: var(--ink);
}

/* the current sentence steps forward and gets a bar; the others sink back to a grey that still reads at 5:1 */
.pinned .step {
  color: var(--ink-3);
  transition:
    color 0.45s,
    transform 0.55s var(--ease);
}

.pinned .step::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 0.6s var(--ease);
}

.pinned .chap[data-step="1"] .step[data-s="1"],
.pinned .chap[data-step="2"] .step[data-s="2"],
.pinned .chap[data-step="3"] .step[data-s="3"] {
  color: var(--ink);
  transform: translateX(10px);
}

.pinned .chap[data-step="1"] .step[data-s="1"]::before,
.pinned .chap[data-step="2"] .step[data-s="2"]::before,
.pinned .chap[data-step="3"] .step[data-s="3"]::before {
  transform: scaleY(1);
}

@media (max-height: 820px) {
  .pinned .rail {
    margin-bottom: 14px;
  }
  .pinned .tag {
    margin-bottom: 12px;
  }
  .pinned .steps {
    margin-top: 20px;
  }
  .pinned .step {
    font-size: 0.975rem;
    line-height: 1.42;
  }
  .pinned .note {
    margin-top: 16px;
    font-size: 0.875rem;
  }
}

/* ---------- overlays: data-on lists the steps an element shows on, "f" the final state ---------- */

html:not(.pinned) .ov:not([data-on~="f"]) {
  display: none;
}

.pinned .ov {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0s 0.3s,
    transform 0.5s var(--ease);
}

.pinned .chap[data-step="1"] [data-on~="1"],
.pinned .chap[data-step="2"] [data-on~="2"],
.pinned .chap[data-step="3"] [data-on~="3"] {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.45s 0.1s,
    visibility 0s,
    transform 0.6s var(--ease) 0.1s;
}

/* alternatives share one place: the one of the current step shows */
.stack {
  display: inline-grid;
}

.stack > * {
  grid-area: 1 / 1;
}

/* ----- chapter: uploading ----- */

.app-album {
  --fh: 58;
}

.app-tones {
  --fh: 52;
}

.actions {
  position: absolute;
  left: 50%;
  bottom: 1.1em;
  display: flex;
  gap: 0.2em;
  padding: 0.3em;
  border-radius: 999px;
  transform: translateX(-50%);
}

.up-n {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6em);
  padding: 0.55em 1em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85em;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* a new photo stands in its place at once, the picture from the browser, and a ring tells how much has gone */
.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.4em;
  height: 2.4em;
  transform: translate(-50%, -50%) rotate(-90deg);
  fill: none;
  stroke-width: 3;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35));
}

.ring circle {
  stroke: rgb(255 255 255 / 0.35);
}

.ring .ring-v {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: var(--v) 100;
}

.pinned .chap-upload[data-step="2"] .is-new .ph {
  opacity: 0.62;
}

/* the calm drop state over the whole page */
.drop {
  position: absolute;
  inset: 0.6em;
  display: grid;
  place-content: center;
  gap: 0.6em;
  padding: 2em;
  border-radius: 1.2em;
  text-align: center;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.drop-t {
  max-width: 16em;
  margin-inline: auto;
  font-size: 2.1em;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.drop-h {
  color: var(--ink-2);
}

/* three photos on the pointer, on their way in */
.drag {
  position: absolute;
  left: 60%;
  top: 60%;
  width: 8em;
  height: 6em;
}

.dg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0.3em;
  background: var(--tone);
  box-shadow: 0 18px 30px -14px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.6);
  transform: translate(calc(var(--i) * 0.5em), calc(var(--i) * 0.35em)) rotate(calc((var(--i) - 1) * 7deg));
}

.dg-n {
  position: absolute;
  top: -0.7em;
  right: -1.2em;
  display: grid;
  place-items: center;
  min-width: 1.8em;
  height: 1.8em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85em;
  font-weight: 600;
}

.cur {
  position: absolute;
  width: 1.7em;
  height: 1.7em;
  stroke: none;
}

.drag .cur {
  left: 3.6em;
  top: 2.6em;
}

/* ----- chapter: the colour first ----- */

.app-tones .al-head {
  padding-top: 2em;
}

.bc-w {
  position: relative;
  display: block;
}

.bc-cur {
  position: absolute;
  top: 0.6em;
  left: calc(2.2em + (100% - 4.4em) * 6.5 / 13 - 0.3em);
}

.chap-tones .tile .ph {
  transition-delay: calc(var(--k) * 70ms);
}

.pinned .chap-tones[data-step="1"] .tile:not(.early) .ph {
  opacity: 0;
  transition-delay: 0s;
}

.chap-tones[data-step="3"] .bc i.hit {
  height: 1.3em;
  opacity: 1;
}

.chap-tones .tile.is-hit {
  outline: 0.16em solid transparent;
  outline-offset: 0.16em;
  transition: outline-color 0.3s var(--ease);
}

.chap-tones[data-step="3"] .tile.is-hit {
  outline-color: var(--ink);
}

/* ----- chapter: the viewer, a graphite room lit by the photo ----- */

.vw {
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.5em;
  background: var(--g-ground);
  color: var(--g-ink);
  box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -40px rgb(0 0 0 / 0.6);
  line-height: 1.5;
}

.vw-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 42%, color-mix(in oklab, var(--tone) 70%, transparent), transparent 72%),
    radial-gradient(40% 50% at 18% 90%, color-mix(in oklab, var(--tone) 40%, transparent), transparent 72%);
  transition: opacity 700ms var(--ease);
}

.vw-stage {
  position: absolute;
  inset: 5em 6em 9.2em;
  display: grid;
  place-items: center;
}

.vw-photo {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.4em;
  background: var(--tone);
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / 0.7);
  transition:
    transform 700ms var(--ease),
    border-radius 700ms var(--ease);
}

/* the tile grows into the stage when the chapter arrives, and the room fills with its light */
.armed .chap-viewer .frame:not(.in) .vw-photo {
  transform: translate(-70%, 60%) scale(0.22);
}

.armed .chap-viewer .frame:not(.in) .vw-light {
  opacity: 0;
}

.vw .glass {
  background: var(--g-glass);
  box-shadow: var(--g-rim), 0 18px 40px -16px rgb(0 0 0 / 0.7);
}

.vw-top {
  position: absolute;
  top: 1em;
  left: 1em;
  right: 1em;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.grp {
  display: flex;
  align-items: center;
  gap: 0.15em;
  min-width: 0;
  padding: 0.25em;
  border-radius: 999px;
}

.vw-n {
  padding: 0 0.5em;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  color: var(--g-ink-2);
}

.vw-name {
  padding-right: 0.9em;
  overflow: hidden;
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vw .hl {
  background: rgb(255 255 255 / 0.16);
}

.danger {
  color: #ff7a6b;
}

.vw-nav {
  position: absolute;
  top: calc(50% - 2.1em);
  width: 2.9em;
  height: 2.9em;
}

.vw-prev {
  left: 1.4em;
}

.vw-next {
  right: 1.4em;
}

.vw-bottom {
  position: absolute;
  left: 50%;
  bottom: 1em;
  display: grid;
  justify-items: center;
  gap: 0.5em;
  width: min(36em, 92%);
  padding: 0.6em 0.8em 0.7em;
  border-radius: 1em;
  transform: translateX(-50%);
}

.vw-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 1.2em;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  color: var(--g-ink-2);
}

.vw-strip {
  display: flex;
  gap: 0.22em;
}

.th {
  position: relative;
  width: 2.2em;
  height: 1.55em;
  overflow: hidden;
  border-radius: 0.2em;
  background: var(--tone);
  opacity: 0.5;
}

.th.on {
  opacity: 1;
  outline: 2px solid var(--g-ink);
  outline-offset: 1px;
}

.vw kbd {
  display: inline-grid;
  place-items: center;
  min-width: 2em;
  height: 2em;
  padding: 0 0.5em;
  border-radius: 0.45em;
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(255 255 255 / 0.12);
  font-size: 0.85em;
  font-weight: 500;
}

.vw-keys {
  position: absolute;
  right: 2em;
  bottom: 7em;
  display: flex;
  gap: 0.35em;
}

.vw-tip {
  position: absolute;
  top: 4.6em;
  right: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.45em 0.9em 0.45em 0.5em;
  border-radius: 999px;
  background: var(--g-ink);
  color: var(--g-ground);
  font-size: 0.85em;
  font-weight: 500;
}

.vw-tip kbd {
  background: color-mix(in oklab, var(--g-ground) 12%, transparent);
  box-shadow: none;
  min-width: 1.7em;
  height: 1.7em;
}

/* ----- chapter: access ----- */

.ac {
  display: grid;
  grid-template-columns: 28em minmax(0, 1fr);
  gap: 1.6em;
  align-items: stretch;
  line-height: 1.45;
}

.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.95em;
  padding: 1.7em 1.6em;
  border-radius: 1.4em;
  background: var(--raised);
  box-shadow: var(--deep);
}

.sh-t {
  font-size: 1.6em;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.sh-lead,
.sh-p {
  margin-top: -0.4em;
  font-size: 0.92em;
  color: var(--ink-2);
}

.sh-p {
  margin-top: 0;
}

.inv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.4em;
}

.inv .pill {
  margin-left: auto;
}

.field {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
  height: 2.7em;
  padding: 0 0.8em;
  overflow: hidden;
  border-radius: 0.8em;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  box-shadow: 0 0 0 2px var(--ink);
  font-size: 0.92em;
  white-space: nowrap;
}

.field .ic {
  color: var(--ink-2);
}

.seg {
  display: flex;
  padding: 0.2em;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.seg b {
  padding: 0.45em 0.7em;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--ink-2);
}

.seg b.on {
  background: var(--raised-2);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

.roles {
  display: grid;
  gap: 0.15em;
  font-size: 0.85em;
  color: var(--ink-2);
}

.roles b {
  font-weight: 500;
  color: var(--ink);
}

.people {
  display: grid;
  gap: 0.25em;
}

.pp {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-inline: -0.5em;
  padding: 0.35em 0.5em;
  border-radius: 0.8em;
  font-size: 0.92em;
  transition: background-color 0.4s var(--ease);
}

.pp em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.9em;
  color: var(--ink-2);
}

.pp .a-av {
  width: 2em;
  height: 2em;
  font-size: 0.75em;
}

.pinned .chap-access[data-step="1"] .pp-new {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.share {
  display: grid;
  gap: 0.65em;
  margin-top: auto;
  padding-top: 1em;
  border-top: 1px solid var(--hair);
}

.sh-h {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sh-h b {
  font-weight: 500;
}

.sw-s {
  margin-left: auto;
}

.sw {
  position: relative;
  display: block;
  width: 2.4em;
  height: 1.4em;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 18%, transparent);
}

.sw::after {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0.18em;
  width: 1.04em;
  height: 1.04em;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.sw.is-on {
  background: var(--ink);
}

.sw.is-on::after {
  left: auto;
  right: 0.18em;
}

.sh-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sh-link code {
  flex: 1;
  min-width: 0;
  padding: 0.55em 0.75em;
  border-radius: 0.7em;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sh-renew {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.sh-renew .pill {
  background: color-mix(in oklab, var(--ink) 7%, transparent);
}

.sh-renew small {
  font-size: 0.8em;
  color: var(--ink-2);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: -0.8em;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6em;
  max-width: 34em;
  padding: 0.75em 1.1em;
  border-radius: 1em;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88em;
  white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.5);
  transform: translateX(-50%);
}

/* the same album, open by the link: no account, no chrome */
.web {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.2em;
  background: var(--paper);
  box-shadow: var(--deep);
}

.web-bar {
  display: flex;
  align-items: center;
  gap: 0.9em;
  height: 2.8em;
  padding: 0 1em;
  background: var(--sunken);
}

.dots {
  display: flex;
  gap: 0.35em;
}

.dots i {
  width: 0.65em;
  height: 0.65em;
  border-radius: 999px;
  background: var(--hair-2);
}

.web-url {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
  padding: 0.3em 0.8em;
  overflow: hidden;
  border-radius: 999px;
  background: var(--raised);
  font-size: 0.8em;
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.web-url .ic {
  width: 1em;
  height: 1em;
}

.web-page {
  position: relative;
  flex: 1;
}

.pub,
.gone,
.web-empty {
  position: absolute;
  inset: 0;
}

.pub {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 2.2em 1.6em;
  overflow: hidden;
}

.pub > .light {
  z-index: -1;
}

.pub .disp {
  font-size: 2.3em;
}

.pub .grid {
  margin-top: 1.1em;
  padding: 0;
}

.gone {
  display: grid;
  place-content: center;
  gap: 0.8em;
  padding: 2em;
  text-align: center;
}

.gone .disp {
  font-size: 2.2em;
}

.web-empty {
  padding: 2.4em 1.6em;
}

.sk {
  display: block;
  width: 60%;
  height: 1.4em;
  margin-bottom: 0.8em;
  border-radius: 0.6em;
  background: var(--sunken);
}

.sk-s {
  width: 34%;
  height: 0.9em;
}

/* ---------- what else ---------- */

.more {
  padding: clamp(48px, 7vw, 112px) 0;
  border-top: 1px solid var(--hair);
}

.more h2 {
  max-width: 18em;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 3.4vw, 48px);
}

.more-i {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 24px;
  border-radius: 22px;
  background: var(--raised);
  box-shadow: 0 0 0 1px var(--hair), 0 18px 36px -28px rgb(40 34 24 / 0.4);
}

.more-i p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.chips li {
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  font: 500 0.8125rem / 1.3 var(--sans);
  color: var(--ink-2);
}

/* ---------- finale: the start ---------- */

.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 128px) 0;
  background: var(--paper);
  border-top: 1px solid var(--hair);
}

.finale > .room {
  top: auto;
  bottom: 0;
  transform: scaleY(-1);
}

.fin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.fin h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.fin-p {
  max-width: 30em;
  margin: 20px 0 30px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  max-width: 34em;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.facts li + li::before {
  content: "·";
  margin: 0 0.6em;
  color: var(--mute);
}

/* prints scattered on the table */
.fan {
  position: relative;
  height: clamp(300px, 30vw, 440px);
}

.fan-c {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tone);
  box-shadow: 0 30px 60px -30px rgb(40 34 24 / 0.55), 0 0 0 5px #fff, 0 0 0 6px var(--hair);
  transform: translate(-50%, -50%) translate(calc((var(--i) - 2) * 12%), calc((var(--i) - 2) * 8%)) rotate(calc((var(--i) - 2) * 5deg));
  transition: transform 0.9s var(--ease);
}

.armed .finale:not(.in) .fan-c {
  transform: translate(-50%, -50%) rotate(0);
}

/* ---------- footer: the author's signature ---------- */

.foot {
  padding: 4px 0;
  border-top: 1px solid var(--hair);
  background: var(--table);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
}

.copy {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.sig {
  --as-ink: #2c2a26;
  display: inline-block;
  padding: 16px 6px 8px 0;
}

.sig svg {
  display: block;
  width: 10.8rem;
  height: auto;
}

/* the script takes the mark over and writes it: keep the finished one from showing for a moment before */
.sig[data-as-armed]:not([data-as-ready]) > svg {
  visibility: hidden;
}

/* ---------- responsive ---------- */

@media (max-width: 1279px) {
  .chap-text {
    max-width: 52em;
  }
}

@media (max-width: 1099px) {
  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .fin {
    grid-template-columns: minmax(0, 1fr);
  }
  .fan {
    height: clamp(240px, 56vw, 360px);
  }
}

/* the library on a narrow screen: two albums a row, the larger type of a phone */
@container (max-width: 700px) {
  .app-lib {
    font-size: 11px;
  }
  .albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6em 1em;
    padding: 0 1.4em 1.8em;
  }
  .lib-head {
    padding: 2em 1.4em 1.4em;
  }
  .lib-head .disp {
    font-size: 2.8em;
  }
  .lib-head .pill kbd {
    display: none;
  }
  .a-top {
    margin: 0.7em 0.7em 0;
  }
}

/* phones and narrow tablets: the figures keep their main part at a readable size and stack the rest */
@media (max-width: 759px) {
  .top {
    padding: 8px 10px 0;
  }
  .bar {
    padding-left: 14px;
  }
  .top-nav {
    gap: 10px;
  }
  .fig {
    width: 100%;
    height: auto;
    font-size: 11px;
  }
  .app-album,
  .app-tones {
    height: auto;
    padding-bottom: 6.2em;
  }
  .app-tones {
    padding-bottom: 1.6em;
  }
  .grid,
  .al-head {
    padding-inline: 1.2em;
  }
  .bc {
    margin-inline: 1.2em;
  }
  .bc-cur {
    left: calc(1.2em + (100% - 2.4em) * 6.5 / 13 - 0.3em);
  }
  .al-desc {
    display: none;
  }
  .actions .pill:not(.pill-solid) {
    display: none;
  }
  .drop-t {
    font-size: 1.7em;
  }
  .drag {
    left: 52%;
    top: 58%;
  }
  .vw {
    aspect-ratio: 4 / 5;
  }
  .vw-stage {
    inset: 4.4em 0.8em 9em;
  }
  .vw-photo {
    width: 100%;
    height: auto;
  }
  .vw-nav,
  .vw-name,
  .vw-keys,
  .grp .lbl {
    display: none;
  }
  .vw-tip {
    top: 4.2em;
  }
  .vw-bottom {
    width: calc(100% - 2em);
  }
  .vw-strip .th:nth-child(n + 10) {
    display: none;
  }
  .ac {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 1.6em;
  }
  .sheet {
    order: 1;
  }
  .web {
    order: 2;
    height: 26em;
  }
  .toast {
    bottom: -1.2em;
    white-space: normal;
    width: max-content;
    max-width: calc(100% - 2em);
  }
  .more-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  /* a narrow phone keeps the name, the languages and the sign-in; the hero carries the call to action */
  .top .btn-s {
    display: none;
  }
  /* the marked words keep their own line; the short word before them stays with the first line */
  h1 .ln {
    display: inline;
  }
  .langs a {
    min-width: 32px;
  }
  .logo span:not(.mark) {
    font-size: 1rem;
  }
  .btn-l {
    min-height: 50px;
    padding: 0 22px;
  }
}

/* ---------- reduced motion: final states at once ---------- */

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