@font-face {
  font-family: "Rethink Sans";
  src: url("/assets/fonts/rethink-sans-latin-wght-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 600;
}

#canvas3 {
  display: none !important;
}

html,
body,
#post {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#post::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.site-scroll-indicator {
  --site-scroll-thumb-height: 96px;
  --site-scroll-thumb-offset: 0px;
  bottom: 8px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 5px;
  top: 8px;
  transition: opacity 220ms ease;
  width: 5px;
  z-index: 2147483000;
}

.site-scroll-indicator.is-scrollable {
  opacity: 0.32;
}

.site-scroll-indicator.is-scrollable.is-active {
  opacity: 0.72;
}

.site-scroll-indicator__thumb {
  background-color: #777;
  border-radius: 999px;
  height: var(--site-scroll-thumb-height);
  transform: translate3d(0, var(--site-scroll-thumb-offset), 0);
  transition: height 160ms ease;
  width: 100%;
  will-change: height, transform;
}

body:is(.is-project-page-transitioning, .show-client-modal) .site-scroll-indicator {
  opacity: 0;
}

@media (max-width: 699px) {
  .site-scroll-indicator {
    display: none;
  }
}

._Default,
._bigtext,
._bigtext2,
._bigtext4,
._legal {
  font-family: "Rethink Sans", Arial, Helvetica, sans-serif;
  color: #000;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  text-indent: 0;
  text-transform: none;
}

._bigtext2,
._bigtext4,
b,
strong {
  font-weight: 600;
}

.back-button,
.info-button,
.become-a-client,
.become-a-client-modal > ._bigtext,
.become-a-client-modal .thankyou,
.gallery-view .descr span,
.introtext,
.next-project .next-project-text,
.next-project .next-title,
.projects-list a,
.selected-projects-headline,
.send-button,
.short-description,
.url-button {
  font-weight: 600;
}

._Default { font-size: 32px; line-height: 1.2; margin: 0 0 20px; }
._bigtext { font-size: 20px; line-height: 1.2; margin: 0 0 20px; }
._bigtext2 { font-size: 32px; line-height: 1.2; }
._bigtext4 { font-size: 60px; line-height: 1; margin: 0 0 20px; }
._legal { font-size: 20px; line-height: 1.2; margin: 0 0 20px; }

._Default:last-child,
._bigtext:last-child,
._bigtext4:last-child,
._legal:last-child {
  margin-bottom: 0;
}

.back-button,
.info-button {
  color: inherit;
  text-decoration: none;
}

:is(
  button,
  .back-button,
  .info-button,
  .become-a-client,
  .gallery-view .descr span,
  .next-project,
  .projects-list a,
  .url-button
) {
  -webkit-user-select: none;
  user-select: none;
}

.project-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  left: 20px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 20px;
  z-index: 40;
}

:root {
  --project-controls-bottom: 20px;
}

body.show-post .project-toolbar {
  opacity: 1;
  pointer-events: auto;
}

/* Briefly reveal the homepage underneath before the project is removed. */
body.is-project-closing :is(#post, #post-shadow, .project-toolbar) {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 160ms ease-out !important;
  will-change: opacity;
}

.project-toolbar :is(.back-button, .info-button) {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  appearance: none;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 100px;
  box-shadow: 0 5px 21px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  color: #000;
  cursor: pointer;
  display: inline-block;
  inset: auto !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  opacity: 1 !important;
  padding: 5px 20px 4px !important;
  pointer-events: auto;
  position: relative !important;
  text-transform: none !important;
}

.project-toolbar .info-button:disabled {
  cursor: default;
  opacity: 0.4 !important;
  pointer-events: none;
}

/* Pinned bottom left while reading, then lifted off the top by the arriving
   next-project section (`--project-info-lift`, set in SiteShell). */
body.show-post .project-toolbar .info-button {
  bottom: var(--project-controls-bottom) !important;
  left: 20px !important;
  position: fixed !important;
  top: auto !important;
  transform: translateY(calc(-1 * var(--project-info-lift, 0px)));
}

body.show-project-info-modal .project-toolbar {
  opacity: 0;
  pointer-events: none;
}

.close {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 0;
}

.close svg {
  display: block;
}

.become-a-client-modal {
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
  box-sizing: border-box;
  clip-path: inset(0 round 24px);
  filter: blur(18px);
  height: auto !important;
  left: 50% !important;
  max-height: calc(100dvh - 48px);
  opacity: 0;
  overflow: hidden auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 16px;
  pointer-events: none;
  right: auto !important;
  scrollbar-color: #666 transparent;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  top: 50% !important;
  transform: translate3d(-50%, -50%, 0) !important;
  transition: opacity 400ms ease, filter 400ms ease, visibility 0s linear 400ms !important;
  visibility: hidden;
  width: min(520px, calc(100vw - 48px)) !important;
  will-change: filter, opacity;
}

.become-a-client-modal > ._bigtext {
  font-size: 22px;
  margin-bottom: 12px;
}

.become-a-client-modal .close {
  padding: 16px;
  position: absolute;
  right: 0;
  top: 0;
}

.become-a-client-modal .close svg {
  color: #fff;
  height: 24px;
  width: 24px;
}

/* A named pill rather than a ✕, so the way out of the form reads the way the
   toolbar's Back does. `.close` sets `line-height: 0` for the glyph it used to
   hold, which would collapse a line of text. */
.contact-close {
  border: 0;
  border-radius: 100px;
  line-height: 1.3;
  padding: 5px 20px 4px;
}

.become-a-client-modal label {
  font-size: 18px;
  margin-bottom: 3px;
  margin-top: 12px;
}

.become-a-client-modal input,
.become-a-client-modal select,
.become-a-client-modal textarea {
  box-sizing: border-box;
  font-size: 18px;
  padding: 8px 10px;
}

.become-a-client-modal input,
.become-a-client-modal select {
  min-height: 40px;
}

.become-a-client-modal select {
  border-radius: 3px;
}

.become-a-client-modal textarea {
  border-radius: 3px;
  height: clamp(120px, 20dvh, 170px);
  min-height: 120px;
  resize: none;
}

.become-a-client-modal .send-button {
  font-size: 18px;
  margin-top: 14px;
  padding: 8px 16px 8px 12px;
}

.become-a-client-modal::-webkit-scrollbar {
  width: 6px;
}

.become-a-client-modal::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 999px;
}

.become-a-client-modal::-webkit-scrollbar-track {
  background: transparent;
}

body.show-client-modal .become-a-client-modal {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s !important;
  visibility: visible;
}

body.show-client-modal .main,
body.show-client-modal.show-post #post {
  transform: none !important;
}

html:has(body.show-post),
body.show-post,
body.show-post #post {
  overscroll-behavior: none;
}

body.show-post #post {
  -webkit-overflow-scrolling: auto;
}

.send-button { border: 0; }

.projects-list a.hover,
.send-button {
  align-items: center;
  display: inline-flex;
  gap: 0.25em;
}

.projects-list a.hover::before,
.send-button::before {
  content: none !important;
  display: none;
}

.button-arrow {
  display: block;
  flex: 0 0 auto;
  height: 1em;
  width: 1em;
}

.projects-list a:not(.hover) .button-arrow {
  display: none;
}

.next-project .next-project-text > span:first-child {
  align-items: center;
  display: inline-flex;
  gap: 0.25em;
}

.next-project .next-project-text > span:last-child {
  align-self: flex-end;
  height: 1px !important;
  transform: scaleX(0);
  transform-origin: left center;
  width: calc(100% - 1.25em) !important;
}

.next-project:hover .next-project-text > span:last-child,
.next-project:focus-visible .next-project-text > span:last-child {
  transform: scaleX(1);
}

@media (min-width: 701px) {
  /* Fixed 20px from the viewport edge. */
  .next-project .next-project-text-wrap {
    right: 20px;
  }

  /* Scaled up to the home page's type sizes, keeping the two-step hierarchy:
     the title at `._bigtext2` (32px), the call to action at `._bigtext4` (60px). */
  .next-project .next-title {
    font-size: 32px;
  }

  .next-project .next-project-text {
    font-size: 60px;
    line-height: 1;
  }
}

.projects-list a,
.short-description {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-sizing: border-box;
  line-height: 1.3 !important;
  min-height: calc(1.3em + 11px);
}

.projects-list a {
  align-items: center;
  background-color: #fff;
  border: 0;
  display: inline-flex;
}

.projects-list a.project-list-item {
  opacity: var(--project-list-opacity, 1) !important;
  will-change: opacity;
}

.project-page-transition {
  --project-transition-color: rgba(255, 255, 255, 0.4);
  --project-transition-height: 220px;
  --project-transition-left: calc(50vw - 195px);
  --project-transition-top: calc(50vh - 110px);
  --project-transition-width: 390px;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  background-color: rgba(255, 255, 255, 0);
  border-radius: 0;
  height: var(--project-transition-height);
  isolation: isolate;
  left: var(--project-transition-left);
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--project-transition-top);
  visibility: hidden;
  width: var(--project-transition-width);
  will-change: backdrop-filter, background-color, height, left, top, width;
  z-index: 2147483646;
}

.project-page-transition::before {
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  background-color: rgba(255, 255, 255, 0);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: none;
  z-index: 0;
}

.project-page-transition.is-entering {
  pointer-events: auto;
  touch-action: none;
  visibility: visible;
}

.project-page-transition.is-entering::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: transparent;
}

.project-page-transition.is-expanding {
  height: 100vh;
  left: 0;
  top: 0;
  transition:
    height 400ms cubic-bezier(0.22, 1, 0.36, 1),
    left 400ms cubic-bezier(0.22, 1, 0.36, 1),
    top 400ms cubic-bezier(0.22, 1, 0.36, 1),
    width 400ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100vw;
}

.project-page-transition__project {
  background-color: #fff;
  height: 100vh;
  left: 50%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) scale(var(--project-content-start-scale, 0.5));
  transform-origin: center;
  width: 100vw;
  will-change: opacity, transform;
  z-index: 2;
}

.project-page-transition.is-project-entering .project-page-transition__project {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition:
    opacity 460ms ease-out,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-page-transition.is-project-switching {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: transparent;
  height: 100vh;
  left: 0;
  opacity: 1;
  pointer-events: auto;
  top: 0;
  touch-action: none;
  visibility: visible;
  width: 100vw;
}

.project-page-transition.is-project-switching::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: transparent;
}

.project-page-transition.is-project-switching .project-page-transition__project {
  filter: brightness(0.72);
  opacity: 1;
  transition: none;
}

.project-page-transition.is-project-switch-expanding .project-page-transition__project {
  filter: brightness(1);
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition:
    filter 460ms ease-out,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-page-transition__project .grid,
.project-page-transition__project .url-button-wrap {
  position: relative;
  z-index: 1;
}

.project-page-transition__scroll-snapshot {
  min-height: 100%;
  width: 100%;
  will-change: transform;
}

body.is-project-page-transitioning .project-toolbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}

body.is-project-page-transitioning.is-project-to-project-transitioning .project-toolbar,
body.is-project-page-transitioning.is-project-toolbar-ready .project-toolbar {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483647;
}

body.is-project-page-transitioning.is-project-to-project-transitioning #app {
  z-index: auto;
}

/* Contact Us waits with the toolbar instead of riding over the transition, so
   the three buttons arrive together once the project is open. Same gate and
   same moment as `.project-toolbar` above. */
body.is-project-page-transitioning > .become-a-client {
  opacity: 0;
  pointer-events: none;
  transition: none;
  z-index: 2147483647;
}

body.is-project-page-transitioning.is-project-to-project-transitioning > .become-a-client,
body.is-project-page-transitioning.is-project-toolbar-ready > .become-a-client {
  opacity: 1;
}

body.is-project-page-transitioning #post,
body.is-project-page-transitioning #post-shadow {
  animation: none !important;
  transition: none !important;
}

/* Keep the populated live project out of the entry transition. The overlay
   owns the only visible project copy until resetOverlay hands off in one frame. */
body.is-project-entry-transitioning #post,
body.is-project-entry-transitioning #post-shadow {
  visibility: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  .project-page-transition {
    display: none;
  }
}

.projects-list a.hover {
  background-color: #000 !important;
  padding-left: 0.25em !important;
}

.short-description {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #000;
  min-height: 0;
  padding: 0;
  transform: none !important;
}

.project-list-item.hover + .short-description {
  display: block;
}

.gallery-view {
  perspective: none !important;
}

.gallery-view .gallery-item-view {
  /* Drives `border-radius`, the card's own `clip-path`, and the WebGL
     slideshow's clip inside it — so the corner has to change here, not on
     `border-radius` alone, or the content would still clip at the old radius. */
  --service-card-radius: 43px;
  --service-card-inset: clamp(15px, 1.3vw, 20px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background-color: #1e003c;
  border-radius: var(--service-card-radius) !important;
  clip-path: inset(0 round var(--service-card-radius));
  contain: paint;
  isolation: isolate;
  overflow: hidden !important;
  pointer-events: none;
  position: relative;
  transform: none !important;
}

.gallery-view .gallery-item-view:nth-child(2) {
  background-color: #c45a1a;
}

.gallery-view.is-service-reveal-ready .gallery-item-view {
  opacity: 0;
  transform: translate3d(0, 90px, 0) !important;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.gallery-view.is-service-reveal-ready .gallery-item-view:nth-child(2) {
  transition-delay: 180ms;
}

.gallery-view.is-service-reveal-ready.is-service-reveal-triggered .gallery-item-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
}

.gallery-view .service-webgl-slideshow {
  border-radius: inherit !important;
  clip-path: inset(0 round var(--service-card-radius));
  display: block;
  filter: none;
  height: 100%;
  inset: 0;
  position: absolute;
  touch-action: none;
  width: 100%;
  z-index: 0;
}

.gallery-view .service-webgl-slideshow canvas.service-webgl-canvas {
  background-position: center;
  background-size: cover;
  display: block;
  filter: brightness(0.42) contrast(1.15) saturate(0.85);
  height: 100%;
  inset: 0;
  opacity: 1;
  position: absolute;
  width: 100%;
}

.gallery-view .glow {
  display: none !important;
}

.gallery-view .descr {
  align-content: flex-end;
  bottom: 0;
  box-sizing: border-box;
  left: 0;
  padding: var(--service-card-inset);
  right: 0;
  top: 0;
  z-index: 1;
}

.gallery-view .descr span.service-big {
  left: var(--service-card-inset);
  position: absolute;
  top: var(--service-card-inset);
}

.gallery-view .descr span {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #fff;
  border: 1px solid #fff;
  color: #000;
}

.gallery-view .descr span.service {
  font-size: clamp(14px, 1.3vw, 20px);
  padding: clamp(6px, 0.55vw, 8px) clamp(9px, 0.8vw, 12px);
  position: relative;
}

@media (min-width: 700px) and (max-width: 1200px) {
  .gallery-view {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-view .gallery-item-view {
    max-width: calc(100vw - 80px);
    width: 600px;
  }

  .gallery-view .descr span.service {
    font-size: 13px;
  }
}

#frontpage,
footer {
  background-color: #141414;
}

footer ._Default,
footer ._bigtext,
footer ._bigtext4,
footer ._legal,
footer .contact-us p,
footer .contact-us p:first-child,
footer a {
  color: #fff;
}

footer .become-a-client {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #fff;
  border: 1px solid #fff;
  color: #111 !important;
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] {
  overflow: hidden;
}

.url-button[data-lay-button-effect-text-slide="1"] {
  position: relative;
}

.become-a-client[data-lay-button-effect-text-slide="1"] {
  position: relative;
}

body > .become-a-client[data-lay-button-effect-text-slide="1"] {
  position: fixed;
}

/* The fixed header action must stay solid over every background. The legacy
   style used translucent black plus backdrop blur, which made its appearance
   depend on whatever happened to scroll underneath it. */
body > .become-a-client {
  -webkit-backdrop-filter: none;
  appearance: none;
  backdrop-filter: none;
  background-color: #000;
  border: 0;
  color: #fff !important;
  font-family: inherit;
}

/* One control, inverted while it closes the black contact form. The invisible
   legacy `.contact-close` no longer replaces it, so its hover state continues
   on the same element instead of starting a second animation underneath. */
body.show-client-modal > .become-a-client {
  background-color: #fff;
  color: #000 !important;
  z-index: 4;
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__content--text-slide {
  position: static;
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text-sizer {
  visibility: hidden;
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text-clip {
  border-radius: inherit;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 5px 20px 4px;
  position: absolute;
  transition: transform 350ms cubic-bezier(.4, .2, .2, 1);
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text--current {
  transform: translate(0, 0);
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text--next {
  transform: translateY(-100%);
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"]:hover .lay-button-effect__text--current,
:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"]:focus-visible .lay-button-effect__text--current {
  transform: translateY(100%);
}

:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"]:hover .lay-button-effect__text--next,
:is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"]:focus-visible .lay-button-effect__text--next {
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  :is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
    transition-duration: .01ms;
  }
}

@media (max-width: 699px) {
  :is(.become-a-client, .back-button, .info-button, .url-button, .gallery-view .descr span.service, .project-filter__toggle, .contact-close)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
    padding: 5px 10px;
  }

  .project-toolbar {
    gap: 6px;
    left: 10px;
    top: 10px;
  }

  .project-toolbar :is(.back-button, .info-button) {
    padding: 8px 14px !important;
  }

  :root {
    --project-controls-bottom: 10px;
  }

  body.show-post .project-toolbar .info-button {
    left: 10px !important;
    top: auto !important;
  }
}

footer > .footer-left,
footer > .contact-us {
  opacity: var(--footer-content-opacity, 0.1);
}

/* Impressum and privacy, under the address they belong with. Inherits the
   footer's white text and `._legal` sizing; only the gap is new. */
footer .contact-us .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 20px 0 0;
}

footer .contact-us .legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   The next project is the project page's footer
   ============================================================ */

/* The same reveal the home page has: the footer sits at the bottom of the
   scroller and the white content slides up over it, uncovering it through its
   own rounded corners, while the footer's text fades up out of the dark.

   Sticky rather than the home page's `fixed`, because the scroller here is
   `#post` and it carries a transform — inside one, `fixed` resolves against
   that element and scrolls away with the content instead of pinning. Sticky
   also keeps the block in the flow, so it still reserves its own room. */
@media (min-width: 701px) {
  #post .next-project {
    bottom: 0;
    position: sticky;
    z-index: 1;
  }

  /* The rounded corners cut a notch out of the white page, and behind `#post`
     — which paints nothing — that notch was showing the home page still sitting
     underneath. The home page has no such gap because `#frontpage` carries the
     same colour as its footer, so here the footer's own ground is carried up
     behind the corners instead: a band of its black, and its blurred still
     stretched to cover the same band. Both sit under the white page and are
     only ever seen through the notch. */
  #post .next-project::before {
    background-color: #000;
    content: "";
    height: 50px;
    left: 0;
    position: absolute;
    right: 0;
    top: -50px;
  }

  #post .next-project img {
    height: calc(100% + 50px);
    top: -50px;
  }

  /* The 20px tail is the home page's too (`.main`): without it the last of the
     content sits right on the curve. */
  #post .grid {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 10px 31px rgba(0, 0, 0, 0.2);
    padding-bottom: var(--project-controls-bottom);
    z-index: 2;
  }

  /* As on the home page it is the content that fades up, not the ground it
     sits on — the blurred still behind it stays as it is. */
  #post .next-project .next-project-text-wrap {
    opacity: var(--footer-content-opacity, 0.1);
  }

  /* With the card turned, the morph is the bottom of the page rather than the
     gallery, so the container's 20px tail would sit under it as a white border
     and the corners would be cut into that white instead of into the wash.

     The stage grows over the tail rather than the tail being taken away: this
     changes nothing about the page's height, so it can be held until the wash
     has finished fading — take the tail away instead and it snaps back the
     instant the card starts turning home, flashing white under a backdrop that
     is still there. `height` grows and `padding-bottom` takes the growth back
     out of the content box, so the card stays centred on the same area it was;
     only the padding box, which is what the morph is sized against, gets
     taller.

     The radius is scroll-driven (set in SiteShell) rather than a fixed 50px:
     the stage's bottom edge sits only 20px below the viewport, so a fixed
     50px arc puts the top 30px of each corner on screen — a black notch cut
     into the wash — with nothing scrolled at all. Grown from zero as the
     page bottom slides up, the corners only form while the footer is
     actually being revealed, and reach the page's full 50px by the time
     they are properly in view. */
  .project-media-carousel.is-flip-morph .project-media-carousel__sticky {
    border-bottom-left-radius: var(--project-footer-corner-radius, 0px);
    border-bottom-right-radius: var(--project-footer-corner-radius, 0px);
    height: calc(100vh + 20px);
    /* Sticky is held inside its section by the margin box, and the tail lies
       outside that section — so without this the stage stops 20px short of the
       container's edge the moment the section gets its length back, which is
       the band reappearing halfway through the card turning home. */
    margin-bottom: -20px;
    padding-bottom: 20px;
  }
}

@media (min-width: 700px) {
  #frontpage {
    padding-bottom: var(--footer-height, 600px);
  }

  #frontpage > footer {
    position: fixed;
    z-index: 1;
  }

  body > .become-a-client {
    right: 20px;
    top: 20px;
  }

  .introtext {
    padding: 20px 0 60px 20px !important;
  }

  body.show-client-modal .main {
    transform: none;
  }

  body.show-client-modal.show-post #post {
    transform: translate3d(0, 0, 0);
  }

  footer {
    column-gap: clamp(120px, 8vw, 180px);
    height: auto;
    padding-bottom: 20px;
    padding-top: 80px;
  }

  /* `footer p` only zeroes the top margin, so the last paragraph's default
     bottom margin was sitting on top of the padding. Drop it so the text
     really ends 20px from the bottom edge. */
  footer p:last-child {
    margin-bottom: 0;
  }

  .footer-left {
    min-width: 0;
  }

  .footer-left > ._bigtext4 + ._Default {
    max-width: 640px;
  }

  /* The footer row stretches both columns to its height, so the legal links
     can drop to the foot of theirs and finish level with the email address
     that closes the left column, rather than hanging under the address. */
  .contact-us {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
  }

  /* Level means on the same baseline. Both lines end at the footer's bottom
     padding, but at 1.2 line height a line's baseline sits 0.283em of Rethink
     Sans over the foot of its box, so the 20px links sat that fraction of the
     12px size difference lower than the 32px email. */
  footer .contact-us .legal-links {
    margin-bottom: calc((32px - 20px) * 0.283);
    margin-top: auto;
    padding-top: 20px;
  }

  .background-images img,
  .background-images video {
    border-radius: 18px;
  }

  .background-images img.landscape,
  .background-images video {
    max-height: min(62vh, 500px);
    max-width: min(72vw, 760px);
  }

  .background-images img.portrait {
    max-height: min(58vh, 440px);
  }

  .background-images img.near-square {
    max-height: min(62vh, 500px);
    max-width: min(65vw, 640px);
    object-fit: contain;
  }

  .url-button-wrap .left-descr {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .url-button-wrap .left-descr ._bigtext4 {
    hyphens: none;
    max-width: min(100%, 14em);
    overflow-wrap: normal;
    word-break: normal;
  }

  .url-button-wrap .right-descr {
    flex: 0 0 auto;
    min-width: 0;
  }

  .url-button-wrap {
    flex-direction: column;
    gap: 20px;
    padding-left: 7vw;
    padding-right: 7vw;
  }
}

@media (min-width: 701px) {
  .sticky > .lay-webgl-slideshow {
    display: block;
    inset: 0;
    overflow: hidden;
    z-index: 0;
  }

  .sticky > .lay-webgl-slideshow canvas#background {
    display: block;
  }

  /* The description belongs under the spotlight media at this width, not under
     the pill — `.project-spotlight-caption` below is the one that shows it. */
  .projects-list .short-description {
    display: none !important;
  }

  /* Source links only carry each project's URL and media metadata. The visible
     frame below owns rendering; keeping dozens of invisible transformed layers
     here consumed GPU memory and compositing work for no visual result. */
  .background-images.project-spotlight > a,
  .background-images.project-spotlight > a.active {
    display: none;
  }

  .background-images.project-spotlight > .project-spotlight-frame > img,
  .background-images.project-spotlight > .project-spotlight-frame > video {
    border-radius: inherit;
    height: 100%;
    left: auto;
    max-height: none;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    position: static;
    top: auto;
    transform: none;
    width: 100%;
  }

  .project-spotlight-frame {
    border-radius: 0;
    box-shadow: 0 10px 21px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: var(--project-spotlight-frame-height);
    left: 50%;
    overflow: hidden;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: var(--project-spotlight-frame-width);
    z-index: 1000;
  }

  /* The frame holds the current project plus its warmed-up neighbours stacked
     on top of each other. Only `.is-spotlight-visible` is painted, so a clip
     that is still buffering never blanks the box — the previous one shows
     until the new one has a frame to display. */
  .background-images.project-spotlight > .project-spotlight-frame > img,
  .background-images.project-spotlight > .project-spotlight-frame > video {
    inset: 0;
    opacity: 0;
    position: absolute;
  }

  .background-images.project-spotlight > .project-spotlight-frame > .is-spotlight-visible {
    opacity: 1;
  }

  /* Sits 12px under the frame, which is centred on the viewport and sized from
     the media — so the offset is built from the same custom properties the
     frame is, and follows it when a portrait clip changes its height. Pinned
     to the frame's right edge here and re-centred in the 701px block below. */
  .project-spotlight-caption.short-description {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #000 !important;
    display: inline-flex;
    left: calc(50% + var(--project-spotlight-frame-half-width));
    margin: 0;
    min-height: 0;
    padding: 0 !important;
    position: absolute;
    top: calc(50% + var(--project-spotlight-frame-half-height) + 12px);
    transform: translateX(-100%) !important;
    white-space: nowrap;
    z-index: 1001;
  }

  /* Before the first project is active there is nothing to say, and an empty
     inline-flex box still reserves its line. */
  .project-spotlight-caption:empty {
    display: none !important;
  }
}

.our-services-region {
  margin-top: 0;
}

/* The intro is a multi-line text field in Keystatic, and the line breaks typed
   there are meant — "Web Design" opens its own line. HTML collapses them
   unless told otherwise; `pre-line` keeps the breaks and still folds runs of
   spaces. */
.our-services-text {
  white-space: pre-line;
}

/* With the service cards parked the intro is the section's last word, and the
   legacy 70px under it only stacked on top of the story's own opening. The
   story's padding is the whole gap now (see `.story`). */
.our-services-region:last-child {
  margin-bottom: 0;
}

.clients-grid {
  background: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Every logo is drawn in two colours it takes from here: `currentColor` for
   the ink, `--client-logo-knockout` for the holes in it — the letters inside
   Marvel's box, the details on Warner's shield. */
.clients-grid span {
  --client-logo-knockout: #fff;
  align-items: center;
  background: #fff;
  border-right: 0;
  box-sizing: border-box;
  color: #000;
  display: flex;
  justify-content: center;
  min-height: 140px;
  min-width: 0;
  outline: 1px solid #e7e7e7;
  padding: 20px;
}

/* The height comes from the cell, which works it out per logo so they all
   cover the same area (see SiteShell); the width follows from the viewBox.
   The cap is the backstop for the widest wordmarks. */
.clients-grid svg {
  display: block;
  height: var(--client-logo-height, 56px);
  max-width: 80%;
  width: auto;
}

.clients-grid img {
  display: block;
  height: auto;
  max-height: 56px;
  max-width: 70%;
  width: auto;
}

@media (max-width: 700px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-grid span {
    min-height: 120px;
    padding: 15px;
  }

  /* The cells are shorter and half as wide below the breakpoint, so every
     logo comes down by the same fraction and keeps the balance. */
  .clients-grid svg {
    height: calc(var(--client-logo-height, 44px) * 0.78);
  }

  .clients-grid img {
    max-height: 44px;
  }
}

.static-project-grid {
  box-sizing: border-box;
  padding: var(--frame-top) var(--frame-right) var(--frame-bottom) var(--frame-left);
  width: 100%;
}

.project-info-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(var(--project-info-scroll-offset, 0px));
  visibility: hidden;
  z-index: 100;
}

.project-info-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Only the overlay modal (mobile, or a project with no media grid) locks the
   page behind it. The flip is part of the page and scrolls with it. */
body.show-project-info-modal:not(.show-project-info-flip) #post {
  overflow: hidden;
}

.project-info-modal__panel {
  box-sizing: border-box;
  max-height: calc(100dvh - 48px);
  pointer-events: auto;
  position: relative;
  width: min(calc(100% - 48px), 720px);
}

.project-info-modal .url-button-wrap {
  align-items: flex-start;
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  background-color: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 10px 21px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  max-height: calc(100dvh - 48px);
  min-height: 0 !important;
  overflow: auto;
  /* The side padding is named so the credits' rules can reach past it to the
     card's edges (below). */
  --info-card-pad-x: clamp(28px, 5vw, 72px);
  padding: clamp(38px, 6vh, 72px) var(--info-card-pad-x) !important;
  position: relative;
  width: 100%;
}

/* The card's text in the home page's weight: everything there is set at 600,
   and the description and credits were the one regular voice left. */
.project-info-modal .url-button-wrap :is(.description, .description p, .credit > div) {
  font-weight: 600;
}

.project-info-modal__close {
  color: #111;
  padding: 16px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.project-info-modal__close svg {
  color: currentColor;
  height: 24px;
  width: 24px;
}

.project-info-modal .url-button-wrap :is(
  .left-descr,
  .right-descr,
  .description,
  .credits,
  ._bigtext4,
  p
) {
  text-align: left !important;
}

.project-info-modal .url-button-wrap :is(.left-descr, .right-descr) {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-info-modal .url-button-wrap .description {
  margin-left: 0;
  margin-right: 0;
  max-width: 760px;
}

.project-info-modal .url-button-wrap .description p {
  margin: 0;
}

.project-info-modal .url-button-wrap .credits {
  justify-content: flex-start;
}

.project-info-modal .project-read-more {
  margin-left: 0;
  margin-right: 0;
}

.project-info-modal .url-button {
  align-self: flex-start;
}

@media (min-width: 701px) {
  .project-media-carousel {
    height: var(--project-media-carousel-height, 100vh);
    position: relative;
    width: 100%;
  }

  /* The section is only tall so that scrolling can step through the gallery.
     With the card turned there is no gallery to step through, so that height is
     dead scroll — the page collapses to what you can actually see, and the next
     turn of the wheel goes straight to what is below the fold. */
  body.show-project-info-flip .project-media-carousel {
    height: 100vh;
  }

  .project-media-carousel__sticky {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    position: sticky;
    top: 0;
    width: 100%;
  }

  .project-media-carousel__indicators {
    background: #fff;
    border-radius: 100px;
    /* Anchor to the original stage height, even while the info backdrop grows. */
    top: calc(100vh - max(0px, calc(var(--project-controls-bottom) - var(--project-stage-lift, 0px))));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    gap: 0;
    left: 50%;
    /* Leave room for Info on the same row on narrower desktop windows. */
    max-width: calc(100% - 2 * (var(--project-controls-bottom) + 90px));
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -100%);
    transition: opacity 180ms ease;
    width: max-content;
    z-index: 3;
  }

  .project-media-carousel__indicators.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.is-project-page-transitioning .project-media-carousel__indicators {
    transition: none;
  }

  .project-media-carousel__indicator {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    display: block;
    filter: brightness(0.9) contrast(0.8) saturate(0.5);
    flex: 0 1 auto;
    height: 40px;
    margin: 0;
    min-width: 0;
    opacity: 0.5;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 60px;
  }

  .project-media-carousel__indicator:hover {
    cursor: pointer;
  }

  .project-media-carousel__indicator.is-active {
    filter: brightness(1) saturate(1);
    opacity: 1;
  }

  .project-media-carousel__indicator > :is(img, video) {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .project-media-carousel .static-project-grid {
    height: 100%;
    padding: 7vh 7vw;
    position: relative;
  }

  .project-media-carousel .static-grid-row {
    display: contents;
  }

  .project-media-carousel .static-grid-block {
    align-items: center;
    display: flex;
    flex-direction: column;
    inset: 50% auto auto 50%;
    margin: 0 !important;
    max-height: 82vh;
    max-width: min(86vw, 1200px);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(50% - var(--project-media-caption-offset, 0px));
    transform: translate3d(-50%, -50%, 0) !important;
    width: max-content;
  }

  .project-media-carousel .static-grid-block.is-project-media-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
  }

  .project-media-carousel .static-grid-block img,
  .project-media-carousel .static-grid-block video {
    height: auto;
    max-height: 74vh;
    max-width: min(86vw, 1200px);
    object-fit: contain;
    width: auto;
  }

  .project-media-carousel .static-grid-block.is-project-media-landscape :is(img, video) {
    height: var(--project-media-landscape-height);
    max-height: none;
    max-width: none;
    object-fit: cover;
    width: var(--project-media-landscape-width);
  }

  .project-media-carousel .static-grid-block figcaption {
    align-self: stretch;
    /* Same 12px the home page's spotlight caption sits under its frame. */
    left: 0;
    margin-top: 0;
    max-width: min(86vw, 1200px);
    position: absolute;
    top: calc(100% + 12px);
    width: 100%;
  }
}

.static-grid-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  margin-bottom: var(--row-gap);
}

.static-grid-block {
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

.static-grid-block img,
.static-grid-block video {
  border-radius: clamp(10px, 1.2vw, 18px);
  box-shadow: 0 10px 21px rgba(0, 0, 0, 0.2);
  cursor: url("/assets/cursor-down.svg") 12 12, s-resize;
  display: block;
  height: auto;
  width: 100%;
}

@media (max-width: 700px) {
  .static-grid-block :is(img, video) {
    cursor: default;
  }
}

/* Matches the home page's project-description typography, centred under the
   media rather than flush left. */
.static-grid-block figcaption {
  font-family: "Rethink Sans", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin-top: 12px;
  text-align: center;
}

.static-grid-block figcaption p {
  margin: 0;
}

.url-button-wrap .right-descr .description {
  max-width: 760px;
}

.project-read-more {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: block;
  margin: 0.6em 0 1em;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  user-select: none;
}

@media (min-width: 1501px) {
  ._bigtext { font-size: 25px; }
  ._bigtext4 { font-size: 70px; }
}

@media (max-width: 700px) {
  .become-a-client-modal {
    border-radius: 20px;
    clip-path: inset(0 round 20px);
    max-height: calc(100dvh - 24px);
    padding: 20px 10px;
    width: calc(100vw - 24px) !important;
  }

  ._Default,
  ._bigtext2,
  ._legal { font-size: 16px; }
  ._bigtext4 { font-size: 40px; }
}

/* The morphing background no longer needs `position: fixed` to stay put — it
   now lives inside `.sticky`, which is already pinned for the length of the
   hero. Fixed positioning made it paint over every later section. */

/* ============================================================
   Desktop gutter: 40px -> 20px
   ============================================================ */
@media (min-width: 700px) {
  .left-padding {
    padding-left: 20px !important;
  }

  .projects-list a {
    margin: 4px 0 4px 20px;
    padding: 5px 20px 4px 20px;
  }

  /* `.gallery-view` also carries `.left-padding` (20px), so matching it here
     makes the row symmetric; the two 50% cards then flex-shrink to share
     whatever is left after the 20px gap. */
  .gallery-view {
    gap: 20px;
    padding-right: 20px !important;
  }

  .main {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    padding-bottom: 20px;
  }
}

/* Section headings declare no margin of their own, so they were picking up the
   browser's default `0.83em` block margin on top of the section padding. */
.our-clients > h2,
.our-services > h2 {
  margin-top: 0;
}

/* The 600px cap left roughly a third of a wide viewport empty; flexbox already
   divides the row, so the two cards can just take what is there. */
.gallery-view .gallery-item-view {
  max-width: none;
}

/* ============================================================
   Project spotlight frame: rounded, contained in the right side of the stage
   ============================================================ */
@media (min-width: 701px) {
  .background-images.project-spotlight {
    --project-spotlight-frame-radius: 30px;
    /* Keep the preview visually separate from the project list. The former
       77vw band filled almost the whole viewport on large screens. */
    --project-spotlight-frame-band: min(68vw, 1120px);
    /* Replaced per project by project-spotlight.js, which reads the media's
       own `videoWidth`/`naturalWidth` at the moment it swaps it in. This 16:9
       is what the frame falls back to until the first clip has painted. */
    --project-spotlight-media-ratio: 1.7704;
    /* Height leads and width follows the media, so a portrait clip gets a
       portrait box instead of being cropped into a landscape one. Four
       ceilings, whichever binds first:
         - the band at 16:9, i.e. exactly the height the box had when width
           led.
         - 68vh, so the media never dominates a short browser window.
         - 640px, so it stops growing on a large display.
         - the band divided by the media's own ratio, which only bites for
           something wider than 16:9. Without it such a project would compute
           a width past the band and hang over the gutter. */
    --project-spotlight-frame-height: min(
      calc(var(--project-spotlight-frame-band) * 1446 / 2560),
      68vh,
      640px,
      calc(var(--project-spotlight-frame-band) / var(--project-spotlight-media-ratio))
    );
    --project-spotlight-frame-width: calc(
      var(--project-spotlight-frame-height) * var(--project-spotlight-media-ratio)
    );
    --project-spotlight-frame-half-width: calc(var(--project-spotlight-frame-width) / 2);
    --project-spotlight-frame-half-height: calc(var(--project-spotlight-frame-height) / 2);
    /* Centre the frame in the visual area beside the project list instead of
       anchoring its whole band to the right edge. */
    --project-spotlight-frame-center: 60vw;
    --project-spotlight-frame-left: calc(
      var(--project-spotlight-frame-center) - var(--project-spotlight-frame-half-width)
    );
  }

  .project-spotlight-frame {
    border-radius: var(--project-spotlight-frame-radius);
    left: var(--project-spotlight-frame-left);
    transform: translate3d(0, -50%, 0);
  }

  /* The caption shrink-wraps its text, so pin its box to the band's centre —
     which is the frame's centre too — and pull it back by half its own width. */
  .project-spotlight-caption.short-description {
    left: var(--project-spotlight-frame-center);
    right: auto;
    transform: translateX(-50%) !important;
  }
}

/* The hero is white in the legacy theme, and the WebGL canvas that fills it
   paints nothing until it has compiled and loaded its first slide. That left
   the whole area behind the project list and the preview frame flat white for
   the first moment of every visit, with the white pills sitting on it invisibly.
   A light grey holds the space instead, close enough to the wash that lands on
   top of it that the handover does not read as a change. */
.plist-wrap {
  background: #f0f0f0;
}

/* Soften the morphing background into an abstract wash. The canvas is scaled
   slightly past its box because `filter: blur()` samples transparency beyond
   the edges, which would otherwise fade the border of the viewport; the
   overscan is clipped by the slideshow's `overflow: hidden`. */
.sticky > .lay-webgl-slideshow {
  overflow: hidden;
}

.sticky > .lay-webgl-slideshow canvas#background {
  filter: blur(30px);
  transform: scale(1.08);
  transform-origin: center center;
}

/* `.main` is already white, and this square background was the last child —
   so it painted over the panel's rounded bottom corner and left a square
   sliver poking past the curve. */
.our-services {
  background-color: transparent;
}

/* ============================================================
   Project info flip — the media box turns over to show the info
   ============================================================ */
@media (min-width: 701px) {
  .project-media-carousel__sticky {
    perspective: 2200px;
  }

  .project-media-carousel__flip {
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
    width: 100%;
  }

  .project-media-carousel.is-info-flipped .project-media-carousel__flip {
    transform: rotateY(180deg);
  }

  /* Keep the grid as one plane. The explicit zero-degree transform makes the
     front face participate in the 3D context; without it Firefox can keep
     painting that face after the card turns and cover the info text. */
  .project-media-carousel__flip > .static-project-grid {
    backface-visibility: hidden;
    transform: rotateY(0deg);
  }

  /* Turning the grid away hides it but does not stop it being hit: its figures
     are absolutely positioned and go on answering clicks through the back of
     the card, so a click on Visit Website landed on the media behind it. The
     back face is enabled the same way, from the other side.

     The figures are named as well as the grid: the showing one turns pointer
     events back on for itself (`.is-project-media-active` above), so inherited
     `none` from the grid does not reach it. */
  .project-media-carousel.is-info-flipped .project-media-carousel__flip > .static-project-grid,
  .project-media-carousel.is-info-flipped .static-grid-block {
    pointer-events: none;
  }

  .project-media-carousel__back {
    align-items: center;
    backface-visibility: hidden;
    display: flex;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    transform: rotateY(180deg);
  }

  .project-media-carousel.is-info-flipped .project-media-carousel__back {
    pointer-events: auto;
  }

  /* On the back face the rotation does the hiding, so the modal itself has to
     stay visible and drop out of its fixed overlay positioning. */
  .project-media-carousel__back .project-info-modal {
    inset: auto;
    opacity: 1;
    position: relative;
    transform: none;
    visibility: visible;
    z-index: auto;
  }

  /* Half the width of the media it turns out of — the full box was far too
     wide a measure for the text. Height still matches. */
  .project-media-carousel__back .project-info-modal__panel {
    height: var(--project-media-flip-height, auto);
    max-height: none;
    width: calc(var(--project-media-flip-width, min(86vw, 1200px)) / 2);
  }

  /* Match the media's corner, and go opaque: a backdrop-filter has nothing
     meaningful behind it here and renders unreliably mid-rotation. */
  .project-media-carousel__back .project-info-modal .url-button-wrap {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: #fff;
    border-radius: clamp(10px, 1.2vw, 18px);
    height: 100%;
    max-height: none;
  }

  .project-media-carousel.is-info-flipped .project-media-carousel__indicators {
    opacity: 0;
    pointer-events: none;
  }
}

/* ============================================================
   Project info flip — refinements
   ============================================================ */

/* The flip keeps the toolbar: the Info button stays exactly where it is,
   relabelled "Back", and turning the card back is its second job. Only the
   overlay modal (mobile, no carousel) still hides the toolbar. */
body.show-project-info-modal.show-project-info-flip .project-toolbar {
  opacity: 1;
  pointer-events: auto;
}

/* Contact Us steps out of the way whenever the info is showing. */
body.show-project-info-modal > .become-a-client {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

@media (min-width: 701px) {
  /* No ✕ on the flip: the Info button is relabelled "Back" and closes it.
     The overlay modal keeps its close button. */
  .project-media-carousel__back .project-info-modal__close {
    display: none;
  }

  .project-media-carousel__back .project-info-modal .url-button-wrap {
    --info-card-pad-x: 20px;
    gap: 20px;
    padding: 20px !important;
  }

  /* Let the text column take the leftover height so the button can be pushed
     to the bottom of the card rather than trailing the paragraph. */
  .project-media-carousel__back .project-info-modal .url-button-wrap .right-descr {
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Credits and the button share that column's foot: the table takes the whole
     leftover height above it, and the button trails it by a fixed gap. Only one
     of the two may claim the free space — two auto margins would split it and
     strand the table mid-card. */
  .project-media-carousel__back .project-info-modal .url-button-wrap .credits {
    margin-top: auto;
  }

  .project-media-carousel__back .project-info-modal .url-button {
    align-self: flex-start;
    margin-top: 20px;
  }
}

/* Credits already render as display: table in the legacy CSS — give them the
   rules and alignment to actually read as one. */
.project-info-modal .url-button-wrap .credits {
  border-collapse: collapse;
  display: table;
  width: 100%;
}

.project-info-modal .url-button-wrap .credit > div {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  padding: 8px 24px 8px 0;
}

.project-info-modal .url-button-wrap .credit:last-child > div {
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.project-info-modal .url-button-wrap .credit > div:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 701px) {
  /* The credits' rules run to the card's edges, past its side padding, while
     their text keeps the padding's inset. */
  .project-info-modal .url-button-wrap .credits {
    margin-left: calc(-1 * var(--info-card-pad-x));
    margin-right: calc(-1 * var(--info-card-pad-x));
    width: calc(100% + 2 * var(--info-card-pad-x));
  }

  .project-info-modal .url-button-wrap .credit > div:first-child {
    padding-left: var(--info-card-pad-x);
  }

  .project-info-modal .url-button-wrap .credit > div:last-child {
    padding-right: var(--info-card-pad-x);
  }
}

/* The service pills reuse the buttons' text-slide hover. They need a
   positioning context for the absolutely-placed clip, and pointer events back
   — the card itself is `pointer-events: none`, and a child can opt in again. */
.gallery-view .descr span.service[data-lay-button-effect-text-slide="1"] {
  pointer-events: auto;
  position: relative;
}

/* `.gallery-view .descr span` is a descendant selector, so the effect's inner
   spans were picking up the whole pill treatment — padding, background and
   radius — which inflated the pill by the nested padding. Strip it back off;
   the text layers are inset: 0 and flex-centred, so they need none of it. */
.gallery-view .descr span.service[data-lay-button-effect-text-slide="1"] :is(
  .lay-button-effect__content,
  .lay-button-effect__text-sizer,
  .lay-button-effect__text-clip,
  .lay-button-effect__text
) {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.gallery-view .descr span.service[data-lay-button-effect-text-slide="1"] .lay-button-effect__text-clip {
  border-radius: inherit;
}

/* ============================================================
   Buttons: one height and one type size everywhere
   ============================================================ */

/* The pills sit on a photographic card, so the white ring only muddied the
   edge — the fill already separates them from the background. */
.gallery-view .descr span {
  border: 0;
}

/* `.url-button` carried 10px/9px from the legacy theme while every other
   button used 5px/4px, so it stood a few pixels taller. One padding, one
   font-size (`._bigtext`, 20px), one line-height for all of them. */
:is(
  .back-button,
  .info-button,
  .become-a-client,
  .url-button,
  .send-button,
  .gallery-view .descr span.service,
  .contact-close
) {
  font-size: 20px !important;
  line-height: 1.3 !important;
  padding: 5px 20px 4px !important;
}

:is(
  .back-button,
  .info-button,
  .become-a-client,
  .url-button,
  .send-button,
  .gallery-view .descr span.service,
  .contact-close
)[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
  font-size: 20px;
  line-height: 1.3;
  padding: 5px 20px 4px;
}

@media (max-width: 699px) {
  :is(
    .back-button,
    .info-button,
    .become-a-client,
    .url-button,
    .send-button,
    .gallery-view .descr span.service,
    .contact-close
  ) {
    padding: 5px 10px 4px !important;
  }

  :is(
    .back-button,
    .info-button,
    .become-a-client,
    .url-button,
    .send-button,
    .gallery-view .descr span.service,
    .contact-close
  )[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
    padding: 5px 10px 4px;
  }
}

/* ============================================================
   Flipped card backdrop — this project's media as a blurred morph
   ============================================================ */
@media (min-width: 701px) {
  .project-media-carousel__morph {
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    /* Long enough to read as the wash settling in and draining away rather
       than a panel being switched on behind the card. */
    transition: opacity 1400ms ease;
    z-index: 0;
  }

  .project-media-carousel.is-info-flipped .project-media-carousel__morph {
    opacity: 1;
  }

  /* Scaled past the box because `filter: blur()` samples transparency beyond
     the edges, which would otherwise fade the frame; the overscan is clipped
     by the wrapper's `overflow: hidden`. */
  .project-media-carousel__morph-layer {
    background-position: center;
    background-size: cover;
    filter: blur(60px);
    inset: 0;
    opacity: 0;
    position: absolute;
    transform: scale(1.15);
    transition: opacity 3200ms ease;
    will-change: opacity;
  }

  .project-media-carousel__morph-layer.is-active {
    opacity: 1;
  }

  /* The flipper has to sit above the backdrop, and its faces must not paint a
     ground of their own or they would hide the morph. */
  .project-media-carousel__flip {
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-media-carousel__morph-layer {
    transition-duration: 1ms;
  }
}

/* Against the blurred project morph a translucent fill reads as muddy, so the
   button that turns the card back goes solid. */
body.show-project-info-flip .project-toolbar .info-button {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #fff;
}

/* The Info button closes the info card, so the top-left Back steps aside. */
body.show-project-info-flip .project-toolbar .back-button {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   Project categories — the list's heading is its filter
   ============================================================ */

/* The heading reads as a title, switches to the invitation on hover, and drops
   the categories underneath on click. Its own box stays transparent and
   click-through so nothing changes until the pointer is actually on it. */
.project-filter {
  /* Flush with the list it filters: `.projects-list a` carries the same 20px,
     so the heading's pill and the project pills share one left edge — and
     their text, 20px further in, shares another. */
  margin: 0 0 20px 20px;
  padding: 0;
  pointer-events: none;
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  /* Above `.projects-list-region`, which is raised to 3 below the breakpoint —
     the open menu hangs over the first rows of the list it is filtering. */
  z-index: 5;
}

/* The heading's own spacing lives on the wrapper, which is what the menu is
   positioned against. Flex so the funnel and the heading share a baseline —
   and so the whitespace between the two buttons stops counting as text. */
.project-filter__heading {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

/* Drawn as a project pill from the start because it is the only thing on a
   touch screen saying the heading opens. */
.project-filter__icon {
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 0;
  border-radius: 100px;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  line-height: 1.3;
  margin: 0;
  outline: none;
  /* Square, and the size of a project pill: the height is the list's own
     (`.projects-list a` is `calc(1.3em + 11px)` too), and the width is told to
     match rather than being left to the glyph and its padding, which came out
     five pixels wider. */
  height: calc(1.3em + 11px);
  padding: 0;
  pointer-events: auto;
  width: calc(1.3em + 11px);
  /* No timing on the colours: the label beside it switches on the frame the
     pointer arrives, and the funnel easing into black behind an instant swap
     read as two separate answers to the same hover. */
  transition: none;
}

.project-filter__icon .filter-lines {
  display: block;
  height: 1em;
  width: 1em;
}

/* The list's own black pill, so the funnel reads as pressed for as long as the
   categories are down. */
.project-filter__icon:focus-visible,
.project-filter.is-filter-open .project-filter__icon {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

/* Either half answers for the whole: pointing at the heading inverts the
   funnel, exactly as pointing at the funnel turns the heading into its pill
   (further down).

   Hover is asked for rather than assumed: a tap leaves `:hover` behind on a
   touch screen, and the funnel would have stayed black after the menu it
   opened had already closed again — reading as still open. */
@media (hover: hover) {
  .project-filter__icon:hover,
  .project-filter:has(.project-filter__toggle:hover) .project-filter__icon {
    background-color: #000;
    border-color: #000;
    color: #fff;
  }
}

/* Deliberately not in the shared button sizing further up: those hold every
   button at 20px, while this one has to stay the size of the project list it
   heads — which grows to 25px past 1500px wide. Stays a heading throughout: no
   fill, no outline, no indent, so the funnel in front of it is the only thing
   drawn as a pill and the label just changes what it reads. */
.project-filter__toggle {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  line-height: 1.3;
  margin: 0;
  outline: none;
  padding: 5px 20px 4px 0;
  pointer-events: auto;
  position: relative;
  text-align: left;
}

/* Both labels are laid on top of each other in the hidden sizer, in one grid
   area, so the button is as wide as the longer of the two. Neither is measured
   out of the way as it was while the heading became a pill: nothing is drawn
   behind the text any more, so the slack after the shorter label is invisible
   and a box that resized under them would only have made the swap flinch. */
.project-filter__toggle .lay-button-effect__text-sizer {
  display: grid;
}

.project-filter__toggle .lay-button-effect__text-sizer > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}

/* Left aligned rather than centred: the two labels are different lengths, and
   centring them in a box sized to the longer one would have stepped the text
   sideways as it changed.
   `!important` throughout because the shared rule above sets all of this from
   inside an `:is()` that no plain selector here can outweigh. */
.project-filter__toggle[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
  font-size: inherit !important;
  justify-content: flex-start !important;
  line-height: inherit !important;
  padding-left: 0 !important;
  /* No travel and no timing: the shared effect rolls one label up as the other
     arrives, and the heading is asked to stay put and simply change what it
     says, on the frame it is asked to. The `transform: none` has to be stated
     because the shared rules park the incoming label a full line above its
     box. */
  transform: none !important;
  transition: none !important;
  white-space: nowrap;
}

/* Which of the two is on screen, and nothing else — the swap is instant, so
   there is no moment where both are up and the tail of the longer one shows
   through the shorter. */
.project-filter__toggle[data-lay-button-effect-text-slide="1"] span.lay-button-effect__text--current {
  opacity: 1;
}

.project-filter__toggle[data-lay-button-effect-text-slide="1"] span.lay-button-effect__text--next {
  opacity: 0;
}

/* The open menu holds the label on the invitation, the way it holds the funnel
   on its black pill. Until now only `:hover` swapped the two labels, so the
   heading read "Filter Projects" while the pointer was on it and fell back to
   the category the moment it moved — and on a touch screen, where the funnel is
   what opens the menu, it never swapped at all.
   The `span` is there to carry the weight: the shared slide rules qualify the
   text with the effect's own attribute, and a class-only selector loses. */
.project-filter__toggle[data-lay-button-effect-text-slide="1"]:focus-visible span.lay-button-effect__text--current,
.project-filter.is-filter-open .project-filter__toggle[data-lay-button-effect-text-slide="1"] span.lay-button-effect__text--current {
  opacity: 0;
}

.project-filter__toggle[data-lay-button-effect-text-slide="1"]:focus-visible span.lay-button-effect__text--next,
.project-filter.is-filter-open .project-filter__toggle[data-lay-button-effect-text-slide="1"] span.lay-button-effect__text--next {
  opacity: 1;
}

/* The funnel and the heading are one control, so pointing at either answers for
   both — and `:hover` is asked for rather than assumed, because it sticks to
   whatever was last tapped on a touch screen: without this the heading would
   have kept reading "Filter Projects" after the menu it opened had closed. */
@media (hover: hover) {
  .project-filter:has(.project-filter__icon:hover) .project-filter__toggle[data-lay-button-effect-text-slide="1"] span.lay-button-effect__text--current,
  .project-filter__toggle[data-lay-button-effect-text-slide="1"]:hover span.lay-button-effect__text--current {
    opacity: 0;
  }

  .project-filter:has(.project-filter__icon:hover) .project-filter__toggle[data-lay-button-effect-text-slide="1"] span.lay-button-effect__text--next,
  .project-filter__toggle[data-lay-button-effect-text-slide="1"]:hover span.lay-button-effect__text--next {
    opacity: 1;
  }
}

/* Set to the list's own measurements, so the menu lands exactly where the
   projects are: 24px below the heading is where the first project sits (the
   heading's 20px margin plus the row's own 4px), and the 8px gap plus the pill
   height repeats the list's 45px rhythm. The two cross-fade in place. */
.project-filter__menu {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 0;
  opacity: 0;
  padding-top: 24px;
  position: absolute;
  top: 100%;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  visibility: hidden;
  z-index: 12;
}

/* `:focus-within` is the keyboard way in when the script never arrives; once
   it has, the class it adds takes the menu over so a click that closes the
   menu is not undone by the focus the same click leaves on the button. */
.project-filter.is-filter-open .project-filter__menu,
.project-filter:not(.is-filter-enhanced):focus-within .project-filter__menu {
  opacity: 1;
  transition-delay: 0s;
  visibility: visible;
}

/* A project pill in every respect — same weight and radius — so the menu reads
   as the list it is about to become. */
.project-filter__option {
  background-color: #fff;
  border: 0;
  border-radius: 100px;
  color: #000;
  cursor: pointer;
  display: inline-block;
  /* `._bigtext` off the wrapper — the same 20px/25px the projects are set in. */
  font-size: inherit;
  font-weight: 600;
  line-height: 1.3;
  outline: none;
  padding: 5px 20px 4px;
  pointer-events: auto;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}

/* Exactly the list's own highlighted pill (`.projects-list a.hover`), arrow
   and all: it takes the place of the left padding and the text steps aside.
   Driven by a class rather than `:hover`, because — again as in the list —
   only one pill is ever black, and it stays on the one last pointed at. */
.project-filter__option.is-highlighted {
  align-items: center;
  background-color: #000;
  border-color: #000;
  color: #fff;
  display: inline-flex;
  gap: 0.25em;
  padding-left: 0.25em;
}

.project-filter__option .button-arrow {
  display: none;
}

.project-filter__option.is-highlighted .button-arrow {
  display: block;
}

/* Clickable: it takes the reader back to the unfiltered list at the top. */
body.show-frontpage :is(.introtext, .mobile-logo) {
  cursor: pointer;
}

/* The menu stands in for the list while it is open — same pills, same place —
   so the list goes out as the menu comes in, on the same fade. */
.plist-wrap-2 .projects-list {
  transition: opacity 220ms ease;
}

.plist-wrap-2:has(.project-filter.is-filter-open) .projects-list {
  opacity: 0;
}

.plist-wrap-2:has(.project-filter.is-filter-open) .projects-list a {
  pointer-events: none;
}

/* Filtered out of the list. The slides keep their place — a project is
   addressed by its position in the full list everywhere else on the page. */
.projects-list > div.is-filtered-out {
  display: none;
}

/* The caption opens the project too (see SiteShell). `.projects-list` is
   click-through so the wash behind it stays reachable, and only the pills opt
   back in — this is the second thing that has to. */
.projects-list .short-description {
  cursor: pointer;
  margin: 0 0 4px 20px;
  pointer-events: auto;
}

@media (max-width: 699px) {
  /* Still flush with the list, which sits at 10px below the breakpoint. */
  .project-filter {
    margin-left: 10px;
  }

  .project-filter__toggle {
    padding: 5px 10px 4px 0;
  }

  .project-filter__option {
    padding: 5px 10px 4px;
  }

  /* Re-stated after the shorthand above, which would otherwise put the
     arrow's own left padding back to 10px. */
  .project-filter__option.is-highlighted {
    padding-left: 0.25em;
  }

  .projects-list .short-description {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-filter__toggle,
  .project-filter__menu,
  .project-filter__option {
    transition-duration: 1ms;
  }
}

/* ============================================================
   Contact form: the whole screen and nothing else
   ============================================================ */

/*
 * Only the standalone form. Inside a project the same element is moved onto
 * the back of the media card (see SiteShell) and stays the card it is there,
 * so everything here hangs off `body >`.
 *
 * It never scrolls. The type is set against both dimensions — `min(vw, vh)` —
 * so a short window makes it smaller rather than taller than the screen, and
 * the message field takes whatever height is left over once the rest has been
 * laid out.
 */
body > .become-a-client-modal {
  /* The vertical inset keeps a tall form off the two corner buttons. */
  --contact-inset-x: clamp(20px, 5vw, 80px);
  --contact-inset-y: clamp(76px, 10vh, 110px);
  background-color: #000;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  display: grid;
  filter: none;
  grid-template-columns: min(100%, 54rem);
  /* Every row its own height, and the stack centred in what is left: the
     buttons have moved to the corners, so there is nothing left that has to
     reach the bottom of the screen. */
  align-content: center;
  grid-template-rows: auto;
  height: 100dvh !important;
  inset: 0 !important;
  justify-content: center;
  max-height: none;
  overflow: hidden;
  padding: var(--contact-inset-y) var(--contact-inset-x);
  transform: none !important;
  transition: opacity 400ms ease, visibility 0s linear 400ms !important;
  width: 100vw !important;
  will-change: opacity;
}

body.show-client-modal {
  overflow: hidden;
}

/* Every row its own height now. The message row used to be the one that gave,
   because the form had to fill the screen down to the button; the block is
   centred and the button has left it. */
body > .become-a-client-modal form {
  display: grid;
  grid-template-rows: auto;
  min-height: 0;
}

body > .become-a-client-modal > ._bigtext {
  font-size: clamp(28px, min(5vw, 7vh), 72px);
  line-height: 1.05;
  margin-bottom: clamp(12px, 2.5vh, 32px);
}

body > .become-a-client-modal label {
  font-size: clamp(13px, min(1.4vw, 2vh), 20px);
  margin-bottom: 0;
  margin-top: clamp(10px, 1.8vh, 24px);
}

/* Boxes around type this size read as containers rather than fields; a rule
   under each one is enough to say where to write. */
body > .become-a-client-modal :is(input, select, textarea),
body > .become-a-client-modal .contact-select__button {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  font-size: clamp(18px, min(2.8vw, 3.8vh), 40px);
  line-height: 1.25;
  /* `1.85em + 1px` is the line box plus the padding and the rule under it.
     Stated rather than left to the box because an `<input>` sizes its content
     off the font's own metrics instead of `line-height`. */
  min-height: calc(1.85em + 1px);
  padding: 0.3em 0;
  transition: border-color 200ms ease;
}

body > .become-a-client-modal :is(input, select, textarea):focus,
body > .become-a-client-modal .contact-select.is-open .contact-select__button {
  background-color: transparent;
  border-bottom-color: #fff;
}

/* `appearance: none` takes the native arrow with it, and at this size its
   absence reads as a disabled field. */
body > .become-a-client-modal .contact-select__button {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-position: right 0 center;
  background-repeat: no-repeat;
  background-size: clamp(18px, 2.2vw, 30px);
  padding-right: clamp(26px, 3vw, 44px);
}

/* The list the browser opens is drawn at the field's size unless it is told
   otherwise, which at 40px is a menu the height of the window. */
body > .become-a-client-modal option {
  background-color: #111;
  color: #fff;
  font-size: 17px;
}

/* A height of its own rather than whatever was left over, now that the block
   it sits in is centred instead of stretched. */
body > .become-a-client-modal textarea {
  height: auto;
  min-height: clamp(120px, 20vh, 180px);
  resize: none;
}

/* Keep the send button's geometry through the closing fade, so centring the
   form does not shift its fields when the open class is removed. */
body > .become-a-client-modal form .send-button {
  align-self: start;
  border-radius: 100px;
  font-size: clamp(18px, min(2.2vw, 3vh), 34px) !important;
  gap: 0.3em;
  justify-self: start;
  line-height: 1.2 !important;
  margin-top: clamp(14px, 2.5vh, 32px);
  padding: 0.4em 0.9em 0.4em 0.7em !important;
}

body > .become-a-client-modal .send-button .button-arrow {
  height: 0.85em;
  width: 0.85em;
}

/* Exactly where Contact Us sits on the page behind it, and fixed like it: it
   is standing in for that button while the form is up, and an absolute box in
   the modal's grid would have been part of what the form is laid out around.
   White on black is the inverse of the pill that opened it. */
body > .become-a-client-modal .contact-close {
  background-color: #fff;
  color: #000;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 3;
}

/* On a phone it is the toolbar's twin: the same pill Back and Contact Us are
   drawn at, in the corner Contact Us itself sits in — it is standing in for
   that button while the form is up. */
/* The page's own corners below the breakpoint: Contact Us sits at 10/10 here,
   not 20/20, and Close takes its place exactly. */
@media (max-width: 699px) {
  body > .become-a-client-modal .contact-close {
    line-height: 1.3;
    min-height: calc(1.3em + 9px);
    right: 10px;
    top: 10px;
    /* The legacy stylesheet shrinks every `.close` to 0.8 down here — it was
       sizing a ✕ glyph, and it was holding this pill 7px under the toolbar's. */
    transform: none;
  }
}

/* `._bigtext` gives it 20px underneath, which centres it 10px high. */
body > .become-a-client-modal .thankyou {
  line-height: 1.15;
  margin: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  body > .become-a-client-modal {
    transition-delay: 0s !important;
    transition-duration: 1ms !important;
  }
}

/* ---------------------------------------------------- the budget's own menu */

.contact-select {
  position: relative;
}

/* Kept for the answer it holds and for the form that sends it, out of the way
   of both the eye and the tab order. */
.contact-select select {
  height: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.contact-select__button {
  appearance: none;
  -webkit-appearance: none;
  /* A button arrives with a border on all four sides; the field rule it shares
     only replaces the one underneath. */
  background-color: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: block;
  font: inherit;
  margin: 0;
  outline: none;
  text-align: left;
  width: 100%;
}

.contact-select__list {
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* The radius the project cards are cut to. It scrolls, so the corner also
     has to take the highlight off the first and last option. */
  border-radius: clamp(10px, 1.2vw, 18px);
  left: 0;
  list-style: none;
  margin: 0;
  max-height: min(40vh, 380px);
  opacity: 0;
  overflow-y: auto;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  visibility: hidden;
  z-index: 3;
}

.contact-select.is-open .contact-select__list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

/* Set below the field itself: seven of these at the field's size would be a
   list the height of the window, which is what the native one was. */
.contact-select__option {
  color: #fff;
  cursor: pointer;
  font-size: clamp(15px, min(1.6vw, 2.2vh), 24px);
  line-height: 1.3;
  padding: 0.5em 0.7em;
  transition: background-color 140ms ease;
}

.contact-select__option.is-active {
  background-color: #fff;
  color: #000;
}

.contact-select__option[aria-selected="true"]::after {
  content: " ✓";
}

/* Out of sight, but fillable — which is the point: a bot fills it, a reader
   cannot, and Static Forms drops whatever arrives with it filled. */
.contact-honeypot {
  height: 0 !important;
  left: -9999px;
  opacity: 0;
  padding: 0 !important;
  pointer-events: none;
  position: absolute;
  width: 0 !important;
}

/* Only ever holds a sentence when something went wrong. */
body > .become-a-client-modal .contact-status:empty {
  display: none;
}

body > .become-a-client-modal .contact-status {
  color: #fff;
  font-size: clamp(13px, min(1.4vw, 2vh), 20px);
  line-height: 1.3;
  margin: clamp(10px, 1.8vh, 20px) 0 0;
  opacity: 0.7;
}

body > .become-a-client-modal.is-sending .send-button {
  opacity: 0.5;
  pointer-events: none;
}

/* ------------------------------------------------------------ once it is sent */

/* The legacy stylesheet hides the fields one element type at a time, which
   leaves the budget — a div with a button in it since the menu became ours —
   standing on an otherwise empty screen. The form goes as a whole, and what
   is left sits in the middle of the screen. */
body > .become-a-client-modal.message-sent form {
  display: none;
}

body > .become-a-client-modal.message-sent {
  align-content: center;
  grid-template-rows: auto;
}

body > .become-a-client-modal .thankyou {
  text-align: center;
}

body > .become-a-client-modal .thankyou__headline {
  display: block;
  font-size: clamp(34px, min(6vw, 9vh), 90px);
  line-height: 1.05;
}

body > .become-a-client-modal .thankyou__note {
  display: block;
  font-size: clamp(15px, min(1.8vw, 2.6vh), 26px);
  font-weight: 400;
  line-height: 1.3;
  margin-top: clamp(10px, 1.8vh, 22px);
  opacity: 0.6;
}

/* ============================================================
   Phone background media
   ============================================================ */

@media (max-width: 699px) {
  /* The blurred slideshow sits in `.sticky` at z-index 1 and is only 20%
     opaque, and the legacy stylesheet leaves the list below it at 0 — so the
     wash went over the pills and every white one read as translucent. The list
     goes above it, at the same 2 desktop already uses. */
  .plist-wrap-2 {
    z-index: 2;
  }

  /* The corner preview normally sits over the project list. While the filter
     menu replaces that list, its pills need to remain clickable and paint in
     front wherever a short viewport makes the two overlap. */
  .plist-wrap-2:has(.project-filter.is-filter-open) {
    z-index: 4;
  }

  /*
   * With the categories down, the list they stand in for stops taking up room.
   * Hidden with `opacity` alone it still measured its full length, so the
   * section stayed as tall as all 37 projects and the menu was followed by two
   * screens of empty wash to scroll through.
   *
   * Out of flow rather than `display: none`, so it can still fade; and the
   * menu comes into the flow in its place, so the section is exactly the menu
   * plus its margins — the height `--phone-stage-height` then measures.
   */
  .plist-wrap-2:has(.project-filter.is-filter-open) .projects-list {
    position: absolute;
  }

  .project-filter.is-filter-open .project-filter__menu {
    position: static;
  }

  /* Was a child of `.sticky` and inherits its geometry: pinned to the top for
     the length of `.plist-wrap`, and as tall as the stage so the corner
     offsets below resolve against its bottom edge. Its height and the negative
     margin that takes that height back out of the flow are set further down,
     with `.sticky`'s. */
  .background-images-phone {
    /* A full-screen box in front of the list: only the preview itself may
       take a click. */
    pointer-events: none;
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .background-images-phone a {
    pointer-events: auto;
  }

  /* The legacy stylesheet parks it 100px above the bottom edge, which reads as
     floating. 20px is the inset it already keeps from the right, so matching it
     puts the thing in the corner. */
  .background-images-phone img,
  .background-images-phone video {
    bottom: 20px;
  }
}

/*
 * The pinned stage — the wash, and the corner preview beside it — is a screen
 * tall, while `.plist-wrap` is only as tall as the list: `.plist-wrap-2` is
 * pulled back over the stage by exactly that screen. Filter to a small
 * category and the container ends up shorter than the thing pinned inside it,
 * and the stage hangs out of the bottom — the wash ended in a hard line across
 * the logo wall with the preview floating over it.
 *
 * So the stage is measured down to the list instead of the list being padded
 * out to the stage: `--phone-stage-height` is `min(100vh, the list's own
 * height)`, set in SiteShell. Holding the container at a screen would have
 * left one under a four-item list, which is the same glitch with white space
 * instead of a seam. The pull-back has to travel with it, or a shortened stage
 * would drag the list up past the top of the page.
 */
@media (max-width: 699px) {
  .sticky,
  .background-images-phone {
    height: var(--phone-stage-height, 100vh);
  }

  .background-images-phone,
  .plist-wrap-2 {
    margin-top: calc(-1 * var(--phone-stage-height, 100vh)) !important;
  }
}

/* ============================================================
   The phone's white sheet — corners and the services on it
   ============================================================ */

@media (max-width: 699px) {
  /* The legacy 20px reads as a square edge at this width; 60px was the
     desktop's corner scaled up and swallowed the last line of text. 30px
     turns the corner and leaves that line its 20px off the bottom, the same
     as off the left. The 50px tail below
     the last card was most of a blank screen and comes back to the 20px the
     page uses everywhere else.

     Positioned and raised because the footer is pinned behind it now (below):
     without a layer of its own the fixed footer painted straight over it. */
  .main {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
  }

  /* The reveal the desktop has: the footer is pinned to the bottom of the
     window, the page reserves exactly its height above it (`--footer-height`,
     measured in SiteShell), and the last stretch of scrolling slides the white
     sheet off it — uncovered through the corners above, with its own text
     fading up as it goes. */
  #frontpage {
    padding-bottom: var(--footer-height, 600px);
  }

  #frontpage > footer {
    position: fixed;
    z-index: 1;
  }

  /* Fourteen pills at the button size overran the 4:3 card in every direction —
     out of the top of it and off its right edge. They are labels on a photo,
     not buttons to hit, so they come down to a caption size and the card is
     given the height back as portrait. */
  .gallery-view .gallery-item-view {
    aspect-ratio: 4 / 5;
  }

  /* Centred rather than stacked against the left edge: at this size the pills
     are a caption block on a photo, and a ragged right against a card this
     narrow read as unset text. The card's own title is centred with them —
     left in its corner it would have looked like it had been missed. */
  .gallery-view .descr {
    gap: 6px;
    justify-content: center;
  }

  /* `translateX`, not `left: 0; right: 0` — it is a pill, and it has to keep
     shrinking to its text rather than stretching across the card. */
  .gallery-view .descr span.service-big {
    left: 50%;
    transform: translateX(-50%);
  }

  /* `!important` and the attribute selector to clear the shared button sizing,
     which reaches these through an `:is()` list no plain selector outweighs. */
  .gallery-view .descr span.service[data-lay-button-effect-text-slide="1"] {
    font-size: 13px !important;
    padding: 4px 9px 3px !important;
  }

  .gallery-view .descr span.service[data-lay-button-effect-text-slide="1"] .lay-button-effect__text {
    font-size: 13px;
    padding: 4px 9px 3px;
  }

}

/* ============================================================
   A project on the phone: its own first page, then the media
   ============================================================ */

@media (max-width: 699px) {
  /* The info was behind a button floating over the media. On a phone the
     project simply starts with what it is — title, description, credits — and
     the images follow, so the modal is unwrapped and left where it was built:
     in the flow, ahead of the grid. */
  body.show-post .project-toolbar .info-button {
    display: none;
  }

  /* In the flow, but still raised to the grid's layer: Next Project is pinned
     under the page at `z-index: 1`, and an unpositioned block paints below
     that. On a short window — an iPhone with Safari's bars showing — the
     pinned block reached up past the grid's top edge and showed through as a
     black band across the foot of the info. */
  .project-info-modal {
    background-color: #fff;
    display: block;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: none;
    visibility: visible;
    z-index: 2;
  }

  .project-info-modal__panel {
    max-height: none;
    width: 100%;
  }

  /* Nothing to close. */
  .project-info-modal__close {
    display: none;
  }

  /* Stripped back to plain text on the page: the card treatment was there to
     lift it off the media it was floating over, and it is not floating now.
     The top padding clears Back and Contact Us, which float over all of this
     and would otherwise sit on the project's own title. */
  .project-info-modal .url-button-wrap {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    padding: 100px 20px 20px !important;
  }

  /* The home page's phone type: title and description at the one size the
     info sections there use (28px/1.1, weight 600), rather than a 40px title
     over 20px regular text. */
  .project-info-modal .url-button-wrap :is(
    .left-descr ._bigtext4,
    .description,
    .description p
  ) {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
  }

  /* The credits are no longer a two-column table but read the way the home
     page's story blocks do: each role a small label (16px, like "Our
     Services"), the name under it at the text size, 20px between the two and
     35px on to the next role — the same spacing as there. Trimmed to cap
     height and baseline, as there, so those distances are the visible ones. */
  .project-info-modal .url-button-wrap :is(.credits, .credit, .credit > div) {
    display: block;
  }

  .project-info-modal .url-button-wrap .credit > div {
    font-weight: 600;
    text-align: left;
    text-box: trim-both cap alphabetic;
  }

  .project-info-modal .url-button-wrap .credit > div:first-child {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .project-info-modal .url-button-wrap .credit > div:last-child {
    font-size: 28px;
    line-height: 1.1;
    text-align: left;
  }

  .project-info-modal .url-button-wrap .credit + .credit {
    margin-top: 35px;
  }

  /* One distance between the parts of the info and on to the media: the
     40px between title and description, also between description and
     credits, and — the info's 20px bottom padding plus the grid's 20px top —
     between the credits and the first image. */
  .project-info-modal .url-button-wrap .description {
    margin-bottom: 40px;
  }

  /* No table rules, and a long name wraps instead of running off. */
  .project-info-modal .url-button-wrap .credit > div,
  .project-info-modal .url-button-wrap .credit:last-child > div {
    border: 0;
    padding-bottom: 0;
    padding-top: 0;
  }

  .project-info-modal .url-button-wrap .credit > div:last-child {
    white-space: normal;
  }

  /* While a project is open, the home page under it is hidden. `#post` is
     exactly one screen tall, and when Safari's bars move on an iPhone the
     visible area runs past its top for a moment — the project list underneath
     showed through as a strip over Back. Visibility only, so the legacy code
     still measures the list in place, and only once the page has settled:
     the opening and closing transitions both need the home page showing.
     The page's own ground goes white with it, for the same moments. */
  body.show-post:not(.is-project-page-transitioning, .is-project-closing) #frontpage {
    visibility: hidden;
  }

  body.show-post:not(.is-project-page-transitioning, .is-project-closing) {
    background-color: #fff;
  }

  /* Moved to the end of the grid by SiteShell, into the tail the media already
     leaves above the rounded corner. Centred on the page, and given the room
     the last row would otherwise have kept to itself. */
  .url-button--below-media {
    display: block;
    margin: 20px auto 0;
    width: -moz-fit-content;
    width: fit-content;
  }

  /* One distance around and between the media: the 20px the grid keeps off
     the left edge, also between items and under the last one. The rows used
     3vw plus a figure's default 16px either side, which came to 44px between
     items and twice the side gutter under the last. Set on the row and the
     frame, not on `--row-gap`/`--frame-*` — those are written inline by
     `renderProjectGrid`, and an inline custom property outranks a stylesheet. */
  :is(#post, .project-page-transition__project) .static-project-grid {
    padding: 20px;
  }

  :is(#post, .project-page-transition__project) .static-grid-row {
    margin-bottom: 20px;
  }

  :is(#post, .project-page-transition__project) .static-grid-row:last-of-type {
    margin-bottom: 0;
  }

  :is(#post, .project-page-transition__project) .static-grid-block {
    margin-bottom: 0;
    margin-top: 0;
  }

  /* A lighter shadow at this size: with 20px between items the full desktop
     shadow ran into the next one. */
  :is(#post, .project-page-transition__project) .static-grid-block img,
  :is(#post, .project-page-transition__project) .static-grid-block video {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  }

  /* Posters and encoded video can report different intrinsic dimensions. */
  :is(#post, .project-page-transition__project) .static-grid-block video {
    aspect-ratio: var(--project-video-aspect-ratio, 16 / 9);
    object-fit: contain;
  }

  /* The same sheet the home page is: white, with the corner turned before the
     dark Next Project below it. The info block above it is white too, so the
     two read as one page — which is also why there is no shadow here. It would
     draw a line across that join, and the section under the corner is black
     anyway, so there is nothing for it to fall on. */
  :is(#post, .project-page-transition__project) .grid {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    min-height: 0;
    overflow: hidden;
    z-index: 2;
  }

  /* The home page's reveal, in the project scroller: Next Project is pinned to
     the bottom and the page above slides off it, its text fading up over the
     same stretch (`--footer-content-opacity`, set in SiteShell — it was
     already being measured here, only nothing was reading it). */
  :is(#post, .project-page-transition__project) .next-project {
    bottom: 0;
    position: sticky;
    z-index: 1;
  }

  :is(#post, .project-page-transition__project) .next-project .next-project-text-wrap {
    opacity: var(--footer-content-opacity, 0.1);
  }

  /* The 60px corners cut a notch out of the white page, and `#post` paints
     nothing — through it you saw the home page still sitting underneath, which
     is the pale edge beside the curve. The footer's own ground is carried up
     behind them instead: a band of its black, with the blurred still stretched
     to match, both only ever seen through the notch. */
  :is(#post, .project-page-transition__project) .next-project::before {
    background-color: #000;
    content: "";
    height: 60px;
    left: 0;
    position: absolute;
    right: 0;
    top: -60px;
  }

  :is(#post, .project-page-transition__project) .next-project img {
    height: calc(100% + 60px);
    /* 0.7 let the next project's own colours through as a wash — the desktop
       reads it at 0.3, as ground for the text rather than a picture. */
    opacity: 0.3;
    top: -60px;
  }

  /* Centred both ways. Right-aligned, the two lines hung off the edge of a
     screen this narrow with the whole left half empty. */
  .next-project {
    text-align: center;
  }

  .next-project .next-title,
  .next-project .next-project-text {
    text-align: center;
  }

  /* The legacy 0.1em is a hairline at this size, and the title wraps to two
     lines here — stacked centred, the name and the invitation read as one
     block of four lines rather than two things. `.next-title` exists only
     inside `.next-project`, so this reaches nothing else. */
  .next-project .next-title {
    margin-bottom: 10px;
  }

  .next-project .next-project-text-wrap {
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ============================================================
   Studio story — the hairline grid under the service pills
   ============================================================ */

/* The rules run the full width of the window, so the gutter cannot sit on the
   section the way it does everywhere else on the page — the columns carry it
   instead, and the rules pass underneath them to both edges.

   Type comes from the page's own scale, `._bigtext2` and `._bigtext4` in the
   markup — both already the 600 the rest of the site sets its headings in — so
   nothing below declares a size or a weight of its own. */
.story {
  --story-rule: rgba(0, 0, 0, 0.14);
  --story-gutter: 20px;
  /* Between the specialisms, and under each block's heading: the heading is
     spaced as one more item in the list it opens. */
  --story-item-gap: calc(2 * var(--story-gutter));
  /* The gap between a large sentence and the rule under it — the services
     intro above this section and the statement inside it — is one value, so
     both sentences sit the same distance over their rule. */
  --story-sentence-gap: clamp(48px, 5vw, 80px);
  padding-top: var(--story-sentence-gap);
}

/* The column rule is meant to run all the way down to where the white panel
   ends. `.story` is the panel's last child, so it gives up its own bottom
   padding and pulls back `.main`'s 20px tail as well — the tail is there to
   keep content off the curve, and the rule is the one thing that should reach
   it. The block's own bottom padding stays, so the text keeps its distance. */
.story {
  margin-bottom: -20px;
  padding-bottom: 0;
}

.story-split {
  /* Half the window, the same in every block: the rules line up down the page
     rather than stepping in and out with the length of each label. */
  --story-split: 50%;
  border-top: 1px solid var(--story-rule);
  display: grid;
}

/* Stacked layouts keep their text spacing independently of the slideshow. */
.story-split__body {
  padding-bottom: calc(var(--story-gutter) + 15px);
  padding-top: calc(var(--story-gutter) + 15px);
}

/* Stacked slideshows keep a 16:9 frame. */
.story-split__label {
  align-self: start;
  aspect-ratio: 16 / 9;
  min-width: 0;
  position: relative;
}

/* Each block opens its text column with its heading, at the size of the
   list it heads — the column keeps one voice — and set apart from it by
   space alone, the same space as between the specialisms. */
.story-split__title {
  margin: 0 0 var(--story-item-gap);
}

/* The 20px gutter is meant to be the distance you see, not the distance to an
   invisible line box: trimmed to the cap height on top and the baseline
   underneath, the first line of text starts exactly the gutter under a rule
   and the last one ends exactly the gutter over one. Without this the list
   carried its own leading and stood visibly lower than the gutter. Browsers
   that do not know `text-box` keep the untrimmed boxes, a few pixels looser. */
.story-split__title,
.story-items > li,
.story-capabilities__list {
  text-box: trim-both cap alphabetic;
}

/* Ordinary images crossfade inside the column's 16:9 frame. */
.story-media {
  background-color: transparent;
  border-radius: 0;
  height: 100%;
  inset: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
}

.story-media__image {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: var(--story-media-fit, cover);
  object-position: center top;
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: opacity 800ms ease;
}

.story-media__image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .story-media__image {
    transition: none;
  }
}

.story-split__body {
  --story-body-inset: var(--story-gutter);
  padding-left: var(--story-body-inset);
  padding-right: var(--story-gutter);
}

/* No separators between the specialisms: the space between them does it. */
.story-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-items > li + li {
  margin-top: var(--story-item-gap);
}

/* Title and sub-line are one size, the label's, and run on at its line
   height like a two-line heading — the right column has a single voice. */
.story-items__title,
.story-items__sub {
  margin: 0;
}

.story-statement {
  border-top: 1px solid var(--story-rule);
  padding-bottom: var(--story-sentence-gap);
  padding-top: clamp(36px, 4vw, 60px);
}

/* The gutter again: the rule above this block reaches the window edges, the
   sentence under it lines up with everything else on the page. */
.story-statement__text {
  margin: 0;
  max-width: 1200px;
  padding: 0 var(--story-gutter);
}

/* No line height of its own: it reads at the heading's beside it. */
.story-capabilities__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-capabilities__list > li {
  line-height: 1.2;
}

@media (min-width: 1025px) {
  .story-split {
    grid-template-columns: var(--story-split) 1fr;
  }

  .story-split__label {
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 28.125vw;
  }

  .story-split__body {
    --story-item-gap: 40px;
    border-left: 1px solid var(--story-rule);
    min-height: 0;
    padding-block: calc(var(--story-body-inset) + 10px);
  }

  .story-split__body ._bigtext2 {
    font-size: 32px;
  }

  /* The last block's picture runs into the bottom left corner of the white
     panel, which is rounded at 50px but clips nothing — so the picture takes
     the same curve itself. */
  .story-split:last-child .story-media {
    clip-path: inset(0 round 0 0 0 50px);
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .story-split__body {
    padding-block: calc(var(--story-body-inset) + 10px);
  }
}

/* ============================================================
   Phones: the sections between the project list and the footer
   ============================================================ */
@media (max-width: 700px) {
  /* One rhythm for every block of text on the white sheet: 40px of visible
     space over its first line and under its last (`--story-block-pad`).
     "Visible" because each block is trimmed to its cap height and baseline;
     untrimmed, a 28px sentence carries several pixels of leading on either
     side and stood further off its rule than the list beside it. */
  .main {
    --story-block-pad: 40px;
  }

  .story {
    --story-item-gap: 35px;
    --story-sentence-gap: var(--story-block-pad);
  }

  .story-split__body {
    padding-bottom: var(--story-block-pad);
    padding-top: var(--story-block-pad);
  }

  .our-clients > h2,
  .our-services > h2,
  .our-services-text,
  .story-statement__text {
    text-box: trim-both cap alphabetic;
  }

  /* The legacy 100px over "Our Services" and 13px over the clients come to
     the same rhythm. `!important` because the legacy values carry it. */
  .our-clients,
  .our-services {
    padding-top: var(--story-block-pad) !important;
  }

  .our-clients > h2 {
    margin-bottom: var(--story-block-pad);
  }

  /* Trimmed, the labels and the text under them lost their leading and
     closed up to 14px; the gutter between them instead — under "Our
     Services" and under each story block's heading alike, rather than the
     gap between specialisms the desktop uses there. */
  .our-services > h2,
  .story-split__title {
    margin-bottom: 20px;
  }

  .story-statement {
    padding-top: var(--story-block-pad);
  }

  /* The legacy phone sheet drops a shadow from the project list onto the
     clients section. The sections run on one white page here, so it only
     greyed the heading under it. */
  .plist-wrap {
    box-shadow: none;
  }

  /* One size for the text on the white sheet, from the clients heading down
     to the capabilities: a little under the large step's 32px, so the
     sentences do not break into short lines and the lists can carry it. One
     line height with it, so a list reads at the rhythm the sentences do. */
  .our-clients > h2,
  .our-services-text,
  .story-items__title,
  .story-items__sub,
  .story-capabilities__list > li,
  .story-statement__text {
    font-size: 28px;
    line-height: 1.1;
  }

  /* The labels over that text step down to the footer's small size, 16px at
     this width, and keep their weight, so they read as labels rather than as
     the first line of what follows. */
  .our-services > h2,
  .story-split__title {
    font-size: 16px;
    line-height: 1.2;
  }

  /* The large sentences step down from `._bigtext4`'s 40px to 32px, which
     wrapped them into four and six short lines on a phone. */
  footer ._bigtext4 {
    font-size: 32px;
  }

  /* The headline's break is for the desktop line length: at this width it
     left "hear" alone on a line. The space before the break (see
     `paragraphsToHtml`) keeps the words apart once it is gone. */
  footer ._bigtext4 br {
    display: none;
  }

  /* The footer follows the same vertical spacing as the text above it. */
  footer {
    padding-block: 40px;
  }

  /* The break before "Web Design" is for the desktop line length; at this
     width the sentence wraps on its own and the forced break only left
     "and" alone on a line. */
  .our-services-text {
    white-space: normal;
  }

}

/* The studio line's "& Development" breaks onto its own line on phones only,
   where "Web Design & Development" ran into the Contact Us pill beside it. The
   space before the break keeps the words apart where it is hidden. */
@media (min-width: 701px) {
  .introtext__phone-break {
    display: none;
  }

  .story-capabilities .story-split__label {
    display: flex;
    flex-direction: column;
  }

  .story-capabilities .story-media {
    margin-top: auto;
  }
}

/* The phone keeps its last ready preview while the selected media loads. */
@media (max-width: 700px) {
  .background-images-phone a.active:not(.is-phone-preview-visible) {
    display: none;
  }

  .background-images-phone a.is-phone-preview-visible {
    display: block;
  }

  .background-images-phone .phone-background-media video {
    opacity: 0;
    transition: opacity 120ms ease;
  }

  .background-images-phone .phone-background-media video.is-phone-video-ready {
    opacity: 1;
  }
}

/* Landscape phone previews are 250px wide; portrait previews stay 200px. */
@media (max-width: 700px) {
  .background-images-phone a.is-phone-preview-landscape :is(img, video) {
    width: 250px;
  }
}
