.lg__data {
  display: none;
}
.hm-logo {
  padding: clamp(88px, 8vw, 128px) 0 0;
}
.lg__head {
  width: min(1440px, 100% - 2 * var(--pad));
  margin: 0 auto clamp(28px, 3vw, 44px);
}
.lg__title {
  font: 400 clamp(44px, 6vw, 92px)/.95 var(--f-display);
  letter-spacing: -.045em;
}
.lg__spread {
  display: grid;
  grid-template-columns: 46fr 54fr;
  height: clamp(460px, 100svh - 240px, 780px);
}
.lg__shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #151515;
  color: #fff;
}
.lg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease), scale 1.9s var(--ease);
}
.lg__img.is-on {
  opacity: 1;
}
.lg__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      rgba(0, 0, 0, .34),
      rgba(0, 0, 0, 0) 26%,
      rgba(0, 0, 0, 0) 70%,
      rgba(0, 0, 0, .46));
}
/* With "Highlight labels" the words carry their own yellow, so the picture shows with no shade at all. */
.lg__shot--hi::after {
  display: none;
}
.lg__type {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 32px);
  font: 400 11px/1.45 var(--f-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity .26s;
}
.lg__type.is-out {
  opacity: 0;
}
.lg__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lg__mark {
  text-align: right;
}
.lg__foot {
  display: grid;
  gap: 6px;
}
.lg__work {
  font-weight: 500;
}
.lg__line {
  max-width: 30em;
  text-transform: none;
  letter-spacing: 0;
  font: 400 15px/1.3 var(--f-sans);
}
/* "Highlight labels" (Home > Selected work): a yellow mark behind each line of the words on the picture, not the
   Selected work label top right. The mark reaches 5px past the words so the text keeps its place. */
/* Above the picture's dark shade, so the yellow stays the brand yellow. */
.lg__type.lg__type--hi {
  z-index: 2;
}
.lg__type--hi .lg__who span,
.lg__type--hi .lg__work span,
.lg__type--hi .lg__line span {
  margin: 0 -5px;
  padding: 1px 5px;
  background: var(--accent);
  color: var(--on-accent);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lg__type--hi .lg__line span {
  padding: 2px 5px;
}
.lg__panel {
  position: relative;
  min-width: 0;
}
.lg__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(var(--rows, 4), 1fr);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lg__cell {
  position: relative;
}
.lg__rules {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lg__rules i {
  position: absolute;
  background: rgba(11, 11, 11, .1);
}
.lg__h {
  left: 0;
  right: 0;
  top: calc(var(--y) * 100% / var(--rows, 4));
  height: 1px;
}
.lg__v {
  top: 0;
  bottom: 0;
  left: calc(var(--x) * 100% / 3);
  width: 1px;
}
.lg__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(12px, 1.2vw, 18px);
  border: 0;
  background: none;
  cursor: pointer;
  font: 700 13px/1.15 var(--f-sans);
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, .26);
  transition: color .35s;
}
.lg__name.is-on,
.lg__name:focus-visible {
  color: var(--ink);
}
.lg__name:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}
@media (hover: hover) {
  .lg__name:hover {
    color: var(--ink);
  }
}
.lg__h {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(.65, 0, .2, 1) calc(.1s + var(--y) * .14s);
}
.lg__v {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.3s cubic-bezier(.65, 0, .2, 1) calc(.45s + var(--x) * .14s);
}
.lg__shot {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s cubic-bezier(.65, 0, .2, 1) .1s;
}
.lg__img {
  scale: 1.08;
}
.lg__board .lg__cell {
  opacity: 0;
  translate: 0 8px;
  transition: opacity .8s var(--ease) calc(.9s + var(--n) * .05s), translate .8s var(--ease) calc(.9s + var(--n) * .05s);
}
.lg__type > * {
  opacity: 0;
  transition: opacity .8s var(--ease) 1.1s;
}
.is-drawn .lg__h,
.is-drawn .lg__v {
  transform: none;
}
.is-drawn .lg__shot {
  clip-path: inset(0);
}
.is-drawn .lg__img {
  scale: 1;
}
.is-drawn .lg__board .lg__cell {
  opacity: 1;
  translate: none;
}
.is-drawn .lg__type > * {
  opacity: 1;
}
@media (max-width: 900px) {
  .lg__spread {
    grid-template-columns: 1fr;
    height: auto;
  }
  .lg__shot {
    aspect-ratio: 4 / 5;
  }
  .lg__panel {
    height: min(420px, 110vw);
  }
}
.lg__ticker {
  display: none;
}
@media (max-width: 700px) {
  .lg__shot {
    aspect-ratio: 10 / 9;
  }
  .lg__panel {
    display: none;
  }
  .lg__ticker {
    display: block;
    min-width: 0;
  }
  .lg__row {
    position: relative;
    overflow: hidden;
    -webkit-mask-image:
      linear-gradient(
        90deg,
        transparent,
        #000 48px,
        #000 calc(100% - 48px),
        transparent);
    mask-image:
      linear-gradient(
        90deg,
        transparent,
        #000 48px,
        #000 calc(100% - 48px),
        transparent);
  }
  .lg__row + .lg__row::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(11, 11, 11, .1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s cubic-bezier(.65, 0, .2, 1) .5s;
  }
  .is-drawn .lg__row + .lg__row::before {
    transform: none;
  }
  .lg__track {
    display: flex;
    width: max-content;
    animation: lg-drift var(--t, 30s) linear infinite;
  }
  .lg__track[data-back] {
    animation-direction: reverse;
  }
  /* The script drives the rows (drift, drag and glide) once it runs; the CSS drift is only the fallback. */
  .lg__ticker.is-live .lg__track {
    animation: none;
    will-change: transform;
  }
  .lg__ticker.is-live .lg__row {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
  .lg__track ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .lg__ticker .lg__cell {
    width: 41vw;
    height: 58px;
    border: 0;
    border-right: 1px solid rgba(11, 11, 11, .1);
  }
  .lg__name {
    padding: 10px;
    font-size: 11px;
  }
  .lg__type {
    font-size: 10px;
    padding: 14px;
  }
  .lg__line {
    font-size: 14px;
  }
}
@keyframes lg-drift {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .lg__track {
    animation: none;
  }
  .lg__row {
    overflow-x: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg__img,
  .lg__type,
  .lg__type > *,
  .lg__name,
  .lg__shot,
  .lg__rules i,
  .lg__board .lg__cell,
  .lg__row::before {
    transition: none !important;
  }
}
