/* Responsibility: Home animation choreography and final responsive behavior. */

@keyframes confettiDrift {
  from { translate: 0 -4px; rotate: -8deg; }
  to { translate: 6px 7px; rotate: 18deg; }
}

@keyframes heroButtonGradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes heroButtonSheen {
  from { background-position: 100% 50%; }
  to { background-position: -110% 50%; }
}

@media (max-width: 820px) {
  .home-page .qiu-character.qiu-ship {
    display: block;
  }
}

@media (max-width: 1040px) {
  .recruit-hero {
    height: min(820px, calc(100svh - 82px));
    min-height: 730px;
  }

  .recruit-hero-inner {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .recruit-copy h1 {
    font-size: 68px;
  }

  .recruit-copy h1 strong {
    font-size: 54px;
  }

  .character-stage {
    height: 100%;
    min-height: 350px;
  }

  .home-page .jobs-section .section-head {
    min-height: 0;
  }

  .jobs-head-aside {
    width: min(100%, 420px);
    height: 256px;
    margin-top: 32px;
    margin-bottom: -78px;
  }

  .jobs-wave {
    width: 100%;
    height: 256px;
  }

  .qiu-job-image {
    width: 238px;
  }

  .qiu-job-hands {
    bottom: -52px;
    width: 286px;
  }
}

@media (max-width: 820px) {
  .home-page .nav {
    margin: 10px 14px 0;
  }

  .recruit-hero {
    height: auto;
    min-height: 760px;
    padding: 26px 20px 34px;
  }

  .recruit-hero-inner {
    grid-template-rows: auto minmax(360px, 1fr);
    gap: 0;
  }

  .recruit-copy {
    max-width: 720px;
    transform: none;
    will-change: auto;
  }

  .recruit-copy h1 {
    font-size: 64px;
  }

  .recruit-copy h1 strong {
    font-size: 50px;
  }

  .recruit-lead {
    max-width: 620px;
  }

  .character-stage {
    justify-self: center;
    width: min(100%, 760px);
    height: 100%;
    min-height: 360px;
    transform: none;
    will-change: auto;
  }

  .story-heading {
    max-width: 760px;
    margin-left: 0;
  }

  .story-heading h2 {
    font-size: 58px;
  }

  .mission-copy {
    max-width: 760px;
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mission-copy-action {
    transform: none;
  }

  .jobs-heading-copy {
    padding: 24px 20px 0;
    text-align: center;
  }

  .jobs-heading-copy .section-note {
    margin-right: auto;
    margin-left: auto;
  }

  .jobs-head-aside {
    width: min(100%, 400px);
    height: 248px;
    margin-top: 32px;
    margin-bottom: -72px;
  }

  .jobs-wave {
    width: 100%;
    height: 248px;
  }

  .qiu-job-image {
    width: 230px;
  }

  .qiu-job-hands {
    bottom: -50px;
    width: 276px;
  }
}

@media (max-width: 640px) {
  .home-page .nav {
    width: auto;
    padding: 10px 90px 10px 14px;
  }

  .home-page .brand-logo {
    width: min(132px, calc(100vw - 132px));
  }

  .home-page .nav-apply {
    width: auto;
    min-height: 36px;
    padding: 0 12px;
  }

  .confetti-field {
    height: 980px;
  }

  .confetti {
    scale: 0.72;
    opacity: 0.58;
  }

  .confetti.c4,
  .confetti.c6,
  .confetti.c9,
  .confetti.c11,
  .confetti.c13,
  .confetti.c15,
  .confetti.c17,
  .confetti.c18 {
    display: none;
  }

  .recruit-hero {
    min-height: 700px;
    padding: 20px 16px 22px;
  }

  .recruit-kicker {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .recruit-copy h1 {
    margin-top: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 44px;
  }

  .recruit-copy h1 strong {
    margin-top: 6px;
    border-radius: 22px;
    font-size: 0.78em;
  }

  .recruit-lead {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.6;
  }

  .home-page .hero-actions {
    margin-top: 14px;
    grid-template-columns: 1fr 1fr;
  }

  .home-page .hero-actions .btn {
    min-height: 44px;
    padding: 3px 3px 3px 10px;
    border-radius: 18px;
    gap: 7px;
    font-size: 14px;
    white-space: nowrap;
  }

  .home-page .hero-actions .btn-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 14px;
    font-size: 17px;
  }

  .recruit-facts {
    margin-top: 16px;
    padding-top: 12px;
    gap: 8px;
  }

  .recruit-facts div {
    padding-left: 13px;
  }

  .recruit-facts div::before {
    top: 5px;
    width: 7px;
    height: 7px;
  }

  .recruit-facts b {
    font-size: 17px;
  }

  .recruit-facts span {
    font-size: 12px;
  }

  .character-stage {
    width: 100%;
    height: 330px;
    min-height: 330px;
    margin-top: 18px;
  }

  .stage-color {
    top: 4%;
    left: 19%;
    width: 62%;
    height: 80%;
  }

  .stage-color::after {
    right: -8%;
    width: 40%;
  }

  .ship-parallax {
    bottom: -1%;
    width: 112%;
  }

  .doodle-callout {
    width: 88px;
    height: 76px;
  }

  .doodle-callout img,
  .doodle-growth img,
  .doodle-idea img {
    width: 54px;
  }

  .doodle-content {
    top: 20%;
    left: 1%;
  }

  .doodle-review {
    top: 13%;
    right: 0;
  }

  .story-inner {
    padding: 70px 16px 72px;
  }

  .story-heading h2 {
    font-size: 42px;
    line-height: 1.02;
  }

  .mission-copy {
    margin-top: 42px;
  }

  .mission-copy-block p {
    font-size: 16px;
    line-height: 1.82;
  }

  .mission-copy strong {
    font-size: 21px;
  }

  .home-page .jobs-section {
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .home-page .jobs-section h2 {
    font-size: 39px;
  }

  .home-page .jobs-section .section-head {
    min-height: 0;
    margin-bottom: 8px;
  }

  .jobs-heading-copy {
    padding: 18px 8px 0;
    text-align: center;
  }

  .home-page .jobs-section .section-note {
    font-size: 14px;
    line-height: 1.65;
  }

  .jobs-head-aside {
    width: min(100%, 320px);
    height: 205px;
    margin-top: 28px;
    margin-bottom: -58px;
  }

  .jobs-wave {
    width: 100%;
    height: 205px;
  }

  .jobs-dither-canvas {
    top: 12px;
    height: 180px;
  }

  .qiu-job-image {
    bottom: 0;
    width: 188px;
  }

  .qiu-job-hands {
    bottom: -42px;
    width: 226px;
  }

  .home-page .direction {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding: 24px 16px 14px;
    border-radius: 22px;
  }

  .home-page .job-card {
    min-height: 88px;
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 14px;
  }

  .home-page .job-card h4 {
    font-size: 19px;
  }

  .home-page .card-foot {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-page .arrow {
    min-width: 0;
  }

  .home-page .apply-band-inner {
    min-height: 410px;
    padding: 58px 16px;
    grid-template-columns: 1fr;
    align-content: end;
  }

  .home-page .apply-band h2 {
    font-size: 34px;
  }

  .home-page .apply-band {
    min-height: 410px;
  }

  .home-page .apply-band::after {
    background-position: 80% center;
    background-size: auto 92%;
  }

  .home-page .apply-band::before {
    background: linear-gradient(
      90deg,
      rgba(5, 9, 16, 0.96) 0%,
      rgba(5, 9, 16, 0.9) 48%,
      rgba(5, 9, 16, 0.56) 100%
    );
  }

  .home-page .apply-band .btn.light {
    width: 100%;
    justify-self: stretch;
  }

  .home-page .footer-inner {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .home-page .nav,
  .recruit-hero-inner {
    width: 100%;
    max-width: 358px;
    margin-left: 0;
    margin-right: auto;
  }

  .home-page .nav {
    margin-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .confetti,
  .home-page .nav,
  .home-page .recruit-kicker,
  .home-page .recruit-copy h1 span,
  .home-page .recruit-copy h1 strong,
  .home-page .recruit-lead,
  .home-page .hero-actions,
  .home-page .recruit-facts,
  .home-page .stage-color,
  .home-page .ship-parallax,
  .home-page .doodle-callout,
  .home-page .apply-band::after,
  html.reveal-ready [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .home-page .apply-band::after {
    transform: none !important;
    filter: none !important;
  }

  .home-page .hero-primary::before,
  .home-page .hero-actions .btn-icon {
    animation: none !important;
  }

  .home-page .recruit-copy,
  .home-page .character-stage,
  html.reveal-ready [data-reveal] {
    transform: none !important;
  }
}
