/* Responsibility: Final home-only interaction, mobile layout and media overrides. */

/* Final home interaction overrides */
.home-page .nav-link {
  position: relative;
  isolation: isolate;
  background: transparent;
  transition:
    color 0.3s var(--ease-apple),
    transform 0.34s var(--ease-apple);
}

.home-page .nav-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #f0efec;
  opacity: 0;
  transform: translateY(2px) scale(0.84);
  transition:
    opacity 0.26s var(--ease-apple),
    transform 0.34s var(--ease-apple);
}

.home-page .nav-link:hover {
  background: transparent;
  transform: translateY(-1px);
}

.home-page .nav-link:hover::before,
.home-page .nav-link:focus-visible::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-page .nav-link:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}

.home-page .hero-actions .btn {
  transition:
    transform 0.36s var(--ease-apple),
    box-shadow 0.36s var(--ease-apple),
    background 0.36s var(--ease-apple),
    border-color 0.36s var(--ease-apple);
}

.home-page .hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 18, 14, 0.13);
}

.home-page .hero-primary:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.14s;
}

.home-page .hero-actions .btn-icon {
  transition:
    transform 0.38s var(--ease-apple),
    border-radius 0.34s var(--ease-apple),
    background-position 0.58s var(--ease-apple),
    box-shadow 0.36s var(--ease-apple);
}

.home-page .hero-primary:hover::before {
  animation: heroButtonSheen 1.05s var(--ease-apple) both;
}

.home-page .hero-actions .btn:hover .btn-icon,
.home-page .hero-primary:hover .btn-icon {
  animation: none;
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.08),
    0 5px 12px rgba(17, 17, 17, 0.13);
}

.home-page .apply-band .btn.light {
  transition:
    transform 0.34s var(--ease-apple),
    box-shadow 0.34s var(--ease-apple),
    background-color 0.3s var(--ease-apple);
}

.home-page .apply-band .btn.light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.home-page .apply-band .btn.light:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.14s;
}

.home-page .apply-band .btn.light span {
  display: inline-block;
  transition: transform 0.34s var(--ease-apple);
}

.home-page .apply-band .btn.light:hover span {
  transform: translate(3px, -3px);
}

.home-page .job-card {
  transition:
    color 0.28s var(--ease-apple),
    background 0.32s var(--ease-apple),
    border-color 0.32s var(--ease-apple),
    transform 0.34s var(--ease-apple),
    box-shadow 0.34s var(--ease-apple);
}

.home-page .job-card:hover {
  padding-right: 14px;
  padding-left: 14px;
}

.home-page .arrow {
  transition: transform 0.34s var(--ease-apple);
}

.home-page .arrow::after {
  transform: translateX(-5px) scale(0.82);
  transition:
    opacity 0.26s var(--ease-apple),
    transform 0.36s var(--ease-apple),
    box-shadow 0.34s var(--ease-apple);
}

.home-page .job-card:hover .arrow::after,
.home-page .job-card:focus-visible .arrow::after {
  transform: translateX(0) scale(1);
  box-shadow: 0 8px 16px rgba(38, 31, 20, 0.1);
}

.qiu-character.qiu-ship {
  transform: translateZ(0);
  backface-visibility: hidden;
  filter:
    drop-shadow(0 0 0.7px rgba(247, 244, 237, 0.94))
    drop-shadow(0 12px 12px rgba(42, 34, 24, 0.1));
}

.qiu-job-image,
.qiu-job-hands {
  filter: drop-shadow(0 12px 18px rgba(42, 34, 24, 0.08));
}

@media (hover: none) {
  .home-page .nav-link::before {
    display: none;
  }

  .home-page .job-card:active,
  .home-page .hero-primary:active {
    transform: scale(0.985);
  }
}

/* Final mobile layout overrides. Kept last so older campaign rules cannot pull the hero left. */
@media (max-width: 640px) {
  .home-page .nav {
    width: calc(100% - 24px);
    max-width: none;
    margin: 10px auto 0;
  }

  .recruit-hero {
    min-height: 650px;
    padding: 18px 14px 22px;
  }

  .recruit-hero-inner {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    grid-template-rows: auto 290px;
  }

  .recruit-copy,
  .recruit-kicker,
  .recruit-lead,
  .home-page .hero-actions,
  .recruit-facts {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .recruit-copy h1 {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 7px;
    font-size: clamp(38px, 11.4vw, 44px);
    white-space: nowrap;
  }

  .recruit-copy h1 strong {
    margin-top: 0;
    border-radius: 20px;
  }

  .recruit-lead {
    max-width: 35em;
    font-size: 15px;
    line-height: 1.65;
    text-wrap: pretty;
  }

  .home-page .hero-actions {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .home-page .hero-actions .btn {
    width: fit-content;
    min-width: 178px;
    padding-left: 16px;
  }

  .recruit-facts {
    width: 100%;
    gap: 4px;
  }

  .recruit-facts div {
    padding: 16px 2px 0;
    text-align: center;
  }

  .recruit-facts div::before {
    top: 2px;
    left: calc(50% - 4px);
  }

  .recruit-facts b {
    font-size: 18px;
  }

  .recruit-facts span {
    margin-top: 3px;
    font-size: 11.5px;
  }

  .character-stage {
    width: 100%;
    height: 290px;
    min-height: 290px;
    margin-top: 20px;
    overflow: visible;
  }

  .stage-color {
    top: 8%;
    left: 7%;
    width: 86%;
    height: 76%;
  }

  .ship-parallax {
    bottom: 0;
    width: min(108%, 520px);
    aspect-ratio: 16 / 9;
  }

  .qiu-ship-poster {
    display: block;
    opacity: 1;
    image-rendering: auto;
    filter:
      drop-shadow(0 0 0.75px rgba(247, 244, 237, 0.98))
      drop-shadow(0 12px 12px rgba(42, 34, 24, 0.11));
    transition: none;
  }

  .doodle-callout {
    width: 56px;
    height: 56px;
  }

  .doodle-callout img,
  .doodle-growth img,
  .doodle-idea img {
    width: 44px;
  }

  .doodle-content {
    top: 30%;
    left: -2px;
  }

  .doodle-review {
    top: 24%;
    right: -2px;
  }

  .doodle-growth,
  .doodle-idea {
    display: none;
  }

  .home-page .confetti {
    display: none;
    animation: none;
  }

  .home-page .confetti.c1,
  .home-page .confetti.c11 {
    display: block;
    scale: 0.58;
    opacity: 0.42;
  }

  .home-page .confetti.c1 {
    top: 17%;
    left: -12px;
  }

  .home-page .confetti.c11 {
    top: 43%;
    right: -16px;
  }

  .mission-orbit-shape {
    display: none;
  }

}

@media (max-width: 360px) {
  .recruit-copy h1 {
    gap: 5px;
    font-size: 36px;
  }

  .recruit-copy h1 strong {
    border-radius: 17px;
  }
}

/* Compact hero CTA: the yellow control stays locked to the pill while the
   whole component supplies the tactile response. */
.home-page .hero-actions .hero-primary {
  min-height: 54px;
  padding: 4px 4px 4px 24px;
  gap: 16px;
  border-radius: 27px;
}

.home-page .recruit-copy {
  transform: translate3d(0, var(--copy-parallax, 0px), 0);
}

.home-page .hero-actions .hero-primary .btn-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: linear-gradient(125deg, var(--lime), #edff45 24%, var(--sun) 46%, var(--coral) 68%, var(--sky) 86%, var(--lime));
  background-position: 0% 50%;
  background-size: 320% 320%;
  font-size: 24px;
  animation: none !important;
  transform: none !important;
  transition:
    background-position 0.58s var(--ease-apple),
    box-shadow 0.24s var(--ease-apple),
    filter 0.24s var(--ease-apple);
}

.home-page .hero-actions .hero-primary:hover {
  transform: none;
}

.home-page .hero-actions .hero-primary:active {
  transform: scale(0.98);
}

.home-page .hero-actions .hero-primary:hover .btn-icon,
.home-page .hero-actions .hero-primary:focus-visible .btn-icon,
.home-page .hero-actions .hero-primary:active .btn-icon {
  animation: none !important;
  transform: none !important;
  background-position: 100% 50%;
}

/* Keep the two polygon confetti pieces outside the spaceship media bounds.
   This prevents them from visually tracing the poster rectangle on refresh. */
.home-page .confetti.c6 {
  top: 68%;
  left: 5%;
}

.home-page .confetti.c7 {
  top: 45%;
  right: 5%;
  left: auto;
}

/* A sub-pixel feather softens the high-contrast cutout edge without visibly
   blurring the face or ship details. Rotation was removed from this layer so
   the browser no longer re-samples the edge at a new angle on every frame. */
.home-page .ship-motion {
  filter: blur(0.28px);
  backface-visibility: hidden;
}

/* The jobs character is a three-layer composite: body behind the cards,
   independent hands above them. Both image layers share the same center and
   responsive scale so the wrist anchors stay connected. */
.home-page .qiu-job-image,
.home-page .qiu-job-hands {
  width: 324px;
  bottom: -73px;
}

.home-page .qiu-job-hands {
  filter: none;
}

/* Fade the four visual layers themselves instead of .jobs-wave. Fading the
   wrapper creates a temporary stacking context that traps the hands behind the
   first card, so they appear to pop in only after the transition finishes. */
.home-page .jobs-section:not(.is-composite-ready) .jobs-dither-canvas,
.home-page .jobs-section:not(.is-composite-ready) .qiu-job-image,
.home-page .jobs-section:not(.is-composite-ready) .qiu-job-hands,
.home-page .jobs-section:not(.is-composite-ready) #jobs-root > .direction:first-child {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.home-page .jobs-section.is-composite-ready .qiu-job-image,
.home-page .jobs-section.is-composite-ready .qiu-job-hands,
.home-page .jobs-section.is-composite-ready #jobs-root > .direction:first-child {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.home-page .jobs-section.is-composite-ready .jobs-dither-canvas {
  visibility: visible;
  opacity: 0.9;
  transition: opacity 0.24s cubic-bezier(0.2, 0, 0, 1);
}

@media (max-width: 640px) {
  .home-page .job-meta .hot-text {
    flex: 0 0 auto;
    margin-inline-start: auto;
    white-space: nowrap;
  }

  .home-page .arrow::after {
    display: none;
  }

  .home-page .job-card:hover .arrow {
    transform: none;
  }
}

@media (max-width: 1040px) {
  .home-page .qiu-job-image,
  .home-page .qiu-job-hands {
    width: 310px;
    bottom: -70px;
  }
}

@media (max-width: 820px) {
  .home-page .qiu-job-image,
  .home-page .qiu-job-hands {
    width: 299px;
    bottom: -68px;
  }
}

@media (max-width: 640px) {
  .home-page .ship-motion {
    filter: blur(0.2px);
  }

  .home-page .qiu-job-image,
  .home-page .qiu-job-hands {
    width: 244px;
    bottom: -55px;
  }
}

/* Homepage footer platform links: compact on desktop, touch-scrollable on narrow screens. */
.home-page .footer-platform-footer {
  padding: 0 22px 22px;
}

.home-page .footer-platform-footer .footer-inner {
  min-height: 94px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 24px;
}

.home-page .footer-platform-footer .footer-brand {
  width: 130px;
  height: auto;
  justify-self: start;
  filter: invert(1) grayscale(1) brightness(3);
}

.home-page .footer-platforms {
  min-width: 0;
  justify-self: center;
}

.home-page .footer-platforms-scroll {
  max-width: 100%;
  padding-block: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-page .footer-platforms-scroll::-webkit-scrollbar {
  display: none;
}

.home-page .footer-platform-list {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-page .footer-platform-link {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.home-page .footer-platform-link:not(.is-pending):hover,
.home-page .footer-platform-link:not(.is-pending):focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

.home-page .footer-platform-footer .footer-platform-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(0.18) saturate(0.82);
  opacity: 0.92;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.home-page .footer-platform-link:not(.is-pending):hover .footer-platform-icon,
.home-page .footer-platform-link:not(.is-pending):focus-visible .footer-platform-icon {
  filter: none;
  opacity: 1;
}

.home-page .footer-platform-link.is-pending {
  cursor: default;
  opacity: 0.9;
}

.home-page .footer-platform-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.home-page .footer-recruit-meta {
  justify-self: end;
  text-align: right;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 980px) {
  .home-page .footer-platform-footer .footer-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand meta"
      "platform platform";
    row-gap: 18px;
  }

  .home-page .footer-platform-footer .footer-brand {
    grid-area: brand;
  }

  .home-page .footer-platforms {
    grid-area: platform;
    width: 100%;
    justify-self: stretch;
  }

  .home-page .footer-recruit-meta {
    grid-area: meta;
  }
}

@media (max-width: 640px) {
  .home-page .footer-platform-footer {
    padding: 0 14px 24px;
  }

  .home-page .footer-platform-footer .footer-inner {
    min-height: 0;
    padding-top: 22px;
    gap: 14px;
  }

  .home-page .footer-platform-footer .footer-brand {
    width: 116px;
  }

  .home-page .footer-recruit-meta {
    max-width: 170px;
    font-size: 12px;
    line-height: 1.45;
  }

  .home-page .footer-platform-list {
    gap: 7px;
  }

  .home-page .footer-platform-link {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  .home-page .footer-platform-footer .footer-platform-icon {
    width: 23px;
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .footer-platform-link,
  .home-page .footer-platform-icon {
    transition: none;
  }
}
