@property --lk-sx {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.066;
}
@property --lk-sy {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.066;
}
/* Plain display headings share the lockup's type without its artwork. */
.display-type,
.lk {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" var(--display-opsz);
  font-optical-sizing: none;
  letter-spacing: calc(var(--lk-track) * 1em);
}

/* ------------------------------------------------------- lockup engine */
/* Host element: font-size sets the lockup size; every layer scales with it.
   JS replaces the text with three isolated SVG layers (shadow, ring, fill).
   Initial text styling keeps content readable; the runtime paints the isolated layers. */
.lk {
  display: block;
  line-height: 1;
  color: var(--field);
  -webkit-text-stroke: calc(var(--lk-ring) * 2em) var(--ground);
  paint-order: stroke fill;
  text-shadow: calc(var(--lk-sx) * 1em) calc(var(--lk-sy) * 1em) 0 var(--shadow);
}
/* Keep readable HTML in flow until the attached SVG has settled font metrics. */
.lk:not(.is-built) > .lk-art {
  position: absolute;
  visibility: hidden;
}
.lk.is-built {
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.lk.is-built > .lk-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lk-art {
  display: block;
  overflow: visible;
  max-width: none;
}
.lk-t {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--display-weight);
  font-size: 100px;
  font-variation-settings: "opsz" var(--display-opsz);
  font-optical-sizing: none;
  font-kerning: normal;
  letter-spacing: calc(var(--lk-track) * 100px);
}
.lk-body {
  stroke-width: calc(var(--lk-ring) * 200px);
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  paint-order: stroke;
}
.lk-shadow {
  fill: var(--shadow);
  stroke: var(--shadow);
  transform: translate(calc(var(--lk-sx) * 100px), calc(var(--lk-sy) * 100px));
}
.lk-ring {
  fill: var(--ground);
  stroke: var(--ground);
}
.lk-fill {
  fill: var(--field);
}
/* mask data, not color: black removes, white keeps */
.lk-cut,
.lk-cut.lk-body {
  fill: black;
  stroke: black;
}
.lk-cut:not(.lk-body) {
  stroke: none;
}
.lk.no-shadow .lk-g-shadow,
.lk.lk--fill-only .lk-g-shadow,
.lk.lk--ring-only .lk-g-shadow,
.lk.no-ring .lk-g-ring,
.lk.lk--fill-only .lk-g-ring,
.lk.no-fill .lk-fill,
.lk.lk--ring-only .lk-fill {
  /* visibility, not display: the fill text is also the width measure */
  visibility: hidden;
}

/* The workshop move as motion: the shadow slides out from 0,0 to +33/+33. */
@keyframes lk-compose {
  from {
    --lk-sx: 0;
    --lk-sy: 0;
  }
}
.is-ready .lk.compose.is-built {
  animation: lk-compose 1.1s var(--ease) 0.15s both;
}

/* Display heads: the lockup capped for reading surfaces. */
.head {
  font-size: var(--type-display);
}

/* Composite treatments keep the separator ring on the local ground. */
.lk--color { --field: var(--green); --shadow: var(--red); }
.lk--grayscale { --field: var(--gray-field); --shadow: var(--gray-shadow); }
.lk--low-contrast { --field: var(--low-contrast-field); --shadow: var(--gray-shadow); }
.lk--green-on-gray { --field: var(--green); --shadow: var(--gray-shadow); }

/* Standalone single-color wordmarks; not composite ring-color settings. */
.wordmark-tone--green { --wordmark-ink: var(--green); }
.wordmark-tone--red { --wordmark-ink: var(--red); }
.wordmark-tone--gray { --wordmark-ink: var(--gray-field); }
.wordmark-tone--low-contrast { --wordmark-ink: var(--low-contrast-field); }
.lk--fill-only { text-shadow: none; -webkit-text-stroke: 0; color: var(--wordmark-ink, var(--field)); }
.lk--fill-only .lk-fill { fill: var(--wordmark-ink, var(--field)); }
.lk--ring-only { text-shadow: none; color: transparent; -webkit-text-stroke-color: var(--wordmark-ink, var(--ground)); }
.lk--ring-only .lk-ring { fill: var(--wordmark-ink, var(--ground)); stroke: var(--wordmark-ink, var(--ground)); }


