:root {
  color-scheme: light;
  --paper: #e9eee8;
  --paper-deep: #dfe7df;
  --surface: #f8f7f0;
  --ink: #26372e;
  --ink-soft: #65726a;
  --line: rgba(38, 55, 46, 0.22);
  --line-strong: rgba(38, 55, 46, 0.52);
  --green: #315d50;
  --green-dark: #1e4438;
  --pink: #e5a1b6;
  --pink-deep: #9c4f70;
  --pink-wash: #f3d9e1;
  --gold: #c6a341;
  --shadow: rgba(23, 38, 30, 0.24);
  --page-pad: clamp(22px, 4.5vw, 74px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14241d;
  --paper-deep: #0f1d17;
  --surface: #1b2d25;
  --ink: #edf0e9;
  --ink-soft: #aab7ae;
  --line: rgba(229, 235, 226, 0.16);
  --line-strong: rgba(229, 235, 226, 0.36);
  --green: #8cbaa4;
  --green-dark: #b4d3c4;
  --pink: #e4a0b6;
  --pink-deep: #f1b7c9;
  --pink-wash: #4b2d39;
  --gold: #d3b75f;
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

/* No image may exceed its container, whatever else is or is not applied.
   Without this, a screenshot renders at its natural 2360px or 2880px and
   bursts the layout. */
img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(46, 75, 61, 0.095) 0.8px, transparent 0.9px) 0 0 / 22px 22px,
    var(--paper);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  transition: color 240ms ease, background-color 240ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.wordmark-dot {
  color: var(--pink-deep);
}

.wordmark small {
  align-self: flex-end;
  margin: 0 0 1px 3px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sakura-mark {
  width: 30px;
  height: 30px;
  color: var(--pink);
  overflow: visible;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primary-nav a {
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-color: var(--pink-deep);
  outline: none;
}

.theme-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--pink-deep);
  border-color: var(--pink-deep);
  outline: none;
}

.opening {
  min-height: calc(100svh - 108px);
  display: flex;
  flex-direction: column;
  padding: clamp(70px, 11vh, 130px) var(--page-pad) 38px;
}

.opening-kicker {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.opening-kicker span:first-child {
  color: var(--pink-deep);
}

.opening-title-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 280px) 1fr;
  align-items: center;
  padding: 42px 0;
}

.margin-note {
  align-self: start;
  margin: clamp(40px, 10vh, 100px) 0 0;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
}

.margin-note::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-bottom: 17px;
  background: var(--pink-deep);
}

.opening h1 {
  max-width: 1050px;
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(68px, 10.2vw, 164px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.opening h1 span {
  color: var(--green);
}

.opening-foot {
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 280px) 1fr auto;
  align-items: end;
  gap: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.opening-foot p {
  grid-column: 2;
  max-width: 480px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 20px);
}

.text-link {
  display: inline-flex;
  gap: 28px;
  padding-bottom: 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--pink-deep);
  border-color: var(--pink-deep);
  outline: none;
}

.case-study {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-heading {
  display: grid;
  grid-template-columns: clamp(100px, 12vw, 180px) minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 4vw, 76px);
  padding: clamp(70px, 10vw, 150px) var(--page-pad) clamp(50px, 7vw, 100px);
}

.catalogue-number {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  font-family: "IBM Plex Mono", monospace;
}

.catalogue-number span {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.catalogue-number strong {
  color: var(--pink-deep);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.eyebrow,
.section-marker {
  margin: 0 0 20px;
  color: var(--pink-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-title-block h2,
.work-index h2 {
  margin: 0;
  overflow-wrap: break-word;
  font-family: "Newsreader", serif;
  font-size: clamp(72px, 10vw, 152px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.case-deck {
  max-width: 680px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.42;
}

.case-facts {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.case-facts div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.case-facts dt {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  font-size: 13px;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  background: #3d9664;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(61, 150, 100, 0.13);
}

.hero-object {
  position: relative;
  margin: 0;
  padding: 34px var(--page-pad) 32px;
  overflow: hidden;
  color: #26372e;
  background:
    radial-gradient(circle at 77% 24%, rgba(229, 161, 182, 0.37), transparent 28%),
    linear-gradient(150deg, #d9e4da 0%, #f0ddd9 54%, #cbdcd1 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.object-label,
.hero-object figcaption {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.object-label span:first-child {
  color: #8a3e5e;
}

.tablet-shadow {
  position: absolute;
  z-index: 0;
  left: 12%;
  right: 10%;
  bottom: 75px;
  height: 13%;
  background: rgba(40, 58, 49, 0.28);
  border-radius: 50%;
  filter: blur(35px);
  transform: rotate(-1.5deg);
}

.ipad {
  position: relative;
  z-index: 2;
  width: min(1240px, 91vw);
  /* iPad Air 11": 2360x1640 native, the resolution these screens
     were captured at. The bezel adds its own padding around it. */
  aspect-ratio: 2360 / 1640;
  margin: clamp(48px, 6vw, 90px) auto clamp(54px, 6vw, 84px);
  padding: clamp(13px, 1.25vw, 20px);
  background: linear-gradient(145deg, #39413e, #101714 42%, #27312c 88%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: clamp(28px, 3vw, 50px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 38px 70px rgba(31, 48, 39, 0.28),
    0 8px 18px rgba(31, 48, 39, 0.22);
  transform: rotate(-1.4deg);
}

.ipad-camera {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: clamp(4px, 0.5vw, 8px);
  width: 5px;
  height: 5px;
  background: #070b09;
  border: 1px solid #4f5f57;
  border-radius: 50%;
  transform: translateY(-50%);
}

.ipad-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: clamp(18px, 2vw, 34px);
  background: #f4f5f2;
}

.workspace-ui {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 16.5% 1fr;
  overflow: hidden;
  background: #f4f5f2;
  border-radius: clamp(18px, 2vw, 34px);
  font-family: "IBM Plex Sans", sans-serif;
  transform: translateZ(0);
}

.ws-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #f4f5f2;
  background: #191e1b;
}

.ws-brand {
  height: 13%;
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.7vw, 11px);
  padding: 0 12%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(7px, 1.05vw, 16px);
  font-weight: 500;
}

.ws-brand-mark {
  width: clamp(15px, 2.1vw, 31px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 1px;
  padding: 20% 18%;
  background: #303834;
  border-radius: 24%;
}

.ws-brand-mark i {
  display: block;
  height: 44%;
  background: #e2e6e1;
}

.ws-brand-mark i:nth-child(2) {
  height: 67%;
}

.ws-brand-mark i:nth-child(3) {
  height: 88%;
  background: #46a66e;
}

.ws-brand-mark i:nth-child(4) {
  height: 57%;
}

.ws-store,
.ws-user {
  display: flex;
  align-items: center;
  gap: 8%;
  margin: 8% 9%;
  padding: 8%;
  background: #242b27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ws-store-dot,
.ws-user > span {
  flex: 0 0 auto;
  width: clamp(19px, 2.8vw, 40px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #1e7a46;
  border-radius: 50%;
  font-size: clamp(5px, 0.6vw, 9px);
  font-weight: 500;
}

.ws-store div,
.ws-user div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ws-store strong,
.ws-user strong {
  overflow: hidden;
  font-size: clamp(6px, 0.75vw, 11px);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-store small,
.ws-user small {
  color: #aeb7b1;
  font-size: clamp(4px, 0.55vw, 8px);
  white-space: nowrap;
}

.ws-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4% 7%;
}

.ws-sidebar nav span {
  display: flex;
  align-items: center;
  gap: 9%;
  padding: 8% 9%;
  color: #b9c1bc;
  border-radius: 6px;
  font-size: clamp(5px, 0.72vw, 11px);
  white-space: nowrap;
}

.ws-sidebar nav span.active {
  color: #fff;
  background: #1e7a46;
}

.ws-sidebar nav i {
  width: 1.2em;
  color: inherit;
  font-style: normal;
  text-align: center;
}

.ws-user {
  margin-top: auto;
  background: transparent;
  border: 0;
}

.ws-user > span {
  color: #191e1b;
  background: #dbe8df;
}

.ws-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #191e1b;
  background: #f4f5f2;
}

.ws-topbar {
  height: 13%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.4%;
  background: #fff;
  border-bottom: 1px solid #d9ddd8;
}

.ws-topbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.ws-topbar small,
.order-rail small,
.customer-card small,
.collection-slot small,
.order-note small {
  color: #66706a;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(4px, 0.5vw, 8px);
  letter-spacing: 0.11em;
}

.ws-topbar strong {
  font-size: clamp(9px, 1.35vw, 20px);
  line-height: 1.25;
}

.ws-top-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
  color: #5c655f;
  font-size: clamp(5px, 0.7vw, 10px);
}

.ws-top-actions button,
.ws-tabs span,
.ws-quantity button {
  color: #3a443f;
  background: #fff;
  border: 1px solid #d9ddd8;
  border-radius: 5px;
}

.ws-top-actions button {
  padding: clamp(3px, 0.5vw, 8px) clamp(5px, 0.8vw, 13px);
  font-size: inherit;
}

.ws-modebar {
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3%;
  padding: 0 3.4%;
  background: #ebede9;
  border-bottom: 1px solid #d9ddd8;
}

.ws-tabs {
  display: flex;
  gap: 4px;
}

.ws-tabs span {
  padding: clamp(3px, 0.48vw, 7px) clamp(5px, 0.78vw, 12px);
  font-size: clamp(4px, 0.62vw, 9px);
}

.ws-tabs span.active {
  color: #fff;
  background: #191e1b;
  border-color: #191e1b;
}

.ws-search {
  width: 31%;
  padding: clamp(3px, 0.55vw, 8px) 2%;
  color: #69716c;
  background: #fff;
  border: 1px solid #d9ddd8;
  border-radius: 5px;
  font-size: clamp(4px, 0.62vw, 9px);
}

.ws-content {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 36%;
}

.ws-products {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 3.3%;
}

.ws-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.2%;
}

.ws-section-title strong {
  font-size: clamp(7px, 0.95vw, 14px);
}

.ws-section-title span {
  color: #6d7771;
  font-size: clamp(4px, 0.55vw, 8px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2%;
}

.product {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.18;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8%;
  color: #27302b;
  background: #fff;
  border: 1px solid #d9ddd8;
  border-radius: clamp(5px, 0.9vw, 12px);
  text-align: left;
  overflow: hidden;
}

.product-art {
  position: absolute;
  top: 10%;
  right: 10%;
  color: #b7c9bd;
  font-family: "Newsreader", serif;
  font-size: clamp(15px, 3.3vw, 50px);
  line-height: 1;
  opacity: 0.72;
}

.product.beef .product-art {
  color: #cba2a2;
}

.product.ham .product-art {
  color: #d9b8ae;
}

.product.veg .product-art {
  color: #88aa8f;
}

.product strong {
  max-width: 80%;
  overflow: hidden;
  font-size: clamp(5px, 0.76vw, 11px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product small {
  color: #727a75;
  font-size: clamp(4px, 0.54vw, 8px);
}

.product b {
  position: absolute;
  right: 7%;
  bottom: 10%;
  width: clamp(10px, 1.55vw, 22px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1e7a46;
  border-radius: 50%;
  font-size: clamp(7px, 0.9vw, 13px);
  font-weight: 400;
}

.ws-quantity {
  display: flex;
  align-items: center;
  gap: 1.2%;
  margin-top: auto;
  padding-top: 2.5%;
  border-top: 1px solid #d9ddd8;
}

.ws-quantity span {
  margin-right: auto;
  color: #616b65;
  font-size: clamp(4px, 0.55vw, 8px);
}

.ws-quantity button {
  min-width: clamp(16px, 2.2vw, 32px);
  padding: clamp(2px, 0.4vw, 6px);
  font-size: clamp(4px, 0.58vw, 8px);
}

.order-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4.5%;
  background: #fff;
  border-left: 1px solid #d9ddd8;
  box-shadow: -5px 0 16px rgba(25, 30, 27, 0.04);
}

.receipt-edge {
  position: absolute;
  left: -5px;
  bottom: 0;
  top: 0;
  width: 6px;
  background: radial-gradient(circle at left, transparent 2px, #fff 2.3px) 0 0 / 6px 10px repeat-y;
}

.order-rail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4%;
  border-bottom: 1px solid #d9ddd8;
}

.order-rail > header > div {
  display: flex;
  flex-direction: column;
}

.order-rail > header strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(7px, 0.9vw, 13px);
}

.order-rail > header button,
.order-lines button {
  color: #636c66;
  background: transparent;
  border: 0;
  font-size: clamp(6px, 0.8vw, 12px);
}

.customer-card {
  display: flex;
  gap: 5%;
  margin: 4% 0;
  padding: 4%;
  background: #e7f0e9;
  border: 1px solid #c7d8cb;
  border-radius: 7px;
}

.customer-card > span {
  flex: 0 0 auto;
  width: clamp(18px, 2.5vw, 37px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1e7a46;
  border-radius: 50%;
  font-size: clamp(5px, 0.56vw, 8px);
}

.customer-card div,
.collection-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.customer-card strong,
.collection-slot strong {
  overflow: hidden;
  font-size: clamp(5px, 0.72vw, 11px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-card p,
.collection-slot span {
  margin: 0;
  color: #636c66;
  font-size: clamp(4px, 0.53vw, 8px);
}

.collection-slot {
  padding-bottom: 4%;
  border-bottom: 1px solid #d9ddd8;
}

.order-lines {
  display: flex;
  flex-direction: column;
}

.order-lines > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4%;
  padding: 5% 0;
  border-bottom: 1px solid #e5e7e4;
}

.order-lines b {
  width: clamp(14px, 1.9vw, 28px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #ebede9;
  border-radius: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(5px, 0.65vw, 9px);
  font-weight: 500;
}

.order-lines span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.order-lines strong {
  overflow: hidden;
  font-size: clamp(5px, 0.68vw, 10px);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-lines small {
  color: #68726c;
  font-size: clamp(3px, 0.48vw, 7px);
}

.order-note {
  margin-top: auto;
  padding: 4%;
  background: #fff9dc;
  border-left: 3px solid #ffd23f;
}

.order-note p {
  margin: 1% 0 0;
  font-size: clamp(4px, 0.55vw, 8px);
}

.confirm-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  margin-top: 4%;
  padding: clamp(5px, 0.85vw, 13px);
  color: #fff;
  background: #1e7a46;
  border: 0;
  border-radius: 6px;
  font-size: clamp(5px, 0.65vw, 10px);
  font-weight: 500;
}

.confirm-order span {
  width: clamp(10px, 1.3vw, 19px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero-object figcaption {
  padding-top: 16px;
  border-top: 1px solid rgba(38, 55, 46, 0.28);
  color: #4c5b53;
  text-transform: none;
  letter-spacing: 0.04em;
}

.case-narrative {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 0.75fr) minmax(260px, 0.65fr);
  gap: clamp(34px, 6vw, 100px);
  padding: clamp(90px, 12vw, 180px) var(--page-pad);
}

.case-narrative h3,
.system-map h3,
.contribution h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(48px, 5.8vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.narrative-lead > p:last-child {
  max-width: 610px;
  margin: 40px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.55;
}

.narrative-column {
  padding-top: 2px;
}

.narrative-column p {
  margin: 0 0 26px;
  color: var(--ink-soft);
}

.pull-quote {
  align-self: end;
  padding: 28px 0 5px;
  border-top: 3px solid var(--pink);
}

.pull-quote p {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(25px, 2.4vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.system-map {
  margin: 0 var(--page-pad);
  padding: clamp(56px, 7vw, 100px) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.system-map > header {
  display: grid;
  grid-template-columns: clamp(130px, 20vw, 320px) 1fr;
}

.system-map h3 {
  max-width: 790px;
}

.system-flow {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(150px, 0.55fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 55px);
  margin-top: clamp(60px, 8vw, 115px);
}

.flow-source,
.flow-outputs div {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.flow-source {
  color: var(--surface);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.flow-source span,
.flow-outputs span {
  margin-bottom: auto;
  color: var(--pink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.flow-source strong,
.flow-outputs strong {
  font-family: "Newsreader", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.flow-source small,
.flow-outputs small {
  margin-top: 5px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.7;
}

.flow-line {
  display: flex;
  align-items: center;
  color: var(--pink-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.flow-line i {
  flex: 1;
  height: 1px;
  background: var(--pink-deep);
}

.flow-line b {
  padding: 0 9px;
  font-weight: 500;
}

.flow-outputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.flow-outputs div:nth-child(1),
.flow-outputs div:nth-child(4) {
  background: var(--pink-wash);
}

/* PaperWatcher hero: a browser chrome rather than a device bezel, because
   it is a public web service, not a counter tool on a shared iPad. */
.hero-object-screen {
  background:
    radial-gradient(circle at 22% 20%, rgba(198, 163, 65, 0.26), transparent 30%),
    linear-gradient(150deg, #dfe4da 0%, #eee9dc 56%, #d5ddd4 100%);
}

.browser {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: clamp(40px, 5vw, 74px) auto clamp(44px, 5vw, 70px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 34px 64px var(--shadow), 0 6px 14px var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--paper-deep) 84%, var(--surface));
  border-bottom: 1px solid var(--line);
}

.browser-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  opacity: 0.5;
}

.browser-url {
  flex: 1;
  margin-left: 10px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
}

.browser-screen {
  display: block;
  width: 100%;
  height: auto;
  background: #f4f5f2;
}

@media (max-width: 720px) {
  .browser {
    width: calc(100% - (var(--page-pad) * 2));
    border-radius: 9px;
  }

  .browser-bar {
    padding: 8px 10px;
  }

  .browser-url {
    font-size: 8px;
  }
}

.screen-gallery {
  padding: clamp(80px, 10vw, 150px) var(--page-pad);
  border-top: 1px solid var(--line);
}

.screen-gallery header {
  max-width: 660px;
  margin-bottom: clamp(40px, 5vw, 70px);
}

.gallery-grid {
  display: grid;
  /* Two up, not three: these are dense working screens and a third
     column shrinks them past the point of being readable. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 54px);
}

.gallery-grid figure:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - clamp(15px, 1.7vw, 27px));
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure:last-child {
    grid-column: auto;
    max-width: none;
  }
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f5f2;
  box-shadow: 0 18px 40px var(--shadow);
}

.gallery-grid figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gallery-grid figcaption strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.gallery-grid figcaption span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.contribution {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.2fr);
  gap: clamp(50px, 9vw, 150px);
  padding: clamp(90px, 12vw, 180px) var(--page-pad);
}

.contribution h3 {
  max-width: 660px;
}

.contribution-list {
  border-top: 1px solid var(--line-strong);
}

.contribution-list p {
  display: grid;
  grid-template-columns: minmax(130px, 0.5fr) 1fr;
  gap: 24px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.contribution-list span {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-index {
  padding: clamp(90px, 12vw, 180px) var(--page-pad);
}

.work-index header {
  display: grid;
  grid-template-columns: clamp(130px, 20vw, 320px) 1fr;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.work-index h2 {
  max-width: 850px;
  font-size: clamp(58px, 7.5vw, 112px);
}

.work-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.work-index li {
  display: grid;
  grid-template-columns: 80px 1.1fr 1fr auto;
  align-items: baseline;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.work-index li > span,
.work-index li > b {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-index li strong {
  font-family: "Newsreader", serif;
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.work-index li small {
  color: var(--ink-soft);
  font-size: 14px;
}

.work-index li:not(.current) {
  color: var(--ink-soft);
}

.work-index li.current > span,
.work-index li.current > b {
  color: var(--pink-deep);
}

footer {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 430px;
  color: #f5f2ed;
  background: #203c32;
  border-top: 6px solid var(--pink);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(50px, 7vw, 100px) var(--page-pad);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.sakura-small {
  color: #e5a1b6;
  font-size: 34px;
}

.footer-lead p {
  max-width: 800px;
  margin: 60px 0 0;
  font-family: "Newsreader", serif;
  font-size: clamp(38px, 5vw, 75px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(50px, 7vw, 100px) var(--page-pad);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-meta a {
  width: fit-content;
  color: #f1b7c9;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .opening-title-wrap {
    grid-template-columns: 1fr;
  }

  .margin-note {
    margin: 0 0 50px;
  }

  .opening h1 {
    font-size: clamp(72px, 14vw, 124px);
  }

  .opening-foot {
    grid-template-columns: 1fr auto;
  }

  .opening-foot p {
    grid-column: 1;
  }

  .case-heading {
    grid-template-columns: 110px 1fr;
  }

  .case-facts {
    grid-column: 2;
  }

  .case-narrative {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .pull-quote {
    grid-column: 2;
  }

  .system-map > header,
  .work-index header {
    grid-template-columns: 1fr;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .flow-line {
    max-width: 280px;
    transform: rotate(90deg);
    transform-origin: left center;
    margin: 20px 0 -20px 50%;
  }

  .contribution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 24px;
  }

  .site-header {
    min-height: 88px;
    margin: 0 var(--page-pad);
  }

  .wordmark {
    gap: 9px;
    font-size: 25px;
  }

  .wordmark small {
    display: none;
  }

  .sakura-mark {
    width: 27px;
    height: 27px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .opening {
    min-height: calc(100svh - 88px);
    padding-top: 52px;
    padding-bottom: 28px;
  }

  .opening-kicker {
    grid-template-columns: 1fr auto;
  }

  .opening-kicker span:nth-child(2) {
    display: none;
  }

  .margin-note {
    margin-bottom: 38px;
  }

  .opening h1 {
    font-size: clamp(59px, 17.8vw, 86px);
    line-height: 0.87;
  }

  .opening-foot {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .text-link {
    justify-self: start;
  }

  .case-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .catalogue-number {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .catalogue-number strong {
    font-size: 58px;
  }

  .case-title-block h2 {
    /* Scale with the viewport rather than sitting on a fixed floor: a
       long single word like "PaperWatcher" cannot wrap, so a hard 67px
       minimum pushed it off the side of a phone. */
    font-size: clamp(40px, 12.5vw, 100px);
  }

  .case-deck {
    margin-top: 28px;
  }

  .case-facts {
    grid-column: 1;
  }

  .hero-object {
    padding-left: 0;
    padding-right: 0;
  }

  .object-label,
  .hero-object figcaption {
    margin-left: var(--page-pad);
    margin-right: var(--page-pad);
  }

  .object-label span:last-child {
    max-width: 180px;
    text-align: right;
  }

  .ipad {
    /* The old rule bled the frame to 155vw so the mockup's reflowing CSS
       stayed legible. A real screenshot cannot reflow, so bleeding it just
       crops the screen off both edges: keep the whole device on screen. */
    width: calc(100% - (var(--page-pad) * 2));
    margin-left: auto;
    margin-right: auto;
    border-radius: 22px;
    transform: rotate(-0.6deg);
  }

  .ipad-camera {
    right: 5px;
  }

  .hero-object figcaption {
    flex-direction: column;
    gap: 5px;
  }

  .case-narrative {
    grid-template-columns: 1fr;
  }

  .case-narrative h3,
  .system-map h3,
  .contribution h3 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .narrative-column,
  .pull-quote {
    grid-column: 1;
  }

  .flow-outputs {
    grid-template-columns: 1fr;
  }

  .contribution-list p {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-index h2 {
    font-size: clamp(56px, 16vw, 78px);
  }

  .work-index li {
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
  }

  .work-index li small {
    grid-column: 2 / 4;
  }

  .work-index li b {
    text-align: right;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-lead {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-meta {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

