.livery-landing {
  --livery-landing-surface: var(--ln-paper, #fff);
  --livery-landing-accent: var(--ln-accent-dark, #73582b);
  --livery-app-map: url('/assets/livery-app-map-white-520.webp');
  --livery-app-events: url('/assets/livery-app-events-white-520.webp');
  --livery-landing-gutter: clamp(20px, 5.2vw, 75px);
  background: var(--livery-landing-surface);
  color: #141615;
  font-family: var(--ln-font);
}

[data-livery-theme="midnight"] .livery-landing {
  --livery-app-map: url('/assets/livery-app-map-midnight-520.webp');
  --livery-app-events: url('/assets/livery-app-events-midnight-520.webp');
}

.livery-landing-shell {
  width: min(1320px, calc(100% - var(--livery-landing-gutter) * 2));
  margin-inline: auto;
}

.livery-landing h1,
.livery-landing h2 {
  margin: 0;
  color: #141615;
  font-family: inherit;
  font-weight: 720;
  letter-spacing: -.04em;
}

.livery-landing h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.livery-landing :is(h1, h2) em {
  color: var(--livery-landing-accent);
  font-style: normal;
}

.livery-landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.livery-landing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 29%;
  background:
    linear-gradient(90deg, var(--livery-landing-surface) 0%, transparent 36%),
    linear-gradient(180deg, var(--livery-landing-surface) 0%, transparent 26%, transparent 72%, var(--livery-landing-surface) 100%),
    url('/assets/livery-philadelphia-dusk.webp') 50% 46% / cover;
  background:
    linear-gradient(90deg, var(--livery-landing-surface) 0%, transparent 36%),
    linear-gradient(180deg, var(--livery-landing-surface) 0%, transparent 26%, transparent 72%, var(--livery-landing-surface) 100%),
    image-set(url('/assets/livery-philadelphia-dusk-1296.avif') type('image/avif'), url('/assets/livery-philadelphia-dusk.webp') type('image/webp')) 50% 46% / cover;
  content: '';
}

.livery-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
  min-height: 625px;
  padding-block: 18px 26px;
}

.livery-hero-copy {
  position: relative;
  z-index: 1;
}

.livery-hero-copy > .livery-landing-label::before {
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-inline-end: .48em;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  content: '';
}

.livery-hero-copy h1 {
  font-size: clamp(2.85rem, 5.4vw, 4.5rem);
  line-height: 1.05;
}

.livery-hero-copy h1 em {
  position: relative;
  display: inline-block;
}

.livery-hero-copy h1 em::after {
  position: absolute;
  right: 3%;
  bottom: -.16em;
  left: 18%;
  height: .14em;
  border-top: 2px solid var(--ln-accent);
  border-radius: 50%;
  transform: rotate(-1.6deg);
  content: '';
}

.livery-hero-copy > p:not(.livery-landing-label) {
  max-width: 390px;
  margin: 31px 0 0;
  font-size: clamp(1rem, 1.42vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
}

.livery-hero-actions {
  margin-top: 34px;
}

.livery-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  border: 1px solid var(--ln-action);
  border-radius: 12px;
  background: var(--ln-action);
  color: var(--ln-on-action);
  font-size: .9rem;
  font-weight: 680;
  text-decoration: none;
}

@media (width > 1024px) {
  [data-discovery-only] .livery-hero-actions.livery-cta-pair {
    justify-content: flex-start;
    margin-inline-start: 0;
  }
}

.livery-id-label-compact {
  display: none;
}

@media (max-width: 48rem) {
  .livery-id-label-full { display: none; }
  .livery-id-label-compact { display: inline; }
}

.livery-home-button:hover {
  background: var(--ln-action-hover);
  color: var(--ln-on-action);
}

@media (hover: hover) and (forced-colors: none) {
  .livery-home-button:hover:not(:focus-visible) {
    border-color: transparent;
    box-shadow: var(--livery-hover-shadow);
  }
}

.livery-home-button-secondary {
  border-color: #e5e8e7;
  background: var(--ln-secondary-action);
  color: var(--ln-on-secondary-action);
}

.livery-home-button-secondary:hover {
  background: var(--ln-secondary-action-hover);
  color: var(--ln-on-secondary-action);
}

.livery-home-button:focus-visible,
.livery-hero-city:focus-visible,
.livery-home-step:focus-visible {
  outline: 2px solid var(--ln-accent-dark);
  outline-offset: 3px;
}

.livery-hero-city {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-top: 27px;
  color: inherit;
  text-decoration: none;
}

.livery-hero-city strong,
.livery-hero-city small {
  display: block;
}

.livery-hero-city strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.livery-hero-city:hover strong {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.livery-hero-city small {
  color: #444b49;
  font-size: .8rem;
}

.livery-hero-city-images {
  display: flex;
  flex: none;
  padding-left: 1px;
}

.livery-hero-city-images img {
  width: 46px;
  height: 46px;
  margin-left: -1px;
  border: 2px solid var(--livery-landing-surface);
  border-radius: 50%;
  object-fit: cover;
}

.livery-hero-city-images img + img {
  margin-left: -13px;
}

.livery-hero-art {
  --hero-pointer-x: 0;
  --hero-pointer-y: 0;
  --hero-map-angle: -15deg;
  position: relative;
  isolation: isolate;
  justify-self: center;
  container-type: inline-size;
  width: min(107%, 704px);
  aspect-ratio: 1.19;
}

.livery-hero-device {
  position: absolute;
  aspect-ratio: 39 / 80;
  overflow: hidden;
  border: clamp(3px, .57vw, 8px) solid #1e2120;
  border-radius: 12% / 6%;
  background: var(--ln-white) var(--device-image) center top / cover no-repeat;
  box-shadow: 0 0 0 1px #777a77, 0 14px 36px rgb(22 29 24 / 27%);
}

.livery-hero-device-map {
  --device-image: var(--livery-app-map);
  z-index: 1;
  top: 15%;
  left: 3%;
  width: 34%;
  transform: translate(calc(var(--hero-pointer-x) * 4px), calc(var(--hero-pointer-y) * 3px))
    rotate(calc(var(--hero-map-angle) + var(--hero-pointer-x) * .35deg));
}

.livery-hero-device-app {
  --device-image: var(--livery-app-events);
  z-index: 3;
  top: 2%;
  left: 31.5%;
  width: 38%;
  transform: translate(calc(var(--hero-pointer-x) * -2px), calc(var(--hero-pointer-y) * -1.5px));
}

.livery-hero-card {
  position: absolute;
  z-index: 2;
  top: 20%;
  left: 66%;
  width: 32%;
  border-radius: .9rem;
  transform: translate(calc(var(--hero-pointer-x) * 4px), calc(var(--hero-pointer-y) * 3px))
    rotate(calc(7deg + var(--hero-pointer-x) * .45deg));
}

.livery-id-specimen {
  --member-card-width: 100%;
  --member-card-radius: clamp(.5rem, 1.3vw, 1rem);
  --member-card-padding: clamp(.35rem, 1.15vw, 1rem);
  --member-card-gap: clamp(.2rem, .65vw, .55rem);
}

.livery-hero-art :is(.livery-hero-device, .livery-hero-card):focus-visible {
  z-index: 5;
  outline: 2px solid var(--ln-accent-dark);
  outline-offset: 4px;
}

.livery-art-note {
  position: absolute;
  z-index: 4;
  margin: 0;
  color: var(--ln-accent-dark);
  font: 400 clamp(.95rem, 1.8vw, 1.6rem)/.97 "Gochi Hand", cursive;
  pointer-events: none;
  transform: rotate(-7deg);
}

.livery-art-note::after {
  display: block;
  width: 65%;
  height: .25em;
  margin: .14em 0 0 18%;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  transform-origin: left center;
  content: '';
}

.livery-hero-note {
  top: 4%;
  right: 1%;
  padding: .45em .6em;
  border-radius: .5em;
  background: var(--ln-white);
  font-size: clamp(.85rem, 3.8cqi, 1.35rem);
}

.livery-hero-map-credit {
  position: absolute;
  z-index: 4;
  bottom: 1%;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .35rem;
  border-radius: 4px;
  background: var(--ln-white);
  color: var(--ln-muted);
  font-size: .64rem;
}

.livery-landing-sections {
  display: grid;
  gap: clamp(24px, 3.3vw, 48px);
  padding-block: clamp(34px, 3.55vw, 52px) clamp(36px, 5vw, 75px);
}

.livery-explore-sections {
  display: grid;
  gap: inherit;
  min-width: 0;
}

.livery-landing :is(#explore, #partners) {
  scroll-margin-block-start: var(--landing-sticky-top);
}

.livery-home-guides .livery-section-heading {
  align-items: center;
  margin-bottom: clamp(.75rem, 1.8vw, 1.25rem);
}

.livery-home-guides .livery-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
}

.livery-landing-label {
  margin: 0 0 .45rem;
  color: #087956;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.livery-member-feature > div:first-child > p {
  max-width: 34ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(.96rem, 1.55vw, 1.125rem);
  line-height: 1.55;
}

.livery-id-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline-start: .7rem;
  color: var(--ln-accent-dark);
  font-size: .9rem;
  font-weight: 680;
}

.livery-id-guide-link:is(:hover, :focus-visible) { text-decoration: underline; }

.livery-city-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.45rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.2rem, 4.5vw, 4rem);
}

.livery-city-hero-copy { display: grid; gap: .9rem; justify-items: start; }
.livery-city-hero .livery-city-hero-back { margin-inline-start: 0; }
.livery-city-hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
}
.livery-city-hero p { max-width: 39ch; color: var(--ln-muted); font-size: 1.05rem; }
.livery-city-hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.65;
  border-radius: 1rem;
  object-fit: cover;
}

@media (width < 44rem) {
  .livery-city-hero { grid-template-columns: minmax(0, 1fr); }
}

.livery-steps-heading {
  margin: .2rem 0 1.4rem;
}

.livery-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.livery-home-step {
  display: block;
  height: 100%;
  padding: .8rem;
  border: 1px solid #e8ebe9;
  border-radius: 18px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.livery-home-step:hover h3 {
  text-decoration: underline;
  text-underline-offset: .15em;
}

@media (hover: hover) and (forced-colors: none) {
  .livery-home-step:hover:not(:focus-visible) {
    border-color: transparent;
    box-shadow: var(--livery-hover-shadow);
  }
}

.livery-home-step-art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2.1;
  border-radius: 12px;
  background: #e9f2ee;
}

.livery-home-step-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livery-home-step-art > span:first-child {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ln-action);
  color: var(--ln-on-action);
  font-weight: 700;
}

.livery-step-specimen {
  width: clamp(2.35rem, 33%, 6.25rem);
  margin: .45rem auto 0;
  rotate: -9deg;
}

.livery-step-specimen .livery-id-specimen {
  --member-card-padding: clamp(.14rem, .5vw, .4rem);
  --member-card-gap: .12rem;
  --member-card-radius: .3rem;
}

.livery-home-step > h3,
.livery-home-step > p {
  margin: .75rem .2rem 0;
}

.livery-home-step > p {
  margin-block: .3rem .4rem;
  color: var(--ln-muted);
}

.livery-member-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
  overflow: hidden;
  padding: clamp(22px, 3.3vw, 45px);
  border-radius: 22px;
  background: #e6edf7;
}

.livery-member-feature h2 {
  text-wrap: balance;
}

.livery-member-feature-art {
  position: relative;
  display: grid;
  min-height: clamp(16rem, 29vw, 23rem);
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background:
    linear-gradient(120deg, rgb(230 237 247 / 12%), rgb(230 237 247 / 35%)),
    url('/assets/livery-philadelphia-dusk.webp') center / cover;
  background:
    linear-gradient(120deg, rgb(230 237 247 / 12%), rgb(230 237 247 / 35%)),
    image-set(url('/assets/livery-philadelphia-dusk-1296.avif') type('image/avif'), url('/assets/livery-philadelphia-dusk.webp') type('image/webp')) center / cover;
}

.livery-member-feature-card {
  width: clamp(7rem, 35%, 12rem);
  margin-block: 1.1rem;
  rotate: 7deg;
}

.livery-member-note {
  inset: auto auto 12% 9%;
  padding: .4em .55em;
  border-radius: .5em;
  background: rgb(16 16 16 / 79%);
  color: var(--livery-ivory, #f2f1ed);
}

.livery-card-media {
  display: block;
  overflow: hidden;
}

.livery-landing .livery-listing-callout h2 {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

.livery-landing .livery-category-section .livery-browse-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.livery-category-section .livery-browse-card {
  border-radius: 18px;
}

.livery-category-section .livery-browse-card img {
  aspect-ratio: 1.65;
}

.livery-category-section .livery-browse-card-copy {
  align-content: center;
}

.livery-category-section > .livery-home-button {
  margin-top: .9rem;
}

@media (max-width: 1024px) {
  .livery-landing-hero::before {
    display: none;
  }

  .livery-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 7vw, 72px);
    min-height: auto;
    padding-block: 40px 30px;
  }

  .livery-hero-copy {
    justify-self: center;
    width: min(100%, 37.5rem);
  }

  .livery-hero-art {
    --hero-map-angle: -10deg;
    width: min(100%, 590px);
  }

  .livery-hero-art::before {
    position: absolute;
    z-index: -1;
    inset: -10px calc(50% - 50vw) -18px;
    background:
      linear-gradient(180deg, var(--livery-landing-surface), transparent 25%, transparent 74%, var(--livery-landing-surface)),
      url('/assets/livery-philadelphia-dusk.webp') center / cover;
    background:
      linear-gradient(180deg, var(--livery-landing-surface), transparent 25%, transparent 74%, var(--livery-landing-surface)),
      image-set(url('/assets/livery-philadelphia-dusk-1296.avif') type('image/avif'), url('/assets/livery-philadelphia-dusk.webp') type('image/webp')) center / cover;
    content: '';
  }

  .livery-landing .livery-category-section .livery-browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .livery-hero-art::before {
    background-image:
      linear-gradient(180deg, var(--livery-landing-surface), transparent 25%, transparent 74%, var(--livery-landing-surface)),
      url('/assets/livery-philadelphia-dusk-480.webp');
    background-image:
      linear-gradient(180deg, var(--livery-landing-surface), transparent 25%, transparent 74%, var(--livery-landing-surface)),
      image-set(url('/assets/livery-philadelphia-dusk-768.avif') type('image/avif'), url('/assets/livery-philadelphia-dusk-480.webp') type('image/webp'));
  }

  .livery-member-feature-art {
    background-image:
      linear-gradient(120deg, rgb(230 237 247 / 12%), rgb(230 237 247 / 35%)),
      url('/assets/livery-philadelphia-dusk-480.webp');
    background-image:
      linear-gradient(120deg, rgb(230 237 247 / 12%), rgb(230 237 247 / 35%)),
      image-set(url('/assets/livery-philadelphia-dusk-768.avif') type('image/avif'), url('/assets/livery-philadelphia-dusk-480.webp') type('image/webp'));
  }

  .livery-hero-copy > .livery-landing-label {
    margin-bottom: .65rem;
    font-size: .7rem;
    line-height: 1.3;
  }

  .livery-hero-copy h1 {
    font-size: clamp(2.15rem, 9.2vw, 2.65rem);
  }

  .livery-hero-copy > p:not(.livery-landing-label) {
    margin-top: 21px;
    font-size: .875rem;
    line-height: 1.6;
  }

  .livery-hero-actions {
    margin-top: 20px;
  }

  .livery-hero-city {
    min-height: 2.75rem;
    gap: .6rem;
    margin-top: 18px;
  }

  .livery-hero-city-images img {
    width: 38px;
    height: 38px;
  }

  .livery-hero-grid {
    gap: clamp(22px, 6vw, 35px);
    padding-block: clamp(32px, 10.25vw, 42px) 24px;
  }

  .livery-hero-art {
    width: min(100%, 420px);
    aspect-ratio: 1.12;
  }

  .livery-hero-note {
    top: 2%;
    right: 0;
  }

  .livery-landing .livery-category-section .livery-browse-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .livery-category-section .livery-browse-card {
    display: grid;
    grid-template-columns: clamp(4.5rem, 20vw, 6rem) minmax(0, 1fr);
    min-height: 5rem;
    border-radius: .85rem;
  }

  .livery-category-section .livery-browse-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .livery-category-section .livery-browse-card-copy {
    padding: .68rem .72rem;
  }

  .livery-category-section .livery-browse-card-copy > div > span {
    font-size: .84rem;
  }

  .livery-steps-grid,
  .livery-member-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .livery-home-step {
    display: grid;
    grid-template-columns: clamp(4.5rem, 19vw, 7rem) minmax(0, 1fr);
    grid-template-areas: 'photo title' 'photo copy';
    grid-template-rows: auto 1fr;
    gap: .32rem .75rem;
  }

  .livery-home-step-art {
    grid-area: photo;
    aspect-ratio: auto;
    min-height: 4.5rem;
  }

  .livery-home-step > h3 { grid-area: title; margin: 0; }
  .livery-home-step > p { grid-area: copy; margin: 0; }

  .livery-member-feature-art {
    min-height: 220px;
  }

  .livery-member-note {
    left: 5%;
    bottom: 8%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-landing-entering] {
    animation: livery-art-enter .42s cubic-bezier(.22, .61, .36, 1) both;
  }

  [data-landing-entering] .livery-art-note::after {
    animation: livery-note-draw .26s .12s cubic-bezier(.22, .61, .36, 1) both;
  }

  .livery-browse-arrow {
    transition: translate .35s cubic-bezier(.22, .61, .36, 1);
  }

  .livery-browse-card:focus-visible .livery-browse-arrow { translate: 3px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .livery-browse-card:hover .livery-browse-arrow { translate: 3px; }
}

@keyframes livery-art-enter {
  from { opacity: .76; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes livery-note-draw {
  from { scale: .7 1; }
  to { scale: 1 1; }
}

@media (width < 34rem) {
  .livery-hero-city {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
    margin-top: 1rem;
  }

  .livery-hero-city-images img {
    width: 43px;
    height: 43px;
  }
}
