:root {
  --editorial-paper: #efefef;
  --editorial-paper-finish:
    url("assets/dozzen-paper-grain.png") left top / 128px 128px,
    radial-gradient(ellipse at 87% 36%, #ccdafb48, transparent 57%) center / 100% 100% no-repeat,
    radial-gradient(ellipse at 14% 56%, #ffffff87, transparent 66%) center / 100% 100% no-repeat,
    linear-gradient(#efefefbe, #efefefbe),
    url("assets/dozzen-blue-grain.png") 37px 61px / 173px 173px var(--editorial-paper);
  --dozzen-blue-texture:
    url("assets/dozzen-blue-grain.png"),
    radial-gradient(ellipse at 17% 20%, #9aaaff26 0%, transparent 57%),
    radial-gradient(ellipse at 85% 80%, #1111612e 0%, transparent 64%);
  --dozzen-blue-texture-size: 128px 128px, 100% 100%, 100% 100%;
  --dozzen-paper-texture:
    url("assets/dozzen-paper-grain.png"),
    radial-gradient(ellipse at 17% 20%, #ffffff75 0%, transparent 57%),
    radial-gradient(ellipse at 85% 80%, #3434310d 0%, transparent 64%);
  --dozzen-ink-grain: url("assets/dozzen-paper-grain.png");
  --dozzen-ink-grain-size: 128px 128px;
  --dozzen-ink-edge: #1c1b1a;
  --dozzen-ink-texture:
    var(--dozzen-ink-grain),
    linear-gradient(to bottom, transparent 75%, var(--dozzen-ink-edge)),
    radial-gradient(ellipse at 18% 7%, #3b3937 0%, #2d2b2a 31%, transparent 73%),
    linear-gradient(128deg, #1d1c1b 18%, #272625 62%, #161616 100%);
  --dozzen-ink-texture-size: var(--dozzen-ink-grain-size), 100% 100%, 100% 100%, 100% 100%;
  --dozzen-ink-lettering:
    var(--dozzen-ink-grain),
    radial-gradient(ellipse at 69% 76%, #393735 2%, #2e2c2ac9 25%, transparent 72%),
    linear-gradient(110deg, #171717 6%, #252423 39%, #171717 86%);
  --dozzen-ink-lettering-size: var(--dozzen-ink-grain-size), 100% 100%, 100% 100%;
}

/* Layer a fine print grain over existing Dozzen blue fills. */
.site-loader,
.type-band,
.service-panels,
.closing-bands > div:not(:last-child),
.footer,
.work-composition::before,
.work-scroll-ready .work-track[data-work-changing],
.work-keyword[aria-pressed="true"],
.sprint-audience,
.sprint-summary:hover .sprint-toggle,
.sprint-enquiry:not(:hover),
.case-study-request:not(:hover),
.brief-start-cta:not(:hover),
.updates-signup:not(:hover),
.signup-dialog .signup-submit:not(:hover),
.enquiry-close:hover,
.hero-intro > .arrow-link:not(:hover),
.arrow-link:hover:not(.hero-intro .arrow-link, .studio-copy .arrow-link) {
  background-image: var(--dozzen-blue-texture);
  background-size: var(--dozzen-blue-texture-size);
}

/* White CTA fills use the same grain scale, with a lighter neutral ink. */
.service-contact:not(:hover),
.studio-copy .arrow-link:hover,
.sprint-enquiry:hover {
  background-image: var(--dozzen-paper-texture);
  background-size: var(--dozzen-blue-texture-size);
}

/* Irregular print grain sits over a broad charcoal wash. */
.selected-work .work-pin,
.studio,
.services .sprint-offer,
.closing-bands > div:last-child {
  background-image: var(--dozzen-ink-texture);
  background-size: var(--dozzen-ink-texture-size);
  background-position: center top;
}

/* Moving panels need an opaque surface for the project and page transitions. */
.work-scroll-ready .work-project,
.work-scroll-ready .work-gallery-slide {
  background-color: #242322;
  background-image: var(--dozzen-ink-grain);
  background-size: var(--dozzen-ink-grain-size);
  background-position: center top;
}

.hero-intro > .arrow-link:hover,
.case-study-request:hover,
.brief-start .brief-start-cta:hover,
.updates .updates-signup:hover,
.signup-dialog button.signup-submit:hover {
  background-image: var(--dozzen-ink-texture);
  background-size: var(--dozzen-ink-texture-size);
  background-position: center;
}

/* Selected service tabs only have a blue surface at this breakpoint. */
@media (max-width: 700px) {
  .service-tab[aria-selected="true"] {
    background-image: var(--dozzen-blue-texture);
    background-size: var(--dozzen-blue-texture-size);
  }
}

.work-skip-link {
  padding-inline: 14px;
  background-color: var(--blue);
  background-image: var(--dozzen-blue-texture);
  background-size: var(--dozzen-blue-texture-size);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.work-skip-link:hover { background-color: #3838e0; }

@media (max-width: 700px) {
  .work-skip-link { padding-inline: 9px; }
}

@media (max-width: 375px) {
  .work-scroll-ready .work-heading h2 { font-size: 25px; }
  .work-scroll-ready .work-skip-link--footer { padding-inline: 7px; }
}

@media (forced-colors: active) {
  :root {
    --dozzen-blue-texture: none;
    --dozzen-paper-texture: none;
    --dozzen-ink-grain: none;
    --dozzen-ink-texture: none;
    --dozzen-ink-lettering: none;
  }
}
