.intermediate-about-link {
  display: none;
  transition: color 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.deliver-button {
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}

.intermediate-about-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: #0052d9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intermediate-about-link:hover,
.intermediate-about-link:focus-visible {
  color: #0052d9;
}

.intermediate-about-link:hover::after,
.intermediate-about-link:focus-visible::after {
  transform: scaleX(1);
}

/* The first viewport is always fully occupied by the hero. */
.page > .hero {
  height: max(100vh, 100dvh) !important;
  min-height: max(100vh, 100dvh) !important;
}

.hero-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.page > .hero .hero-line {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.page > .hero .hero-bg {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 639px) {
  .page:not(.recruit-page) .desktop-hero-title {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (min-width: 1440px) {
  .intermediate-about-link {
    position: absolute;
    top: 37px;
    right: clamp(24px, 9.72vw, 140px);
    height: 20px;
    display: flex;
    align-items: center;
    color: #000;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
  }

  .why-card div {
    width: 300px;
    overflow: visible;
  }

  .why-card p {
    box-sizing: border-box;
    width: 300px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    line-break: auto;
  }

  .why-card p br {
    display: none;
  }

  .campus-cta h2 {
    font-size: 46px;
    line-height: 55.2px;
    font-weight: 500;
  }

  .page:not(.recruit-page) .footer .footer-inner {
    box-sizing: border-box;
  }

  .process-card p {
    font-size: 16px;
    line-height: 24px;
  }

  .process-card h3 {
    font-size: 24px;
    line-height: 28.8px;
  }
}

/* Homepage-only fixed intermediate layouts. Mobile and desktop are locked. */
@media (min-width: 640px) and (max-width: 1439px) {
  .page {
    --mid-content: 576px;
    --mid-why-columns: 1;
    --mid-colleague-columns: 1;
    --mid-process-columns: 1;
    --mid-hero-height: 560px;
    --mid-hero-title-size: 48px;
    --mid-hero-title-line: 58px;
    --mid-section-title-size: 28px;
    --mid-section-title-line: 34px;
    --mid-why-copy-width: 360px;
    --mid-cta-title-size: 28px;
    --mid-cta-title-line: 34px;
    width: 100%;
    max-width: none;
  }

  .hero {
    height: var(--mid-hero-height);
  }

  .hero-stage {
    inset: auto;
    left: 50%;
    top: 50%;
    width: max(calc(100% + 2px), calc(150.7853dvh + 2px));
    height: auto;
    aspect-ratio: 1440 / 955;
    transform: translate(-50%, -50%);
  }

  .hero-bg {
    object-position: center calc(65% - 60px) !important;
  }

  .topbar {
    height: 94px;
    padding: 24px 0;
  }

  .topbar-inner {
    width: var(--mid-content);
    margin: 0 auto;
  }

  .intermediate-about-link {
    position: absolute;
    top: 29px;
    right: calc((100% - var(--mid-content)) / 2);
    height: 20px;
    display: flex;
    align-items: center;
    color: #000;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
  }

  .hero h1 {
    top: calc(45% - var(--mid-hero-title-line) * 2 - 48px) !important;
    width: var(--mid-content) !important;
    font-size: var(--mid-hero-title-size) !important;
    line-height: var(--mid-hero-title-line) !important;
  }

  .hero .join-cta.deliver-button {
    bottom: 40px;
  }

  .section {
    box-sizing: border-box;
    width: var(--mid-content);
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .section-title h2 {
    font-size: var(--mid-section-title-size);
    line-height: var(--mid-section-title-line);
  }

  .why {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 0;
  }

  .why-grid {
    width: 100%;
    min-height: 0;
    margin-top: 48px;
    grid-template-columns: repeat(var(--mid-why-columns), minmax(0, 1fr));
    grid-template-rows: none;
    gap: 20px;
  }

  .why-card {
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-height: 385px;
    padding: 48px;
    gap: 20px;
  }

  .why-card div {
    width: var(--mid-why-copy-width);
    gap: 20px;
    overflow: visible;
  }

  .why-card h3 {
    width: 100%;
    max-width: 300px;
  }

  .why-card p {
    box-sizing: border-box;
    width: var(--mid-why-copy-width);
    max-width: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    line-break: auto;
  }

  .why-card p br {
    display: none;
  }

  .colleagues {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .colleague-panel {
    width: 100%;
    height: 409px;
    margin-top: 48px;
    gap: 20px;
  }

  .person-card {
    box-sizing: border-box;
    flex: 0 0 calc((100% - (var(--mid-colleague-columns) - 1) * 20px) / var(--mid-colleague-columns));
    width: auto;
    min-width: 0;
  }

  .person-visual,
  .quote-shape {
    width: 100%;
  }

  .quote-shape {
    object-fit: fill;
  }

  .hover-quote {
    box-sizing: border-box;
    width: 100%;
  }

  .hover-quote p {
    width: 270.464px;
  }

  .process {
    min-height: 0;
    padding-bottom: 0;
  }

  .process-grid {
    width: 100%;
    height: auto;
    margin-top: 75px;
    grid-template-columns: repeat(var(--mid-process-columns), minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 42px;
  }

  .process-card {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: 301px;
    padding: 80px 48px 48px;
    gap: 32px;
  }

  .process-card p {
    width: 100%;
    max-width: 230px;
    font-size: 16px;
    line-height: 24px;
  }

  .process-card h3 {
    font-size: 24px;
    line-height: 28.8px;
  }

  .faq {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .faq-list {
    width: 100%;
    height: auto;
    margin-top: 48px;
  }

  .faq-list article {
    height: auto;
    min-height: 145px;
  }

  .faq-list h3 {
    margin-bottom: 24px;
  }

  .campus-cta {
    box-sizing: border-box;
    width: var(--mid-content);
    min-height: 0;
    padding-bottom: 120px;
  }

  .campus-cta h2 {
    white-space: normal;
    font-size: var(--mid-cta-title-size);
    line-height: var(--mid-cta-title-line);
    font-weight: 500;
  }

  .page:not(.recruit-page) .footer {
    box-sizing: border-box;
    height: auto;
    padding: 0;
  }

  .page:not(.recruit-page) .footer .footer-inner {
    box-sizing: border-box;
    width: var(--mid-content);
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: 224px 180px 1fr;
    align-items: center;
    column-gap: 64px;
    row-gap: 32px;
  }

  .page:not(.recruit-page) .footer .copyright {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    white-space: normal;
  }

  .mobile-process-image {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 760px) {
  .page:not(.recruit-page) .colleague-panel .hover-quote {
    right: 0;
    width: 440px;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none !important;
  }

  .page:not(.recruit-page) .footer .copyright {
    flex-wrap: wrap;
  }

  .page:not(.recruit-page) .footer .copyright > :first-child {
    flex: 0 0 100%;
    width: 100%;
  }

}

@media (min-width: 761px) and (max-width: 819px) {
  .page {
    --mid-content: 697px;
    --mid-why-columns: 2;
    --mid-colleague-columns: 2;
    --mid-hero-height: 600px;
    --mid-hero-title-size: 52px;
    --mid-hero-title-line: 62px;
    --mid-why-copy-width: 240px;
    --mid-cta-title-size: 40px;
    --mid-cta-title-line: 48px;
  }

}

@media (min-width: 640px) and (max-width: 819px) {
  .process-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .process-card {
    height: 220px;
    min-height: 220px;
    padding: 56px 24px 24px;
    gap: 0;
  }

  .process-card::after {
    top: 32px;
    width: 22px;
    height: 5.5px;
    margin-left: 0 !important;
    filter: blur(7px);
  }

  .process-card > img,
  .process-card:nth-child(4) > img {
    top: -24px;
    width: 52px;
    height: 59px;
    max-height: none;
    margin-left: 0;
    object-fit: contain;
    transform: translateX(-50%);
  }

  .process-card strong {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 16px;
    line-height: 19.2px;
  }

  .process-card strong span {
    color: var(--blue);
  }

  .process-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 24px;
  }

  .process-card p {
    max-width: 260px;
    font-size: 15px;
    line-height: 24px;
  }

  .process-card p br {
    display: none;
  }
}

@media (min-width: 820px) and (max-width: 889px) {
  .page {
    --mid-content: 756px;
    --mid-why-columns: 2;
    --mid-colleague-columns: 2;
    --mid-process-columns: 2;
    --mid-hero-height: 640px;
    --mid-hero-title-size: 56px;
    --mid-hero-title-line: 67px;
    --mid-section-title-size: 30px;
    --mid-section-title-line: 36px;
    --mid-why-copy-width: 270px;
    --mid-cta-title-size: 44px;
    --mid-cta-title-line: 52.8px;
  }
}

@media (min-width: 890px) and (max-width: 949px) {
  .page {
    --mid-content: 826px;
    --mid-why-columns: 2;
    --mid-colleague-columns: 2;
    --mid-process-columns: 2;
    --mid-hero-height: 680px;
    --mid-hero-title-size: 60px;
    --mid-hero-title-line: 72px;
    --mid-section-title-size: 30px;
    --mid-section-title-line: 36px;
    --mid-why-copy-width: 300px;
    --mid-cta-title-size: 46px;
    --mid-cta-title-line: 55.2px;
  }
}

@media (min-width: 950px) and (max-width: 1199px) {
  .page {
    --mid-content: 886px;
    --mid-why-columns: 3;
    --mid-colleague-columns: 2;
    --mid-process-columns: 4;
    --mid-hero-height: 720px;
    --mid-hero-title-size: 64px;
    --mid-hero-title-line: 77px;
    --mid-section-title-size: 32px;
    --mid-section-title-line: 40px;
    --mid-why-copy-width: 180px;
    --mid-cta-title-size: 46px;
    --mid-cta-title-line: 55.2px;
  }

  .process-card {
    height: auto;
    min-height: 0;
    padding: 80px 24px 32px;
    gap: 32px;
  }

  .process-card h3 {
    width: 100%;
    white-space: nowrap;
  }

  .process-card p {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .page {
    --mid-content: 1120px;
    --mid-why-columns: 3;
    --mid-colleague-columns: 3;
    --mid-process-columns: 4;
    --mid-hero-height: 800px;
    --mid-hero-title-size: 72px;
    --mid-hero-title-line: 86px;
    --mid-section-title-size: 36px;
    --mid-section-title-line: 44px;
    --mid-why-copy-width: 264px;
    --mid-cta-title-size: 46px;
    --mid-cta-title-line: 55.2px;
  }

}

/* Unified card radius across desktop, intermediate, and mobile layouts. */
.why-card,
.hover-quote,
.figma-mobile-quote,
.process-card {
  border-radius: 10px !important;
}

@media (min-width: 640px) {
  .hover-quote {
    transform: none !important;
    transition: opacity 0.32s ease !important;
  }

  .person-card[data-colleague="0"] .hover-quote p {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 270.464px;
    font-size: 14px;
    line-height: 20px;
  }

  .person-card:hover .hover-quote:not(:empty) {
    transform: none !important;
  }
}

@media (max-width: 639px) {
  .colleagues {
    height: auto;
    min-height: 0;
    padding-bottom: 64px;
  }

  .colleague-panel {
    overflow: visible;
  }

  .colleague-panel .hover-quote {
    top: -8px;
  }

  .page:not(.recruit-page) .slider-controls {
    width: 100%;
    max-width: 390px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .slider-controls .arrow {
    flex: 0 0 32px;
    display: grid;
    place-items: center;
  }

  .colleagues .slider-controls .arrow:not(:disabled):hover,
  .colleagues .slider-controls .arrow:not(:disabled):active,
  .colleagues .slider-controls .arrow:not(:disabled):focus-visible {
    transform: none;
  }

  .slider-controls .arrow.prev:not(:disabled) img {
    content: url("https://akoss.bangcdn.net/cms/process-icon-02.svg");
    filter: none;
    transform: scaleX(-1);
  }

  .slider-controls .arrow.next:not(:disabled) img {
    filter: none;
  }
}
