a[data-link][hidden]{display:none!important}
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Bungee-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-normal-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Inter-normal-800.woff2') format('woff2'); }
@font-face { font-family: 'VT323'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/VT323-normal-400.woff2') format('woff2'); }

/* Launch Cowntdown: the launch-control printout, Pad 39, raining. */

:root {
  --sheet: #e3f0f7;
  --band: #cfe2ed;
  --rule: #18100c;
  --ink: #302117;
  --soft: #624e41;
  --sky: #49ade9;
  --go: #176da1;
  --plate: #392518;
  --on: #eaf1f6;
  --on-soft: #b4c2cb;
  --row: #cfe2ed;
  --row: color-mix(in srgb, #cfe2ed 55%, #e3f0f7);
  --hair: rgba(24, 16, 12, .1);
  --hair: color-mix(in srgb, #18100c 11%, transparent);
  --rail: 10px;
  --hole: 24px;
  --head: 56px;
  --pad: 18px;
  --f-d: "Bungee", "Arial Black", Impact, sans-serif;
  --f-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-m: "VT323", ui-monospace, "Courier New", monospace;
  --tick: .12s;
}
@media (min-width: 1000px) {
  :root { --rail: 32px; --hole: 36px; --head: 64px; --pad: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--rule);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.rm { scroll-behavior: auto; }

/* The sheet: continuous-form paper between two punched sprocket rails */
body {
  margin: 0;
  min-height: 100vh;
  padding: 0 var(--rail);
  overflow-x: clip;
  color: var(--ink);
  font: 400 17px/1.55 var(--f-b);
  background-color: var(--sheet);
  background-image:
    radial-gradient(circle at 50% 50%, var(--rule) 0 calc(var(--rail) * .17 + 1px), transparent calc(var(--rail) * .17 + 2px)),
    radial-gradient(circle at 50% 50%, var(--rule) 0 calc(var(--rail) * .17 + 1px), transparent calc(var(--rail) * .17 + 2px)),
    linear-gradient(var(--soft) 50%, transparent 0),
    linear-gradient(var(--soft) 50%, transparent 0),
    linear-gradient(var(--band), var(--band)),
    linear-gradient(var(--band), var(--band)),
    linear-gradient(transparent 50%, var(--row) 0);
  background-size:
    var(--rail) var(--hole),
    var(--rail) var(--hole),
    1px 12px,
    1px 12px,
    var(--rail) 100%,
    var(--rail) 100%,
    100% 144px;
  background-position:
    0 0,
    100% 0,
    var(--rail) 0,
    calc(100% - var(--rail)) 0,
    0 0,
    100% 0,
    0 0;
  background-repeat: repeat-y, repeat-y, repeat-y, repeat-y, no-repeat, no-repeat, repeat-y;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--rule); color: var(--on); padding: 10px 14px; font: 400 20px/1 var(--f-m);
}
.skip:focus { left: 12px; }

.pr { display: inline-block; margin-right: .4em; transition: transform var(--tick) steps(2); }

/* ---------- printer type ---------- */
.prompt {
  font: 400 19px/1.2 var(--f-m);
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
}
.prompt__p { color: var(--ink); }
.caret {
  display: inline-block;
  width: .52em; height: .95em;
  margin-left: .12em;
  vertical-align: -.14em;
  background: var(--ink);
}
html.tp:not(.rm) .is-on .caret,
html.tp:not(.rm) .hero.is-on .caret,
html.tp:not(.rm) .prompt--night .caret { animation: caretblink 1.06s steps(1) infinite; }
@keyframes caretblink { 50% { opacity: 0; } }

.kicker {
  margin-top: 14px;
  font: 400 21px/1.1 var(--f-m);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--soft);
}
.h2 {
  margin-top: 10px;
  max-width: 19ch;
  font: 400 clamp(27px, 7.2vw, 54px)/1.04 var(--f-d);
  text-transform: uppercase;
}
.h2 em {
  font-style: normal;
  background: var(--sky);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- boot sequence ---------- */
.boot { display: none; }
html.js:not(.rm) .boot {
  display: flex;
  position: fixed; inset: 0; z-index: 150;
  align-items: flex-start;
  padding: 10vh 7vw;
  background: var(--rule);
  color: var(--on);
  pointer-events: none;
  animation: snapon .24s steps(4) 3.2s both;
}
html.js.booted:not(.rm) .boot { animation: snapon .24s steps(4) both; }
html.boot-skip .boot, .boot.is-gone { display: none !important; }
@keyframes snapon {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
.boot__log { font: 400 clamp(19px, 2.3vw, 30px)/1.32 var(--f-m); text-transform: uppercase; }
.bl { display: block; white-space: pre; min-height: 1.32em; }
.bl--last::after {
  content: "";
  display: inline-block; width: .52em; height: .95em; margin-left: .15em; vertical-align: -.12em;
  background: var(--sky);
}

/* paper position, in the left rail */
.feed-mark { display: none; }
@media (min-width: 1000px) {
  html.tp:not(.rm) .feed-mark {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 40;
    width: var(--rail); height: 40px;
    background: var(--sky);
    border: 3px solid var(--rule);
    pointer-events: none;
    transform: translateY(calc(var(--feed, 0) * (100vh - 40px)));
  }
}

/* ---------- header: the printer's status line ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px;
  background: var(--sheet);
  border-bottom: 3px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand__logo { width: 38px; height: 38px; border: 3px solid var(--rule); object-fit: cover; flex: none; }
.brand__name { display: none; font: 400 15px/1 var(--f-d); letter-spacing: .02em; }
.brand__tty { display: none; font: 400 20px/1 var(--f-m); color: var(--soft); }
.status { display: none; }
@media (min-width: 420px) { .brand__name { display: inline; } }

.nav { display: none; }
.nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--head));
  overflow-y: auto;
  background: var(--sheet);
  border: 3px solid var(--rule); border-top: 0;
}
.nav a, .motion {
  display: flex; align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  font: 400 24px/1 var(--f-m);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--rule);
  background: none;
  text-align: left;
  cursor: pointer;
}
.nav.is-open > :last-child { border-bottom: 0; }
.nav a:nth-child(even) { background: var(--row); }
.nav a:hover .pr, .nav a:focus-visible .pr { transform: translateX(5px); }
.nav__x img { width: 16px; height: 16px; margin-right: 8px; }
.motion { border-left: 0; border-right: 0; border-top: 0; width: 100%; text-transform: uppercase; }
.motion::before { content: "["; margin-right: .3em; }
.motion::after { content: "]"; margin-left: .3em; }
.motion:hover { background: var(--sky); }

.burger {
  margin-left: auto;
  min-height: 44px;
  padding: 0 8px;
  background: var(--sheet);
  border: 3px solid var(--rule);
  font: 400 20px/1 var(--f-m);
  cursor: pointer;
}
.burger[aria-expanded="true"] { background: var(--sky); }

/* ---------- Buy: the one deep-blue key ---------- */
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: 11px 11px;
  font: 400 13px/1 var(--f-d);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--sheet);
  background: var(--go);
  border: 3px solid var(--rule);
  box-shadow: 4px 4px 0 var(--rule);
  cursor: pointer;
  transition: transform 60ms steps(1), box-shadow 60ms steps(1);
}
.buy::before { content: ">"; display: inline-block; transition: transform var(--tick) steps(2); }
.buy:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rule); }
.buy:hover::before { transform: translateX(4px); }
.buy:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--rule); }
.buy--top { margin-left: auto; }
.buy--top::before { display: none; }
.buy--top:not([hidden]) + .burger { margin-left: 0; }
.buy--hero { padding: 16px 20px; font-size: 17px; box-shadow: 5px 5px 0 var(--rule); }
.buy--hero:active { transform: translate(5px, 5px); }

@media (min-width: 1000px) {
  .top { padding: 0 24px; gap: 22px; }
  .brand__name { font-size: 18px; }
  .nav {
    display: flex; flex-direction: row; align-items: center; gap: 20px;
    margin-left: auto;
  }
  .nav a, .motion {
    min-height: 0; padding: 6px 0;
    font-size: 22px; border: 0; background: none;
    width: auto;
  }
  .nav a:nth-child(even) { background: none; }
  .nav a:hover { background: var(--sky); }
  .motion { padding: 6px 4px; }
  .burger { display: none; }
  .buy--top { margin-left: 0; font-size: 16px; padding: 12px 14px; }
  .buy--top::before { display: inline-block; }
}
@media (min-width: 1200px) { .brand__tty { display: inline; } }
@media (min-width: 1380px) {
  .status { display: block; font: 400 20px/1 var(--f-m); color: var(--soft); white-space: nowrap; }
  .status b { font-weight: 400; color: var(--ink); background: var(--sky); padding: 2px 6px; }
}

/* ---------- hero: the printout + the window ---------- */
.hero {
  position: relative;
  margin-right: calc(var(--rail) * -1);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  transform-origin: 50% 0;
}
.hero__copy {
  --b: clamp(54px, 16vw, 72px);
  position: relative;
  padding: 16px calc(var(--pad) + var(--rail)) 30px var(--pad);
}
.out {
  margin-top: 4px;
  font: 400 19px/1.2 var(--f-m);
  text-transform: uppercase;
}
.out__name { color: var(--ink); }
.out__s { color: var(--soft); }

.h1 {
  margin-top: 12px;
  font-family: var(--f-d);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
}
.h1__a { display: block; max-width: 16ch; font-size: 23px; line-height: 1.08; }
.h1__b {
  display: block;
  width: 3.4em;
  margin-top: 10px;
  font-style: normal;
  font-size: var(--b);
  line-height: .92;
  transform: skewX(-8deg);
  transform-origin: 0 50%;
}
.h1__b::first-line { background: var(--sky); }
.h1__b .w { display: inline-block; }
.h1__b .w:first-child { background: var(--sky); box-shadow: .06em 0 0 var(--sky), -.06em 0 0 var(--sky); }
.h1__a .w { display: inline; }

/* the peek: no window, no frame. The cow leans in from the screen's own edge,
   its far side melts into the printout, and the rain runs down your screen. */
.peek {
  position: relative;
  height: calc(var(--b) * 2.76 + 64px);
  margin: calc(var(--b) * -2.76 - 14px) calc(-1 * (var(--pad) + var(--rail))) 0 calc(var(--b) * 3.1);
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%), linear-gradient(180deg, transparent, #000 9%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%), linear-gradient(180deg, transparent, #000 9%, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.peek__glass {
  position: absolute; inset: 0;
  overflow: hidden;
  container-type: size;
}
.peek__cow, .peek__echo {
  position: absolute;
  max-width: none;
  width: auto;
  height: 230cqh;
  left: calc(74cqw - 76cqh);
  top: 8cqh;
  user-select: none;
  -webkit-user-drag: none;
}
/* the count's afterimages: the cow climbed in on three beats and left a cyan ghost of the
   first two on the wet glass, stepping down-left along the arrow it rides */
.peek__echo {
  filter: grayscale(1) sepia(1) hue-rotate(160deg) saturate(2.6) brightness(1.04);
  pointer-events: none;
}
.peek__echo--two { transform: translate(-22cqw, 9cqh); opacity: .5; }
.peek__echo--moo { transform: translate(-40cqw, 18cqh); opacity: .28; }
.peek__drops {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 24px 34px, rgba(255, 255, 255, .42) 0 5px, rgba(24, 16, 12, .32) 6px, transparent 7.5px),
    radial-gradient(circle at 128px 70px, rgba(255, 255, 255, .42) 0 3px, rgba(24, 16, 12, .32) 4px, transparent 5px),
    radial-gradient(ellipse 6px 10px at 186px 150px, rgba(255, 255, 255, .42) 0 70%, rgba(24, 16, 12, .32) 85%, transparent),
    radial-gradient(circle at 70px 196px, rgba(255, 255, 255, .42) 0 7px, rgba(24, 16, 12, .32) 8px, transparent 9.5px),
    radial-gradient(circle at 150px 236px, rgba(255, 255, 255, .42) 0 2px, rgba(24, 16, 12, .32) 3px, transparent 4px),
    radial-gradient(circle at 42px 118px, rgba(255, 255, 255, .42) 0 2.5px, rgba(24, 16, 12, .32) 3.5px, transparent 4.5px),
    radial-gradient(circle at 206px 30px, rgba(255, 255, 255, .42) 0 4px, rgba(24, 16, 12, .32) 5px, transparent 6.5px),
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 40%);
  background-size: 220px 260px, 220px 260px, 220px 260px, 220px 260px, 220px 260px, 220px 260px, 220px 260px, 100% 100%;
}
.peek__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.peek.is-wet .peek__drops { display: none; }
.peek.is-wet .peek__cow, .peek.is-wet .peek__echo { visibility: hidden; }
html.rm .peek.is-wet .peek__echo { visibility: visible; }
html.rm .peek__gl { display: none; }
html.rm .peek.is-wet .peek__drops { display: block; }
html.rm .peek.is-wet .peek__cow { visibility: visible; }
.peek__plate { display: none; }
.peek__hint { display: none; }

.lede { margin-top: 16px; max-width: 36ch; font-size: 16px; line-height: 1.5; }
.cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.cmds .buy--hero { flex: 1 1 100%; }
.cmd {
  padding: 8px 2px;
  font: 400 22px/1 var(--f-m);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.cmd:hover { background: var(--sky); text-decoration: none; }
.cmd:hover .pr { transform: translateX(5px); }

/* the contract: a printed output block */
.ca { margin-top: 18px; max-width: 720px; background: var(--sheet); border: 3px solid var(--rule); }
.ca__head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 10px;
  font: 400 17px/1 var(--f-m);
  text-transform: uppercase;
  color: var(--on);
  background: var(--rule);
}
.ca__cmd { display: none; white-space: nowrap; overflow: hidden; }
.ca__label { white-space: nowrap; }
.ca__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 10px 10px 10px 12px;
  text-align: left;
  color: var(--ink);
  background: var(--band);
  border: 0;
  border-bottom: 3px solid var(--rule);
  cursor: pointer;
}
.ca__btn code { min-width: 0; font: 400 19px/1.15 var(--f-m); word-break: break-all; }
.ca__tap {
  flex: none;
  padding: 6px 8px;
  font: 400 16px/1 var(--f-m);
  text-transform: uppercase;
  color: var(--on);
  background: var(--rule);
}
.ca__btn:hover { background: var(--sky); }
#ca-copy.is-copied .ca__tap { font-size: 0; padding: 0; }
#ca-copy.is-copied .ca__tap::after { content: "COPIED. MOO."; display: block; padding: 6px 8px; font-size: 16px; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px;
  padding: 6px 2px;
  font: 400 15px/1 var(--f-m);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--sheet);
  border-right: 3px solid var(--rule);
}
.chip:last-child { border-right: 0; }
.chip img { width: 22px; height: 22px; }
.chip:hover { background: var(--sky); }

@media (min-width: 600px) {
  .h1__a { font-size: 28px; }
  .lede { font-size: 18px; }
  .cmds .buy--hero { flex: none; }
}

@media (min-width: 1000px) {
  .hero { min-height: calc(100vh - var(--head)); }
  .hero::before { background-size: calc(100% / 12) 100%; }
  .hero__copy {
    --b: clamp(72px, min(7.4vw, 11.6vh), 120px);
    position: static;
    width: 58.333%;
    padding: 34px var(--pad) 40px var(--pad);
  }
  .hero__copy > :not(.peek) { position: relative; z-index: 2; }
  .prompt, .out { font-size: 22px; }
  .h1 { margin-top: 14px; }
  .h1__a { max-width: 17ch; font-size: clamp(30px, 2.65vw, 40px); line-height: 1.05; }
  .h1__b { margin-top: 14px; }
  .peek {
    position: absolute; top: 0; bottom: 0; right: 0; left: 50%;
    height: auto;
    margin: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
    mask-image: linear-gradient(90deg, transparent, #000 18%);
  }
  .peek__cow, .peek__echo { height: 210cqh; left: calc(58cqw - 69.4cqh); top: 27cqh; }
  .peek__echo--two { transform: translate(-24cqw, 10cqh); }
  .peek__echo--moo { transform: translate(-44cqw, 20cqh); }
  .peek__plate {
    display: block;
    position: absolute; top: 18px; right: 18px; z-index: 2;
    padding: 6px 10px;
    font: 400 20px/1 var(--f-m);
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--on);
    background: var(--rule);
  }
  html:not(.rm) .peek.is-wet .peek__hint { display: block; }
  .peek__hint {
    position: absolute; left: 22%; bottom: 18px; z-index: 2;
    padding: 5px 10px;
    font: 400 20px/1 var(--f-m);
    color: var(--ink);
    background: var(--sheet);
    border: 3px solid var(--rule);
    pointer-events: none;
    transition: opacity .3s steps(3);
  }
  .peek.is-wiped .peek__hint { opacity: 0; }
  .lede { margin-top: 22px; font-size: 19px; }
  .cmds { margin-top: 24px; }
  .ca { margin-top: 22px; }
  .ca__cmd { display: inline; }
  .ca__btn code { font-size: 24px; }
  .ca__tap { font-size: 18px; }
  .chip { flex-direction: row; gap: 8px; min-height: 48px; font-size: 19px; }
}

/* ---------- sections: tear lines and countdown heads ---------- */
.story, .frames, .play, .go { position: relative; padding: 0 var(--pad) 72px; }
.tear {
  position: relative;
  height: 36px;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(90deg, var(--rule) 50%, transparent 0) 0 50% / 14px 2px repeat-x;
}
.tear::before, .tear::after {
  content: "";
  position: absolute; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--rule);
}
.tear::before { left: -8px; }
.tear::after { right: -8px; }
.tear span {
  padding: 3px 8px;
  font: 400 18px/1 var(--f-m);
  color: var(--soft);
  background: var(--sheet);
  border: 2px solid var(--rule);
}

.shead { display: grid; gap: 4px; padding-top: 32px; margin-bottom: 32px; }
.shead__t { font: 400 20px/1 var(--f-m); letter-spacing: .08em; color: var(--soft); }
.shead__n {
  margin-left: -.04em;
  font: 400 clamp(110px, 34vw, 220px)/.84 var(--f-d);
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: .045em .045em 0 var(--sky);
}
.shead__txt { margin-top: 18px; }

@media (min-width: 1000px) {
  .story, .frames, .play, .go { padding-bottom: 120px; }
  .tear { height: 44px; }
  .shead {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: end;
    padding: 56px 0 32px;
    margin-bottom: 56px;
    border-bottom: 3px solid var(--rule);
    background-image: linear-gradient(90deg, var(--hair) 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
  }
  .shead__t { grid-column: 1; grid-row: 1; }
  .shead__n { grid-column: 1; grid-row: 2; font-size: min(15vw, 300px); }
  .shead__txt { grid-column: 2; grid-row: 1 / 3; margin: 0; padding-bottom: 10px; }
  .shead--side { display: block; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; background: none; }
  .shead--side .shead__n { font-size: min(14vw, 260px); }
  .shead--side .shead__txt { margin-top: 24px; }
}

/* ---------- printer-character frames ---------- */
.tty { min-width: 0; color: var(--soft); }
.tty__rule { display: flex; min-width: 0; overflow: hidden; font: 400 19px/1 var(--f-m); white-space: nowrap; }
.tty__rule > span { flex: none; }
.tty__rule i { flex: 1; min-width: 0; overflow: hidden; font-style: normal; }
.tty__rule i::before {
  content: "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------";
}
.tty__body { position: relative; padding: 6px 15px; }
.tty__body::before, .tty__body::after {
  content: "|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A|\A";
  position: absolute; top: 0; bottom: 0;
  width: 10px;
  overflow: hidden;
  white-space: pre;
  font: 400 19px/19px var(--f-m);
  pointer-events: none;
}
.tty__body::before { left: 0; }
.tty__body::after { right: 0; text-align: right; }

.ph { position: relative; overflow: hidden; border: 3px solid var(--rule); background: var(--rule); }
.ph img { width: 100%; }
.ph::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--sky) 0 6px, transparent 6px);
  transform: translateY(-100%);
  opacity: 0;
}

/* ---------- MOO: the count ---------- */
.story__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.cards { border-top: 3px solid var(--rule); }
.card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px 0;
  border-bottom: 3px solid var(--rule);
}
.card::before { grid-column: 2; grid-row: 1; font: 400 19px/1 var(--f-m); color: var(--soft); }
.card:nth-child(1)::before { content: "[ OK ]"; }
.card:nth-child(2)::before { content: "[ EDIT ]"; }
.card:nth-child(3)::before { content: "[ WARN ]"; }
.card__num {
  grid-column: 1; grid-row: 1 / span 3;
  display: flex; align-items: center; justify-content: center;
  border-right: 3px solid var(--rule);
  font: 400 38px/1 var(--f-d);
  color: var(--ink);
  text-shadow: .06em .06em 0 var(--sky);
}
.card h3 { grid-column: 2; grid-row: 2; margin: 8px 0 6px; font: 400 21px/1.1 var(--f-d); text-transform: uppercase; }
.card p { grid-column: 2; grid-row: 3; max-width: 52ch; font-size: 16px; line-height: 1.55; }
.cap { margin-top: 10px; font: 400 21px/1.25 var(--f-m); color: var(--ink); }

@media (min-width: 1000px) {
  .story__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .card { grid-template-columns: 140px minmax(0, 1fr); column-gap: 28px; padding: 24px 0; }
  .card__num { font-size: 70px; }
  .card h3 { font-size: 26px; }
  .card p { font-size: 17px; }
  .story__fig { position: sticky; top: calc(var(--head) + 24px); }
}

/* ---------- 2: the frames ---------- */
.frames__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: var(--rule);
  border: 3px solid var(--rule);
  counter-reset: f;
}
.frames figure {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--sheet);
  counter-increment: f;
  transition: transform 60ms steps(1), box-shadow 60ms steps(1);
}
.frames figure::before {
  content: "+--[ FRAME " counter(f, decimal-leading-zero) " ]------------------------------------------------------------------------------";
  display: block;
  height: 35px;
  padding: 9px 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font: 400 17px/1 var(--f-m);
  color: var(--soft);
  border-bottom: 3px solid var(--rule);
}
.frames figure::after {
  content: counter(f, decimal-leading-zero);
  position: absolute; top: 35px; left: 0;
  padding: 7px 8px 5px;
  font: 400 26px/1 var(--f-d);
  color: var(--ink);
  background: var(--sheet);
  border-right: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  pointer-events: none;
}
.frames img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.frames figcaption {
  flex: 1;
  padding: 10px 10px 12px;
  font-size: 13px; line-height: 1.4;
  background: var(--band);
  border-top: 3px solid var(--rule);
}
.frames figcaption::before { content: ">"; margin-right: .4em; font: 400 19px/1 var(--f-m); }
.frames figcaption::after {
  content: "";
  display: inline-block; width: .5em; height: 1em; margin-left: .25em; vertical-align: -.15em;
  background: var(--ink);
  opacity: 0;
}
.frames figure:hover { z-index: 2; transform: translate(-4px, -4px); box-shadow: 7px 7px 0 var(--rule); }
.frames figure:hover figcaption { background: var(--sky); }
html.tp:not(.rm) .frames figure:hover figcaption::after { opacity: 1; animation: caretblink 1.06s steps(1) infinite; }

@media (min-width: 1000px) {
  .frames__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .frames figure::after { font-size: 46px; padding: 10px 14px 8px; }
  .frames figcaption { padding: 14px 16px 16px; font-size: 15px; }
}

/* ---------- 1: practice your moo ---------- */
.play__wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.play__rules { margin-top: 16px; font: 400 21px/1.3 var(--f-m); }
.key {
  display: inline-flex; align-items: center;
  margin-top: 18px;
  padding: 14px 18px;
  font: 400 16px/1 var(--f-d);
  text-transform: uppercase;
  color: var(--on);
  background: var(--rule);
  border: 3px solid var(--rule);
  box-shadow: 4px 4px 0 var(--sky);
  cursor: pointer;
  transition: transform 60ms steps(1), box-shadow 60ms steps(1);
}
.key:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sky); }
.key:hover .pr { transform: translateX(4px); }
.key:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--sky); }
.key:disabled { cursor: default; transform: none; box-shadow: 4px 4px 0 var(--sky); }
html.rm .key--start { display: none; }

.game { background: var(--sheet); border: 3px solid var(--rule); }
.game__bar { display: grid; grid-template-columns: auto minmax(0, 1fr); border-bottom: 3px solid var(--rule); }
.game__score {
  grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 112px;
  padding: 10px 14px;
  border-right: 3px solid var(--rule);
}
.lbl { font: 400 16px/1.1 var(--f-m); text-transform: uppercase; color: var(--soft); }
.game__score b { font: 400 54px/1 var(--f-d); color: var(--ink); }
.game__time { padding: 10px 12px; border-bottom: 3px solid var(--rule); }
.blocks { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; height: 14px; margin-top: 6px; }
.blocks i { background: var(--rule); }
.blocks i.is-off { background: transparent; box-shadow: inset 0 0 0 1px var(--soft); }
.game__msg { min-height: 48px; padding: 10px 12px; font: 400 21px/1.2 var(--f-m); color: var(--ink); }

.bay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: var(--rule);
  outline-offset: -3px;
}
.bay:focus-visible { outline: 3px solid var(--sky); }
.hatch {
  position: relative;
  aspect-ratio: 1;
  margin: 0; padding: 0;
  overflow: hidden;
  background: var(--band);
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hatch:hover { background: var(--sheet); }
.hatch__sky {
  position: absolute; top: 10%; left: 10%; right: 10%; bottom: 22%;
  overflow: hidden;
  background-color: var(--sky);
  background-image:
    radial-gradient(circle at 22px 26px, rgba(255, 255, 255, .5) 0 4px, rgba(24, 16, 12, .3) 5px, transparent 6.5px),
    radial-gradient(ellipse 4px 7px at 70px 58px, rgba(255, 255, 255, .5) 0 70%, rgba(24, 16, 12, .3) 85%, transparent),
    radial-gradient(circle at 44px 96px, rgba(255, 255, 255, .5) 0 2.5px, rgba(24, 16, 12, .3) 3.5px, transparent 4.5px),
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%);
  background-size: 96px 120px, 96px 120px, 96px 120px, 100% 100%;
  border: 3px solid var(--rule);
  box-shadow: inset 0 12px 0 rgba(24, 16, 12, .18);
}
/* the faces that pop up are the scene frames, cropped to the head (each hatch its own mood) */
.hatch__cow {
  position: absolute; inset: 0;
  background: var(--rule) url("../img/scene-1.jpg") 45% 5% / 230% auto no-repeat;
  transform: translateY(105%);
}
.hatch:nth-child(2) .hatch__cow, .hatch:nth-child(7) .hatch__cow { background-image: url("../img/scene-2.jpg"); }
.hatch:nth-child(3) .hatch__cow, .hatch:nth-child(5) .hatch__cow { background-image: url("../img/scene-3.jpg"); }
.hatch:nth-child(4) .hatch__cow, .hatch:nth-child(8) .hatch__cow { background-image: url("../img/scene-4.jpg"); background-position: 53% 5%; }
.hatch:nth-child(6) .hatch__cow { background-image: url("../img/scene-5.jpg"); }
.hatch:nth-child(9) .hatch__cow { background-image: url("../img/scene-6.jpg"); background-position: 78% 5%; }
.hatch__num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 400 clamp(40px, 12vw, 92px)/1 var(--f-d);
  color: var(--ink);
  text-shadow: .05em .05em 0 var(--sheet);
  transform: translateY(105%);
}
.hatch__sill { position: absolute; left: 4%; right: 4%; bottom: 13%; height: 9%; background: var(--rule); }
.hatch__k { position: absolute; right: 6px; bottom: 2px; font: 400 16px/1 var(--f-m); color: var(--soft); }
.bay:not(.is-live) .hatch:nth-child(5) .hatch__cow,
.hatch.is-up .hatch__cow { transform: none; }
.bay:not(.is-live) .hatch:nth-child(3) .hatch__num { transform: translateY(14%); }
.bay:not(.is-live) .hatch:nth-child(7) .hatch__num { transform: translateY(34%); }
.play__off { display: none; margin-top: 18px; padding: 10px 14px; font: 400 21px/1.2 var(--f-m); color: var(--on); background: var(--rule); }
html.rm .play__off { display: inline-block; }
.hatch.is-decoy .hatch__num { transform: none; }
html.tp:not(.rm) .hatch.is-up .hatch__cow,
html.tp:not(.rm) .hatch.is-decoy .hatch__num { animation: hatchup .18s steps(3) both; }
@keyframes hatchup { from { transform: translateY(105%); } to { transform: none; } }
.hatch__say {
  position: absolute; left: 50%; top: 28%; z-index: 3;
  padding: 4px 6px;
  font: 400 22px/1 var(--f-m);
  white-space: nowrap;
  color: var(--on);
  background: var(--rule);
  transform: translateX(-50%);
  pointer-events: none;
  animation: sayup .6s steps(4) forwards;
}
@keyframes sayup { to { transform: translate(-50%, -30px); opacity: 0; } }

@media (min-width: 1000px) {
  .play__wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; padding-top: 56px; }
  .game { max-width: 640px; justify-self: end; width: 100%; }
  .game__score { min-width: 180px; padding: 12px 20px; }
  .game__score b { font-size: 96px; }
  .game__msg { font-size: 24px; }
}

/* ---------- GO: how to buy + the launch window ---------- */
.steps { list-style: none; padding: 0; margin-bottom: 48px; border-top: 3px solid var(--rule); }
.step { display: grid; border-bottom: 3px solid var(--rule); }
.step__n { padding: 16px 0 4px; font: 400 50px/1 var(--f-d); color: var(--ink); text-shadow: .05em .05em 0 var(--sky); }
.step__t { padding: 8px 0 20px; }
.step h3 { display: flex; align-items: center; gap: 12px; font: 400 22px/1.1 var(--f-d); text-transform: uppercase; }
.step h3 img { width: 34px; height: 34px; padding: 4px; background: var(--sheet); border: 2px solid var(--rule); }
.step p { max-width: 56ch; margin-top: 8px; }

.finale__ph { border-bottom: 0; }
.finale__ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 66% 55%; }
.finale__over {
  padding: 18px 16px 24px;
  color: var(--on);
  background: var(--plate);
  border: 3px solid var(--rule);
  border-top: 0;
}
.finale__go { font: 400 28px/1 var(--f-m); color: var(--sky); }
.finale__tag { max-width: 14ch; margin: 6px 0 18px; font: 400 clamp(26px, 7vw, 60px)/1.02 var(--f-d); text-transform: uppercase; color: var(--on); }
.finale__over .buy { box-shadow: 5px 5px 0 var(--sky); }
.finale__over .buy:hover { box-shadow: 7px 7px 0 var(--sky); }

@media (min-width: 1000px) {
  .step { grid-template-columns: 280px minmax(0, 1fr); align-items: stretch; }
  .step__n { display: flex; align-items: center; padding: 22px 0; font-size: 76px; border-right: 3px solid var(--rule); }
  .step__t { padding: 26px 0 26px 36px; align-self: center; }
  .step h3 { font-size: 28px; }
  .step p { font-size: 18px; }
  .steps { margin-bottom: 72px; }
  .finale__body { position: relative; }
  .finale__ph { border-bottom: 3px solid var(--rule); }
  .finale__ph img { aspect-ratio: 16 / 7; }
  .finale__over {
    position: absolute; left: calc(15px + 3.5%); top: 50%;
    max-width: 44%;
    padding: 26px 30px 30px;
    background: var(--rule);
    border: 3px solid var(--sky);
    transform: translateY(-50%);
  }
}

/* ---------- footer: the printer itself ---------- */
.foot {
  position: relative;
  margin: 0 calc(-1 * var(--rail));
  padding-top: 14px;
  color: var(--on);
  background: var(--rule);
}
.foot::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 14px;
  background:
    linear-gradient(135deg, var(--sheet) 50%, transparent 50%) 0 0 / 24px 14px repeat-x,
    linear-gradient(-135deg, var(--sheet) 50%, transparent 50%) 0 0 / 24px 14px repeat-x;
}
.foot__in { padding: 36px calc(var(--pad) + var(--rail)) 40px; }
.foot__log { font: 400 21px/1.2 var(--f-m); color: var(--on-soft); }
.foot__mark {
  margin: 16px 0 18px;
  font: 400 clamp(34px, 7.4vw, 128px)/.92 var(--f-d);
  text-transform: uppercase;
  color: var(--on);
  text-shadow: .045em .045em 0 var(--go);
  overflow-wrap: anywhere;
}
.foot__tag { font: 400 20px/1.2 var(--f-m); color: var(--sky); }
.foot__small { max-width: 72ch; margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--on-soft); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font: 400 21px/1 var(--f-m); }
.foot__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 2px;
  color: var(--on);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__links a:hover { color: var(--rule); background: var(--sky); }
.foot__links img { width: 16px; height: 16px; filter: invert(1); }
.foot__links a:hover img { filter: none; }
.prompt--night { margin-top: 26px; color: var(--on-soft); }
.prompt--night .prompt__p { color: var(--on); }
.prompt--night .caret { background: var(--sky); }

/* ---------- CA copied: the tear-off strip ---------- */
.tearoff {
  position: fixed; z-index: 120;
  display: flex; flex-direction: column;
  padding: 10px 24px 12px;
  font: 400 20px/22px var(--f-m);
  text-transform: uppercase;
  color: var(--ink);
  background-color: var(--sheet);
  background-image:
    radial-gradient(circle at 50% 50%, var(--rule) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, var(--rule) 0 3px, transparent 4px),
    linear-gradient(var(--sheet) 50%, var(--band) 0);
  background-size: 14px 18px, 14px 18px, 100% 44px;
  background-position: 2px 4px, calc(100% - 2px) 4px, 0 10px;
  background-repeat: repeat-y, repeat-y, repeat-y;
  border: 2px solid var(--rule);
  box-shadow: 4px 4px 0 var(--rule);
  pointer-events: none;
  transform-origin: 50% 0;
}
.tearoff__l { display: block; animation: feedline .09s steps(2) both; }
.tearoff__perf { display: block; height: 10px; margin-top: 6px; background: linear-gradient(90deg, var(--rule) 50%, transparent 0) 0 50% / 10px 2px repeat-x; }
.tearoff.is-torn {
  clip-path: polygon(0 6px, 5% 0, 10% 6px, 15% 0, 20% 6px, 25% 0, 30% 6px, 35% 0, 40% 6px, 45% 0, 50% 6px, 55% 0, 60% 6px, 65% 0, 70% 6px, 75% 0, 80% 6px, 85% 0, 90% 6px, 95% 0, 100% 6px, 100% 100%, 0 100%);
  animation: tearaway .62s cubic-bezier(.55, 0, .9, .45) forwards;
}
@keyframes tearaway { to { transform: translateY(60vh) rotate(var(--spin, 9deg)); opacity: 0; } }
html.rm .tearoff { display: none; }

/* ---------- printing: hidden until the printer reaches it (site.js + motion on only) ---------- */
html.tp:not(.rm) .f,
html.tp:not(.rm) .num,
html.tp:not(.rm) .cards .card,
html.tp:not(.rm) .steps .step,
html.tp:not(.rm) .game { opacity: 0; }
html.tp:not(.rm) .hero .h1__a .w { visibility: hidden; }
html.tp:not(.rm) .hero .h1__b .w { opacity: 0; }
html.tp:not(.rm) .h1__b::first-line { background: transparent; }
html.tp:not(.rm) .ph img,
html.tp:not(.rm) .frames figure img { clip-path: inset(0 0 100% 0); }

html.tp:not(.rm) .is-on .f,
html.tp:not(.rm) .cards.is-on .card,
html.tp:not(.rm) .steps.is-on .step { animation: feedline .36s steps(3) var(--d, 0s) both; }
html.tp:not(.rm) .game.is-on { animation: feedkey .36s steps(3) var(--d, 0s) both; }
html.tp:not(.rm) .is-on .num { animation: beatland .24s steps(2) .05s both; }
html.tp:not(.rm) .hero.is-on .h1__a .w { animation: typeon 1ms var(--d, 0s) both; }
html.tp:not(.rm) .hero.is-on .h1__b .w { animation: beatland .2s steps(2) var(--d, 0s) both; }
html.tp:not(.rm) .hero::before { transform: scaleY(0); }
html.tp:not(.rm) .hero.is-on::before { animation: gridrule .32s steps(8) both; }
html.tp:not(.rm) .is-on .ph img,
html.tp:not(.rm) .frames__grid.is-on figure img { animation: printhead .72s steps(12) var(--d, .1s) both; }
html.tp:not(.rm) .is-on .ph::after { animation: printbar .72s steps(12) var(--d, .1s) both; }

.d1 { --d: .12s; } .d2 { --d: .24s; } .d3 { --d: .36s; } .d4 { --d: .5s; } .d5 { --d: .64s; }
.d6 { --d: 1.62s; } .d7 { --d: 1.74s; } .d8 { --d: 1.86s; }
.cards .card:nth-child(2), .steps .step:nth-child(2) { --d: .24s; }
.cards .card:nth-child(3), .steps .step:nth-child(3) { --d: .48s; }
.frames figure:nth-child(1) { --d: .1s; } .frames figure:nth-child(2) { --d: .21s; }
.frames figure:nth-child(3) { --d: .32s; } .frames figure:nth-child(4) { --d: .43s; }
.frames figure:nth-child(5) { --d: .54s; } .frames figure:nth-child(6) { --d: .65s; }
.game { --d: .2s; }
.finale { --d: .15s; }

@keyframes feedline {
  from { opacity: 1; clip-path: inset(-20px -20px 100% -20px); transform: translateY(-10px); }
  to { opacity: 1; clip-path: inset(-20px -20px -20px -20px); transform: none; }
}
/* blocks you can press only step in: never clipped, so a tap always lands */
@keyframes feedkey {
  from { opacity: .2; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes typeon { from { visibility: hidden; } to { visibility: visible; } }
@keyframes beatland {
  0% { opacity: 0; transform: translateY(-.26em); }
  50% { opacity: 1; transform: translateY(-.26em); }
  100% { opacity: 1; transform: none; }
}
@keyframes gridrule { from { transform: scaleY(0); } to { transform: none; } }
@keyframes printhead { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes printbar {
  0% { opacity: 1; transform: translateY(-100%); }
  99% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* ---------- 404 ---------- */
.lost__main {
  min-height: 100vh;
  padding: 10vh var(--pad) 60px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.lost__main .out { color: var(--soft); }
.lost__logo { width: 120px; height: 120px; border: 3px solid var(--rule); margin: 10px 0 6px; }
.lost__h { font: 400 clamp(36px, 8vw, 96px)/1 var(--f-d); text-transform: uppercase; max-width: 14ch; }
.lost__h em { display: inline-block; margin-top: 8px; font-style: normal; background: var(--sky); padding: 0 .12em; transform: skewX(-8deg); }
.lost__main .key { text-decoration: none; }
