.hub {
  --snap: cubic-bezier(0.23, 1, 0.32, 1);
}

.hub-jump {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 12px;
  transition: top 0.4s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease;
}

.hub-jump.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

html:has(.header.is-solid:not(.is-hidden)) .hub-jump {
  top: 80px;
}

.hub-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-jump a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, scale 0.15s var(--snap);
}

.hub-jump a.is-on {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--paper);
}

.hub-jump a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

html.motion .hub-jump {
  animation: page-rise 0.7s var(--ease) 0.18s backwards;
}

.hub-group {
  scroll-margin-top: calc(var(--header) + 72px);
}

.hub-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 24px clamp(48px, 6vw, 112px);
  padding-block: clamp(40px, 4.5vw, 64px);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
}

.hub-group:first-of-type .hub-row {
  background: none;
}

.hub-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hub-no {
  display: flex;
}

.hub-no i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hub-group.is-on .hub-no i {
  background: var(--red);
  color: #fff;
}

.hub-title {
  font-size: clamp(28px, 1.8vw + 12px, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hub-text {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-list li + li {
  border-top: 1px solid var(--line);
}

.hub-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 4px;
  font-size: clamp(19px, 0.7vw + 12px, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transform-origin: 0 50%;
  transition: scale 0.15s var(--snap);
}

.hub-list a > i {
  flex: none;
  font-size: 22px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.hub-list a > span:first-of-type {
  flex: 1;
  min-width: 0;
  transition: translate 0.25s var(--snap);
}

.hub-list a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 12px;
}

.hub-go {
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hub-go i {
  grid-area: 1 / 1;
  transition: translate 0.25s var(--snap);
}

.hub-go i:last-child {
  translate: -160% 160%;
}

.hub-more {
  padding-bottom: var(--section);
}

.hub-product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 32px clamp(32px, 4vw, 64px);
  overflow: hidden;
  padding: 0 0 0 var(--pad);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.hub-product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: var(--pad);
}

.hub-product-title {
  font-size: clamp(26px, 1.4vw + 14px, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hub-product-text {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  text-wrap: pretty;
}

.hub-product .btn {
  margin-top: 12px;
}

.hub-product .btn i {
  font-size: 16px;
  transition: translate 0.25s var(--snap);
}

.hub-scene {
  align-self: stretch;
  min-height: 320px;
  border: 0;
  border-radius: 0;
  background: radial-gradient(60% 75% at 70% 100%, rgba(255, 25, 72, 0.18), transparent 72%);
}

.hub-scene .stage {
  inset: auto 0 -24px var(--pad);
  width: auto;
  max-width: 720px;
  height: 268px;
  margin: 0;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.hub-scene .cols {
  height: 144px;
}

html.motion .hub-scene .fx {
  animation: var(--anim);
  animation-play-state: paused;
}

html.motion .hub-scene.is-live .fx {
  animation-play-state: running;
}

html.motion :is(.hub-jump a, .hub-list a):active {
  scale: 0.985;
}

html:not(.motion) :is(.hub-go i, .hub-product .btn i) {
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .hub-jump a:not(.is-on):hover {
    background: var(--paper-2);
  }

  .hub-list a:hover > i {
    color: var(--red);
  }

  html.motion .hub-list a:hover > span:first-of-type {
    translate: 6px 0;
  }

  .hub-list a:hover .hub-go {
    background: var(--red);
    box-shadow: inset 0 0 0 1.5px var(--red);
    color: #fff;
  }

  html.motion .hub-list a:hover .hub-go i:first-child {
    translate: 160% -160%;
  }

  html.motion .hub-list a:hover .hub-go i:last-child {
    translate: 0 0;
  }

  html.motion .hub-product .btn:hover i {
    translate: 2px -2px;
  }
}

@media (max-width: 1023px) {
  html:has(.header.is-solid:not(.is-hidden)) .hub-jump {
    top: 64px;
  }

  .hub-jump .container {
    padding: 0;
  }

  .hub-jump ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 var(--gutter);
    scrollbar-width: none;
    scroll-padding-inline: var(--gutter);
  }

  .hub-jump ul::-webkit-scrollbar {
    display: none;
  }

  .hub-jump li {
    flex: none;
  }

  .hub-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hub-text {
    max-width: 560px;
    font-size: 16px;
  }

  .hub-product {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0;
  }

  .hub-product-copy {
    padding: var(--pad) var(--pad) 0;
  }

  .hub-scene {
    min-height: 300px;
  }

  .hub-scene .stage {
    inset: auto var(--pad) -24px;
  }
}

@media (max-width: 767px) {
  .hub-jump a {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hub-row {
    padding-block: 36px;
  }

  .hub-no i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 22px;
  }

  .hub-list a {
    gap: 14px;
    min-height: 64px;
    font-size: 18px;
  }

  .hub-list a > i {
    font-size: 20px;
  }

  .hub-go {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .hub-scene {
    min-height: 0;
    padding: 0 var(--pad) var(--pad);
    background: none;
  }

  .hub-scene .stage {
    position: relative;
    inset: auto;
    height: auto;
    border-radius: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
