/* ==========================================================================
   Media Gremlin — "The Proof"
   The site is set like a printer's proof sheet. Four inks (cyan, magenta,
   yellow, key/black) come from the gremlins in the logo. Things arrive a
   little out of register and settle into place.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f1e8;
  --paper-2: #ece5d6;
  --paper-3: #e2d9c6;
  --ink: #141414;
  --ink-2: #3b3833;
  --ink-3: #6a655c;
  --rule: rgba(20, 20, 20, 0.16);
  --c: #00aeef;
  --m: #e6007e;
  --y: #ffdd00;
  --k: #141414;
  --m-text: #c2006a; /* magenta dark enough for text on paper */

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* pointer-driven misregistration, written by JS */
  --mx: 0;
  --my: 0;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.55;
  font-stretch: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 0.95; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.slug {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-2);
}
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.h-xl { font-size: clamp(48px, 9.4vw, 168px); }
.h-lg { font-size: clamp(40px, 6.6vw, 112px); }
.h-md { font-size: clamp(32px, 4.4vw, 68px); }
.h-sm { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.05; }
.lede {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.5;
  max-width: 34em;
  color: var(--ink-2);
}
.hl { color: var(--m-text); }
.measure { max-width: 36em; }

/* ---------- Registration marks & crop marks ---------- */
.reg {
  --s: 22px;
  display: inline-block;
  position: relative;
  width: var(--s);
  height: var(--s);
  flex: none;
  color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.reg::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.reg--sm { --s: 14px; }

.crop { position: relative; }
.crop::before {
  content: "";
  position: absolute;
  inset: -14px;
  pointer-events: none;
  --l: var(--ink);
  background:
    linear-gradient(var(--l), var(--l)) left 0 top 14px / 9px 1px no-repeat,
    linear-gradient(var(--l), var(--l)) left 14px top 0 / 1px 9px no-repeat,
    linear-gradient(var(--l), var(--l)) right 0 top 14px / 9px 1px no-repeat,
    linear-gradient(var(--l), var(--l)) right 14px top 0 / 1px 9px no-repeat,
    linear-gradient(var(--l), var(--l)) left 0 bottom 14px / 9px 1px no-repeat,
    linear-gradient(var(--l), var(--l)) left 14px bottom 0 / 1px 9px no-repeat,
    linear-gradient(var(--l), var(--l)) right 0 bottom 14px / 9px 1px no-repeat,
    linear-gradient(var(--l), var(--l)) right 14px bottom 0 / 1px 9px no-repeat;
}

/* colour control strip */
.colour-bar {
  display: flex;
  gap: 3px;
  height: 14px;
}
.colour-bar span { width: 14px; height: 14px; }
.colour-bar span:nth-child(1) { background: var(--c); }
.colour-bar span:nth-child(2) { background: var(--m); }
.colour-bar span:nth-child(3) { background: var(--y); }
.colour-bar span:nth-child(4) { background: var(--k); }
.colour-bar span:nth-child(5) { background: color-mix(in srgb, var(--c) 50%, var(--paper)); }
.colour-bar span:nth-child(6) { background: color-mix(in srgb, var(--m) 50%, var(--paper)); }
.colour-bar span:nth-child(7) { background: color-mix(in srgb, var(--y) 50%, var(--paper)); }
.colour-bar span:nth-child(8) { background: color-mix(in srgb, var(--k) 50%, var(--paper)); }

/* ---------- Plates: text printed in four inks ---------- */
.plates {
  position: relative;
  isolation: isolate;
}
.plates > .plate {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  z-index: -1;
}
.plates > .plate * { color: inherit !important; }
.plate--c { color: var(--c); transform: translate(calc(var(--mx) * -1px), calc(var(--my) * -0.7px)); }
.plate--m { color: var(--m); transform: translate(calc(var(--mx) * 0.85px), calc(var(--my) * 1px)); }
.plate--y { color: var(--y); transform: translate(calc(var(--mx) * 0.35px), calc(var(--my) * -1px)); }

/* the press run on arrival: yellow, magenta, cyan, then key */
/* Kept deliberately small and quick: bigger offsets read as blur and made some people queasy. */
.js .plates.is-pressing > .plate--y { animation: plate-in-y 0.7s var(--ease-out) both; }
.js .plates.is-pressing > .plate--m { animation: plate-in-m 0.7s var(--ease-out) 0.05s both; }
.js .plates.is-pressing > .plate--c { animation: plate-in-c 0.7s var(--ease-out) 0.1s both; }
.js .plates.is-pressing > .plate-k { animation: plate-in-k 0.5s var(--ease-out) 0.12s both; }
.js .plates:not(.is-pressed):not(.is-pressing) > .plate-k { opacity: 0; }
.js .plates:not(.is-pressed):not(.is-pressing) > .plate { opacity: 0; }

@keyframes plate-in-y { from { opacity: 0; transform: translate(0.015em, 0.035em); } }
@keyframes plate-in-m { from { opacity: 0; transform: translate(0.035em, 0.012em); } }
@keyframes plate-in-c { from { opacity: 0; transform: translate(-0.03em, -0.02em); } }
@keyframes plate-in-k { from { opacity: 0; } }

.plate-k { display: block; position: relative; }

/* outlined numeral with offset ink fill — the logo's own trick */
.ink-num {
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  isolation: isolate;
}
.ink-num::before {
  content: attr(data-n);
  position: absolute;
  left: 0; top: 0;
  z-index: -1;
  color: var(--ink-fill, var(--m));
  -webkit-text-stroke: 0;
  transform: translate(0.07em, 0.04em);
  transition: transform 0.6s var(--ease-spring);
}
.ink-num--c { --ink-fill: var(--c); }
.ink-num--y { --ink-fill: var(--y); }
:is(a, .step, .card):hover .ink-num::before { transform: translate(0, 0); }

/* ---------- Buttons ---------- */
.btn {
  --plate: var(--m);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  --face: var(--ink);
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: none;
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  font-stretch: 105%;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* ::after is the button face, ::before the ink plate that slides out from behind it */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--face);
  border: 2px solid var(--ink);
  z-index: -1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plate);
  border: 2px solid var(--ink);
  z-index: -2;
  transform: translate(0, 0);
  transition: transform 0.45s var(--ease-spring);
}
.btn .arr { display: inline-block; transition: transform 0.45s var(--ease-spring); }
@media (hover: hover) {
  .btn:hover::before { transform: translate(6px, 6px); }
  .btn:hover .arr { transform: translateX(4px); }
}
.btn:focus-visible::before { transform: translate(6px, 6px); }
.btn:active { transform: translate(3px, 3px); }
.btn:active::before { transform: translate(3px, 3px); }

.btn--paper { --face: var(--paper); color: var(--ink); --plate: var(--c); }
.btn--y { --plate: var(--y); }
.btn--c { --plate: var(--c); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.textlink {
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(var(--y), var(--y)) left bottom / 100% 0.32em no-repeat;
  transition: background-size 0.35s var(--ease-out);
  padding-bottom: 1px;
}
.textlink:hover { background-size: 100% 100%; }

/* ---------- Top strip & header ---------- */
.topstrip {
  background: var(--ink);
  color: var(--paper);
}
.topstrip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.topstrip .slug { color: #d9d3c6; font-size: 11px; }
.topstrip a { text-decoration: none; color: var(--paper); }
.topstrip a:hover { color: var(--y); }
.topstrip__contact { display: flex; gap: 22px; }
.topstrip__contact a { white-space: nowrap; }
@media (max-width: 960px) { .topstrip .slug-hide-sm { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand svg { width: 64px; height: auto; overflow: visible; }
.brand__name {
  font-weight: 800;
  font-stretch: 115%;
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.brand__name b { color: var(--m-text); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 4px;
  height: 3px;
  background: var(--m);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] .reg { display: inline-block; }
.nav .reg { display: none; --s: 12px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.menu-btn__bars { display: grid; gap: 4px; width: 20px; }
.menu-btn__bars i { display: block; height: 3px; transition: transform 0.4s var(--ease-spring), opacity 0.2s; }
.menu-btn__bars i:nth-child(1) { background: var(--c); }
.menu-btn__bars i:nth-child(2) { background: var(--m); }
.menu-btn__bars i:nth-child(3) { background: var(--y); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  visibility: hidden;
}
.sheet__plate {
  position: absolute;
  inset: 0;
  transform: translateY(-101%);
  transition: transform 0.55s var(--ease-press);
}
.sheet__plate:nth-child(1) { background: var(--c); transition-delay: 0.08s; }
.sheet__plate:nth-child(2) { background: var(--m); transition-delay: 0.04s; }
.sheet__plate:nth-child(3) { background: var(--y); transition-delay: 0s; }
.sheet__plate:nth-child(4) { background: var(--paper); transition-delay: 0.12s; }
.sheet__inner {
  position: absolute;
  inset: 0;
  padding: calc(var(--header-h) + 34px + 28px) var(--gutter) 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sheet nav ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sheet nav li { border-bottom: 1px solid var(--rule); counter-increment: s; }
.sheet nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(30px, 8.5vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.sheet nav a::before {
  content: "0" counter(s);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  transform: translateY(-0.9em);
}
.sheet nav a[aria-current="page"] { color: var(--m-text); }
.sheet__contact { display: grid; gap: 6px; font-weight: 700; font-size: 18px; }
.sheet__contact a { text-decoration: none; }

.menu-open .sheet { pointer-events: auto; visibility: visible; }
.menu-open .sheet__plate { transform: translateY(0); }
.menu-open .sheet__plate:nth-child(1) { transition-delay: 0s; }
.menu-open .sheet__plate:nth-child(2) { transition-delay: 0.05s; }
.menu-open .sheet__plate:nth-child(3) { transition-delay: 0.1s; }
.menu-open .sheet__plate:nth-child(4) { transition-delay: 0.16s; }
.menu-open .sheet__inner { opacity: 1; transition-delay: 0.3s; }
.menu-open .sheet nav a { transform: none; opacity: 1; }
.menu-open .sheet nav li:nth-child(1) a { transition-delay: 0.32s; }
.menu-open .sheet nav li:nth-child(2) a { transition-delay: 0.36s; }
.menu-open .sheet nav li:nth-child(3) a { transition-delay: 0.40s; }
.menu-open .sheet nav li:nth-child(4) a { transition-delay: 0.44s; }
.menu-open .sheet nav li:nth-child(5) a { transition-delay: 0.48s; }
.menu-open .sheet nav li:nth-child(6) a { transition-delay: 0.52s; }
.menu-open .sheet nav li:nth-child(7) a { transition-delay: 0.56s; }
.menu-open { overflow: hidden; }
.sheet:not(.is-ready) * { transition: none !important; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .topstrip__email { display: none; }
  .topstrip .slug-hide-sm { display: none; }
  .brand__name { font-size: 17px; }
  .brand svg { width: 54px; }
}

/* ---------- Page transition plates ---------- */
.pt {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.pt i {
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
}
.pt i:nth-child(1) { background: var(--y); }
.pt i:nth-child(2) { background: var(--m); }
.pt i:nth-child(3) { background: var(--c); }
.pt i:nth-child(4) { background: var(--ink); }
/* leaving: plates sweep in from the left */
.pt-out .pt i { transform: translateX(0); transition: transform 0.36s var(--ease-press); }
.pt-out .pt i:nth-child(2) { transition-delay: 0.04s; }
.pt-out .pt i:nth-child(3) { transition-delay: 0.08s; }
.pt-out .pt i:nth-child(4) { transition-delay: 0.12s; }
/* arriving: plates continue off to the right */
.pt-in .pt i { animation: pt-away 0.6s var(--ease-press) both; }
.pt-in .pt i:nth-child(4) { animation-delay: 0s; }
.pt-in .pt i:nth-child(3) { animation-delay: 0.05s; }
.pt-in .pt i:nth-child(2) { animation-delay: 0.1s; }
.pt-in .pt i:nth-child(1) { animation-delay: 0.15s; }
@keyframes pt-away { from { transform: translateX(0); } to { transform: translateX(101%); } }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .slug { color: #cfc8b9; }
.section--ink .lede { color: #ddd6c8; }

.sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.sheet-head .slug:last-child { margin-left: auto; text-align: right; }
.section--ink .sheet-head { border-color: rgba(245, 241, 232, 0.2); }
.section--ink .reg { color: var(--paper); }

.section-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gutter);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-intro > h2 { grid-column: 1 / span 8; }
.section-intro > p { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 900px) {
  .section-intro > h2,
  .section-intro > p { grid-column: 1 / -1; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(56px, 7vw, 104px);
}
.hero__slug {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero__slug .colour-bar { margin-left: auto; }
.hero__grid { position: relative; }
.hero__title {
  font-size: clamp(50px, 9.2vw, 164px);
  font-stretch: 104%;
  max-width: 13ch;
}
.hero__title .plate-k,
.hero__title .plate { padding-bottom: 0.04em; }

/* Wide screens: the gremlins get their own column and the headline is sized
   so its longest line ("websites that", about 6.6em wide) always fits beside them. */
@media (min-width: 1101px) {
  .hero__grid {
    --gw: clamp(200px, 18vw, 300px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--gw);
    column-gap: 40px;
    align-items: start;
  }
  .hero__title {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    font-size: clamp(50px, calc((min(100vw, var(--maxw)) - 2 * var(--gutter) - var(--gw) - 40px) / 6.95), 164px);
  }
  .hero__gremlins {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin-top: 0.4vw;
  }
}
.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  margin-top: clamp(36px, 4.5vw, 64px);
  align-items: start;
}
.hero__copy { grid-column: 1 / span 6; }
.hero__copy .lede { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 18px; }
.hero__bulb { grid-column: 9 / span 4; justify-self: end; width: 100%; max-width: 340px; margin: 0; }

/* ---------- Hero light bulb: switches on as you scroll ---------- */
.hero__bulb-frame { position: relative; }
.bulb { --p: 0; width: 100%; height: auto; overflow: visible; }
.bulb__disc {
  fill: color-mix(in srgb, var(--m) 16%, var(--paper));
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(calc(0.62 + 0.38 * min(1, var(--p) / 0.4)));
  opacity: calc(0.45 + 0.55 * min(1, var(--p) / 0.4));
}
.bulb__shadow { fill: rgba(20, 20, 20, 0.12); transform-box: fill-box; transform-origin: center; }
.bulb__glow { opacity: clamp(0, (var(--p) - 0.4) / 0.25, 1); }
.bulb__glass { fill: #fff; }
.bulb__lit { fill: #fde13c; opacity: clamp(0, (var(--p) - 0.38) / 0.17, 1); }
.bulb__shine { fill: #fff; opacity: 0.9; }
.bulb__fil {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bulb__ol { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linejoin: round; }
.bulb__base rect,
.bulb__base path { fill: #9db2c6; stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.bulb__rays line {
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--p) - var(--s)) / 0.08, 1));
  opacity: clamp(0, (var(--p) - var(--s)) / 0.02, 1);
}
.bulb.is-flicker .bulb__lit,
.bulb.is-flicker .bulb__glow { animation: bulb-flicker 0.55s steps(1, end); }
@keyframes bulb-flicker {
  0% { opacity: 1; } 15% { opacity: 0.15; } 30% { opacity: 1; } 45% { opacity: 0.4; } 60% { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .bulb__float { animation: bulb-bob 3.6s ease-in-out infinite alternate; }
  .bulb__shadow { animation: bulb-shadow 3.6s ease-in-out infinite alternate; }
}
@keyframes bulb-bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes bulb-shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0.86); opacity: 0.75; } }
.hero__bulb-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.bulb__state { transition: color 0.3s; }
.hero__bulb.is-on .bulb__state { color: var(--m-text); }
.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.tick::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--tick, var(--c)), var(--tick, var(--c))) 3px 3px / 100% 100% no-repeat;
}
.tick:nth-child(2) { --tick: var(--m); }
.tick:nth-child(3) { --tick: var(--y); }

@media (max-width: 1100px) {
  .hero__gremlins { width: min(320px, 70vw); margin: 0 0 18px auto; }
  .hero__copy { grid-column: 1 / -1; }
  .hero__bulb { grid-column: 1 / -1; justify-self: center; max-width: 300px; }
}
@media (max-width: 640px) {
  .hero__gremlins { margin: 0 0 14px; width: 200px; }
}

/* ---------- Gremlins ---------- */
.gremlins { overflow: visible; }
.gremlins .fm { fill: #fc1f8b; }
.gremlins .fy { fill: #fde13c; }
.gremlins .fc { fill: #22c5fc; }
.gremlins .wh { fill: #fff; }
.gremlins .ol { fill: none; stroke: var(--ink); stroke-width: 18; stroke-linejoin: round; }
.gremlins .white { fill: #fff; stroke: var(--ink); stroke-width: 18; }
.gremlins .pk { fill: var(--ink); }
.brand .gremlins .ol,
.brand .gremlins .white { stroke-width: 30; }
.brand .gremlins .stem-o { stroke-width: 76; }
.gremlins .g { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.5s var(--ease-spring); }
.gremlins .eye { transform-box: fill-box; transform-origin: 50% 50%; }
.gremlins .eye.is-blink { animation: blink 0.18s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(0.08); } }
.gremlins .pupil { transition: transform 0.12s linear; }
@media (hover: hover) {
  .gremlins--play .g:hover { transform: translateY(-5%) rotate(-3deg); }
}
.gremlins--play .g { cursor: pointer; }
.gremlins .g.is-hop { animation: hop 0.6s var(--ease-out); }
@keyframes hop {
  0% { transform: none; }
  30% { transform: translateY(-14%) scaleY(1.06); }
  60% { transform: translateY(0) scaleY(0.92); }
  100% { transform: none; }
}

/* Whizz: on scroll the hero gremlins crouch, then shoot off the top-right one by one.
   Distances are in SVG units (the drawing is 1610 units wide). */
.gremlins .g.is-out {
  animation: whizz-out 0.75s both;
  pointer-events: none;
}
.gremlins .g.is-gone { transform: translate(5200px, -1700px); visibility: hidden; pointer-events: none; transition: none; }
.gremlins .g.is-back { animation: whizz-in 0.85s both; }
@keyframes whizz-out {
  0%   { transform: none; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  22%  { transform: translate(-60px, 40px) scale(1.1, 0.86) rotate(-7deg); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
  100% { transform: translate(5200px, -1700px) scale(1.35, 0.8) rotate(22deg); }
}
@keyframes whizz-in {
  0%   { transform: translate(5200px, -1700px) scale(1.35, 0.8) rotate(22deg); animation-timing-function: cubic-bezier(0.15, 0.7, 0.3, 1); }
  68%  { transform: translate(-50px, 12px) scale(0.92, 1.08) rotate(-5deg); animation-timing-function: ease-in-out; }
  84%  { transform: translate(16px, 0) scale(1.03, 0.97) rotate(1.5deg); }
  100% { transform: none; }
}

/* ---------- Job ticket ---------- */
.ticket {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ticket-plate, var(--y));
}
.ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.ticket__head .slug { color: var(--paper); }
.ticket__rows { padding: 6px 16px; }
.ticket__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  text-decoration: none;
}
.ticket__row:last-child { border-bottom: 0; }
.ticket__row strong { font-size: 19px; font-stretch: 108%; letter-spacing: -0.01em; }
.ticket__row small { grid-column: 1; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.ticket__price {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-weight: 900;
  font-stretch: 75%;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}
a.ticket__row:hover .ticket__price { color: var(--m-text); }
.ticket__foot {
  padding: 10px 16px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Ink cards (four features) ---------- */
.inks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.ink-card {
  --ink-c: var(--c);
  position: relative;
  padding: 22px 24px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
  overflow: hidden;
}
.ink-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-c);
  z-index: -1;
  clip-path: inset(0 0 calc(100% - 10px) 0);
  transition: clip-path 0.6s var(--ease-press);
}
.ink-card:hover::before { clip-path: inset(0 0 0 0); }
.ink-card:nth-child(2) { --ink-c: var(--m); }
.ink-card:nth-child(3) { --ink-c: var(--y); }
.ink-card:nth-child(4) { --ink-c: var(--k); }
.ink-card:nth-child(4):hover { color: var(--paper); }
.ink-card:nth-child(4):hover .slug { color: #d9d3c6; }
.ink-card:nth-child(2):hover { color: #fff; }
.ink-card:nth-child(2):hover .slug { color: #fff; }
.ink-card .slug { display: block; margin: 12px 0 46px; transition: color 0.3s; }
.ink-card h3 { font-size: clamp(24px, 2.2vw, 32px); font-stretch: 110%; letter-spacing: -0.03em; margin-bottom: 12px; }
.ink-card p { margin: 0; font-size: 17px; }
.ink-card { transition: color 0.3s 0.1s; }
@media (max-width: 1000px) { .inks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .inks { grid-template-columns: 1fr; } .ink-card .slug { margin-bottom: 22px; } }

/* ---------- Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--pkg-plate, var(--c));
  transition: box-shadow 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}
.pkg--pro { --pkg-plate: var(--m); }
.pkg { overflow: clip; }
@media (hover: hover) {
  .pkg:hover { transform: translate(-3px, -3px); box-shadow: 16px 16px 0 var(--pkg-plate, var(--c)); }
}
.pkg.is-picked { outline: 4px solid var(--pkg-plate, var(--c)); outline-offset: 6px; }
.pkg__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
}
.pkg__head .slug { color: var(--paper); }
.pkg__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.pkg__name { font-size: clamp(28px, 3vw, 40px); font-stretch: 112%; letter-spacing: -0.03em; margin-bottom: 10px; }
.pkg__desc { color: var(--ink-2); margin-bottom: 18px; }
.pkg__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(96px, 11vw, 168px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  margin: 6px 0 26px;
}
.pkg__price sup { font-size: 0.42em; line-height: 1; margin-top: 0.06em; font-stretch: 90%; }
.pkg__list { border-top: 2px solid var(--ink); margin-bottom: 28px; }
.pkg__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.pkg__list li::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  background: var(--pkg-plate, var(--c));
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.pkg__cta { margin-top: auto; }
.stamp {
  position: absolute;
  top: 58px;
  right: 18px;
  padding: 8px 12px 6px;
  border: 3px solid var(--m-text);
  color: var(--m-text);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,0.75) 61%, #000 75%);
}
.js .stamp[data-reveal] { transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform 0.45s var(--ease-press), opacity 0.2s; transition-delay: 0.5s; }
.js .stamp[data-reveal].is-in { transform: rotate(-8deg) scale(1); opacity: 1; }
@media (max-width: 860px) { .packages { grid-template-columns: 1fr; } }

/* ---------- Proofs (portfolio images) ---------- */
.proof { margin: 0; }
.proof__frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 2 / 1;
  outline: 1px solid var(--rule);
}
.proof__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease-out);
}
.proof__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 14px;
}
.proof__name { font-weight: 800; font-stretch: 108%; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; line-height: 1.1; }
a.proof { text-decoration: none; display: block; }
@media (hover: hover) {
  a.proof:hover .proof__frame img { transform: scale(1.035); }
  a.proof:hover .proof__name { color: var(--m-text); }
}

/* press reveal: three ink layers wipe off the image in turn */
.press::before,
.press::after,
.press > .press__y {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  transform-origin: right center;
  transform: scaleX(0);
}
.press::before { background: var(--c); }
.press::after { background: var(--m); }
.press > .press__y { background: var(--y); }
.js .press:not(.is-printed)::before,
.js .press:not(.is-printed)::after,
.js .press:not(.is-printed) > .press__y { transform: scaleX(1); }
.js .press:not(.is-printed) img { transform: scale(1.08); }
.js .press.is-printed::before { transition: transform 0.75s var(--ease-press) 0.24s; }
.js .press.is-printed::after { transition: transform 0.75s var(--ease-press) 0.12s; }
.js .press.is-printed > .press__y { transition: transform 0.75s var(--ease-press) 0s; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) var(--gutter);
}
.work-grid > :nth-child(1) { grid-column: 1 / span 7; }
.work-grid > :nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(40px, 9vw, 140px); }
.work-grid > :nth-child(3) { grid-column: 1 / span 4; }
.work-grid > :nth-child(4) { grid-column: 5 / span 4; margin-top: clamp(20px, 4vw, 60px); }
.work-grid > :nth-child(5) { grid-column: 9 / span 4; margin-top: clamp(40px, 8vw, 120px); }
@media (max-width: 900px) {
  .work-grid > :nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid > :nth-child(1) { grid-column: 1 / -1; }
  .work-grid > :nth-child(n+2) { grid-column: span 1; }
}
@media (max-width: 600px) { .work-grid > :nth-child(n) { grid-column: 1 / -1; } }

/* ---------- Steps (1 2 3) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step .ink-num { font-size: clamp(110px, 12vw, 190px); margin-bottom: 18px; }
.step h3 { font-size: clamp(24px, 2.2vw, 32px); font-stretch: 108%; letter-spacing: -0.025em; margin-bottom: 12px; line-height: 1.05; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; }
  .step .ink-num { grid-row: span 2; font-size: 110px; margin: 0; }
}

/* ---------- About teaser ---------- */
.dave {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  align-items: center;
}
.dave__photo { grid-column: 1 / span 5; position: relative; max-width: 460px; }
.dave__photo .disc {
  position: relative;
  border-radius: 50%;
  aspect-ratio: 1;
  isolation: isolate;
}
.dave__photo .disc::before,
.dave__photo .disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
  mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease-spring);
}
.dave__photo .disc::before { background: var(--c); transform: translate(-14px, 8px); }
.dave__photo .disc::after { background: var(--m); transform: translate(14px, -6px); }
.dave__photo:hover .disc::before,
.dave__photo:hover .disc::after { transform: none; }
.dave__photo img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--ink);
  clip-path: circle(50%);
}
.dave__photo .reg { position: absolute; --s: 34px; }
.dave__photo .reg:nth-of-type(1) { top: -8px; left: 50%; transform: translate(-50%, -100%); }
.dave__photo .reg:nth-of-type(2) { bottom: -8px; left: 50%; transform: translate(-50%, 100%); }
.dave__photo .reg:nth-of-type(3) { left: -8px; top: 50%; transform: translate(-100%, -50%); }
.dave__photo .reg:nth-of-type(4) { right: -8px; top: 50%; transform: translate(100%, -50%); }
.dave__text { grid-column: 7 / span 6; }
.dave__text h2 { margin-bottom: 24px; }
@media (max-width: 900px) {
  .dave__photo { grid-column: 1 / -1; width: min(340px, 72vw); margin-inline: auto; }
  .dave__text { grid-column: 1 / -1; }
}

/* ---------- Big CTA ---------- */
.cta-block { text-align: left; }
.cta-block h2 { margin-bottom: 28px; }
.cta-block__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.cta-block__contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; font-size: 19px; }
.cta-block__contact a { text-decoration: none; }
.cta-block__contact a:hover { color: var(--m-text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 120px);
  overflow: hidden;
  border-top: 1px solid rgba(245, 241, 232, 0.14);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--y); }
.footer__motto {
  font-size: clamp(44px, 8.4vw, 150px);
  font-stretch: 108%;
  letter-spacing: -0.04em;
  line-height: 0.88;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.footer__motto .plate { mix-blend-mode: screen; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  padding-bottom: 48px;
}
.footer__col h2 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #bdb5a5; margin-bottom: 16px; line-height: 1.4; }
.footer__col:nth-child(1) { grid-column: 1 / span 5; }
.footer__col:nth-child(2) { grid-column: 7 / span 3; }
.footer__col:nth-child(3) { grid-column: 10 / span 3; }
.footer__big { display: grid; gap: 6px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; font-stretch: 105%; }
.footer__links { display: grid; gap: 8px; font-weight: 500; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid rgba(245, 241, 232, 0.18);
}
.footer__base .slug { color: #bdb5a5; }
.footer__base .colour-bar { margin-left: auto; }
.footer__base .colour-bar span:nth-child(4) { background: var(--paper); }
@media (max-width: 800px) {
  .footer__col:nth-child(n) { grid-column: 1 / -1; }
  .footer__base .colour-bar { margin-left: 0; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(46px, 8.2vw, 144px); font-stretch: 106%; max-width: 14ch; margin-bottom: clamp(24px, 3vw, 40px); }
.page-hero .lede { margin: 0; }
.page-hero__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gutter);
  align-items: end;
}
.page-hero__row > .lede { grid-column: 1 / span 7; }
.page-hero__row > .page-hero__aside { grid-column: 9 / span 4; justify-self: end; }
@media (max-width: 900px) {
  .page-hero__row > .lede,
  .page-hero__row > .page-hero__aside { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Websites page: build rows ---------- */
.builds { border-top: 2px solid var(--ink); }
.build {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px var(--gutter);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.build::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--build-c, var(--c));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-press);
}
.build:hover::before { transform: scaleX(1); }
.build:nth-child(2) { --build-c: var(--m); }
.build:nth-child(3) { --build-c: var(--y); }
.build__title {
  font-size: clamp(36px, 5.4vw, 88px);
  font-stretch: 85%;
  letter-spacing: -0.03em;
  line-height: 0.92;
  transition: font-stretch 0.7s var(--ease-out), letter-spacing 0.7s var(--ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .build:hover .build__title { font-stretch: 120%; letter-spacing: -0.045em; }
}
.build p { margin: 0; color: var(--ink-2); font-size: 19px; }
@media (max-width: 800px) {
  .build { grid-template-columns: 1fr; }
  .build__title { font-stretch: 100%; }
}

.price-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--ink);
}
.price-pair > a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 40px);
  text-decoration: none;
  position: relative;
  isolation: isolate;
}
.price-pair > a + a { border-left: 2px solid var(--ink); }
.price-pair > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pp, var(--c));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-press);
}
.price-pair > a:nth-child(2) { --pp: var(--y); }
.price-pair > a:hover::before { transform: scaleY(1); }
.price-pair .pkg__price { margin: 0; font-size: clamp(80px, 9vw, 140px); }
.price-pair p { margin: 0; color: var(--ink-2); max-width: 28em; }
.price-pair .go { font-weight: 700; margin-top: auto; padding-top: 8px; }
@media (max-width: 700px) {
  .price-pair { grid-template-columns: 1fr; }
  .price-pair > a + a { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Packages page: chooser & difference ---------- */
.chooser {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.chooser__q { font-size: clamp(24px, 2.6vw, 36px); font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
.chooser__opts { display: flex; flex-wrap: wrap; gap: 12px; }
.chooser__opt {
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.chooser__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chooser__out { grid-column: 1 / -1; min-height: 1.5em; margin: 0; font-size: 19px; }
.chooser__out:empty { display: none; }
@media (max-width: 760px) { .chooser { grid-template-columns: 1fr; } }

.diff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.diff__item h3 { font-size: clamp(32px, 4vw, 60px); font-stretch: 100%; letter-spacing: -0.03em; margin-bottom: 18px; }
.diff__item h3 span { font-stretch: 120%; }
.diff__item p { color: var(--ink-2); font-size: 19px; }
.diff__flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.diff__flow b {
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 500;
}
.diff__flow b.on { background: var(--flow, var(--c)); }
.diff__flow i { flex: 1; height: 2px; background: var(--ink); max-width: 60px; position: relative; }
.diff__flow i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
@media (max-width: 760px) { .diff { grid-template-columns: 1fr; } }

/* ---------- Work page ---------- */
.index-list { border-top: 2px solid var(--ink); counter-reset: w; }
.index-list a {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
}
.index-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--m);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-press);
}
.index-list a:hover::after { transform: scaleX(1); }
.index-list strong { font-size: clamp(24px, 3vw, 44px); font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.05; transition: transform 0.5s var(--ease-out); }
.index-list a:hover strong { transform: translateX(10px); }
@media (max-width: 640px) {
  .index-list a { grid-template-columns: 40px minmax(0, 1fr); }
  .index-list .slug:last-child { grid-column: 2; }
}

.job {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gutter);
  padding-block: clamp(48px, 7vw, 110px);
  border-top: 1px solid var(--rule);
  align-items: center;
}
.job__meta { grid-column: 1 / span 4; }
.job__proof { grid-column: 5 / span 8; }
.job:nth-of-type(even) .job__meta { grid-column: 9 / span 4; grid-row: 1; }
.job:nth-of-type(even) .job__proof { grid-column: 1 / span 8; grid-row: 1; }
.job__no { font-size: clamp(80px, 9vw, 150px); margin-bottom: 16px; }
.job h2 { font-size: clamp(32px, 3.6vw, 56px); font-stretch: 108%; letter-spacing: -0.03em; margin-bottom: 14px; line-height: 0.98; }
.job dl { margin: 0 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.job dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.job dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.loupe-hint { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
@media (hover: none), (pointer: coarse) { .loupe-hint { display: none; } }
@media (max-width: 900px) {
  .job__meta, .job__proof,
  .job:nth-of-type(even) .job__meta,
  .job:nth-of-type(even) .job__proof { grid-column: 1 / -1; grid-row: auto; }
  .job__no { font-size: 90px; }
}

.loupe {
  position: fixed;
  left: 0; top: 0;
  z-index: 80;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--m);
  background-color: var(--paper);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s, transform 0.35s var(--ease-spring);
}
.loupe.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loupe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(rgba(20,20,20,.5), rgba(20,20,20,.5)) center / 1px 22px no-repeat,
    linear-gradient(rgba(20,20,20,.5), rgba(20,20,20,.5)) center / 22px 1px no-repeat;
}
.has-loupe { cursor: zoom-in; }

/* ---------- Process page: press run ---------- */
.run {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
}
.run__visual { grid-column: 1 / span 6; }
.run__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.run__steps { grid-column: 8 / span 5; }
.run__step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
  opacity: 0.35;
  transition: opacity 0.5s;
}
.run__step.is-active { opacity: 1; }
.no-js .run__step, .run__step:focus-within { opacity: 1; }
.run__step .ink-num { font-size: clamp(100px, 10vw, 160px); margin-bottom: 18px; }
.run__step h2 { font-size: clamp(32px, 3.4vw, 52px); font-stretch: 108%; letter-spacing: -0.03em; margin-bottom: 16px; }
.run__step p { color: var(--ink-2); font-size: 19px; }

.mock {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--ink);
  background: #fffdf8;
  overflow: hidden;
}
.mock svg { width: 100%; height: 100%; }
.mock .layer { transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-spring); }
.mock .layer-c { opacity: 0; transform: translate(-14px, 8px); }
.mock .layer-m { opacity: 0; transform: translate(16px, -6px); }
.mock .layer-y { opacity: 0; transform: translate(6px, 14px); }
.mock .layer-k { opacity: 0; transform: translate(2px, 2px); }
.mock[data-stage="1"] .layer-c,
.mock[data-stage="2"] .layer-c,
.mock[data-stage="3"] .layer-c { opacity: 1; transform: none; }
.mock[data-stage="2"] .layer-m, .mock[data-stage="3"] .layer-m,
.mock[data-stage="2"] .layer-y, .mock[data-stage="3"] .layer-y { opacity: 1; transform: none; }
.mock[data-stage="3"] .layer-k { opacity: 1; transform: none; }
.mock .mblend { mix-blend-mode: multiply; }
.mock .layer-c { fill-opacity: 0.6; }
.mock__stamp {
  position: absolute;
  right: 6%; bottom: 8%;
  padding: 8px 14px 6px;
  border: 3px solid var(--m-text);
  color: var(--m-text);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 0.14em;
  background: rgba(255, 253, 248, 0.85);
  transform: rotate(-9deg) scale(1.8);
  opacity: 0;
  transition: transform 0.4s var(--ease-press), opacity 0.2s;
}
.mock[data-stage="3"] .mock__stamp { transform: rotate(-9deg) scale(1); opacity: 1; transition-delay: 0.45s; }
.run__legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; }
.run__legend span { display: inline-flex; align-items: center; gap: 8px; opacity: 0.35; transition: opacity 0.4s; }
.run__legend span::before { content: ""; width: 12px; height: 12px; background: var(--lc); }
.run__legend span.on { opacity: 1; }
@media (max-width: 900px) {
  .run__visual, .run__steps { grid-column: 1 / -1; }
  .run__visual { position: sticky; top: var(--header-h); z-index: 3; background: var(--paper); padding-block: 16px 8px; border-bottom: 1px solid var(--rule); }
  .run__sticky { position: static; }
  .mock { aspect-ratio: 16 / 9; max-height: 32vh; margin-inline: auto; }
  .run__legend { margin-top: 8px; }
  .run__step { min-height: 0; padding-block: 48px; }
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.principle { border-top: 2px solid var(--ink); padding-top: 20px; }
.principle .reg { margin-bottom: 26px; }
.principle h3 { font-size: clamp(24px, 2.2vw, 32px); font-stretch: 108%; letter-spacing: -0.025em; margin-bottom: 12px; line-height: 1.05; }
.principle p { color: var(--ink-2); margin: 0; }
.section--ink .principle { border-color: var(--paper); }
.section--ink .principle p { color: #d9d2c4; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  align-items: center;
}
.about-hero__text { grid-column: 1 / span 7; }
.about-hero .dave__photo { grid-column: 8 / span 5; justify-self: center; width: 100%; }
@media (max-width: 900px) {
  .about-hero__text { grid-column: 1 / -1; }
  .about-hero .dave__photo { grid-column: 1 / -1; width: min(320px, 70vw); grid-row: 1; }
}
.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
}
.story__head { grid-column: 1 / span 5; }
.story__body { grid-column: 7 / span 6; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; }
.story__body p:first-child {
  font-size: 1.22em;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pull {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 0.9em;
  border-left: 6px solid var(--y);
  font-weight: 800;
  font-stretch: 108%;
  font-size: 1.25em;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
@media (max-width: 900px) { .story__head, .story__body { grid-column: 1 / -1; } }

.why-mark {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 22px;
  box-shadow: 5px 5px 0 var(--wm, var(--c));
}
.principle:nth-child(2) .why-mark { --wm: var(--m); }
.principle:nth-child(3) .why-mark { --wm: var(--y); }

/* ---------- Contact page ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gutter);
  align-items: start;
}
.contact__side { grid-column: 1 / span 4; }
.contact__side h2 { margin-bottom: 18px; }
.contact__direct { display: grid; gap: 18px; margin-top: 32px; }
.contact__direct a {
  display: grid;
  gap: 2px;
  text-decoration: none;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
}
.contact__direct a strong { font-size: clamp(22px, 2.2vw, 30px); font-stretch: 105%; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact__direct a:hover strong { color: var(--m-text); }
.contact__form { grid-column: 6 / span 7; }
@media (max-width: 960px) { .contact__side, .contact__form { grid-column: 1 / -1; } }

.docket { --ticket-plate: var(--c); }
.docket form { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.field label .req { color: var(--m-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
  border-radius: 0;
  font-size: 18px;
  transition: background 0.25s, box-shadow 0.25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: #fff;
  box-shadow: inset 0 -4px 0 var(--m), 0 0 0 2px var(--ink);
}
.field input::placeholder,
.field textarea::placeholder { color: #827c71; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .slug { color: var(--ink-3); }
.form-status { display: none; padding: 14px 16px; border: 2px solid var(--ink); font-weight: 600; position: relative; }
.form-status.show { display: block; }
.form-status.success { background: color-mix(in srgb, var(--c) 22%, var(--paper)); }
.form-status.error { background: color-mix(in srgb, var(--m) 14%, var(--paper)); }
.form-status.success::after {
  content: "Received";
  position: absolute;
  right: 14px; top: -18px;
  padding: 4px 10px 2px;
  border: 3px solid var(--m-text);
  color: var(--m-text);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  animation: stamp 0.4s var(--ease-press);
}
@keyframes stamp { from { transform: rotate(-6deg) scale(1.9); opacity: 0; } }

/* ---------- 404 ---------- */
.lost { min-height: 64vh; display: grid; align-content: center; gap: 24px; }
.lost .gremlins { width: min(360px, 80vw); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .press:not(.is-printed)::before,
  .js .press:not(.is-printed)::after,
  .js .press:not(.is-printed) > .press__y { transform: scaleX(0); }
  .js .press:not(.is-printed) img { transform: none; }
  .js .plates:not(.is-pressed):not(.is-pressing) > .plate,
  .js .plates:not(.is-pressed):not(.is-pressing) > .plate-k { opacity: 1; }
  .js .stamp[data-reveal] { opacity: 1; transform: rotate(-8deg); }
  /* a still, printed look: plates rest slightly out of register */
  .plate--c { transform: translate(-0.012em, -0.006em); }
  .plate--m { transform: translate(0.01em, 0.008em); }
  .plate--y { transform: translate(0.004em, -0.01em); }
  .bulb { --p: 1 !important; }
  .pt { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topstrip, .sheet, .pt, .loupe { display: none !important; }
  .plate { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
