@font-face { font-family: Roobert; src: url(roobert-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Roobert; src: url(roobert-semibold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Roobert; src: url(roobert-bold.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }

:root {
  --ds-ink: #151518;
  --ds-ink-2: #48425f;
  --ds-green: #5c7900;
  --green-ink: #496200;
  --ds-lime: #d4f564;
  --ds-bg-cream: #f5ebdd;
  --ds-bg-paper: #fffdf8;
  --ds-title: clamp(36px, calc(2.5vw + 20px), 64px);
  --ds-sub: clamp(17px, calc(.42vw + 14px), 21px);
  --ds-container: 1200px;
  --ds-gutter: clamp(20px, 4.45vw, 64px);
  --name-size: clamp(15px, calc(.3vw + 13.6px), 19px);
  --what-size: clamp(19px, calc(.62vw + 15.6px), 26px);
  color: var(--ds-ink);
  background: var(--ds-bg-cream);
  font-family: Roobert, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--ds-ink); background: var(--ds-lime); }

/* Cream space above and below, so the start and the end of the section can be seen. */
.preview-space { height: 120px; }
@media (max-width: 767px) { .preview-space { height: 80px; } }

#cases { background: var(--ds-bg-paper); }

/* Words: one still block. */
.copy { text-align: center; }
.copy h1 {
  font-size: var(--ds-title);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.copy em { color: var(--ds-green); font-style: normal; }
.sub {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--ds-ink-2);
  font-size: var(--ds-sub);
  line-height: 1.35;
  text-wrap: balance;
}
.name { display: block; color: var(--green-ink); font-size: var(--name-size); font-weight: 600; line-height: 1.3; }
.what { display: block; margin-top: 6px; font-size: var(--what-size); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }

.post figure {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(21, 21, 24, .05), 0 0 0 1px rgba(21, 21, 24, .06), 0 28px 56px -28px rgba(21, 21, 24, .32);
}
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Without the scroll scene (reduced motion, no script, very short screens): a plain list, final state. */
html:not(.scrub) .stage {
  width: min(var(--ds-container), calc(100% - 2 * var(--ds-gutter)));
  margin-inline: auto;
  padding-block: clamp(72px, calc(3.8vw + 57px), 112px);
}
html:not(.scrub) .results { display: none; }
html:not(.scrub) .posts {
  display: grid;
  gap: 48px;
  max-width: 440px;
  margin: clamp(32px, calc(1.5vw + 26px), 48px) auto 0;
}
html:not(.scrub) figcaption { padding: 16px 20px 20px; text-align: left; }
html:not(.scrub) figcaption .what { font-size: 19px; }

/* The scroll scene. */
html.scrub .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
html.scrub .copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(600px, calc(100% - 2 * var(--ds-gutter)));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
html.scrub .results { display: grid; margin-top: 32px; }
html.scrub .result { grid-area: 1 / 1; opacity: 0; }
html.scrub .result:first-child { opacity: 1; }
html.scrub .posts { position: absolute; z-index: 1; inset: 0; }
html.scrub .post {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}
html.scrub figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Phone: the words sit at the top, one lane of posts under them. Posts fade out before they reach the words. */
html.scrub .stage.is-phone .copy { top: 56px; transform: translateX(-50%); }
html.scrub .stage.is-phone .results { margin-top: 20px; }
html.scrub .stage.is-phone .posts {
  top: var(--lane-top, 300px);
  overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
