/* Graphic design: each campaign hangs on its own washing line, in its own colours. Scrolling walks you along it. */

.lines-how {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lines-how i { display: block; width: 34px; height: 1px; background: currentColor; opacity: .6; }

.lines { position: relative; }
.line-world { position: relative; height: var(--h, 300vh); }
.line-pin {
  position: sticky;
  top: var(--bar-h, 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100svh - var(--bar-h, 64px));
  background: var(--wbg);
  color: var(--wfg);
  transition: background .6s ease, color .6s ease;
}
.line-head {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: clamp(18px, 4vh, 44px) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
@media (min-width: 1024px) {
  .line-head { grid-template-columns: auto 1fr; align-items: end; column-gap: 56px; padding-inline: 88px; }
}
.line-kicker {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  color: var(--wacc);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.line-kicker i { display: block; width: 28px; height: 1px; background: currentColor; }
.line-name {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.line-name em { font-style: normal; opacity: .55; }
.line-desc { max-width: 46ch; font-size: 15.5px; line-height: 1.55; opacity: .78; }
.line-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; }
.line-tags li {
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--wfg) 22%, transparent);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  list-style: none;
}

/* the wire, the pegs and the prints */
.line-wire { position: relative; flex: 1; min-height: 0; }
.line-track {
  position: absolute;
  top: clamp(26px, 5vh, 54px);
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 46px);
  padding-inline: max(16px, 7vw);
  will-change: transform;
}
.line-track::before {
  content: "";
  position: absolute;
  top: 9px;
  right: -100vw;
  left: -100vw;
  height: 1.5px;
  background: color-mix(in srgb, var(--wfg) 55%, transparent);
  box-shadow: 0 5px 6px -3px rgba(0, 0, 0, .25);
}
.print {
  position: relative;
  flex: none;
  height: var(--ph);
  padding-top: 2px;
  transform-origin: 50% 0;
  will-change: transform;
}
.print__peg {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 2;
  width: 14px;
  height: 30px;
  margin-left: -7px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(90deg, #b98d5c, #d9b384 45%, #a97d4f);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.print__peg::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 3px;
  left: 3px;
  height: 3px;
  border-radius: 2px;
  background: #8a8580;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.print__paper {
  display: block;
  height: 100%;
  margin-top: 14px;
  padding: clamp(5px, .5vw, 8px);
  border-radius: 2px;
  background: #fbfaf7;
  cursor: zoom-in;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 24px 40px -18px rgba(0, 0, 0, .45), 0 50px 80px -40px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease-soft), box-shadow .45s ease;
}
.print__paper img { display: block; width: auto; height: 100%; background: #ddd; }
.print.dark .print__paper { background: #151414; }
.print:hover .print__paper,
.print__paper:focus-visible {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 34px 54px -18px rgba(0, 0, 0, .5), 0 60px 90px -40px rgba(0, 0, 0, .4);
}
/* a carousel hangs as a little stack of prints */
.print.deck .print__paper { position: relative; }
.print.deck .print__paper::before,
.print.deck .print__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2px;
  background: #efece6;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4);
}
.print.deck .print__paper::before { transform: translate(9px, 7px) rotate(2.2deg); }
.print.deck .print__paper::after { background: #e4e0d8; transform: translate(17px, 13px) rotate(4.2deg); }
.print__badge {
  position: absolute;
  bottom: clamp(10px, 1vw, 14px);
  left: clamp(10px, 1vw, 14px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
}
.line-foot {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) clamp(14px, 2.6vh, 26px) max(16px, env(safe-area-inset-left));
}
@media (min-width: 1024px) { .line-foot { padding-inline: 88px; } }
.line-bar {
  flex: 1;
  overflow: hidden;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--wfg) 16%, transparent);
}
.line-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wacc);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}
.line-hint {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .6;
}

/* ---------- lightbox ---------- */
.lbx {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  visibility: hidden;
  background: rgba(12, 11, 11, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.lbx.open { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.lbx__top { display: flex; align-items: center; justify-content: space-between; padding: 16px max(16px, 3vw); }
.lbx__title { font-size: 14px; font-weight: 600; }
.lbx__title span { margin-left: 10px; font-weight: 500; opacity: .55; }
.lbx__close { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; font-size: 20px; line-height: 1; }
.lbx__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 max(16px, 7vw);
}
.lbx__stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  transition: opacity .2s ease, transform .35s var(--ease-soft);
}
.lbx__stage img.swap { opacity: 0; transform: scale(.985); }
.lbx__nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-size: 20px;
}
.lbx__nav:hover { background: rgba(255, 255, 255, .14); }
.lbx__nav.prev { left: max(12px, 2vw); }
.lbx__nav.next { right: max(12px, 2vw); }
.lbx__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 16px; }
.lbx__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.lbx__dots i.on { background: #fff; }

@media (max-width: 767.98px) {
  .lbx__nav { display: none; }
  .lbx__stage { padding: 0 12px; }
  .line-head { gap: 6px; }
  .line-name { font-size: clamp(34px, 11vw, 52px); white-space: normal; }
  .line-desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
  .line-tags { display: none; }
  .line-track { gap: 22px; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .print__paper, .lbx__stage img { transition: none; }
}
