/* Shared by the Our story and Credits pages: the homepage's header, switches, buttons, store badges, notes, tape and
   footer, drawn from its page.css and laid out for a plain responsive page (phone, tablet, desktop). Colours and faces come
   from tokens.css; light is loose-leaf, dark is the chalkboard, and the two change roles only, never a box. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { color: var(--ink); font-family: var(--hand); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-width: 320px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
p { text-wrap: pretty; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9em; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the ground: loose-leaf the page long (no margin rule), the chalkboard fixed behind it in dark ---------- */
body { background-color: var(--paper); background-image: url("assets/art/paper-wide-cap.webp"), url("assets/art/paper-wide-tile.webp"); background-size: var(--plate-w, 100%) auto, var(--plate-w, 100%) auto; background-repeat: no-repeat, repeat-y; background-position: 0 0, 0 var(--tile-y, 172px); }
.ground { position: fixed; inset: 0; z-index: -1; display: none; background: var(--paper) url("assets/art/chalk-wide.webp") left top / cover no-repeat; }
:root[data-theme="dark"] body { background-image: none; }
:root[data-theme="dark"] .ground { display: block; }
@media (max-width: 699px) {
  body { background-image: url("assets/art/paper-real-cap.webp"), url("assets/art/paper-real-tile.webp"); }
  .ground { background-image: url("assets/art/chalk-real.webp"); }
}
:root { --gutter: clamp(76px, 6vw, 110px); }
@media (max-width: 1099px) { :root { --gutter: 76px; } }
@media (max-width: 699px) { :root { --gutter: 26px; } }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); font-family: var(--press); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.page, .top, .foot__in { width: 100%; max-width: calc(1360px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { overflow-x: clip; }

/* ---------- the top bar: switches left, Feedback & ideas and Log in right ---------- */
.top { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; row-gap: 10px; min-height: 76px; padding-top: 14px; }
.toggles { display: flex; gap: 22px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--press); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pencil); white-space: nowrap; }
.toggle:first-child { gap: 22px; }
.toggle__box { width: 40px; height: 22px; overflow: visible; }
.toggle__frame { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.toggle__dot { fill: var(--pencil); transition: transform 0.2s ease; }
.toggle[aria-checked="true"] .toggle__frame { stroke: var(--ink); }
.toggle[aria-checked="true"] .toggle__dot { fill: var(--ink); transform: translateX(18px); }
.toggle[aria-checked="true"] .toggle__word { color: var(--ink); }
.toggle__word > span { display: inline-block; min-width: 3.2ch; }
.ink-path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.slab { position: relative; display: inline-flex; align-items: center; min-height: 50px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; }
:root[data-theme="dark"] .slab, :root[data-theme="dark"] .store { background-image: url("assets/art/card-stock-dark.webp"); }
.slab-frame { position: absolute; left: 3px; top: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; color: var(--on-slab); opacity: 0.8; }
.slab-frame .ink-path { stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.feedback { margin-left: auto; margin-right: 14px; min-height: 48px; padding: 0 20px; transform: rotate(-1deg); box-shadow: var(--sh-card); }
.feedback span { position: relative; font-family: var(--press); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.feedback:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.feedback::after, .login::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }

/* ---------- the marker button: the token orange cut to a real marker swath, hopping on a beat ---------- */
.marker { position: relative; isolation: isolate; display: inline-flex; align-items: center; height: 76px; padding: 0 30px 0 26px; transform-origin: 50% 100%; font-family: var(--press); font-weight: 900; font-size: 24px; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; color: var(--on-marker); transform: rotate(-1deg); animation: hop 2.6s linear 1.2s infinite; }
.marker__ink { position: absolute; inset: 0; z-index: -1; background: var(--marker); -webkit-mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 3px 0 color-mix(in srgb, var(--marker) 50%, #000)); }
.marker__label { position: relative; white-space: nowrap; }
.marker:active { transform: rotate(-1deg) scale(0.96); animation: none; }
@keyframes hop {
  0%, 44%, 100% { transform: rotate(-1deg); animation-timing-function: ease-out; }
  50% { transform: rotate(1deg) scale(1.1, 0.84); animation-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1); }
  58% { transform: translateY(-4px) rotate(-1deg) scale(0.94, 1.06); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5); }
  66% { transform: rotate(-3deg) scale(1.14, 0.82); animation-timing-function: ease-out; }
  72% { transform: translateY(-2px) rotate(-1deg) scale(0.97, 1.03); animation-timing-function: ease-in; }
  78% { transform: rotate(-1deg) scale(1.05, 0.95); }
  83% { transform: rotate(1.2deg); }
  88% { transform: rotate(-2deg); }
  93% { transform: rotate(-0.6deg); }
}
.login-entry { position: relative; }
.login-entry .login { height: auto; min-height: 50px; padding: 0 24px; transform: rotate(1deg); }
.login-entry .login .marker__label { font-size: 15px; letter-spacing: 0.1em; font-weight: 800; }
.login:hover .marker__label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.login-callout { position: absolute; right: calc(50% + 64px); top: 100%; width: 168px; margin: 8px 0 0; color: var(--ink); font: 17px/1.3 var(--hand); text-align: right; pointer-events: none; }
.login-arrow { position: absolute; width: 68px; height: auto; left: 50%; margin-left: -57.8px; top: calc(100% + 6px); overflow: visible; pointer-events: none; transform-origin: 85% 0; animation: login-point 2.6s ease-in-out 1.2s infinite; }
.login-arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes login-point { 0%, 55%, 100% { transform: none; } 62% { transform: translate(-3px, 4px) rotate(-4deg); } 70% { transform: none; } 78% { transform: translate(-2px, 3px) rotate(-3deg); } }

/* ---------- the stores: each mark at its true geometry inside the page's own button frame ---------- */
.stores { display: contents; }
.store { position: relative; display: flex; align-items: center; gap: 13px; height: 76px; padding: 0 22px 0 17px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; box-shadow: var(--sh-card); }
.store__frame { position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); height: calc(100% - 8px); pointer-events: none; opacity: 0.8; }
.store__frame .ink-path { stroke: var(--on-slab); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.store__glyph { position: relative; flex: none; }
.store__glyph--apple { width: 31px; height: 38px; }
.store__glyph--play { width: 33px; height: 36px; }
.store__glyph--microsoft { width: 30px; height: 30px; }
.store__txt { position: relative; text-align: left; }
.store__k { display: block; font-family: var(--press); font-weight: 800; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-slab) 72%, transparent); white-space: nowrap; }
.store__n { display: block; margin-top: 4px; font-family: var(--display); font-size: 24px; line-height: 1.05; color: var(--on-slab); white-space: nowrap; }
.store:active { translate: 0 2px; }
/* The four ways in: four equal cells in a square, the button and the three badges the same size. */
.get { --cell: 224px; --cell-h: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, var(--cell))); gap: 12px; width: max-content; max-width: 100%; }
.get .marker, .get .store { width: 100%; height: var(--cell-h); min-height: 46px; margin: 0; padding: 0 12px; justify-content: center; transform: none; }
.get .marker { font-size: 21px; }
.get--row { margin-left: auto; margin-right: auto; }
@media (max-width: 1099px) {
  .get { --cell: 196px; --cell-h: 58px; }
  .get .marker { font-size: 19px; }
  .get .store { gap: 10px; }
  .get .store__glyph--apple { width: 26px; height: 32px; }
  .get .store__glyph--play { width: 28px; height: 30px; }
  .get .store__glyph--microsoft { width: 25px; height: 25px; }
  .get .store__k { font-size: 8.5px; }
  .get .store__n { font-size: 20px; }
}
@media (max-width: 699px) {
  .get { --cell: 162px; --cell-h: 54px; gap: 10px; }
  .get .marker { font-size: 15.5px; padding: 0 8px; }
  .get .store { gap: 6px; padding-left: 8px; padding-right: 6px; }
  .get .store__glyph--apple { width: 16px; height: 20px; }
  .get .store__glyph--play { width: 17px; height: 19px; }
  .get .store__glyph--microsoft { width: 16px; height: 16px; }
  .get .store__k { display: none; }
  .get .store__n { margin-top: 0; font-size: 16px; }
  .top { min-height: 60px; padding-top: 8px; column-gap: 8px; }
  .toggles { flex-direction: column; align-items: flex-start; gap: 0; }
  .feedback { flex: 1 1 0; min-width: min-content; padding: 0 10px; margin-right: 8px; margin-left: 8px; min-height: 44px; }
  .feedback span { font-size: 11.5px; letter-spacing: 0.02em; white-space: normal; }
  .login-entry { margin-left: auto; }
  .login-callout { right: calc(50% + 44px); width: 157px; font-size: 13px; }
  .login-arrow { width: 48px; margin-left: -40.8px; }
}

/* ---------- type ---------- */
.h1, .h2 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.h2 { font-size: 56px; }
.h3 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.15; }
.h2 .num, .h1 .num { font-family: inherit; font-size: 1em; letter-spacing: inherit; }
.swipe { background: url("assets/art/highlighter.webp") 0 31% / 100% 190% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 6px; margin: 0 -6px; color: var(--on-card); }
.tape { position: absolute; top: 0; left: 40%; width: 96px; height: auto; aspect-ratio: 512 / 50; transform: translateY(-50%) rotate(-3deg); opacity: 0.92; pointer-events: none; z-index: 2; }

/* ---------- a torn note: paper in both themes, ink on it in both ---------- */
.note { position: relative; isolation: isolate; padding: 38px 28px 28px; color: var(--on-card); }
.note::before { content: ""; position: absolute; inset: 0; z-index: -1; border-style: solid; border-width: 34px 8px 6px 8px; border-image: url("assets/art/note-flat.webp") 90 20 12 20 fill / 34px 8px 6px 8px stretch round; filter: drop-shadow(0 1px 1px rgba(var(--sh-rgb), 0.34)) drop-shadow(0 10px 18px rgba(var(--sh-rgb), 0.3)); }
.note p { margin: 8px 0 0; font-family: var(--hand); font-size: 17.5px; line-height: 1.4; }
.note p:first-of-type { margin-top: 0; }

/* The mark, as a vinyl sticker. It never moves. */
.sticker { position: relative; width: 190px; aspect-ratio: 1.568; transform: rotate(-3deg); }
.sticker img { position: absolute; width: 118.3%; left: -9.47%; top: -50.8%; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(var(--sh-vinyl)); }

/* A cast member stands on the paper on a soft contact shadow; under the pointer, it hops. */
.stand { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.stand img { height: 330px; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), 0.22)); pointer-events: auto; }
.stand__shadow { width: 76%; height: 14px; margin-top: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--sh-rgb), 0.34), rgba(var(--sh-rgb), 0)); pointer-events: none; }
.stand img:hover { animation: hop 1.3s linear infinite; }

/* ---------- the footer: the live site's four groups, on a torn sheet of card in light ---------- */
.foot { position: relative; isolation: isolate; margin-top: 72px; padding: 96px 0 40px; }
.foot::before { content: ""; position: absolute; z-index: -1; inset: 0; border-image: url("assets/art/foot-sheet.webp") 110 0 0 0 fill / 70px 0 0 0 stretch; filter: drop-shadow(0 -1px 3px rgba(var(--sh-rgb), 0.16)); }
:root[data-theme="dark"] .foot::before { display: none; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 34px 30px; }
.foot__h { margin: 0 0 14px; font-family: var(--press); font-weight: 800; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__col--social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-family: var(--hand); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; transition: transform 0.18s ease; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transform: translateX(3px); }
.foot__langs, .foot__end { position: relative; margin-top: 38px; padding-top: 30px; }
.foot__langs::before, .foot__end::before { content: ""; position: absolute; left: 0; right: 0; height: 10px; top: -4px; background: var(--pencil); opacity: 0.55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
:root[data-theme="dark"] .foot__langs::before, :root[data-theme="dark"] .foot__end::before { opacity: 0.85; }
.foot__lang-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.foot__lang-row li { font-family: var(--hand); font-size: 16px; font-weight: 700; color: var(--ink); }
.foot__lang-row li[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot__end { display: flex; align-items: center; gap: 26px; }
.sticker--foot { width: 112px; margin: 0; flex: none; }
.foot__line { margin: 0; font-family: var(--hand); font-size: 16px; font-weight: 700; color: var(--ink); }
.foot__line .num { font-family: inherit; font-weight: inherit; font-size: 1em; letter-spacing: inherit; }
@media (max-width: 699px) {
  .foot { padding-top: 78px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .foot__col--social { grid-column: 1 / -1; }
  .foot__lang-row { gap: 8px 18px; }
  .foot__end { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sticker--foot { width: 100px; }
}

/* ---------- hover: everything he can touch lifts a little ---------- */
.store, .login, .feedback, .note, .stand img { transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease; }
.get .store:hover, .get .store:focus-visible, .login:hover, .login:focus-visible, .feedback:hover, .feedback:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 14px rgba(var(--sh-rgb), 0.22); }
.get .marker:hover, .get .marker:focus-visible { animation-duration: 1.1s; }
@keyframes lift-bob { 50% { transform: translateY(-12px) rotate(0.6deg); } }
.note:hover { transform: translateY(-6px) rotate(0deg); animation: lift-bob 1.6s ease-in-out 0.25s infinite; }

/* ---------- pop-ins as things scroll in: squash, overshoot, settle ---------- */
.js .pop { opacity: 0; translate: 0 18px; scale: 0.86; }
.js .pop.in { animation: pop-in 0.62s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) both; }
@keyframes pop-in {
  0% { opacity: 0; translate: 0 18px; scale: 0.86 0.8; }
  55% { opacity: 1; translate: 0 -6px; scale: 1.05 0.95; }
  78% { translate: 0 1px; scale: 0.98 1.02; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .pop { opacity: 1; translate: none; scale: none; }
}

/* ======================================================================================================================
   Credits. The page is one long strip of paper, the roll, read from the top: each credit is a stanza on it, in the order a film
   would roll them. The counter on the left says where you are; one of the cast watches from the right and changes with each
   credit. The strip stays paper in both themes (card stock does not bleach on a board), so ink on it stays ink. The small print
   (every library, every text) lies below it, and a last picture ends the page.
   ====================================================================================================================== */

.reel { display: grid; grid-template-columns: 224px minmax(0, 700px) minmax(0, 1fr); column-gap: 44px; align-items: start; padding-top: 22px; }

/* ---------- the counter ---------- */
.reel__rail { position: sticky; top: 92px; z-index: 4; }
.rail { list-style: none; margin: 0; padding: 40px 18px 24px 22px; position: relative; isolation: isolate; color: var(--on-card); transform: rotate(-1deg); }
.rail::before { content: ""; position: absolute; inset: 0; z-index: -1; border-style: solid; border-width: 34px 8px 6px 8px; border-image: url("assets/art/note-flat.webp") 90 20 12 20 fill / 34px 8px 6px 8px stretch round; filter: drop-shadow(0 1px 1px rgba(var(--sh-rgb), 0.34)) drop-shadow(0 10px 18px rgba(var(--sh-rgb), 0.3)); }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--hand); font-weight: 700; font-size: 17px; line-height: 1.15; color: var(--on-card-dim); text-decoration: none; transition: color 0.2s; }
.rail a .num { flex: none; width: 2.2em; font-size: 12px; color: var(--on-card-dim); }
.rail a:hover, .rail a:focus-visible, .rail a.on { color: var(--on-card); }
.rail a.on span:not(.num) { background: url("assets/art/highlighter.webp") 0 31% / 100% 190% no-repeat; padding: 0 5px; margin: 0 -5px; }
.rail a.on .num { color: var(--on-card); }

/* ---------- the roll ---------- */
.roll { position: relative; padding: 84px 70px 110px; text-align: center; color: var(--on-card); }
.roll__bg { position: absolute; inset: 0; filter: drop-shadow(0 1px 1px rgba(var(--sh-rgb), 0.3)) drop-shadow(0 14px 22px rgba(var(--sh-rgb), 0.28)); pointer-events: none; }
.roll__bg i { position: absolute; inset: 0; background: var(--card) url("assets/art/card-stock-light.webp") center top / 760px auto repeat-y; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 560' preserveAspectRatio='none'%3E%3Cpath d='M10,0 L7,40 L12,80 L6,120 L11,160 L8,200 L13,240 L7,280 L10,320 L6,360 L12,400 L9,440 L11,480 L7,520 L10,560 L690,560 L695,520 L692,480 L686,440 L690,400 L693,360 L688,320 L694,280 L689,240 L692,200 L687,160 L693,120 L688,80 L694,40 L690,0 Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 100% 560px repeat-y; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 560' preserveAspectRatio='none'%3E%3Cpath d='M10,0 L7,40 L12,80 L6,120 L11,160 L8,200 L13,240 L7,280 L10,320 L6,360 L12,400 L9,440 L11,480 L7,520 L10,560 L690,560 L695,520 L692,480 L686,440 L690,400 L693,360 L688,320 L694,280 L689,240 L692,200 L687,160 L693,120 L688,80 L694,40 L690,0 Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 100% 560px repeat-y; }
.roll__end { position: absolute; left: -16px; right: -16px; height: 48px; z-index: 3; background: linear-gradient(to bottom, #b9ad8b 0%, #ece4cd 22%, #fbf8ee 50%, #e6dcc2 78%, #b4a885 100%); border: 2px solid rgba(20, 16, 38, 0.55); box-shadow: 0 6px 12px rgba(var(--sh-rgb), 0.25); pointer-events: none; }
.roll__end--top { top: -8px; }
.roll__end--bottom { bottom: -8px; }
.credit { position: relative; z-index: 2; padding: 54px 0 14px; scroll-margin-top: 80px; }
.credit--title { padding-top: 34px; }
.sticker--title { width: 330px; margin: 0 auto 6px; }
.credit__h1 { font-size: 118px; line-height: 0.95; color: var(--on-card); }
.credit__lead { max-width: 15em; margin: 22px auto 0; font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.35; }
.credit__role { margin: 0 0 22px; font-family: var(--display); font-weight: 400; font-size: 50px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.credit__big { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 46px; line-height: 1.1; }
.credit__big { display: inline-block; background: url("assets/art/highlighter.webp") 0 31% / 100% 190% no-repeat; padding: 0 10px; }
.credit__line { margin: 8px 0 18px; font-family: var(--press); font-weight: 800; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-card-dim); }
.credit__text { max-width: 24em; margin: 0 auto; font-family: var(--hand); font-size: 22px; line-height: 1.45; }
.credit__sub { margin: 26px 0 12px; font-family: var(--press); font-weight: 800; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-card-dim); }
.credit__fine { max-width: 26em; margin: 18px auto 0; font-family: var(--hand); font-size: 16px; line-height: 1.4; color: var(--on-card-dim); }
.credit a { color: var(--on-card); text-decoration: underline; text-decoration-thickness: 1.8px; text-underline-offset: 4px; }
.mail { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 700; }
.chip { display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1.6px solid currentColor; font-family: var(--mono); font-size: 11.5px; font-weight: 400; line-height: 1.4; letter-spacing: 0; transform: rotate(-1.5deg); white-space: nowrap; }

/* a credit's lines: what it was for, dots, then who */
.rows { list-style: none; max-width: 540px; margin: 8px auto 0; padding: 0; display: grid; gap: 16px; text-align: left; }
.rows--tight { gap: 8px; }
.row { display: grid; grid-template-columns: minmax(0, auto) minmax(24px, 1fr) auto; align-items: end; column-gap: 8px; }
.row__k { font-family: var(--hand); font-size: 18px; line-height: 1.3; }
.row__v { font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.3; text-align: right; }
.row__dots { height: 14px; margin-bottom: 4px; background: radial-gradient(circle, var(--on-card-dim) 1.3px, transparent 1.6px) 0 100% / 9px 8px repeat-x; }
.row:has(.row__k:nth-child(1)) { }

/* the four faces, each set in itself */
.faces { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 30px; }
.face__name { margin: 0; font-size: 46px; line-height: 1.05; }
.face__name--display { font-family: var(--display); text-transform: uppercase; }
.face__name--hand { font-family: var(--hand); font-weight: 700; }
.face__name--press { font-family: var(--press); font-weight: 800; letter-spacing: 0.02em; }
.face__name--mono { font-family: var(--mono); font-weight: 600; font-size: 38px; }
.face__job { margin: 4px 0 0; font-family: var(--press); font-weight: 800; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-card-dim); }
.face__by { margin: 8px 0 0; font-family: var(--hand); font-size: 15.5px; line-height: 1.35; }
.face__lic { margin: 6px 0 0; font-family: var(--hand); font-size: 16px; }
.face__lic .chip { margin: 0 8px 0 0; }

/* the stationery on the strip */
.stat { position: absolute; z-index: 3; height: auto; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), 0.24)); pointer-events: none; }
.stat--clip { top: 16px; right: 30px; width: 64px; transform: rotate(16deg); z-index: 4; }
.stat--pencil { left: -26px; top: 150px; width: 56px; transform: rotate(-12deg); }
.stat--marker { right: -54px; top: -8px; width: 66px; transform: rotate(14deg); }
.stat--stapler { left: -30px; top: 24px; width: 124px; transform: rotate(-9deg); }
.stat--eraser { right: -40px; top: 6px; width: 92px; transform: rotate(12deg); }
.stat--scissors { bottom: 64px; left: -42px; width: 86px; transform: rotate(-22deg); z-index: 4; }
.credit--last { padding-bottom: 36px; }

/* the spectator */
.reel__cast { position: sticky; top: 76px; height: calc(100vh - 100px); min-height: 520px; z-index: 1; }
.cast { position: relative; height: 100%; }
.cast__fig { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; display: flex; flex-direction: column; align-items: center; opacity: 0; visibility: hidden; }
.cast__fig img { height: min(66vh, 600px); min-height: 380px; width: auto; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), 0.22)); transform-origin: 50% 100%; }
.cast__fig.on { opacity: 1; visibility: visible; animation: pop-in 0.62s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.credit__fig { display: none; }

/* ---------- the small print ---------- */
.print { margin-top: 110px; }
.fold { margin-top: 30px; }
.fold__tab { list-style: none; cursor: pointer; padding: 0 28px; min-height: 56px; font-family: var(--press); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: var(--sh-card); transform: rotate(-0.8deg); }
.fold__tab::-webkit-details-marker { display: none; }
.fold__tab span { position: relative; }
.fold__tab::after { content: "+"; position: relative; margin-left: 14px; font-family: var(--mono); font-size: 18px; }
.fold[open] > .fold__tab::after { content: "−"; }
.fold__body { margin-top: 26px; padding: 52px 40px 38px; }
.fold__body .tape { left: 46%; }
.libs + .libs { margin-top: 30px; }
.libs__note { margin: 6px 0 0; font-family: var(--hand); font-size: 16px; color: var(--on-card-dim); }
.libs__list { list-style: none; margin: 14px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.libs__list li { break-inside: avoid; padding: 5px 0; font-family: var(--hand); font-size: 15px; line-height: 1.35; }
.libs__n { font-weight: 700; font-size: 17px; }
.libs__c { color: var(--on-card-dim); }
.libs .chip { margin-left: 2px; }
.texts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: start; }
.texts pre { margin: 10px 0 0; white-space: pre-wrap; font-family: var(--hand); font-size: 14.5px; line-height: 1.45; }
.texts a { display: inline-block; min-height: 44px; line-height: 44px; font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--on-card); }

/* ---------- the last picture ---------- */
.after { margin-top: 90px; display: grid; justify-items: center; gap: 26px; text-align: center; }
.after__t { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 42px; line-height: 1.5; }
.after__top { padding: 0 30px; min-height: 56px; font-family: var(--press); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: var(--sh-card); transform: rotate(1deg); }
.after__top span { position: relative; }
.after__top:hover, .after__top:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 14px rgba(var(--sh-rgb), 0.22); }
.slab { transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease; }

/* ---------- tablets and phones: the strip alone, with the cast between credits ---------- */
@media (max-width: 1099px) {
  .reel { grid-template-columns: minmax(0, 700px); justify-content: center; }
  .reel__rail, .reel__cast { display: none; }
  .credit__fig { display: flex; margin: 26px auto 0; }
  .credit__fig img { height: 320px; }
}
@media (max-width: 699px) {
  .roll { padding: 74px 22px 92px; }
  .roll__end { left: -8px; right: -8px; height: 40px; }
  .sticker--title { width: 232px; }
  .credit__h1 { font-size: 78px; }
  .credit__lead { font-size: 21px; }
  .credit { padding-top: 44px; }
  .credit__role { font-size: 40px; margin-bottom: 18px; }
  .credit__big { font-size: 36px; }
  .credit__text { font-size: 19px; }
  .reel { padding-top: 56px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .row__dots { display: none; }
  .row__k { font-size: 16px; }
  .row__v { font-size: 17px; }
  .face__name { font-size: 34px; }
  .face__name--mono { font-size: 28px; }
  .stat--clip { right: 6px; width: 48px; }
  .stat--pencil { left: -12px; width: 40px; top: 120px; }
  .stat--marker { right: -6px; width: 50px; top: 28px; }
  .stat--stapler { left: -12px; width: 86px; top: 14px; }
  .stat--eraser { right: -8px; width: 48px; top: -4px; }
  .stat--scissors { left: -8px; bottom: 52px; width: 56px; }
  .print { margin-top: 80px; }
  .fold__body { padding: 44px 20px 30px; }
  .libs__list { columns: 1; }
  .texts { grid-template-columns: minmax(0, 1fr); }
  .after__t { font-size: 30px; }
}

/* every link in the roll is a 44 px target, however small it is set */
.face__lic a, .credit__fine a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
.face__lic { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
