/* -------- HOME -------- */
.home-main {
  max-width: 1360px;
  margin: 0 auto;
}

.home-main a {
  border-bottom: none;
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid #fff;
  margin-bottom: 48px;
}

.home-section-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.home-section-head p {
  margin: 0;
  max-width: 40em;
  opacity: 0.75;
}

/* Hero */
.home-hero {
  padding: 12vh 0 18vh;
  margin: 0;
}

.home-hero h1 {
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 15em;
  margin: 0 0 40px;
  text-wrap: balance;
}

.home-hero h1 em {
  font-style: normal;
  color: hotpink;
}

.home-hero h1 em {
  position: relative;
  white-space: nowrap;
}

.hero-emoji {
  /* Positioned by its center, in units of the headline size, then scaled
     down, so the stickers stay pinned to the words at every breakpoint. */
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: inherit;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(0.56);
  pointer-events: none;
  user-select: none;
}



.home-hero-meta {
  max-width: 34em;
  margin-left: calc(100% / 3);
  opacity: 0.75;
}

/* Systems */
.home-systems {
  margin: 0 0 160px;
}

.system-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 120px;
}

.system-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  color: inherit;
}

.system-card-link:hover {
  color: inherit;
}

.system-card-text p {
  margin: 0;
}

.system-card h3 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
  transition: color 200ms ease;
}

.system-card-link:hover h3,
.system-card-link:focus-visible h3 {
  color: hotpink;
}

.system-card-position {
  margin-bottom: 16px !important;
}

.system-card-role {
  opacity: 0.75;
  max-width: 24em;
  margin-bottom: 16px !important;
}

.system-card-tags {
  font-size: 14px;
  opacity: 0.5;
}

.system-card-stage {
  background: var(--stage, #111);
  border-radius: 0.5vw;
  padding: 6%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-card.is-bare .system-card-stage {
  background: none;
  padding: 0;
}

.system-card-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.system-card-stage .image-frame {
  height: 100%;
  background: transparent;
  border-radius: 0;
}

/* Range */
.home-range {
  margin: 0 0 160px;
}

.range-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.range-grid a {
  display: block;
  color: inherit;
}

.range-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}

.range-grid .image-frame {
  aspect-ratio: 1;
}

.range-grid .image-frame img {
  height: 100%;
}

.range-grid span {
  display: block;
  padding-top: 12px;
}

.range-grid a:hover span {
  color: hotpink;
}

/* Experience */
.home-experience {
  margin: 0 0 120px;
}

.experience-list {
  margin: 0 0 40px calc(100% / 3 + 8px);
}

.experience-list div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.experience-list dt {
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.experience-list dd {
  margin: 0;
}

.experience-list strong {
  font-weight: 700;
  margin-right: 8px;
}

.home-links {
  margin-left: calc(100% / 3 + 8px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.home-hero-meta a,
.home-links a {
  border-bottom: 1px solid currentColor;
}

/* Archive */
.home-archive {
  margin: 0 0 80px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  opacity: 0.75;
}

.home-archive h2 {
  font-size: 18px;
  margin: 0;
}

.home-archive p {
  margin: 0;
}

.home-archive a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  .home-section-head,
  .system-card-link,
  .home-archive {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 6vh 0 12vh;
  }

  .home-hero-meta,
  .experience-list,
  .home-links {
    margin-left: 0;
  }

  .system-list {
    gap: 80px;
  }

  .system-card-text {
    order: 2;
  }

  .range-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-card h3 {
    transition: none;
  }
}

/* Cycling collection tile */
.range-cycle {
  display: block;
  position: relative;
  aspect-ratio: 1;
}

.range-cycle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  visibility: hidden;
}

.range-cycle img.is-active {
  visibility: visible;
}
