/* CamJam · header and first section
   One light, from the upper left. Everything that sits on the page has a side
   wall in a darker shade of its own color and a soft shadow beyond it. */

:root {
  --red: #DC1F17;
  --red-side: #9E140E;
  --yellow: #FFD21F;
  --yellow-side: #C99700;
  --blue: #1A5CF0;
  --ink: #161412;
  --ink-soft: #55504A;
  --paper: #FFFFFF;
  --paper-2: #F6F2EB;
  --paper-3: #ECE6DC;
  --rule: #D8D1C5;

  --sign: "Anton", "Haettenschweiler", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --cast: 22 20 18;      /* shadow on the white page */
  --cast-red: 78 8 4;    /* shadow on the red plate */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ keys */

.key {
  --side: var(--ink);
  --drop: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  font: 700 1rem/1 var(--text);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.22),
    0 var(--drop) 0 var(--side),
    0 calc(var(--drop) + 10px) 18px -6px rgb(var(--cast) / 0.4);
  transition: transform 0.22s var(--out), box-shadow 0.22s var(--out);
}
.key:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.22),
    0 calc(var(--drop) + 2px) 0 var(--side),
    0 calc(var(--drop) + 18px) 24px -8px rgb(var(--cast) / 0.42);
}
.key:active {
  transform: translateY(calc(var(--drop) - 1px));
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.22),
    0 1px 0 var(--side),
    0 3px 6px -2px rgb(var(--cast) / 0.4);
  transition-duration: 0.06s;
}
.key--red { background: var(--red); color: #fff; --side: var(--red-side); }
.key--ink { background: var(--ink); color: #fff; --side: #000; }
.key--paper { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); }
.key--small { min-height: 48px; padding: 0 20px; font-size: 0.875rem; --drop: 4px; border-radius: 12px; }
.key--ink:focus-visible, .key--red:focus-visible { outline-offset: 5px; }

/* ------------------------------------------------------------ header */

.top {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 86px;
  padding: 14px var(--gutter) 18px;
  border-bottom: 3px solid var(--ink);
}
.wordmark {
  margin-right: auto;
  padding-bottom: 0.06em;
  color: var(--red);
  font: 400 2.5rem/1 var(--sign);
  letter-spacing: 0.035em;
  text-decoration: none;
}
.top__nav { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.top__nav a {
  position: relative;
  padding: 12px 2px;
  font-weight: 600;
  text-decoration: none;
}
.top__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--out);
}
.top__nav a:hover::after, .top__nav a:focus-visible::after { transform: scaleX(1); }

/* ------------------------------------------------------------ first section */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 40vw, 548px);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 5.2vw, 76px) var(--gutter) clamp(56px, 7vw, 104px);
}

.pitch h1 {
  margin: 0;
  font: 400 clamp(2.9rem, 5.9vw, 6rem)/1.03 var(--sign);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.pitch h1 em { font-style: normal; color: var(--red); }

.lede {
  max-width: 33rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 2.25rem; }
.fit {
  max-width: 30rem;
  margin: 2.5rem 0 0;
  color: var(--ink-soft);
  font-weight: 600;
  text-wrap: balance;
}

/* ------------------------------------------------------------ the counter */

.counter {
  position: relative;
  justify-self: end;
  width: 100%;
  container: counter / inline-size;
}

/* The sign plate: red enamel with a white keyline, like a shop sign. */
.plate {
  position: relative;
  padding: 42px 42px 66px;
  border-radius: 34px;
  background: var(--red);
  box-shadow:
    inset 0 3px 0 rgb(255 255 255 / 0.2),
    inset 0 -4px 0 rgb(0 0 0 / 0.1),
    0 14px 0 var(--red-side),
    0 46px 52px -20px rgb(var(--cast) / 0.45);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid rgb(255 255 255 / 0.92);
  border-radius: 24px;
  pointer-events: none;
}

.sheet { border-radius: 14px; background: var(--paper); }
.sheet--under { position: absolute; inset: 42px 42px 66px; }
.sheet--3 {
  background: var(--paper-3);
  transform: rotate(3.3deg) translate(9px, 9px);
  box-shadow: 0 12px 14px -8px rgb(var(--cast-red) / 0.6);
}
.sheet--2 {
  background: var(--paper-2);
  transform: rotate(-3.1deg) translate(-7px, 6px);
  box-shadow: 0 12px 14px -8px rgb(var(--cast-red) / 0.6);
}

.order {
  position: relative;
  transform: rotate(-1.1deg);
  box-shadow:
    0 1px 0 rgb(var(--cast) / 0.14),
    0 28px 30px -16px rgb(var(--cast-red) / 0.75);
}
.order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 13px;
  border-bottom: 3px solid var(--ink);
}
.order__title {
  margin: 0;
  font: 400 clamp(1.6rem, 2.5vw, 2.125rem)/1.08 var(--sign);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.order__kind {
  margin: 0;
  padding: 0.5em 0.8em;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 700 0.75rem/1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.order__when {
  margin: 0;
  padding: 10px 22px;
  border-bottom: 2px dashed var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.rows { margin: 0; padding: 0; list-style: none; }
.row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 12px 20px 12px 0;
  border-bottom: 2px dashed var(--rule);
}
/* The objects are bigger than their column and hang off the paper's edge. */
.row__obj {
  width: 90px;
  max-width: none;
  margin-left: -30px;
  filter: drop-shadow(0 10px 7px rgb(var(--cast) / 0.32));
}
/* The handset lies on a slant, so it is given a little more width to look the same size. */
.row__obj--long { width: 104px; margin-left: -40px; }
.row h3 {
  margin: 0;
  font: 400 1.375rem/1.1 var(--sign);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.row p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-wrap: pretty;
}
.row .ai { color: var(--blue); font-weight: 700; }

.tag {
  justify-self: end;
  padding: 0.22em 0.62em 0.34em;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.4), 0 3px 0 var(--yellow-side);
  font: 400 1rem/1 var(--sign);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.order__foot {
  min-height: 78px;
  margin: 0;
  padding: 18px 190px 20px 22px;
  font-weight: 700;
  line-height: 1.3;
}
/* Rubber-stamp ink, pressed onto the paper. */
.stamp {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  padding: 0.02em 0.4em 0.14em;
  border: 4px solid var(--red);
  border-radius: 10px;
  color: var(--red);
  font: 400 2.25rem/1.15 var(--sign);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  mix-blend-mode: multiply;
}

/* In front of the plate: the bell, its little sign, and the fine print. */
.front {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: -64px 0 0 -62px;
  pointer-events: none;
}
.bell {
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.bell__img {
  position: relative;
  flex: none;
  width: clamp(150px, 41cqi, 226px);
  aspect-ratio: 669 / 538; /* the bell picture's own shape; see site/assets/3d/sizes.json */
  transition: transform 0.25s var(--out);
}
.bell__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bell__down { visibility: hidden; }
.bell:hover .bell__img { transform: translateY(-3px); }
.bell.is-rung .bell__img { transform: translateY(2px); transition-duration: 0.05s; }
.bell.is-rung .bell__up { visibility: hidden; }
.bell.is-rung .bell__down { visibility: visible; }

.bell__sign {
  max-width: 9.5em;
  margin: 0 0 30px -14px;
  padding: 0.5em 0.75em 0.62em;
  border-radius: 10px;
  background: var(--yellow);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.4),
    0 4px 0 var(--yellow-side),
    0 13px 14px -6px rgb(var(--cast) / 0.36);
  font: 400 1.0625rem/1.14 var(--sign);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
  transition: transform 0.25s var(--out);
}
.bell:hover .bell__sign { transform: rotate(-1deg) translateY(-2px); }

.note {
  max-width: 15.5em;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: right;
  pointer-events: auto;
}

/* ------------------------------------------------------------ what we fix
   A shop front: a yellow sign across the top, and two shelves under it.
   Every object stands on the same line of the shelf, placed by the floor
   point that was recorded when it was rendered. */

.fascia {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 3.4vw, 46px) 0 clamp(28px, 3.6vw, 50px);
  background: var(--yellow);
  box-shadow:
    inset 0 3px 0 rgb(255 255 255 / 0.5),
    0 12px 0 var(--yellow-side),
    0 38px 40px -20px rgb(var(--cast) / 0.34);
}
.fascia__in {
  display: grid;
  grid-template-columns: auto minmax(0, 30rem);
  justify-content: space-between;
  align-items: end;
  gap: 14px clamp(24px, 5vw, 84px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.fascia h2 {
  margin: 0;
  font: 400 clamp(3.2rem, 8.6vw, 6rem)/1 var(--sign);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fascia p {
  margin: 0 0 0.6rem;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}

.display {
  display: grid;
  gap: clamp(60px, 6.4vw, 96px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(60px, 6.4vw, 92px) var(--gutter) clamp(76px, 8vw, 124px);
}

.shelf {
  --k: 0.41;          /* picture size: page pixels per rendered pixel */
  --surface: 52px;    /* how much of the shelf top is seen */
  --stand: 196px;     /* room above the shelf for the tallest object */
  --at: 38%;          /* where in its bay an object stands */
}
.shelf--back { --k: 0.58; --stand: 276px; --at: 28%; }

.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.shelf__name {
  margin: 0;
  padding: 0.55em 0.85em;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 700 0.8125rem/1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.shelf__what { margin: 0; color: var(--ink-soft); font-weight: 600; }

.shelf__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
/* In the back: the workflow is long, so its bay takes about two thirds of the shelf. */
.shelf--back .shelf__items { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }

.item__stand { position: relative; height: var(--stand); }
/* The shelf: its top, its front edge, and its shadow on the wall. */
.item__stand::after {
  content: "";
  position: absolute;
  inset: auto -1px 0 0; /* overlaps the next bay by a pixel so no seam shows */
  height: var(--surface);
  background: var(--red);
  box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.18), 0 14px 0 var(--red-side);
}
.item__stand::before {
  content: "";
  position: absolute;
  inset: calc(100% + 14px) 0 auto;
  height: 30px;
  background: linear-gradient(rgb(var(--cast) / 0.24), rgb(var(--cast) / 0));
}
.item:first-child .item__stand::after { border-radius: 16px 0 0 16px; }
.item:last-child .item__stand::after { border-radius: 0 16px 16px 0; }

.item__obj {
  position: absolute;
  z-index: 1;
  max-width: none;
  width: calc(var(--cw) * var(--k) * 1px);
  left: calc(var(--at) - var(--fx) * var(--cw) * var(--k) * 1px);
  bottom: calc(var(--surface) / 2 - (1 - var(--fy)) * var(--ch) * var(--k) * 1px);
  transition: transform 0.4s var(--out);
}
/* A long object fills its bay from the left edge, whatever the bay's width.
   --px is how many page pixels one rendered pixel gets at that width. */
.item--wide { container-type: inline-size; }
.item--wide .item__obj {
  --px: calc(96cqw / var(--cw));
  left: 0;
  width: 96cqw;
  bottom: calc(var(--surface) / 2 - (1 - var(--fy)) * var(--ch) * var(--px));
}
.item:hover .item__obj { transform: translateY(-9px); }

.item__text { padding: 50px 28px 0 2px; }
.item h4 {
  margin: 0;
  font: 400 1.875rem/1.05 var(--sign);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.item p {
  max-width: 19rem;
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
  text-wrap: pretty;
}
.shelf--back .item h4 { font-size: 2.5rem; }
.shelf--back .item p { max-width: 31rem; font-size: 1.1875rem; }
.shelf--back .item--wide p { max-width: 36rem; }

/* ------------------------------------------------------------ how it works
   A staircase. Each step is a black block with a yellow tread, one step
   higher than the last, and that step's object stands on the tread.
   On a wide screen the heading sits in the open space above the two low steps. */

.how {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(88px, 9vw, 140px);
}
.how__in {
  --k: 0.5;           /* picture size: page pixels per rendered pixel */
  --surface: 52px;    /* how much of a tread's top is seen */
  --stand: 212px;     /* room above a tread for the tallest object */
  --base: 216px;      /* height of the lowest block */
  --rise: 92px;       /* how much higher each next step is */
  --at: 44%;          /* where on its tread an object stands */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.how__lead { grid-column: 1 / -1; margin-bottom: 30px; }
.how__lead h2 {
  margin: 0;
  font: 400 clamp(3.2rem, 6.6vw, 6rem)/1 var(--sign);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.how__lead p {
  max-width: 24rem;
  margin: 0.85rem 0 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}

.steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step:nth-child(1) { --n: 0; }
.step:nth-child(2) { --n: 1; }
.step:nth-child(3) { --n: 2; }
.step:nth-child(4) { --n: 3; }

.step { position: relative; }
/* One soft shadow under the whole flight, so it does not break between steps.
   --span is how many steps wide the flight is. */
.step:first-child::after {
  --span: 4;
  content: "";
  position: absolute;
  z-index: -1;
  left: 28px;
  bottom: 0;
  width: calc(var(--span) * 100% - 56px);
  height: 80px;
  border-radius: 16px;
  box-shadow: 0 44px 50px -6px rgb(var(--cast) / 0.4);
}

.step__stand { position: relative; height: var(--stand); }
/* The tread: its top, and its front edge over the block below. */
.step__stand::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--surface);
  border-radius: 12px 0 0;
  background: var(--yellow);
  box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.45), 0 12px 0 var(--yellow-side);
}
.step:last-child .step__stand::after { border-top-right-radius: 12px; }

.step__obj {
  position: absolute;
  z-index: 1;
  max-width: none;
  width: calc(var(--cw) * var(--k) * 1px);
  left: calc(var(--at) - var(--fx) * var(--cw) * var(--k) * 1px);
  bottom: calc(var(--surface) / 2 - (1 - var(--fy)) * var(--ch) * var(--k) * 1px);
  transition: transform 0.4s var(--out);
}
.step:hover .step__obj { transform: translateY(-9px); }

.step__face {
  min-height: calc(var(--base) + var(--n) * var(--rise));
  padding: 40px 26px 30px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 0 #000;
}
.step:first-child .step__face { border-bottom-left-radius: 16px; }
.step:last-child .step__face { border-bottom-right-radius: 16px; }
.step h3 {
  margin: 0;
  font: 400 1.875rem/1.08 var(--sign);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.step__no { margin-right: 0.18em; color: var(--yellow); }
.step p {
  max-width: 21rem;
  margin: 0.6rem 0 0;
  color: #E7E1D6;
  line-height: 1.45;
  text-wrap: pretty;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 1101px) {
    .how__in { grid-template-rows: auto auto; }
    .how__lead {
      position: relative;
      z-index: 1;
      grid-column: 1 / 3;
      grid-row: 1;
      margin-bottom: 26px;
      padding-right: 24px;
    }
    .steps { grid-row: 1 / 3; grid-template-rows: subgrid; }
    .step:nth-child(1) { grid-area: 2 / 1; }
    .step:nth-child(2) { grid-area: 2 / 2; }
    .step:nth-child(3) { grid-area: 1 / 3 / 3; }
    .step:nth-child(4) { grid-area: 1 / 4 / 3; }
  }
}

/* ------------------------------------------------------------ the free scan
   The page closes the way it opened: paper on the red sign. This time the
   paper is blank and it is the visitor's to fill in. The slip stands a little
   proud of the sign's top edge, and the stamp stands in front of the sign. */

.scan {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(112px, 11vw, 168px);
  scroll-margin-top: 76px;
}
.scan__plate {
  --k: 0.62;          /* picture size: page pixels per rendered pixel */
  --proud: 44px;      /* how far the slip stands above the sign's top edge */
  --hang: -34px;      /* how far the stamp hangs past the sign's left edge */
  --up: 18px;         /* how far above the sign's bottom edge the stamp stands */
  --pad-top: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: start;
  gap: clamp(32px, 5vw, 76px);
  padding: var(--pad-top) clamp(40px, 5vw, 72px) clamp(56px, 5.4vw, 76px);
}

.scan__pitch { color: #fff; }
.scan__pitch h2 {
  margin: 0;
  font: 400 clamp(3.2rem, 6vw, 5.5rem)/1.02 var(--sign);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.scan__pitch p {
  max-width: 27rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

.scan__desk { position: relative; margin-top: calc(-1 * (var(--pad-top) + var(--proud))); }
.scan__desk .sheet--under { inset: 0; }

/* The slip is kept square to the page so it is easy to type on. */
.slip {
  position: relative;
  box-shadow:
    0 1px 0 rgb(var(--cast) / 0.14),
    0 28px 30px -16px rgb(var(--cast-red) / 0.75);
}
.slip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 13px;
  border-bottom: 3px solid var(--ink);
}
.slip__title {
  margin: 0;
  font: 400 clamp(1.6rem, 2.5vw, 2.125rem)/1.08 var(--sign);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.slip__head .tag { margin: 0; font-size: 1.125rem; }

.field { margin: 0; padding: 14px 22px 17px; border-bottom: 2px dashed var(--rule); }
.field label {
  display: block;
  font: 400 1.25rem/1.1 var(--sign);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.field input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 9px 0 0;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  box-shadow: inset 0 3px 0 rgb(var(--cast) / 0.09);
  color: var(--ink);
  font: 500 1.0625rem/1.2 var(--text);
}
.field input::placeholder { color: var(--ink-soft); opacity: 1; }
/* A field being typed in: white, with a yellow band inside the dark outline. */
.field input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--yellow);
}

.slip__go { padding: 22px 22px 26px; }
.slip__go .key { width: 100%; min-height: 62px; font-size: 1.0625rem; }
.slip__status { margin: 14px 0 0; font-weight: 700; line-height: 1.35; }
.slip__status:empty { display: none; }

.scan__obj {
  position: absolute;
  z-index: 2;
  max-width: none;
  width: calc(var(--cw) * var(--k) * 1px);
  left: var(--hang);
  bottom: calc(var(--up) - (1 - var(--fy)) * var(--ch) * var(--k) * 1px);
}

/* ------------------------------------------------------------ base */

.base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 26px var(--gutter) 30px;
  background: var(--ink);
  color: #fff;
}
.base p { margin: 0; }
.base__name { color: var(--yellow); font: 400 1.5rem/1 var(--sign); letter-spacing: 0.04em; }
.base__line { font-size: 0.9375rem; }

/* ------------------------------------------------------------ motion
   Things are set down once when the page opens, and again when the bell
   is rung. Everything is visible without it. */

@keyframes land { from { opacity: 0; translate: 0 -30px; rotate: 2.2deg; } }
@keyframes set-down { from { opacity: 0; translate: 0 -44px; } 70% { translate: 0 3px; } }
@keyframes pop { from { opacity: 0; scale: 0.55; translate: -6px 10px; } }
@keyframes thump { from { opacity: 0; scale: 1.8; } 55% { opacity: 1; scale: 0.95; } }
@keyframes leave { to { opacity: 0; translate: -52px 30px; rotate: -8deg; } }

@media (prefers-reduced-motion: no-preference) {
  .sheet--3 { animation: land 0.7s var(--out) 0.05s backwards; }
  .sheet--2 { animation: land 0.7s var(--out) 0.13s backwards; }
  .order { animation: land 0.75s var(--out) 0.22s backwards; }
  .row__obj { animation: pop 0.5s var(--out) backwards; }
  .row:nth-child(1) .row__obj { animation-delay: 0.55s; }
  .row:nth-child(2) .row__obj { animation-delay: 0.64s; }
  .row:nth-child(3) .row__obj { animation-delay: 0.73s; }
  .stamp { animation: thump 0.42s var(--out) 1s backwards; }
  .bell__img { animation: set-down 0.7s var(--out) 0.5s backwards; }
  .bell__sign { animation: pop 0.5s var(--out) 0.95s backwards; }

  .order.is-leaving { animation: leave 0.22s cubic-bezier(0.5, 0, 0.9, 0.3) forwards; }
  .order.is-landing { animation: land 0.55s var(--out) backwards; }
  .order.is-landing .row:nth-child(1) .row__obj { animation: pop 0.45s var(--out) 0.16s backwards; }
  .order.is-landing .row:nth-child(2) .row__obj { animation: pop 0.45s var(--out) 0.23s backwards; }
  .order.is-landing .row:nth-child(3) .row__obj { animation: pop 0.45s var(--out) 0.3s backwards; }
  .order.is-landing .stamp { animation: thump 0.4s var(--out) 0.46s backwards; }
}

/* ------------------------------------------------------------ smaller screens */

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .counter { justify-self: start; width: min(100% - 34px, 548px); margin-left: 34px; }
  .front { margin-left: -44px; }
}

@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .wordmark { font-size: 2.125rem; }
  .top__nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .top__nav a { font-size: 0.9375rem; }
}

/* When the counter itself is narrow, the work order tightens up. */
@container counter (max-width: 500px) {
  .plate { padding: 30px 22px 58px; border-radius: 28px; }
  .plate::before { inset: 9px; border-radius: 20px; }
  .sheet--under { inset: 30px 22px 58px; }
  .order__head { flex-wrap: wrap; padding: 14px 16px 11px; }
  .order__when { padding: 9px 16px; }
  .row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 12px 14px 14px 0;
  }
  .row__obj { grid-row: span 2; width: 68px; margin-left: -20px; }
  .row__obj--long { width: 78px; margin-left: -27px; }
  .tag { grid-column: 2; justify-self: start; }
  .order__foot { padding: 16px 150px 18px 16px; }
  .stamp { right: 12px; bottom: 12px; font-size: 1.75rem; border-width: 3px; }
  .front { margin: -54px 0 0 -40px; }
  .bell__sign { font-size: 1rem; margin-bottom: 22px; }
}

@media (max-width: 580px) {
  .counter { width: 100%; margin-left: 0; }
  .front { flex-wrap: wrap; margin-left: -12px; }
  .note { flex: 1 1 100%; max-width: none; margin: 14px 0 0 12px; text-align: left; }
  .actions .key { flex: 1 1 auto; }
  .top .key--small { min-height: 44px; padding: 0 14px; font-size: 0.78rem; letter-spacing: 0.04em; }
}

/* ------------------------------------------------------------ what we fix, smaller screens */

@media (max-width: 1160px) {
  .shelf { --k: 0.34; --stand: 168px; }
  .shelf--back { --k: 0.5; --stand: 232px; }
  .item__text { padding-right: 20px; }
}

/* Below this the back shelf becomes two shelves, one object each. */
@media (max-width: 1000px) {
  .shelf--back .shelf__items { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .shelf--back .item .item__stand::after { border-radius: 16px; }
  .shelf--back { --at: 150px; }
  /* On its own shelf the long object sets its own headroom from its width. */
  /* 28.5 = how tall the workflow stands above the shelf, as a share of the bay's width. */
  .item--wide .item__stand { height: calc(28.5cqw + var(--surface) / 2 + 10px); }
}

@media (max-width: 860px) {
  .fascia__in { grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; }
  .fascia p { margin-bottom: 0; }
  .shelf { --k: 0.36; --stand: 176px; --at: 50%; }
  .shelf__items { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .item:first-child .item__stand::after, .item:last-child .item__stand::after { border-radius: 0; }
  .item:nth-child(odd) .item__stand::after { border-radius: 16px 0 0 16px; }
  .item:nth-child(even) .item__stand::after { border-radius: 0 16px 16px 0; }
  .shelf--back { --k: 0.46; --stand: 200px; --at: 140px; }
  .shelf--back .item h4 { font-size: 2.125rem; }
  .shelf--back .item p { font-size: 1.0625rem; }
}

@media (max-width: 560px) {
  .shelf { --k: 0.29; --stand: 142px; --surface: 42px; }
  .item__text { padding: 44px 14px 0 2px; }
  .item h4 { font-size: 1.5rem; }
  .item p { font-size: 0.9375rem; }
  .shelf--back { --k: 0.4; --stand: 176px; --at: 50%; }
}

/* ------------------------------------------------------------ how it works, smaller screens */

@media (max-width: 1300px) {
  .how__in { --k: 0.42; --stand: 184px; --base: 262px; --rise: 84px; }
  .step__face { padding: 38px 20px 28px; }
  .step h3 { font-size: 1.5rem; }
}

/* Below this the staircase is two short flights of two steps. */
@media (max-width: 1100px) {
  .how__in { --k: 0.46; --stand: 204px; --base: 196px; --rise: 76px; --at: 40%; }
  /* The heading keeps to the left half, over the low step, and the flight moves up beside it. */
  .how__lead { max-width: calc(50% - 20px); margin-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -56px; }
  .step:nth-child(odd) { --n: 0; }
  .step:nth-child(even) { --n: 1; }
  .step:nth-child(odd)::after {
    --span: 2;
    content: "";
    position: absolute;
    z-index: -1;
    left: 28px;
    bottom: 0;
    width: calc(var(--span) * 100% - 56px);
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 44px 50px -6px rgb(var(--cast) / 0.4);
  }
  .step__face { padding: 40px 26px 30px; }
  .step h3 { font-size: 1.875rem; }
  .step:nth-child(odd) .step__face { border-bottom-left-radius: 16px; }
  .step:nth-child(even) .step__face { border-bottom-right-radius: 16px; }
  .step:nth-child(even) .step__stand::after { border-top-right-radius: 12px; }
}

/* On a phone, one step under the other. */
@media (max-width: 640px) {
  .how__in { --k: 0.4; --stand: 176px; --surface: 42px; --base: 0px; --at: 132px; }
  .how__lead { max-width: none; margin-bottom: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .steps .step { --n: 0; }
  .steps .step::after {
    --span: 1;
    content: "";
    position: absolute;
    z-index: -1;
    left: 28px;
    bottom: 0;
    width: calc(var(--span) * 100% - 56px);
    height: 60px;
    border-radius: 16px;
    /* A shorter shadow here, so it stays clear of the object on the next step down. */
    box-shadow: 0 26px 26px -8px rgb(var(--cast) / 0.34);
  }
  /* The flashlight is low, so the first step needs less headroom. */
  .steps .step:first-child .step__stand { height: 128px; }
  .steps .step__stand::after { border-radius: 12px 12px 0 0; }
  .steps .step__face { padding: 36px 20px 26px; border-radius: 0 0 16px 16px; }
  .step h3 { font-size: 1.625rem; }
}

/* ------------------------------------------------------------ the free scan, smaller screens */

@media (max-width: 1160px) {
  .scan__plate { --k: 0.54; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
}

/* Below this the sign is one column: the pitch, then the slip. The stamp
   stands mostly in front of the sign, the way the bell does at the top. */
@media (max-width: 920px) {
  .scan { padding-bottom: 168px; }
  .scan__plate {
    --k: 0.5;
    --up: -40px;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-bottom: 98px;
  }
  .scan__desk { max-width: 640px; margin-top: 0; }
}

@media (max-width: 560px) {
  .scan { padding-bottom: 150px; }
  .scan__plate {
    --k: 0.42;
    --hang: -10px;
    --up: -34px;
    gap: 28px;
    padding: 36px 22px 84px;
    border-radius: 28px;
  }
  .scan__plate::before { inset: 9px; border-radius: 20px; }
  .scan__pitch { padding: 0 6px; }
  /* A tall, narrow slip: the sheets under it lean less, so they stay on the sign. */
  .scan__desk .sheet--3 { transform: rotate(1.5deg) translate(5px, 8px); }
  .scan__desk .sheet--2 { transform: rotate(-1.4deg) translate(-4px, 5px); }
  .slip__head { padding: 14px 16px 11px; }
  .field { padding: 12px 16px 15px; }
  .slip__go { padding: 18px 16px 22px; }
}
