:root {
  --bg: #08090b;
  --bg-raise: #0f1115;
  --bg-band: #141519;
  --bg-top: #26292e;
  --line: #23262d;
  --ink: #f3f5f8;
  --ink-mid: #a8b0bd;
  --ink-dim: #6f7885;
  --accent: #7ce3ff;
  --flag: #ffb547;

  --shell: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --step: clamp(4rem, 10vw, 8rem);
  --measure: 62ch;
  --radius: 10px;

  /* Overridden from JS with documentElement.clientWidth, which excludes the scrollbar.
     100vw does not, so the literal is a slightly-too-wide fallback for the frames
     before JS runs. */
  --tl-vw: 100vw;
  --frame: 0px;
  --page-w: calc(var(--tl-vw) - 2 * var(--frame));

  --font: "Aeonik Fono", sans-serif;
}

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

@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  :root {
    --cursor-arrow: image-set(url("/images/cursor/arrow.png") 1x, url("/images/cursor/arrow@2x.png") 2x) 3 3, auto;
    --cursor-link: image-set(url("/images/cursor/arrow-link.png") 1x, url("/images/cursor/arrow-link@2x.png") 2x) 3 3, pointer;
  }
  :root:has(.top-strip, .login-page) {
    --cursor-link: image-set(url("/images/cursor/arrow-link-yellow.png") 1x, url("/images/cursor/arrow-link-yellow@2x.png") 2x) 3 3, pointer;
  }
}

html { cursor: var(--cursor-arrow, auto); }
a[href], button:not(:disabled), summary, select, label[for] { cursor: var(--cursor-link, pointer); }
input:not([type="checkbox"], [type="radio"], [type="range"], [type="button"], [type="submit"], [type="reset"], [type="color"], [type="file"]),
textarea { cursor: text; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card, .showcase-btn, .collage-link .shot, .cs-strip-thumb { transition: none; }
  .cs-strip-thumb:active { scale: none; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-mid);
  font-family: var(--font);
  font-size: clamp(1rem, 0.55vw + 0.88rem, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-family: "Neely Display Sans", sans-serif;
  font-weight: 900;
  font-synthesis-weight: none;
}

:where(#cs-main) h2 { font-family: "Neely Display Sans", sans-serif; }

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 180ms ease, color 180ms ease;
}
a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink-mid);
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: var(--cursor-link, pointer);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.pill:hover:not(:disabled) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
}
.pill:disabled { opacity: 0.5; cursor: var(--cursor-arrow, default); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem max(var(--gutter), (100% - var(--shell)) / 2 + var(--gutter));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
}
.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
  background: none;
  backdrop-filter: none;
}
.site-header--overlay .wordmark.tone-dark,
.site-header--overlay .site-nav.tone-dark a { color: #08090b; }
.site-header--overlay .wordmark.tone-light,
.site-header--overlay .site-nav.tone-light a { color: #fff; }
.site-header--overlay .site-nav.tone-dark a:hover,
.site-header--overlay .site-nav.tone-dark a[aria-current="page"] { border-color: rgb(8 9 11 / 0.4); }
.site-header--overlay .site-nav.tone-light a:hover,
.site-header--overlay .site-nav.tone-light a[aria-current="page"] { border-color: rgb(255 255 255 / 0.5); }
.site-header--band {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  align-content: start;
  min-height: clamp(4.75rem, 8vw, 6.5rem);
  background: #fad233;
  backdrop-filter: none;
}
.site-header--band .wordmark,
.site-header--band .site-nav a { color: #08090b; }
.site-header--band .site-nav a:hover { border-color: rgb(8 9 11 / 0.4); }
.site-header--band .site-nav a[aria-current="page"] { color: #08090b; border-color: rgb(8 9 11 / 0.4); }
.site-header--strip {
  position: absolute;
  inset: 0 0 auto;
  z-index: 11;
  background: none;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg {
  display: block;
  width: clamp(8.5rem, 21vw, 14rem);
  height: auto;
  overflow: visible;
}
.wordmark-sticker {
  visibility: hidden;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.wordmark-sticker use {
  fill: #fff;
  stroke: #fff;
  stroke-width: 18;
}
.wordmark-sticker use.wordmark-sticker-edge {
  fill: #08090b;
  stroke: #08090b;
  stroke-width: 21;
}
.site-header .wordmark:is(:focus-visible, .is-sticker-on) {
  color: #08090b;
  outline: none;
}
.wordmark:is(:focus-visible, .is-sticker-on) .wordmark-sticker { visibility: visible; }
@media (hover: hover) {
  .site-header .wordmark:hover { color: #08090b; }
  .wordmark:hover .wordmark-sticker { visibility: visible; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.5em 0.85em;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-mid);
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
}

:root {
  --strip-tall: clamp(15.125rem, 26.15vw, 22.875rem);
  --avatar-w: calc(var(--strip-tall) * 1.17);
  --avatar-clear: calc(var(--avatar-w) * 440 / 1400 + 1.5rem);
}

@media (min-width: 901px) {
  .top-strip { --avatar-w: calc(var(--strip-tall) * 1.17 * 1.15); }
  .top-strip__avatar { --avatar-w: calc(var(--strip-tall) * 1.17 * 1.15 * 1.1); }
}

.top-strip {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  --head-rise: calc(var(--avatar-w) * 722 / 1400);
  height: calc(var(--head-rise) + max((var(--strip-tall) - var(--head-rise)) / 2, 3.75rem));
  background: #ff8080;
}

.top-strip::before,
.site-footer::before,
.made::before,
.site-header--band:not(.site-header--strip)::before,
.cs-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/home/dot-pattern.webp") 0 0 / 512px repeat;
  opacity: 0.07;
  pointer-events: none;
}
.site-header--band:not(.site-header--strip)::before { background-position: 0 100%; }

.top-strip__avatar {
  position: absolute;
  bottom: calc(var(--avatar-w) * -440 / 1400);
  left: 50%;
  z-index: 2;
  width: var(--avatar-w);
  aspect-ratio: 1400 / 1300;
  translate: -50% 0;
  pointer-events: none;
}

.top-strip__frame { display: contents; }

.hero {
  padding: calc(max(clamp(4rem, 8.5vw, 7.5rem), var(--avatar-clear)) * 0.88) var(--gutter) 0;
  background: var(--bg-top);
  text-align: center;
}

.hero .statement,
.hero .lede {
  margin-inline: auto;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero .fx-confetti .word { white-space: nowrap; }
  .hero .fx-confetti .ch {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.3, 1.7, 0.5, 1), color 0.3s;
    transition-delay: min(calc(var(--i) * 8ms), 0.35s);
  }
  .hero .fx-confetti:hover .ch {
    color: var(--c);
    transform: translateY(var(--y)) rotate(var(--r));
  }

  .hero .fx-sweep:hover {
    background: linear-gradient(90deg, #ff8080, #ffb575, #fad233, #b3e65f, #9ce6ff, #b8acfb, #ff8080) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fx-sweep 1.6s linear infinite;
  }

  .hero .fx-squiggle {
    padding-bottom: 0.18em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6' preserveAspectRatio='none'%3E%3Cpath d='M-10 3 Q-5 6 0 3 T10 3 T20 3 T30 3' fill='none' stroke='%23b8ab9c' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 100% / 0.9em 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .hero .fx-squiggle:hover {
    background-size: 0.9em 0.28em;
    animation: fx-crawl 0.6s linear infinite;
  }
}
@keyframes fx-sweep { to { background-position: -200% 0; } }
@keyframes fx-crawl { to { background-position: 0.9em 100%; } }

.hero-eyebrow {
  margin-bottom: 1.25rem;
  color: var(--ink-mid);
  font-size: 0.9375rem;
}

.statement {
  padding-block: 0;
  max-width: 18em;
  color: #fff;
  font-family: "Neely Display Sans", sans-serif;
  font-size: clamp(2.25rem, 6.4vw, 4.75rem);
  font-weight: 900;
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin-top: 2rem;
  max-width: 36em;
  color: var(--ink-mid);
  font-family: "Neely Text Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.1875rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Desktop keeps the authored breaks after "founder." and before "cohesion.";
   below 900 the <br>s drop out so the lede wraps to the panel width on its own. */
@media (max-width: 900px) {
  .lede br {
    display: none;
  }
}

@media (max-width: 560px) {
  .top-strip,
  .top-strip__avatar { --avatar-w: calc(var(--strip-tall) * 1.17 * 1.6); }
  .top-strip { height: 50svh; }
  /* Not overflow-x: clip on .top-strip: iOS WebKit clips that on both axes, cutting off
     his arms and the wobble edge below the strip. The frame is as tall as the canvas. */
  .top-strip__frame {
    display: block;
    position: absolute;
    inset-inline: 0;
    bottom: calc(var(--avatar-w) * -440 / 1400);
    z-index: 2;
    height: calc(var(--avatar-w) * 1300 / 1400);
    overflow: hidden;
    pointer-events: none;
  }
  .top-strip__avatar { bottom: 0; translate: calc(-50% + var(--avatar-w) * 0.022) 0; }
  .hero { padding-top: calc(var(--strip-tall) * 1.17 * 1.6 * 0.17); }
  .statement { font-size: min(2.25rem, 8.4vw); }
}

.companies {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0;
  background: var(--bg-top);
}
.companies .logo-grid {
  grid-template-columns: repeat(3, minmax(0, 8.5rem));
  justify-content: center;
}
/* Trims each square logo box to a 4rem-tall band so the short wordmarks don't leave tall
   gaps above and below. Percentage margins resolve against the cell's width, which is
   also the square's height, so this stays centred at every width. */
.companies .logo,
.companies .logo-cell::after { margin-block: calc(2rem - 50%); }

.skills {
  padding: clamp(4rem, 8.5vw, 7.5rem) var(--gutter) clamp(5rem, 12vw, 10.5rem);
  background: var(--bg-top);
}
.skills .section-label { text-align: center; }

.skills__list {
  --skills-size: clamp(1rem, 0.35vw + 0.85rem, 1.125rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 30rem));
  justify-content: center;
  gap: 2rem 1.875rem;
  margin-top: clamp(4.5rem, 9vw, 7.5rem);
}

.skills__row {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}
.skills__row:nth-child(2) { margin-top: calc(37.5% + 0.75rem + 3 * var(--skills-size)); }

.skills__text {
  justify-self: center;
  max-width: 24rem;
  color: #fff;
  font-family: "Neely Text Sans", sans-serif;
  font-weight: 500;
  font-size: var(--skills-size);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.skills__lead { display: block; }

@media (max-width: 720px) {
  .skills__list { grid-template-columns: minmax(0, 30rem); }
  .skills__row:nth-child(2) { margin-top: 0; }
}

.career {
  --col: clamp(6rem, 8vw, 7rem);
  display: grid;
  gap: clamp(2rem, 3.5vw, 2.75rem);
  width: min(100%, 61.875rem);
  margin: clamp(2.5rem, 4vw, 3.5rem) auto 0;
  padding: 0;
  list-style: none;
}

.career__step {
  display: grid;
  grid-template-columns: var(--col) minmax(0, 27rem);
  grid-template-rows: auto 1fr;
  column-gap: 0;
  row-gap: 0.625rem;
  margin-left: calc(var(--i) * var(--col));
}

.career__years {
  grid-row: 1 / 3;
  margin: 0;
  padding-top: 0.3em;
  color: var(--ink-dim);
  font-size: 0.875rem;
}

.career__name {
  font-family: "Neely Display Sans", sans-serif;
  font-size: clamp(1.25rem, 0.5vw + 1.05rem, 1.5rem);
  font-weight: 900;
  font-synthesis-weight: none;
}

.career__role {
  margin: 0;
  color: var(--ink);
  font-family: "Neely Text Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 0.35vw + 0.85rem, 1.125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.career.is-waiting .career__step {
  opacity: 0;
  translate: -0.5rem 0;
}
.career.is-in .career__step {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 600ms ease-out calc(var(--i) * 110ms),
    translate 800ms cubic-bezier(0.2, 0, 0, 1) calc(var(--i) * 110ms);
}

.is-unrevealed {
  opacity: 0;
  translate: 0 0.75rem;
}
.is-revealing {
  animation:
    reveal-fade 600ms ease-out var(--reveal-delay, 0ms) both,
    reveal-rise 800ms cubic-bezier(0.2, 0, 0, 1) var(--reveal-delay, 0ms) both;
}
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-rise { from { translate: 0 0.75rem; } }

@media (max-width: 860px) {
  .career { width: min(100%, 30rem); }
  .career__step {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    row-gap: 0.375rem;
  }
  .career__years { grid-row: auto; padding-top: 0; }
}

.spider {
  position: relative;
  aspect-ratio: 480 / 360;
  container-type: inline-size;
}
.spider canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.spider-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform var(--spider-settle-ms) cubic-bezier(0.33, 0, 0.2, 1);
}
.spider.is-hover .spider-overlay {
  transform: translateY(calc(var(--spider-lift) * -100cqw / 480)) scale(var(--spider-scale));
  transition: transform var(--spider-lift-ms) cubic-bezier(0.34, 1.5, 0.64, 1);
}
.spider-title {
  position: absolute;
  margin: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: #000;
  font-family: "Neely Display Sans", sans-serif;
  font-weight: 900;
  font-size: calc(100cqw * 18 / 480);
  line-height: 1.28;
}
.spider-label {
  position: absolute;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 500ms ease;
  color: #fff;
  font-family: "Aeonik Fono", sans-serif;
  font-weight: 600;
  font-size: calc(100cqw * 12 / 480);
  line-height: normal;
  translate: calc(100cqw * var(--out-x, 0) / 480) calc(100cqw * var(--out-y, 0) / 480);
}
.spider-label.align-center { transform: translate(-50%, -50%); }
.spider-label.align-left { transform: translate(0, -50%); }
.spider-label.align-right { transform: translate(-100%, -50%); }
.spider-label[data-index="1"] { --out-y: -6; }
.spider-label[data-index="2"] { --out-x: 4.24; --out-y: -4.24; }
.spider-label[data-index="3"] { --out-x: 6; }
.spider-label[data-index="4"] { --out-x: 4.24; --out-y: 4.24; }
.spider-label[data-index="5"] { --out-y: 6; }
.spider-label[data-index="6"] { --out-x: -4.24; --out-y: 4.24; }
.spider-label[data-index="7"] { --out-x: -6; }
.spider-label[data-index="8"] { --out-x: -4.24; --out-y: -4.24; }
.spider.is-intro:not(.has-focus) .spider-label,
.spider:focus-visible:not(.has-focus) .spider-label,
.spider-label.is-focus { opacity: 1; transition-duration: 180ms; }
.spider-score { display: none; }
@media (prefers-reduced-motion: reduce) {
  .spider-label { opacity: 1; }
}
.spider:focus-visible { outline: 2px solid #b8acfb; outline-offset: 4px; border-radius: 12px; }

.diamonds {
  overflow-x: clip;
  padding: clamp(4rem, 8.5vw, 7.5rem) var(--gutter) 0;
  background: var(--bg-top);
}
.diamonds .section-label { text-align: center; }

.diamonds__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 19.5rem));
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diamonds__list > li {
  display: flex;
  justify-content: center;
}

.diamond {
  position: relative;
  display: block;
  flex: none;
  width: calc(100% * 396 / 312);
  aspect-ratio: 440 / 520;
  container-type: inline-size;
  color: #fff;
  text-decoration: none;
  pointer-events: none;
}
.diamond:hover { color: #fff; }
.diamond:focus-visible { outline: none; }
.diamond:focus-visible .diamond-text {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--hit-shape, inset(50%));
  pointer-events: auto;
}
.diamond.is-hover::before { translate: 0 var(--hit-lift, 0); }

.diamond canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.diamonds .diamond { aspect-ratio: auto; }
.diamonds .diamond::before { content: none; }

.diamond-art {
  position: relative;
  display: block;
  aspect-ratio: 440 / 520;
}
.diamond-art::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--hit-shape, inset(50%));
  pointer-events: auto;
}
.diamond.is-hover .diamond-art::before { translate: 0 var(--hit-lift, 0); }

.diamond-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(19.5rem, 100%);
  margin: calc((var(--shadow-y, 0.943) - 1) * 100cqw * 520 / 440 + 1.25rem) auto 0;
  text-align: center;
  pointer-events: auto;
  transition: transform var(--diamond-title-settle-ms) cubic-bezier(0.33, 0, 0.2, 1);
}
.diamond.is-hover .diamond-text {
  transform: translateY(calc(var(--diamond-title-lift) * -100cqw / 440));
  transition: transform var(--diamond-title-lift-ms) cubic-bezier(0.34, 1.5, 0.64, 1);
}

.diamond-name {
  color: var(--name-color, #fff);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.diamond-headline {
  font-family: "Neely Display Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 2rem;
  text-wrap: balance;
}

.diamond-meta {
  color: var(--ink-mid);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.paint-on .diamond-name {
  transition: color 0.6s ease-out;
}

.paint-on .diamond:not(.is-painted) .diamond-name {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .paint-on .diamond-name {
    transition: none;
  }
}

@media (max-width: 640px) {
  .diamonds__list {
    grid-template-columns: minmax(0, 17rem);
  }
}

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: var(--step);
  padding-bottom: var(--step);
}

.shot {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  object-fit: cover;
}

/* Every screenshot is 4:3, and portrait ratios would crop the type out of the middle
   of each one. The vertical offsets are staggered for rhythm instead. */
.collage figure { margin: 0; }
.collage .shot { aspect-ratio: 4 / 3; }
.collage > :nth-child(2) { margin-top: clamp(1rem, 3vw, 2.75rem); }
.collage > :nth-child(3) { margin-top: clamp(0.5rem, 1.5vw, 1.25rem); }
.collage > :nth-child(4) { margin-top: clamp(1.5rem, 4vw, 3.75rem); }

.collage-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms cubic-bezier(0.2, 0, 0, 1);
}
.collage-link:hover,
.collage-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  text-decoration: none;
  color: inherit;
}
.collage-link .shot {
  border: 0;
  border-radius: 0;
  transform: scale(1);
  transition: transform 480ms cubic-bezier(0.2, 0, 0, 1);
}
.collage-link:hover .shot,
.collage-link:focus-visible .shot {
  transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .collage-link:hover .shot,
  .collage-link:focus-visible .shot {
    transform: none;
  }
}

/* Exactly one viewport tall, so the rail starts on a whole pixel. A content-sized intro
   puts the rail's stops on fractions the browser can't scroll to, and the pin, snap and
   opening-card hold all miss by under a pixel. */
.timeline-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  box-sizing: border-box;
}

.section-label {
  margin-bottom: 1.25rem;
  color: var(--ink-mid);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience { padding-block: 0 var(--step); }

.projects { padding-bottom: var(--step); }
.projects-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.projects-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.projects-head p { margin-top: 0.5rem; color: var(--ink-dim); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.75rem;
}

.project-card {
  display: block;
  text-decoration: none;
  transition: transform 220ms ease;
}
.project-card .shot { aspect-ratio: 4 / 3; }
.project-card h3 {
  margin-top: 1.125rem;
  font-family: "Neely Display Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  font-synthesis-weight: none;
  transition: color 180ms ease;
}
.project-card p { margin-top: 0.35rem; color: var(--ink-dim); font-size: 0.9375rem; }
a.project-card:hover .shot { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
a.project-card:hover h3 { color: var(--accent); }

.more-projects .project-card {
  position: relative;
  isolation: isolate;
}
.more-projects .project-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #000;
  opacity: calc(var(--featured-shadow, 0) * 0.45);
  filter: blur(10px);
  transform: translateY(8px) scale(0.92);
}
.more-projects .project-card .shot {
  rotate: calc(var(--featured-sign, 1) * var(--featured-mag, 1) * var(--featured-tilt, 0) * 1deg);
  animation: featured-float var(--featured-float-s, 3.5s) var(--featured-float-ease, ease-in-out) var(--featured-float-delay, 0s) infinite alternate;
}
.more-projects .project-card::before,
.more-projects .project-card .shot,
.more-projects .project-card h3,
.more-projects .project-card p {
  transition: color 180ms ease, border-color 180ms ease,
    transform var(--featured-settle-ms, 420ms) var(--featured-settle-ease, ease),
    rotate var(--featured-settle-ms, 420ms) var(--featured-settle-ease, ease),
    scale var(--featured-settle-ms, 420ms) var(--featured-settle-ease, ease),
    opacity var(--featured-settle-ms, 420ms) var(--featured-settle-ease, ease),
    filter var(--featured-settle-ms, 420ms) var(--featured-settle-ease, ease);
}
.more-projects .project-card.is-lifted::before,
.more-projects .project-card.is-lifted .shot,
.more-projects .project-card.is-lifted h3,
.more-projects .project-card.is-lifted p {
  transition-duration: 180ms, 180ms, var(--featured-lift-ms, 450ms), var(--featured-lift-ms, 450ms),
    var(--featured-lift-ms, 450ms), var(--featured-lift-ms, 450ms), var(--featured-lift-ms, 450ms);
  transition-timing-function: ease, ease, var(--featured-lift-ease, ease), var(--featured-lift-ease, ease),
    var(--featured-lift-ease, ease), var(--featured-lift-ease, ease), var(--featured-lift-ease, ease);
}
.more-projects .project-card.is-lifted::before {
  opacity: var(--featured-shadow, 0);
  filter: blur(20px);
  transform: translateY(calc(var(--featured-lift, 0) * 0.5px)) scale(0.97);
}
.more-projects .project-card.is-lifted .shot {
  transform: translateY(calc(var(--featured-lift, 0) * -1px));
  rotate: calc(var(--featured-sign, 1) * var(--featured-mag, 1) * var(--featured-hover-tilt, 0) * 1deg);
  scale: var(--featured-grow, 1);
}
.more-projects .project-card.is-lifted h3,
.more-projects .project-card.is-lifted p {
  transform: translateY(calc(var(--featured-text-lift, 0) * -1px));
}
@keyframes featured-float {
  from { translate: 0 0; }
  to { translate: 0 calc(var(--featured-float-px, 0) * -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .more-projects .project-card .shot { animation: none; }
}

.archive {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--step);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.section-hint { color: var(--ink-dim); font-size: 0.875rem; }

.showcase-frame {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 1040 / 440;
  overflow: hidden;
  color: var(--ink);
}

@media (max-width: 720px) {
  .showcase-frame { aspect-ratio: 520 / 340; }
}

.showcase-frame .cg-card {
  /* vendor/carousel.css paints these #0b0b0d, a shade off the page. */
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.showcase-frame .cg-content {
  font-size: 15px;
  gap: 0.3em;
  padding: 3em 1.1em 1.1em;
  background: linear-gradient(
    to top,
    rgba(6, 6, 8, 0.95) 0%,
    rgba(6, 6, 8, 0.88) 55%,
    rgba(6, 6, 8, 0) 100%
  );
}
.showcase-frame .cg-title { text-wrap: balance; }
.showcase-frame .cg-caption { opacity: 0.72; }

.showcase-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.showcase-btn {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mid);
  font: inherit;
  font-size: 1.25rem;
  cursor: var(--cursor-link, pointer);
  transition: border-color 180ms ease, color 180ms ease;
}
.showcase-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.showcase-count {
  min-width: 5.5ch;
  color: var(--ink-dim);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  border-top: 0;
  --footer-avatar-w: calc(var(--page-w) * 0.3725);
  position: relative;
  isolation: isolate;
  padding-top: 3.75rem;
  padding-bottom: calc(var(--page-w) * 302 / 1400);
  background: #ff8080;
  color: #08090b;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/home/lettering-footer.webp") center / cover no-repeat;
  pointer-events: none;
}
.footer-avatar-clip {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}
.footer-stage {
  --w: var(--footer-avatar-w);
  position: absolute;
  bottom: calc(var(--page-w) * -24 / 1400 - var(--w) * 440 / 1400);
  left: 50%;
  width: var(--w);
  aspect-ratio: 1400 / 1300;
  translate: -50% 0;
}
.footer-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer-sticker {
  --tile: clamp(38.72px, calc(var(--w) * 0.1224), 84.48px);
  --tap: max(44px, var(--tile));
  position: absolute;
  left: calc(48.6% + var(--dx) * var(--w));
  top: calc(var(--w) * 0.267 + var(--dy) * var(--w));
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  margin: calc(var(--tap) / -2) 0 0 calc(var(--tap) / -2);
  color: #08090b;
  opacity: 0;
  transform: translate(calc(var(--dx) * var(--w) * -1), calc(var(--dy) * var(--w) * -1)) scale(0.5);
  transition:
    transform 0.28s cubic-bezier(0.5, 0, 0.75, 0),
    opacity 0.1s linear 0.18s;
}
.footer-sticker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
  transition: fill 0.15s;
}
.footer-sticker > svg {
  width: var(--tile);
  height: var(--tile);
}
.footer-sticker-tile {
  fill: #fff;
  stroke: #08090b;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.footer-sticker:hover { color: #08090b; }
.footer-sticker:focus-visible {
  outline: none;
  color: #d14060;
}
.footer-sticker:focus-visible .footer-sticker-tile { stroke-width: 3px; }
.site-footer.is-open .footer-sticker {
  opacity: 1;
  pointer-events: auto;
  transform: rotate(var(--tilt));
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--order) * 60ms),
    opacity 0.08s linear calc(var(--order) * 60ms);
}
@media (hover: hover) {
  .site-footer.is-open .footer-sticker:hover {
    transform: rotate(0deg) scale(1.08);
    transition-delay: 0s;
    transition-duration: 0.25s;
  }
  .footer-sticker:hover { color: #d14060; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-sticker,
  .site-footer.is-open .footer-sticker {
    transform: rotate(var(--tilt));
    transition: opacity 0.2s linear;
  }
}
.footer-sticker-defs { position: absolute; }

.site-footer:has(~ .made) {
  padding-top: 0;
  background: var(--bg-top);
}
.site-footer:has(~ .made)::before,
.site-footer:has(~ .made)::after { content: none; }

.made {
  --logo-scale: 0.9;
  position: relative;
  isolation: isolate;
  padding-block: 3.75rem clamp(5rem, 9.5vw, 8.5rem);
  background: #ff8080;
  color: #08090b;
}
.made-title {
  margin: 0 0 2.5rem;
  color: #08090b;
  font: 400 1rem / 1.2 var(--font);
  text-align: center;
}
.made-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.made-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 1.75rem;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.made-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #bdbdbd;
  cursor: var(--cursor-link, pointer);
}
.made-open:focus-visible {
  outline: 2px solid #08090b;
  outline-offset: 2px;
}
.made-video {
  display: block;
  width: 100%;
  aspect-ratio: 245 / 200;
  object-fit: cover;
  transition: scale 0.3s cubic-bezier(0.2, 0, 0, 1);
}
@media (hover: hover) {
  .made-open:hover .made-video { scale: 1.04; }
}
.made-logo {
  display: block;
  width: auto;
  height: calc(var(--h) * var(--logo-scale) * 1px);
  margin-top: calc(1.5rem + (58 - var(--h)) * var(--logo-scale) * 1px);
}
.made-caption {
  margin: 1.25rem 0 0;
  padding-inline: 0.5rem;
  color: #3a3f47;
  font: 500 0.8125rem / 1.5 "Neely Text Sans", sans-serif;
  text-wrap: balance;
}
.made-email {
  margin: 4rem 0 0;
  text-align: center;
  font: 400 0.6875rem / 1.4 var(--font);
  letter-spacing: 0.08em;
}
.made-email a {
  color: #08090b;
  text-decoration: none;
}
@media (hover: hover) {
  .made-email a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
}
.made-email a:focus-visible {
  outline: 2px solid #08090b;
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 900px) {
  .made-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .made { --logo-scale: 0.6; }
  .made-title { font-size: 0.875rem; }
  .made-cards { gap: 0.75rem; }
  .made-card { padding: 6px 6px 1.25rem; border-radius: 10px; }
  .made-open { border-radius: 5px; }
  .made-logo { margin-top: calc(1rem + (58 - var(--h)) * var(--logo-scale) * 1px); }
  .made-caption { margin-top: 0.875rem; padding-inline: 0.25rem; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .made-video { transition: none; }
}

@media (max-width: 900px) {
  .collage { grid-template-columns: repeat(2, 1fr); }
  .collage > * { margin-top: 0 !important; }
}

@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 1.25rem; }
  .site-nav a { padding-inline: 0.5em; font-size: 0.875rem; }
}

@media (max-width: 560px) {
  .site-nav a[href="/timeline/"] { display: none; }
}


:root { --cs-split: 43%; }

.cs-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }

.cs-title {
  font-family: "Neely Display Sans", sans-serif;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  font-weight: 900;
  font-synthesis-weight: none;
  letter-spacing: -0.025em;
}

.cs-byline { margin-top: 0.75rem; color: var(--ink-dim); }

.cs-top {
  position: relative;
  isolation: isolate;
  background: #fad233;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.cs-top .cs-head { padding-top: clamp(1rem, 3vw, 2rem); }
.cs-top .cs-title { color: #08090b; }
.cs-top .cs-byline { color: rgb(8 9 11 / 0.7); }

mark {
  padding: 0 0.12em;
  border-radius: 0.15em;
  background: #fad233;
  color: #08090b;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cs-top mark { background: #08090b; color: #fad233; }

.cs-meta {
  display: grid;
  grid-template-columns: var(--cs-split) 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.cs-meta--open { padding-top: 0; border-top: 0; }
.cs-overview > .cs-meta:first-child { margin-top: calc(var(--step) * 2); }
.cs-meta-body { grid-column: 1 / -1; }
.cs-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--ink-dim);
}
.cs-meta-left .pill { margin-top: 1.25rem; }
.cs-meta-right { grid-column: 2; }

.cs-intro {
  color: var(--ink-mid);
  font-family: "Neely Text Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.1875rem);
  max-width: 46ch;
}

.cs-hero { margin-block: clamp(3rem, 7vw, 5rem); }
.cs-hero .cs-figures { margin-top: 0; }

.cs-section, .cs-overview { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.cs-section h2, .cs-meta-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
.cs-section p { max-width: 60ch; }
.cs-section h3, .cs-meta-body h3 {
  margin: 2.25rem 0 0.6rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.25rem;
  font-synthesis-weight: none;
}
.cs-section h2 + h3 { margin-top: 0; }
.cs-section h2 .section-label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font);
  line-height: 1.6;
}

.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 2.25rem;
}
.cs-split-text .section-label { margin-bottom: 0.75rem; }
.cs-split-text h3 { margin-top: 0; }
.cs-split-text .cs-todo { margin-top: 1rem; }
.cs-split-media {
  position: relative;
  padding-block: 3rem;
}
.cs-split-wide {
  display: block;
  width: 140%;
  max-width: none;
  margin-left: 22%;
}
.cs-split-tall {
  position: absolute;
  top: 22%;
  left: 0;
  z-index: 1;
  width: 36%;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}
.cs-split--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.cs-split--flip .cs-split-media { order: -1; }
.cs-split--flip .cs-split-wide { margin-left: -62%; }
.cs-split--flip .cs-split-tall { left: auto; right: 0; }
main:has(.cs-split) { overflow-x: clip; }

.cs-band {
  margin-top: var(--step);
  padding-top: var(--step);
  padding-bottom: 2rem;
  box-shadow: 0 0 0 100vmax var(--bg-band);
  clip-path: inset(0 -100vmax);
  background: var(--bg-band);
}
.progression { margin: 2rem 0 0; }
.cs-band + h3 { margin-top: clamp(3rem, 7vw, 5.5rem); }
.progression + h3 { margin-top: clamp(3rem, 7vw, 5.5rem); }
.motion .progression::after { content: ""; display: block; height: 240vh; }
.progression-stage {
  --art: 100%;
  position: sticky;
  padding-block: 2rem;
  box-shadow: 0 0 0 100vmax var(--bg-band);
  clip-path: inset(0 -100vmax);
  background: var(--bg-band);
}
.motion .progression-stage {
  --art: min(100%, (100vh - 10rem) * 16 / 9);
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
.progression-art {
  display: block;
  width: var(--art);
  height: auto;
  margin-inline: auto;
}
.progression-date { font: 400 42px "Aeonik Fono", sans-serif; fill: var(--ink-dim); }
.progression-link { stroke-dasharray: 1; }
.progression figcaption {
  width: var(--page-w);
  margin: 1rem 0 0;
  margin-inline: calc((100% - var(--page-w)) / 2);
  padding-inline: var(--gutter);
  color: var(--ink-dim);
  font-size: clamp(0.9375rem, 1.3vw, 1.1875rem);
  text-align: center;
  text-wrap: pretty;
}

.vision {
  width: var(--page-w);
  margin: 2.5rem 0 0;
  margin-inline: calc((100% - var(--page-w)) / 2);
  container-type: inline-size;
}
.vision-scene {
  --frame: 3456;
  --u: calc(100cqw / var(--frame));
  position: relative;
  aspect-ratio: var(--frame) / 1760;
  overflow: hidden;
  background: var(--bg-band);
}
.vision-page {
  --shift: calc(var(--drift, 0) * 160 * var(--u));
  position: absolute;
  width: calc(997 * var(--u));
  max-width: none;
  height: auto;
  border-radius: calc(12 * var(--u));
  translate: 0 var(--shift);
}
.vision-page--top { left: calc(129 * var(--u)); top: calc(238 * var(--u)); }
.vision-page--middle {
  left: calc(1229 * var(--u));
  top: 50%;
  translate: 0 calc(-50% - var(--shift));
}
.vision-page--bottom { left: calc(2329 * var(--u)); bottom: calc(238 * var(--u)); }
@media (max-width: 720px) {
  .vision-scene { --frame: 2355; }
  .vision-page--bottom { display: none; }
}

.ideas { margin: 0 0 clamp(3rem, 7vw, 5rem); }
.motion .ideas::after { content: ""; display: block; height: 260vh; }
.ideas-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--bg-band);
  container-type: size;
}
.motion .ideas-stage { position: sticky; top: 0; }
.ideas-note {
  --size: clamp(9rem, min(21cqw, 41cqh), 26rem);
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--size);
  aspect-ratio: 592 / 610;
  padding: calc(var(--size) * 0.07);
  border-radius: calc(var(--size) * 0.12);
  translate: -50% -50%;
  rotate: var(--tilt);
  background: linear-gradient(196deg, transparent 28%, rgb(255 255 255 / 0.1) 93%), #6f7885;
  box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.3);
  color: #222428;
  font: 500 calc(var(--size) * 0.071) / 1.5 "Neely Text Sans", sans-serif;
  text-align: center;
  overflow-wrap: break-word;
}
.ideas-note p { margin: 0; }
.ideas-note--answer { background-color: #6ae08d; }

.compare-pin { margin: 2rem calc(50% - 50vw + var(--frame)) 0; }
.motion .compare-pin::after { content: ""; display: block; height: 200vh; }
.compare {
  position: relative;
  height: 100svh;
  margin: 0;
}
.motion .compare { position: sticky; top: 0; }
.compare-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.compare-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-before {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-label--before { left: 1rem; }
.compare-label--after { right: 1rem; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
}
.compare-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare-frame:has(.compare-range:focus-visible) .compare-handle::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.compare figcaption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink-mid);
  font-size: 0.9375rem;
  text-align: center;
  pointer-events: none;
}
.cs-section p + p { margin-top: 1rem; }

.cs-figures { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.cs-figures--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-figures figure { margin: 0; }
video.shot { display: block; aspect-ratio: 16 / 9; }
.cs-zoom {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cs-zoom > video.shot { border: 0; border-radius: 0; }
.cs-hero--bleed .cs-zoom { border: 0; border-radius: 0; }
.cs-section > .cs-hero--bleed,
.cs-overview .cs-hero--bleed { margin-inline: calc(50% - 50vw + var(--frame)); }
.cs-hero figcaption {
  margin-top: 0.6rem;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.motion .cs-figures--two > * {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity 700ms ease, translate 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion .cs-figures--two > :nth-child(even) { transition-delay: 120ms; }
.motion .cs-figures--two > .is-in { opacity: 1; translate: 0 0; }
.cs-figures figcaption {
  margin-top: 0.6rem;
  max-width: 60ch;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

/* No aspect-ratio on the figures on purpose. The files are natively 4:3, and a ratio
   on top of .shot's object-fit: cover would crop the type out of the middle. */

.cs-credits { padding-bottom: var(--step); }
.cs-credits h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.cs-credits p { max-width: 60ch; }
.cs-credits p + p { margin-top: 1rem; }

.more-projects { padding-bottom: var(--step); }
.more-projects h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2rem; }
.more-projects .projects-grid { grid-template-columns: repeat(3, 1fr); }

.quotes { padding-block: var(--step); background: var(--bg-band); }
.quotes-heart {
  display: block;
  width: 45px;
  height: 45px;
  margin: 0 auto 3.75rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.quote-column { display: grid; gap: 1.25rem; }
.quote {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink-mid);
  font-family: "Neely Text Sans", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.55;
}
.quote blockquote { margin: 0; }
.quote figcaption {
  margin-top: 1rem;
  color: var(--ink-dim);
  font-size: 0.8125rem;
}
.quote::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 0.875rem;
  background: var(--ink-dim);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quote--linkedin {
  border-color: #fff;
  background: #fff;
  color: #3a3f47;
}
.quote--linkedin figcaption { color: #6f7885; }
.quote--linkedin::before {
  background: var(--bg);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5205 2C21.3359 2 22 2.64566 22 3.44205V20.5569C22 21.3533 21.3359 22 20.5205 22H3.47517C2.66133 22 2 21.3533 2 20.5569V3.44205C2 2.64566 2.66133 2 3.47517 2H20.5205ZM19.0431 19.0421V13.8077C19.0431 11.2372 18.4881 9.26095 15.4845 9.26095C14.0413 9.26095 13.0734 10.0523 12.6779 10.8026H12.6373V9.49781H9.79373V19.0421H12.7566V14.3215C12.7566 13.0764 12.9921 11.8701 14.5356 11.8701C16.058 11.8701 16.077 13.2939 16.077 14.4007V19.0421H19.0431ZM7.93278 9.49781H4.96339V19.0421H7.93278V9.49781ZM6.44887 4.75336C5.49615 4.75336 4.72793 5.52406 4.72793 6.4735C4.72793 7.42318 5.49615 8.19384 6.44887 8.19384C7.39783 8.19384 8.16824 7.42318 8.16824 6.4735C8.16824 5.52406 7.39783 4.75336 6.44887 4.75336Z'/%3E%3C/svg%3E");
}

.cs-todo {
  max-width: 60ch;
  padding: 0.85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--ink-dim) 60%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  /* --ink-dim, not --ink-mid. --ink-mid is the body-copy colour: raise it and the
     marker stops reading as a gap and starts reading as finished copy. */
  color: var(--ink-dim);
  font-size: 0.9375rem;
}
.cs-todo::before {
  content: "Missing copy";
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-intro + .cs-intro,
.cs-intro + .cs-todo { margin-top: 1rem; }

.cs-strip {
  --strip-gap: 0.75rem;
  container-type: inline-size;
  width: calc((100% + var(--page-w)) / 2);
  max-width: none;
  margin-top: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.cs-strip-track {
  display: flex;
  gap: var(--strip-gap);
  width: max-content;
  padding-right: var(--gutter);
  padding-bottom: 0.5rem;
}
.cs-strip-thumb {
  flex: 0 0 calc((100cqw - 2 * var(--strip-gap)) / 2.5);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 220ms cubic-bezier(0.2, 0, 0, 1), scale 120ms ease;
}
.cs-strip-thumb:hover,
.cs-strip-thumb:focus-visible { border-color: var(--accent); }
.cs-strip-thumb:active { scale: 0.96; }
.cs-strip-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  pointer-events: none;
}
.cs-box[open] {
  display: grid;
  grid-template-columns: auto minmax(0, min(92vw, 72rem)) auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1.25rem;
  border: 0;
  background: transparent;
}
.cs-box::backdrop { background: rgb(8 9 11 / 0.82); }
.cs-box img {
  grid-column: 2;
  grid-row: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}
.cs-box-close,
.cs-box-prev,
.cs-box-next {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  cursor: var(--cursor-link, pointer);
}
.cs-box-close { grid-column: 2; grid-row: 1; justify-self: end; }
.cs-box-prev { grid-column: 1; grid-row: 2; }
.cs-box-next { grid-column: 3; grid-row: 2; }
.cs-box-count {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.cs-todo--shot { aspect-ratio: 16 / 9; max-width: none; }
.cs-todo--shot::before { content: "Shot needed"; }
.cs-internal {
  background: color-mix(in srgb, var(--flag) 16%, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--ink);
}

/* .more-projects .projects-grid outranks the bare .projects-grid in the 560px
   block above regardless of order, so both collapses have to be repeated here. */
@media (max-width: 900px) {
  .more-projects .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .cs-meta { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-meta-right { grid-column: auto; }
  .cs-figures--two { grid-template-columns: 1fr; }
  .cs-split, .cs-split--flip { grid-template-columns: 1fr; }
  .cs-split-wide { width: 100%; margin-left: 26%; }
  .cs-split-tall { width: 40%; }
  .cs-split--flip .cs-split-media { order: 0; }
  .cs-split--flip .cs-split-wide { margin-left: -26%; }
  .quote-columns { grid-template-columns: 1fr; }
  .quote-column { display: contents; }
  .quote--linkedin { order: 1; }
  .cs-box[open] { grid-template-columns: minmax(0, 1fr); }
  .cs-box-close,
  .cs-box-prev,
  .cs-box-next,
  .cs-box img,
  .cs-box-count { grid-column: 1; }
  .cs-box-prev,
  .cs-box-next { grid-row: 2; z-index: 1; }
  .cs-box-prev { justify-self: start; }
  .cs-box-next { justify-self: end; }
}

@media (max-width: 560px) {
  .more-projects .projects-grid { grid-template-columns: 1fr; }
  .site-footer {
    --footer-avatar-w: 102.15vw;
    padding-bottom: 65.55vw;
  }
  .footer-sticker { --tile: clamp(44.53px, calc(var(--w) * 0.1224), 84.48px); }
}


.customers { padding-bottom: var(--step); }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  row-gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

@property --float {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.logo-cell {
  --logo-scale: 1;
  --logo-x: 0%;
  --logo-y: 0%;
  display: grid;
  place-items: center;
  min-height: 3.75rem;
  transition: --float 700ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.logo-cell[hidden] { display: none; }

/* The artwork is pure white on transparent, so the hover colour is the same file used
   as a mask over a --brand fill (::after), cross-faded with the white <img>. Both sit
   in one grid cell with the same box, so they line up exactly.
   Each file is a 136x136 square, so width:100% fills the cell and no height cap is
   wanted. --logo-scale, --logo-x and --logo-y are the per-logo nudges for the uneven
   padding inside those squares. They come from logos.json (Backstage's Logos tab), which
   serve.ts writes into the page; an inline style on the cell would override it. Above 1
   the scale deliberately bleeds into the grid gap. */
/* aspect-ratio, not the intrinsic size: logo_coke.svg is 137x136 where the others are
   136x136, which makes its box 1px shorter and knocks it out of alignment with its row.
   A square box with object-fit: contain aligns every row and fits the wider art without
   stretching it. */
/* The bob runs all the time but is multiplied by --float, which is 0 at rest. Hover
   transitions --float to 1, so the logo eases into the float and back out of it instead
   of snapping, which it would if the animation were only switched on during hover. */
.logo,
.logo-cell::after {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1;
  transform: translate(var(--logo-x), var(--logo-y)) scale(var(--logo-scale));
  animation: logo-bob 3.2s ease-in-out infinite;
}
.logo {
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 240ms ease;
}
.logo-cell::after {
  content: "";
  background: var(--brand);
  mask: var(--logo) center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

@media (hover: hover) {
  .logo-cell:hover { --float: 1; }
  .logo-cell:hover .logo { opacity: 0; }
  .logo-cell:hover::after { opacity: 1; }
}

@keyframes logo-bob {
  0%, 100% {
    translate: 0 calc(var(--float) * -0.35rem);
    rotate: calc(var(--float) * -1.2deg);
  }
  50% {
    translate: 0 calc(var(--float) * -0.75rem);
    rotate: calc(var(--float) * 1.2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-cell { transition: none; }
  .logo, .logo-cell::after { animation: none; transition: none; }
}

@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

.diamonds ~ :is(.customers, .more-projects) {
  max-width: none;
  padding-block: 0 clamp(4rem, 8.5vw, 7.5rem);
  background: var(--bg-top);
  text-align: center;
}
.diamonds ~ :is(.customers, .more-projects) > * {
  max-width: calc(var(--shell) - 2 * var(--gutter));
  margin-inline: auto;
}
.diamonds ~ .more-projects { padding-bottom: clamp(5rem, 12vw, 10.5rem); }
.diamonds ~ .quotes { padding-block: 0; background: var(--bg-top); }
.diamonds ~ .more-projects h2 {
  margin-bottom: 2rem;
  color: var(--ink-mid);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}
.diamonds ~ .customers .logo-grid {
  --cols: 4;
  --band: 6rem;
  --gap: clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--gap);
  max-width: calc(var(--cols) * 8.5rem + (var(--cols) - 1) * var(--gap));
}
.diamonds ~ .customers .section-label { margin-bottom: 2.5rem; }
.diamonds ~ .customers .logo-cell { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.diamonds ~ .customers .logo-cell:empty { display: none; }
.diamonds ~ .customers .logo,
.diamonds ~ .customers .logo-cell::after { margin-block: calc(var(--band) / 2 - 50%); }

@media (max-width: 720px) {
  .diamonds ~ .customers .logo-grid { --cols: 3; --band: 5rem; }
}

.wobble-edge {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  pointer-events: none;
}

.has-pill {
  position: relative;
  isolation: isolate;
}
.nav-pill {
  position: absolute;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
  visibility: hidden;
}
.nav-pill path {
  fill: #fff;
  stroke: #08090b;
  stroke-linejoin: round;
}
.site-header a.has-pill.is-pill-on {
  color: #08090b;
  border-color: transparent;
}
.site-header a.has-pill:is(.is-pill-on, .is-pill-active) > .nav-pill { visibility: visible; }
.site-header a.has-pill.is-pill-active { border-color: transparent; }
.site-header a.has-pill.is-pill-active:not(.is-pill-on) .nav-pill path {
  fill: none;
  stroke: currentColor;
}
.site-header .site-nav a.has-pill:not([aria-current]):hover { border-color: transparent; }
.site-header a.has-pill.is-pill-on:focus-visible { outline: none; }

.has-wobble-box {
  position: relative;
  isolation: isolate;
}
.wobble-box {
  position: absolute;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.wobble-box path {
  fill: #fff;
  stroke: #08090b;
  stroke-linejoin: round;
}

.paint-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.paint-on .diamond {
  z-index: 2;
}

.paint-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: grid;
  gap: 6px;
  width: 280px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: 12px/1.3 ui-monospace, monospace;
}

.paint-panel[hidden] {
  display: none;
}

.paint-panel label {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3rem;
  align-items: center;
  gap: 6px;
}

.paint-panel output {
  text-align: right;
}

.paint-panel div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
