/*
 * Current recruitment TOP
 *
 * The former fixed-stage implementation is isolated under legacy/OLD-top.
 * Ordinary content is
 * laid out in document flow; absolute positioning is reserved for art-directed
 * composites and section-owned decoration.
 */

body {
  --font-sans: "Noto Sans JP Top", "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Nishihara Display", "Noto Sans JP Top", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-family: var(--font-sans);
}

.front-page--refactor {
  --preview-max: 1440px;
  --preview-wide-inset: 24px;
  --preview-content: 1224px;
  --preview-gutter: 108px;
  --preview-gap: 24px;
  --preview-section-top: 120px;
  --preview-section-bottom: 120px;
  --preview-card: 392px;
  --front-environment-background: url("../../assets/images/front/environment-bg.webp");
  --front-environment-background-color: url("../../assets/images/front/environment-bg-color.webp");
  /* MV prototype timeline: hold 0.25s, then 1→2 1.0s, 2→3 0.5s,
     3→4 0.2s, 4→5 0.8s. */
  --front-hero-word-delay: 0.25s;
  --front-hero-word-duration: 1s;
  --front-hero-copy-first-duration: 0.5s;
  --front-hero-copy-second-duration: 0.2s;
  --front-hero-people-duration: 0.8s;
  /* Start the catch as STRIVE finishes. This keeps the opening pause soft
     while making the catch feel more responsive than the previous 0.35s hold. */
  --front-hero-copy-first-delay: 1.25s;
  --front-hero-copy-second-delay: 1.75s;
  --front-hero-people-delay: 2.3s;
  --front-hero-ui-delay: 2.85s;
  --front-hero-ui-duration: 0.25s;
  /* Keep both text marquees at the same visual velocity as the factory
     gallery. Their loop lengths differ, so each needs its own duration. */
  --front-message-marquee-duration: 108.2s;
  --front-movie-marquee-duration: 86.5s;
  overflow: clip;
  background: #fff;
}

.front-page--refactor .u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.front-page--refactor .front-section {
  position: relative;
  width: 100%;
  overflow: clip;
}

.front-page--refactor .front-stage {
  position: relative;
  top: auto;
  left: auto;
  width: min(100%, var(--preview-max));
  margin-inline: auto;
  transform: none;
}

.front-page--refactor .c-section-heading {
  top: auto;
}

/* Hero: art-directed composite */
.front-page--refactor .front-hero {
  min-height: 1120px;
  background: var(--color-cream);
}

.front-page--refactor .front-hero__stage {
  height: 1120px;
}

.front-page--refactor .front-hero__art {
  position: absolute;
  top: 0;
  left: 720px;
  width: 1440px;
  height: 1120px;
  transform: translateX(-50%);
  transform-origin: top center;
}

.front-page--refactor .front-hero__blue-shape {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}

.front-page--refactor .front-hero__blue-shape--tablet,
.front-page--refactor .front-hero__blue-shape--mobile { display: none; }

.front-page--refactor .front-hero__word {
  position: absolute;
  z-index: 1;
  top: -2.946429%;
  left: 50%;
  width: 105.416667%;
  max-width: none;
  height: 26.785714%;
  transform: translateX(-50%);
  pointer-events: none;
}

.front-page--refactor .front-hero__group-photo {
  position: absolute;
  z-index: 3;
  top: -2.946429%;
  left: 30.138889%;
  width: 71.805556%;
  max-width: none;
  height: 95.178571%;
  pointer-events: none;
}

.front-page--refactor .front-hero__title {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.front-page--refactor .front-hero__title-outline--desktop {
  position: absolute;
  top: 33.214286%;
  left: 1.666667%;
  display: block;
  width: 37.168889%;
  height: 26.392857%;
}

.front-page--refactor .front-hero__title-outline--mobile { display: none; }

.front-page--refactor .front-hero__title-line,
.front-page--refactor .front-hero__title-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}

.front-page--refactor .front-hero__title-line { overflow: hidden; }

/* The supplied outline SVG has a transparent row gap between the two lines
   (133.5-145.5px on a 295.6px canvas). Split inside that gap so the exact
   glyph spacing and the rotated exclamation mark remain untouched. */
.front-page--refactor .front-hero__title-art--first { clip-path: inset(0 0 54% 0); }
.front-page--refactor .front-hero__title-art--second { clip-path: inset(49% 0 0 0); }

.front-page--refactor .front-hero__title-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.front-page--refactor .front-hero__news {
  position: absolute;
  z-index: 4;
  top: 62.5%;
  left: 24px;
  display: flex;
  align-items: center;
  width: 447px;
  height: 44px;
  gap: 8px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--color-blue);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.front-page--refactor .front-hero__news b {
  box-sizing: border-box;
  display: block;
  width: auto;
  min-width: 45px;
  max-width: 120px;
  height: 17px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0 4px;
  border-radius: 4px;
  background: #fff;
  color: var(--color-blue);
  font-family: var(--font-latin);
  font-style: italic;
  line-height: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-page--refactor .front-hero__news span {
  overflow: hidden;
  flex: 1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-page--refactor .front-hero__news-copy-mobile {
  display: none;
}

.front-page--refactor .front-hero__scroll {
  --front-hero-scroll-line-length: 404px;
  position: absolute;
  /* The transformed art wrapper contains this layer below the blue curve. */
  z-index: -1;
  top: 60%;
  right: 1.597222%;
  width: 1.944444%;
  height: 36.160714%;
  color: var(--color-blue);
}

.front-page--refactor .front-hero__scroll-label {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 28px;
  max-width: none;
  height: 52px;
  overflow: visible;
}

.front-page--refactor .front-hero__scroll-label text {
  fill: currentColor;
  font-family: "SegoeUIBlack-Italic", "Segoe UI Black", "Segoe UI", var(--font-latin);
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
}

@media (min-width: 768px) {
  .front-page--refactor .front-hero__scroll-label text { font-family: "Nishihara Scroll", var(--font-latin); }
}

.front-page--refactor .front-hero__scroll-line {
  position: absolute;
  top: 0;
  left: 1.5px;
  display: block;
  width: 1px;
  height: var(--front-hero-scroll-line-length);
  border-radius: 999px;
  background: var(--color-blue);
}

.front-page--refactor .front-hero__scroll-line::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-coral);
  transform: translateX(-50%);
  content: "";
}

/* On desktop, the MV artwork scales as one 1440:1120 composition. Header
   controls remain viewport-owned and the news pill keeps its readable
   447x44 size; only its placement follows the artwork. This is intentionally
   scoped to the art wrapper, never to the page or footer typography. */
@media (min-width: 1100px) {
  .front-page--refactor .front-hero { min-height: 0; }
  .front-page--refactor .front-hero__stage {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1440 / 1120;
  }
  .front-page--refactor .front-hero__art {
    left: 50%;
    width: 100%;
    height: 100%;
  }

  .front-page--refactor .front-hero__scroll {
    --front-hero-scroll-line-length: 28.055556vw;
  }

  .front-page--refactor .front-hero__scroll-label {
    width: 100%;
    height: 12.839506%;
  }

  .front-page--refactor .front-hero__scroll-line {
    left: calc(0.138889vw - 0.5px);
  }
}

/* Keep the native 1440x1120 artboard exact when a classic scrollbar reduces
   only the document layout area. The section clips the scrollbar-side 15px,
   while all design coordinates remain based on the supplied 1440px SVG. */
@media (min-width: 1440px) and (max-width: 1455px) {
  .front-page--refactor .front-hero__stage,
  .front-page--refactor .front-hero__art {
    width: 1440px;
    height: 1120px;
  }

  .front-page--refactor .front-hero__stage { aspect-ratio: auto; }
  .front-page--refactor .front-hero__art { left: 720px; }
  .front-page--refactor .front-hero__scroll { --front-hero-scroll-line-length: 404px; }
}

/* Message */
.front-page--refactor .front-message {
  overflow: visible;
  background: var(--color-blue);
  color: #fff;
}

.front-page--refactor .front-message__stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--preview-gap);
  row-gap: 0;
  padding: 0 var(--preview-gutter);
}

.front-page--refactor .front-message__photos {
  position: absolute;
  z-index: 2;
  top: -165px;
  left: var(--preview-gutter);
  width: 496px;
  height: 526px;
}

.front-page--refactor .front-message__photo {
  position: absolute;
  display: block;
  max-width: none;
}

.front-page--refactor .front-message__photo--large {
  top: 0;
  left: 0;
  width: 288px;
  height: 396px;
  border-radius: 16px;
}

.front-page--refactor .front-message__photo--small {
  right: 0;
  bottom: 0;
  width: 264px;
  height: 264px;
  border-radius: 16px;
}

.front-page--refactor .front-message__content {
  position: relative;
  grid-column: 7 / -1;
  min-height: 581px;
  padding-top: 153px;
}

.front-page--refactor .front-message__title-art {
  position: absolute;
  top: -67px;
  left: 0;
  display: block;
  width: 555px;
  max-width: none;
  height: 180px;
}

.front-page--refactor .front-message__lead {
  position: relative;
  padding-left: 64px;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
}

.front-page--refactor .front-message__lead::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 56px;
  height: 1px;
  background: #fff;
  content: "";
}

.front-page--refactor .front-message__body {
  margin-top: 34px;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.1em;
}

.front-page--refactor .front-message__body p + p {
  margin-top: 32px;
}

.front-page--refactor .front-message__marquee {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 114px;
  left: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 8%);
  font-family: "Segoe UI", var(--font-latin);
  font-size: 60px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.front-page--refactor .front-message__marquee-track,
.front-page--refactor .front-movie__marquee-track {
  display: flex;
  width: max-content;
}

.front-page--refactor .front-message__marquee-track {
  animation: preview-message-marquee var(--front-message-marquee-duration) linear infinite;
}

.front-page--refactor .front-message__marquee-track span,
.front-page--refactor .front-movie__marquee-track span {
  flex: 0 0 auto;
}

.front-page--refactor .front-message__group-logos {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 240fr) minmax(0, 384fr) minmax(0, 340fr) minmax(0, 260fr);
  width: calc(100% + (var(--preview-gutter) * 2));
  margin-left: calc(-1 * var(--preview-gutter));
  padding-inline: max(24px, calc((100% + (var(--preview-gutter) * 2) - 1224px) / 2));
  box-sizing: border-box;
  background: #fff;
}

.front-page--refactor .front-message__group-company {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 119px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 21px 12px 23px;
  box-sizing: border-box;
}

.front-page--refactor .front-message__group-company + .front-message__group-company::before {
  position: absolute;
  top: 39px;
  left: 0;
  width: 2px;
  height: 40px;
  background: #f6f6f6;
  content: "";
}

.front-page--refactor .front-message__group-company img { display: block; max-width: 100%; height: auto; }
.front-page--refactor .front-message__group-company--nishihara img { width: 156px; }
.front-page--refactor .front-message__group-company--management img { width: 286px; }
.front-page--refactor .front-message__group-company--engineering img { width: 266px; }
.front-page--refactor .front-message__group-company--rebit img { width: 184px; }
.front-page--refactor .front-message__group-company--rebit span { margin-top: 14px; color: #1a1a1a; font-size: 12px; font-weight: 400; line-height: 18px; white-space: nowrap; }

@keyframes preview-message-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Movie */
.front-page--refactor .front-movie {
  background: var(--color-blue);
  color: #fff;
}

.front-page--refactor .front-movie__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 205px;
}

.front-page--refactor .front-movie__marquee {
  position: absolute;
  z-index: 0;
  top: 349px;
  left: 50%;
  width: 100vw;
  overflow: hidden;
  font-family: var(--font-latin);
  font-size: 60px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.front-page--refactor .front-movie__marquee-track {
  animation: preview-marquee var(--front-movie-marquee-duration) linear infinite;
}

.front-page--refactor .front-movie__frame {
  --movie-inset-block: 23px;
  --movie-inset-inline: 23px;
  position: relative;
  z-index: 1;
  display: block;
  width: min(1016px, calc(100% - 48px));
  aspect-ratio: 1016 / 572;
  /* YouTube requires a player viewport of at least 200px in each direction. */
  min-height: 248px;
  padding: var(--movie-inset-block) var(--movie-inset-inline);
  border: 1px solid #fff;
  border-radius: 2px;
}

.front-page--refactor .front-movie__poster,
.front-page--refactor .front-movie__player {
  position: absolute;
  top: var(--movie-inset-block);
  left: var(--movie-inset-inline);
  display: block;
  width: calc(100% - var(--movie-inset-inline) * 2);
  height: calc(100% - var(--movie-inset-block) * 2);
  border: 0;
  background: #000;
}
.front-page--refactor .front-movie__poster img { width: 100%; height: 100%; object-fit: contain; }
.front-page--refactor .front-movie__poster:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.front-page--refactor .front-movie__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 56px solid #fff;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 60%));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.front-page--refactor .front-movie .c-arrow-link { position: relative; z-index: 1; margin-top: 35px; }

@keyframes preview-marquee {
  to { transform: translateX(-50%); }
}

/* Strengths */
.front-page--refactor .front-strengths {
  overflow: visible;
  padding: 42px 0 var(--preview-section-bottom);
  border-radius: 40px 40px 0 0;
  background: var(--color-cream);
}

.front-page--refactor .front-strengths__stage {
  padding-inline: var(--preview-gutter);
}

.front-page--refactor .front-strengths > .front-stage > .c-section-heading {
  margin-bottom: 26px;
}

@media (min-width: 1100px) {
  .front-page--refactor .front-strengths > .front-stage > .c-section-heading {
    /* The heading box extends 8px below the title line box: 8px + 56px = 64px. */
    margin-bottom: 56px;
  }
}

.front-page--refactor .front-strength {
  position: relative;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  column-gap: 80px;
  align-items: start;
}

.front-page--refactor .front-strength + .front-strength,
.front-page--refactor .front-strengths__features + .front-strength {
  margin-top: var(--preview-section-top);
}

.front-page--refactor .front-strength::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 1px;
  background: linear-gradient(to right, #f06745 120px, var(--color-line) 120px);
  content: "";
}

.front-page--refactor .front-strength__number {
  grid-column: 1;
  display: flex;
  align-items: center;
  margin-top: 50px;
  color: var(--color-coral);
  font-family: var(--font-latin);
  font-size: 60px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.front-page--refactor .front-strength__number::after {
  display: inline-block;
  width: 100px;
  margin: 0 0 0 12px;
  color: var(--color-line);
  content: "The\A BEETLE GROUP\A strengths.";
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  white-space: pre;
}

.front-page--refactor .front-strength > h3 {
  grid-column: 1;
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.75;
}

.front-page--refactor .front-strength > p:not(.front-strength__number) {
  grid-column: 1;
  margin-top: 2px;
  font-size: 16px;
  line-height: 2;
}

.front-page--refactor .front-strength__map-panel,
.front-page--refactor .front-strength__gallery,
.front-page--refactor .front-strength__services {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.front-page--refactor .front-strength__map-panel {
  width: 704px;
  padding: 13px 26px;
  border-radius: 2px;
  background: #fff;
}

.front-page--refactor .front-strength__map-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.front-page--refactor .front-strength__gallery {
  width: calc(100vw - (50vw - 612px) - 520px);
  max-width: 812px;
  height: 320px;
  overflow: hidden;
}

.front-page--refactor .front-strength__gallery-track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: preview-strength-gallery 48s linear infinite;
}

.front-page--refactor .front-strength__gallery img {
  width: 288px;
  height: 320px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
}

@keyframes preview-strength-gallery {
  to { transform: translateX(calc(-50% - 4px)); }
}

.front-page--refactor .front-strengths__features {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 80px;
  margin-top: 40px;
  padding: 63px 48px 57px 39px;
  border-radius: 2px;
  background: #fff;
  min-height: 485px;
}

.front-page--refactor .front-strengths__features-visual {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
}

.front-page--refactor .front-strengths__features ol {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 5px;
}

.front-page--refactor .front-strengths__feature {
  display: flex;
  min-height: 90px;
  align-items: flex-start;
  color: var(--color-blue);
}

.front-page--refactor .front-strengths__feature-icon {
  display: grid;
  width: 120px;
  height: 90px;
  flex: 0 0 120px;
  place-items: center;
  border-radius: 45px;
  color: var(--color-blue);
  background: rgb(51 62 222 / 10%);
}

.front-page--refactor .front-strengths__feature-icon svg { display: block; width: 46px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.2; }
.front-page--refactor .front-strengths__feature--yellow { color: #f2c832; }
.front-page--refactor .front-strengths__feature--yellow .front-strengths__feature-icon { color: #f2c832; background: rgb(239 211 109 / 10%); }
.front-page--refactor .front-strengths__feature--yellow .front-strengths__feature-icon svg { width: 58px; }
.front-page--refactor .front-strengths__feature--sky { color: #7dccf3; }
.front-page--refactor .front-strengths__feature--sky .front-strengths__feature-icon { color: #7dccf3; background: rgb(125 204 243 / 10%); }
.front-page--refactor .front-strengths__feature--sky .front-strengths__feature-icon svg { width: 52px; }
.front-page--refactor .front-strengths__feature-copy { min-width: 0; margin-left: 24px; }
.front-page--refactor .front-strengths__feature-heading { display: flex; align-items: baseline; gap: 12px; }
.front-page--refactor .front-strengths__feature-heading b { font-family: var(--font-latin); font-size: 24px; font-weight: 400; line-height: 1; }
.front-page--refactor .front-strengths__feature-heading h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.front-page--refactor .front-strengths__feature-copy p { margin-top: 3px; color: var(--color-ink); font-size: 16px; line-height: 2; }

.front-page--refactor .front-strength--it {
  grid-template-rows: 204px auto auto;
  align-content: start;
}

.front-page--refactor .front-strength--it .front-strength__number { z-index: 1; grid-row: 1; margin-top: 150px; }
.front-page--refactor .front-strength--it h3 { grid-row: 2; margin-top: 37px; white-space: nowrap; }
.front-page--refactor .front-strength--it > p:not(.front-strength__number) { grid-row: 3; margin-top: 16px; }
.front-page--refactor .front-strength__it-visual { grid-column: 1; grid-row: 1; width: 320px; height: 164px; margin: 40px 0 0 120px; border-radius: 16px; object-fit: cover; }

.front-page--refactor .front-strength__services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 704px;
  gap: 16px 24px;
  padding: 64px;
  border-radius: 2px;
  background: #fff;
}

.front-page--refactor .front-strength__services > span { display: grid; height: 100px; place-items: center; border: 1px solid #ededed; border-radius: 2px; }
.front-page--refactor .front-strength__services img { display: block; max-width: 100%; object-fit: contain; }
.front-page--refactor .front-strength__service-logo--bee-netx { width: 196px; }
.front-page--refactor .front-strength__service-logo--bee-bid { width: 140px; }
.front-page--refactor .front-strength__service-logo--dustalk { width: 154px; }
.front-page--refactor .front-strength__service-logo--rebit-japan { width: 181px; }

/* Interview */
.front-page--refactor .front-interview {
  padding: var(--preview-section-top) 0 var(--preview-section-bottom);
  background: #fff;
}

.front-page--refactor .front-interview__stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--preview-gap);
  padding-inline: var(--preview-gutter);
}

.front-page--refactor .front-interview > .front-stage > .c-section-heading,
.front-page--refactor .front-interview__description {
  grid-column: 1 / -1;
}

.front-page--refactor .front-interview__description { margin-top: 25px; font-size: 16px; }
.front-page--refactor .front-interview__viewport {
  --interview-card-height: 588px;
  --interview-hover-clearance: 8px;
  --interview-viewport-gap: 56px;
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: 100vw;
  height: calc(var(--interview-card-height) + (var(--interview-hover-clearance) * 2));
  margin: calc(var(--interview-viewport-gap) - var(--interview-hover-clearance)) 0 calc(-1 * var(--interview-hover-clearance)) calc(50% - 50vw);
  padding-block: var(--interview-hover-clearance);
  overflow: hidden;
}
.front-page--refactor .front-interview__slots { --interview-main-left: max(108px, calc((100vw - 1224px) / 2)); position: relative; z-index: 1; width: 100%; height: 100%; }
.front-page--refactor .front-interview-card { position: absolute; bottom: 0; width: 360px; height: 540px; overflow: hidden; border-radius: 16px; background: #fff; color: #fff; transform-origin: center; transition: transform 0.35s ease; }
.front-page--refactor .front-interview-card--feature { width: 392px; height: 588px; }
.front-page--refactor .front-interview-card[data-interview-slot="-1"] { left: calc(var(--interview-main-left) - 384px); }
.front-page--refactor .front-interview-card[data-interview-slot="0"] { left: var(--interview-main-left); }
.front-page--refactor .front-interview-card[data-interview-slot="1"] { left: calc(var(--interview-main-left) + 416px); }
.front-page--refactor .front-interview-card[data-interview-slot="2"] { left: calc(var(--interview-main-left) + 800px); }
.front-page--refactor .front-interview-card[data-interview-slot="3"] { left: calc(var(--interview-main-left) + 1184px); }
.front-page--refactor .front-interview-card a { position: relative; display: block; width: 100%; height: 100%; }
.front-page--refactor .front-interview-card__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.front-page--refactor .front-interview-card__media-track { display: flex; width: 100%; height: 100%; will-change: transform; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.front-page--refactor .front-interview-card__media-track.is-immediate { transition: none; }
.front-page--refactor .front-interview-card__media-track img { display: block; width: 100%; max-width: none; height: 100%; flex: 0 0 100%; object-fit: cover; }
.front-page--refactor .front-interview-card__body { position: absolute; inset: 0; }
.front-page--refactor .front-interview-card__body::before { position: absolute; right: 0; bottom: 0; left: 0; height: 120px; background: center / 100% 100% no-repeat url("../../assets/images/front/interview-wave.webp"); content: ""; }
.front-page--refactor .front-interview-card--feature .front-interview-card__body::before { height: 180px; background-image: url("../../assets/images/front/interview-wave-feature.svg"); }
.front-page--refactor .front-interview-card__copy { position: absolute; inset: 0; }
.front-page--refactor .front-interview-card__copy.is-entering { animation: front-interview-copy-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes front-interview-copy-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.front-page--refactor .front-interview-card__arrow { position: absolute; right: 16px; bottom: 16px; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #fff; color: var(--color-blue); }
.front-page--refactor .front-interview-card__copy p { position: absolute; top: 435px; left: 24px; width: 330px; font-size: 20px; font-weight: 500; line-height: 30px; }
.front-page--refactor .front-interview-card:not(.front-interview-card--feature) .front-interview-card__copy p { display: none; }
.front-page--refactor .front-interview-card__copy h3 { position: absolute; top: 451px; left: 24px; font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: 0.1em; }
.front-page--refactor .front-interview-card__copy small { position: absolute; top: 495px; left: 24px; font-size: 14px; line-height: 20px; }
.front-page--refactor .front-interview-card--feature .front-interview-card__copy h3 { top: 512px; }
.front-page--refactor .front-interview-card--feature .front-interview-card__copy small { top: 548px; left: 24px; }
.front-page--refactor .front-interview-card--feature .front-interview-card__arrow { width: 64px; height: 64px; }
.front-page--refactor .front-interview-card__arrow .c-arrow-icon,
.front-page--refactor .front-interview__controls .c-arrow-icon { width: 16px; height: 10px; }
.front-page--refactor .front-interview-card__meta-mobile { display: none; }

.front-page--refactor .front-interview__controls {
  --interview-progress-position: 0%;
  grid-column: 1 / 7;
  display: flex;
  align-self: start;
  align-items: center;
  margin-top: 48px;
}

.front-page--refactor .front-interview__controls::before { width: 288px; max-width: 288px; height: 4px; flex: 1 1 288px; border-radius: 2px; background-color: #ededed; background-image: url("../../assets/images/front/interview-progress-thumb.svg"); background-position: var(--interview-progress-position) center; background-repeat: no-repeat; background-size: 28px 4px; transition: background-position 0.7s cubic-bezier(0.22, 1, 0.36, 1); content: ""; }
.front-page--refactor .front-interview__controls.is-progress-resetting::before { transition: none; }
.front-page--refactor .front-interview__controls p { width: 80px; flex: 0 0 80px; margin-left: 24px; color: var(--color-line); font-family: var(--font-latin); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: 0.2em; }
.front-page--refactor .front-interview__controls p span { color: var(--color-coral); }
.front-page--refactor .front-interview__controls button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; margin-left: 24px; place-items: center; border-radius: 50%; background: #ededed; box-shadow: 0 0 0 0 transparent; transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.3s ease-in; }
.front-page--refactor .front-interview__controls button + button { margin-left: 8px; }
.front-page--refactor .front-interview__controls button:first-of-type .c-arrow-icon { transform: rotate(180deg); }
.front-page--refactor .front-interview__controls button:last-child { background: var(--color-blue); color: #fff; }
.front-page--refactor .front-interview__controls button:focus-visible { background: var(--color-blue-hover); color: #fff; box-shadow: 0 0 0 2px var(--color-blue-hover); }
.front-page--refactor .front-interview__controls button:first-of-type:focus-visible .c-arrow-icon { animation: arrow-spin-counterclockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }
.front-page--refactor .front-interview__controls button:last-child:focus-visible .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }
.front-page--refactor .front-interview .c-arrow-link { grid-column: 10 / -1; justify-self: end; margin-top: 40px; }

.front-page--refactor .front-interview-card:has(> a:focus-visible) { box-shadow: 0 0 0 3px #f2c832; transform: rotate(-1deg); }
.front-page--refactor .front-interview-card:has(> a:focus-visible) .front-interview-card__arrow { transform: scale(1.05); }
.front-page--refactor .front-interview-card:has(> a:focus-visible) .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

/* Culture */
.front-page--refactor .front-culture {
  background: var(--color-cream);
}

.front-page--refactor .front-culture__stage {
  display: grid;
  grid-template-columns: 524px minmax(0, 1fr);
  min-height: 910px;
  gap: 80px;
  padding-right: var(--preview-gutter);
  overflow: hidden;
  border-radius: 0 40px 0 0;
}

.front-page--refactor .front-culture__reels {
  /* Match the 48s factory-gallery velocity (1480px / 48s), rather than
     forcing the different-length culture tracks into the same duration. */
  --culture-slide-duration-1: 54.4s;
  --culture-slide-duration-2: 51.6s;
  position: relative;
  width: 524px;
  height: 910px;
  overflow: hidden;
}
.front-page--refactor .front-culture__reel { position: absolute; width: 254px; }
.front-page--refactor .front-culture__reel--1 { top: 19px; left: 24px; }
.front-page--refactor .front-culture__reel--2 { top: -30px; left: 294px; }
.front-page--refactor .front-culture__reel-track,
.front-page--refactor .front-culture__reel-sequence { display: flex; flex-direction: column; gap: 16px; }
.front-page--refactor .front-culture__reel--1 .front-culture__reel-track { animation: preview-culture-down var(--culture-slide-duration-1) linear infinite; }
.front-page--refactor .front-culture__reel--2 .front-culture__reel-track { animation: preview-culture-up var(--culture-slide-duration-2) linear infinite; }
.front-page--refactor .front-culture__reel-image { display: block; width: 254px; max-width: none; flex: 0 0 auto; border-radius: 16px; }
.front-page--refactor .front-culture__reel-image > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.front-page--refactor .front-culture__reel-image--tall { height: 260px; }
.front-page--refactor .front-culture__reel-image--wide { height: 175px; }

@keyframes preview-culture-down {
  from { transform: translateY(calc(-50% - 8px)); }
  to { transform: translateY(0); }
}

@keyframes preview-culture-up {
  to { transform: translateY(calc(-50% - 8px)); }
}

.front-page--refactor .front-culture__content {
  width: 100%;
  padding-top: var(--preview-section-top);
}

.front-page--refactor .front-culture__description { margin-top: 15px; font-size: 16px; line-height: 2; }
.front-page--refactor .front-culture__description-row { display: block; }
.front-page--refactor .front-culture__description-row > span + span::before { content: " "; }
.front-page--refactor .front-culture__topics { position: relative; display: flex; flex-direction: column; width: 100%; margin-top: 51px; padding: 17px 60px 16px; border-radius: 2px; background: #fff; }
.front-page--refactor .front-culture__quote { position: absolute; z-index: 1; display: block; width: 32px; height: 24px; color: var(--color-coral); pointer-events: none; }
.front-page--refactor .front-culture__quote--open { top: -16px; left: 8px; }
.front-page--refactor .front-culture__quote--close { right: 8px; bottom: -16px; }
.front-page--refactor .front-culture__quote .c-quote-mark { display: block; width: 32px; height: 24px; overflow: visible; }
.front-page--refactor .front-culture__topics a { min-height: 94px; padding: 15px 0; border-bottom: 1px solid #ededed; text-align: center; }
.front-page--refactor .front-culture__topics a:last-of-type { border-bottom: 0; }
.front-page--refactor .front-culture__topics small { display: block; padding: 2px 8px; border-radius: 2px; background: var(--color-line); color: #fff; font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.front-page--refactor .front-culture__topics a:nth-of-type(1) small { width: 152px; }
.front-page--refactor .front-culture__topics a:nth-of-type(2) small { width: 193px; }
.front-page--refactor .front-culture__topics a:nth-of-type(3) small { width: 124px; }
/* XD: badge tops 32/129/223px and dividers 113/207px within the panel. */
.front-page--refactor .front-culture__topics strong { display: block; margin-top: 12px; font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: 0.1em; }
.front-page--refactor .front-culture__topics a:nth-of-type(2) strong { margin-top: 9px; }
.front-page--refactor .front-culture__topics strong em { font: inherit; }
.front-page--refactor .front-culture__mobile-break { display: none; }
.front-page--refactor .front-culture__topics a:focus-visible strong { color: var(--color-blue); }
.front-page--refactor .front-culture .c-arrow-link { margin: 59px 0 0 auto; }

/* The 1440px artboard reserves a 24px white gutter at the right edge. */
@media (min-width: 1100px) {
  .front-page--refactor .front-culture {
    /* 1440px -> 1920px: 24px -> 80px right gutter, 24px -> 160px media inset. */
    --culture-panel-right-inset: clamp(24px, calc(11.666667vw - 144px), 80px);
    --culture-slide-left-inset: clamp(24px, calc(28.333333vw - 384px), 160px);
    --culture-stage-left: max(0px, calc((100vw - var(--preview-max)) / 2));
    isolation: isolate;
    background: #fff;
  }

  .front-page--refactor .front-culture::before {
    position: absolute;
    z-index: 0;
    inset: 0 var(--culture-panel-right-inset) 0 0;
    border-radius: 0 40px 0 0;
    background: var(--color-cream);
    content: "";
  }

  .front-page--refactor .front-culture__stage {
    width: min(calc(100% - var(--culture-panel-right-inset)), calc(var(--preview-max) - var(--preview-wide-inset)));
    grid-template-columns: 548px minmax(0, 1fr);
    gap: 80px;
    margin-right: 0;
    margin-left: var(--culture-stage-left);
    padding-right: 84px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    z-index: 1;
  }

  .front-page--refactor .front-culture__reels {
    position: absolute;
    top: 0;
    left: calc(var(--culture-slide-left-inset) - var(--culture-stage-left) - 24px);
    width: 548px;
    overflow: visible;
  }

  .front-page--refactor .front-culture__content { grid-column: 2; }

  .front-page--refactor .front-culture__reel {
    top: 24px;
    height: 862px;
    overflow: hidden;
  }

  .front-page--refactor .front-culture__reel--1 { left: 24px; }
  .front-page--refactor .front-culture__reel--2 { left: 294px; }

  .front-page--refactor .front-culture__reel-image { border-radius: 16px; }
}

/* Environment */
.front-page--refactor .front-environment {
  isolation: isolate;
  padding-top: 440px;
  background: #fff;
}

.front-page--refactor .front-environment__backdrop {
  --environment-image-position: center -180px;
  --environment-image-size: 100% auto;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 480px;
  background: var(--environment-image-position) / var(--environment-image-size) no-repeat;
}

.front-page--refactor .front-environment.has-deferred-background .front-environment__backdrop {
  background-image: var(--front-environment-background);
}

.front-page--refactor .front-environment__backdrop::after {
  position: absolute;
  inset: 0;
  background: var(--environment-image-position) / var(--environment-image-size) no-repeat;
  content: "";
  opacity: 0;
  transition: opacity 1.2s ease;
}
.front-page--refactor .front-environment.has-deferred-background .front-environment__backdrop::after { background-image: var(--front-environment-background-color); }
.front-page--refactor .front-environment.is-active .front-environment__backdrop::after { opacity: 1; }

@media (min-width: 1456px) {
  .front-page--refactor .front-environment__backdrop {
    /* Once the artboard plus its reserved desktop gutter is exceeded, keep
       the 1440px composition's visual center in view as the image grows. */
    --environment-image-position: center calc(240px - 29.166667vw);
  }
}

.front-page--refactor .front-environment__stage { z-index: 1; padding-inline: 24px; }
.front-page--refactor .front-environment__panel { position: relative; padding: var(--preview-section-top) max(24px, calc((100% - var(--preview-content)) / 2)) 437px; border-radius: 40px 40px 0 0; background: #fff; }
.front-page--refactor .front-environment__description { margin-top: 17px; font-size: 16px; }
.front-page--refactor .front-environment__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--preview-gap); margin-top: 38px; }
.front-page--refactor .front-environment-card {
  min-height: 201px;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fff;
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.25s ease;
}
.front-page--refactor .front-environment-card a { position: relative; display: block; min-height: 199px; padding: 16px; }
.front-page--refactor .front-environment-card__index { --environment-index-top: 17px; --environment-index-size: 40px; position: absolute; inset: 0; z-index: 2; }
.front-page--refactor .front-environment-card__number { position: absolute; top: var(--environment-index-top); left: 14px; color: var(--color-coral); font-family: var(--font-latin); font-size: var(--environment-index-size); font-weight: 500; font-style: italic; line-height: 1; }
.front-page--refactor .front-environment-card small { position: absolute; top: calc(var(--environment-index-top) + var(--environment-index-size) / 2); left: 46px; margin: 0; color: var(--color-line); font-family: var(--font-latin); font-size: 10px; font-style: italic; font-weight: 700; line-height: 1.2; letter-spacing: 0.05em; white-space: nowrap; transform: translateY(-50%); }
.front-page--refactor .front-environment-card:not(:first-child) small { left: 55px; }
.front-page--refactor .front-environment-card img { position: absolute; top: 16px; right: 16px; width: 212px; height: 115px; border-radius: 8px; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.front-page--refactor .front-environment-card h3 { position: absolute; right: 72px; bottom: 17px; font-size: 20px; font-weight: 500; letter-spacing: 0.1em; }
.front-page--refactor .front-environment-card i { position: absolute; right: 16px; bottom: 16px; }
.front-page--refactor .front-environment-card:has(> a:focus-visible) img:not(.is-hover-image-pending) { clip-path: inset(0); }
.front-page--refactor .front-environment-card:has(> a:focus-visible) { border-color: var(--color-blue); box-shadow: 0 0 0 3px #f2c832; }
.front-page--refactor .front-environment-card:has(> a:focus-visible) i { background: var(--color-blue-hover); transform: scale(1.1); }
.front-page--refactor .front-environment-card:has(> a:focus-visible) .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

@media (min-width: 1100px) {
  /* The SVG places the label pair explicitly per ordinal: its Inter glyph
     widths differ between "1" and "2/3". Keep those coordinates with the
     index wrapper rather than letting a shared flex gap shift the label. */
  .front-page--refactor .front-environment-card__index { --environment-index-top: 23px; --environment-index-label-left: 45px; top: 0; right: auto; bottom: auto; left: 0; }
  .front-page--refactor .front-environment-card:not(:first-child) .front-environment-card__index { --environment-index-label-left: 54px; }
  .front-page--refactor .front-environment-card__number { position: absolute; left: 13px; margin: 0; font-family: var(--font-latin); font-weight: 500; font-style: italic; }
  .front-page--refactor .front-environment-card small,
  .front-page--refactor .front-environment-card:not(:first-child) small { position: absolute; left: var(--environment-index-label-left); font-family: var(--font-latin); }
  .front-page--refactor .front-environment-card img { top: 15px; right: 15px; }
  .front-page--refactor .front-environment-card h3 { right: 69px; }
  .front-page--refactor .front-environment-card i { right: 15px; bottom: 15px; }
}

/* Wanted: art-directed speech-bubble composition */
.front-page--refactor .front-wanted {
  overflow: visible;
  background: var(--color-blue);
  color: #fff;
}

/* Overlap the blue body by one CSS pixel to avoid a fractional-pixel seam. */
.front-page--refactor .front-wanted__curve { position: absolute; z-index: 0; right: 0; bottom: 100%; left: 0; height: 310px; overflow: hidden; transform: translateY(1px); pointer-events: none; }
.front-page--refactor .front-wanted__curve svg { display: block; width: 100%; max-width: none; height: 310px; }
.front-page--refactor .front-wanted__curve-mobile { display: none; }
.front-page--refactor .front-wanted__stage { min-height: 592px; overflow: visible; }
.front-page--refactor .front-wanted__heading { position: absolute; z-index: 6; top: -176px; left: 101px; }
.front-page--refactor .front-wanted__heading .c-section-heading__title { font-size: 40px; line-height: 1.5; }
.front-page--refactor .front-wanted__cards { position: absolute; z-index: 7; inset: 0; }
.front-page--refactor .front-wanted-card { position: absolute; width: 320px; min-height: 132px; padding: 24px 16px; border-radius: 24px; background: #fff; color: var(--color-ink); text-align: center; opacity: 0; transition: opacity 0.6s ease; }
.front-page--refactor .front-wanted-card::after { position: absolute; top: 50%; right: -13px; width: 26px; height: 26px; background: #fff; content: ""; transform: translateY(-50%) rotate(45deg); }
.front-page--refactor .front-wanted-card small { display: block; font-size: 12px; }
.front-page--refactor .front-wanted-card p { margin-top: 3px; font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: 0.1em; }
.front-page--refactor .front-wanted-card p span { color: var(--color-coral); }
@media (min-width: 1100px) {
  .front-page--refactor .front-wanted-card p { margin-top: 8px; }
}
.front-page--refactor .front-wanted-card--1 { top: 28px; left: 108px; }
.front-page--refactor .front-wanted-card--2 { top: 106px; left: 480px; }
.front-page--refactor .front-wanted-card--3 { top: 184px; left: 108px; }
.front-page--refactor .front-wanted-card--4 { top: 262px; left: 480px; }
.front-page--refactor .front-wanted-card--5 { top: 340px; left: 108px; }
.front-page--refactor .front-wanted-card.is-visible { opacity: 1; transform: none; }
.front-page--refactor .front-wanted__people { position: absolute; z-index: 5; top: -216px; left: 830px; display: block; width: 578px; max-width: none; height: 842px; }
.front-page--refactor .front-wanted__people img { display: block; width: 100%; height: auto; }

/* Recruitment links */
.front-page--refactor .front-recruit__stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: none; }
.front-page--refactor .front-recruit__item { position: relative; isolation: isolate; min-height: 355px; overflow: hidden; padding: 75px clamp(64px, calc((100vw - 1224px) / 2), 108px); }
.front-page--refactor .front-recruit__item::after { position: absolute; z-index: -1; inset: 0; background: var(--color-pale-blue); content: ""; transform: scaleX(0); transform-origin: left center; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.front-page--refactor .front-recruit__item + .front-recruit__item::before { position: absolute; top: 82px; left: 0; width: 1px; height: 191px; background: #ededed; content: ""; }
.front-page--refactor .front-recruit__label { display: flex; align-items: center; gap: 8px; color: var(--color-line); font-family: var(--font-latin); font-size: 16px; letter-spacing: 0.05em; }
.front-page--refactor .front-recruit__label b { color: var(--color-blue); font-size: 12px; }
.front-page--refactor .front-recruit__item strong { display: block; margin-top: 9px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.front-page--refactor .front-recruit__item > i { position: absolute; right: 64px; bottom: 89px; width: 60px; height: 60px; }
.front-page--refactor .front-recruit__item > i .c-arrow-icon { width: 20px; height: 12px; }
.front-page--refactor .front-recruit__item:focus-visible::after { transform: scaleX(1); }
.front-page--refactor .front-recruit__item:focus-visible > i { background: var(--color-blue-hover); transform: scale(1.133333); }
.front-page--refactor .front-recruit__item:focus-visible .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

/* The shared component owns appearance; keep only TOP's deferred loading. */
.front-page--refactor .front-join { background-image: none; }
.front-page--refactor .front-join.has-deferred-background { background-image: var(--join-background); }

/* News */
.front-page--refactor .front-news { padding: var(--preview-section-top) 0 151px; background: #fff; }
.front-page--refactor .front-news__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--preview-gap); padding-inline: var(--preview-gutter); }
.front-page--refactor .front-news > .front-stage > .c-section-heading { grid-column: 1 / 5; }
.front-page--refactor .front-news__list { grid-column: 5 / -1; border-top: 1px solid #ededed; }
.front-page--refactor .front-news__list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 69px minmax(84px, auto) minmax(0, 1fr); align-items: center; min-height: 67px; border-bottom: 1px solid #ededed; font-size: 14px; }
.front-page--refactor .front-news__list a::before { position: absolute; z-index: -1; inset: 0; background: var(--color-pale-blue); content: ""; transform: scaleX(0); transform-origin: left center; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.front-page--refactor .front-news__list time { font-size: 12px; }
.front-page--refactor .front-news__list b { display: grid; max-width: 120px; height: 19px; justify-self: start; place-items: center; padding: 0 6px; border-radius: 4px; background: var(--color-blue); color: #fff; font-family: var(--font-latin); font-size: 12px; font-style: italic; line-height: 1; }
.front-page--refactor .front-news__list b em { max-width: 100%; overflow: hidden; font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.front-page--refactor .front-news__list a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.front-page--refactor .front-news__category-mobile { display: none; }
.front-page--refactor .front-news__list a:focus-visible { color: var(--color-blue); }
.front-page--refactor .front-news__list a:focus-visible::before { transform: scaleX(1); }
.front-page--refactor .front-news .c-arrow-link { grid-column: 10 / -1; justify-self: end; margin-top: 19px; }
@media (min-width: 1100px) {
  .front-page--refactor .front-news .c-arrow-link { margin-top: 24px; }
}

/* Preview shell */
@media (min-width: 1100px) {
  .site-header--refactor {
    height: 64px;
  }

  .site-header--refactor .site-header__stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 64px;
    margin-inline: auto;
    transform: none;
  }

  .site-header--refactor .site-header__controls {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
  }

  .site-header--refactor .site-header__menu-button {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .site-header--refactor .site-header__entries {
    right: 82px;
    left: auto;
  }

  .site-header--refactor .site-header__menu {
    width: 100%;
  }
}

/* Compact PC uses native-size type and controls. Only layout dimensions
   reflow; never zoom the complete page, header, or footer. */
@media (min-width: 1100px) and (max-width: 1439px) {
  .site-header--refactor .site-header__stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
  }

  .site-header--refactor .site-header__controls {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
  }

  .site-header--refactor .site-header__menu-button {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .site-header--refactor .site-header__entries {
    right: 82px;
    left: auto;
  }

  .site-header--refactor .site-header__menu {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .site-footer--refactor {
    height: auto;
    min-height: 501px;
    overflow: visible;
    clip-path: none;
  }

  .site-footer--refactor .site-footer__stage {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: 288px 1fr;
    align-content: start;
    width: min(100%, 1440px);
    height: auto;
    min-height: 501px;
    gap: 40px 24px;
    margin-inline: auto;
    padding: 64px 108px 70px;
    transform: none;
  }

  .site-footer--refactor .site-footer__page-top { left: 50%; transform: translateX(-50%); }
  .site-footer--refactor .site-footer__logo { position: relative; top: 9px; left: auto; grid-column: 1; }
  .site-footer--refactor .site-footer__entry-links { position: relative; top: auto; left: auto; grid-column: 2; grid-template-columns: 320px 320px 256px; }
  .site-footer--refactor .site-footer__navigation { position: relative; top: auto; left: auto; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer--refactor .site-footer__legal { right: 24px; bottom: 0; left: 24px; width: auto; }
}

@media (min-width: 1100px) {
  .site-footer--refactor .site-footer__logo { top: 27px; width: 240px; height: auto; }
}

/* Keep the 1440px SVG artboard intact when a classic scrollbar reduces the
   document layout area to 1425px. This preserves its 1224px content grid. */
@media (min-width: 1440px) and (max-width: 1455px) {
  .site-footer--refactor .site-footer__stage {
    width: var(--front-design-width);
    max-width: none;
    margin-inline: 0;
  }
}

/* Input capability: hover is never applied to touch-only devices. */
@media (hover: hover) and (pointer: fine) {
  .front-page--refactor .front-interview-card:hover { transform: rotate(-1deg); }
  .front-page--refactor .front-interview-card:hover .front-interview-card__arrow { transform: scale(1.05); }
  .front-page--refactor .front-interview-card:hover .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

  .front-page--refactor .front-interview__controls button:hover {
    background: var(--color-blue-hover);
    color: #fff;
    box-shadow: 0 0 0 2px var(--color-blue-hover);
  }

  .front-page--refactor .front-interview__controls button:first-of-type:hover .c-arrow-icon { animation: arrow-spin-counterclockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }
  .front-page--refactor .front-interview__controls button:last-child:hover .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

  .front-page--refactor .front-culture__topics a:hover strong { color: var(--color-blue); }
  .front-page--refactor .front-environment-card:hover img:not(.is-hover-image-pending) { clip-path: inset(0); }
  .front-page--refactor .front-environment-card:hover { border-color: var(--color-blue); }
  .front-page--refactor .front-environment-card:hover i { background: var(--color-blue-hover); transform: scale(1.1); }
  .front-page--refactor .front-environment-card:hover .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

  .front-page--refactor .front-recruit__item:hover::after { transform: scaleX(1); }
  .front-page--refactor .front-recruit__item:hover > i { background: var(--color-blue-hover); transform: scale(1.133333); }
  .front-page--refactor .front-recruit__item:hover .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

  .front-page--refactor .front-news__list a:hover { color: var(--color-blue); }
  .front-page--refactor .front-news__list a:hover::before { transform: scaleX(1); }
}

@media (min-width: 1100px) {
  /* The rounded cream cap belongs to the strengths section, while its content
     remains in normal flow below the movie section. */
  .front-page--refactor .front-strengths {
    z-index: 1;
    border-radius: 0;
  }

  .front-page--refactor .front-strengths::before {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    border-radius: 40px 40px 0 0;
    background: var(--color-cream);
    content: "";
    pointer-events: none;
  }
}

@media (min-width: 1440px) {
  /* The control is a fixed 504px component in the 1440px artboard. */
  .front-page--refactor .front-interview__controls {
    width: 504px;
    justify-self: start;
  }
}

@media (min-width: 1441px) {
  /* The logo artwork stays centered at its design size; only its white parent
     band expands to the available viewport width. */
  .front-page--refactor .front-message__group-logos {
    width: var(--viewport-width);
    margin-left: calc((var(--preview-content) - var(--viewport-width)) / 2);
    padding-inline: calc((var(--viewport-width) - 1224px) / 2);
  }
}

/* Compact PC: retain the desktop composition without exceeding the viewport. */
@media (min-width: 1100px) and (max-width: 1439px) {
  .front-page--refactor {
    --preview-gutter: clamp(48px, 6.5vw, 92px);
  }

  .front-page--refactor .front-interview__viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  /* Preserve the two-reel desktop treatment while giving the copy its real
     text width. The former page zoom concealed this shortage at 1100px. */
  .front-page--refactor .front-culture__stage {
    gap: clamp(40px, 4.5vw, 64px);
    padding-right: var(--preview-gutter);
  }

  .front-page--refactor .front-strength {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    column-gap: 40px;
  }

  .front-page--refactor .front-strength__map-panel,
  .front-page--refactor .front-strength__services {
    width: 100%;
  }

  .front-page--refactor .front-strength__gallery {
    width: 100%;
    max-width: 100%;
  }

  .front-page--refactor .front-strengths__features {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
  }

  .front-page--refactor .front-strengths__feature-icon {
    width: 96px;
  }

  .front-page--refactor .front-strengths__feature-copy {
    margin-left: 16px;
  }

  .front-page--refactor .front-strength__it-visual {
    width: min(280px, calc(100% - 80px));
    margin-left: 80px;
  }

  .site-footer--refactor .site-footer__stage {
    --footer-compact-gutter: clamp(48px, 6.5vw, 92px);
    grid-template-columns: 214px minmax(0, 1fr);
    padding-inline: var(--footer-compact-gutter);
  }

  .site-footer--refactor .site-footer__entry-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* At the narrow end of desktop, the person/cards composition and footer CTA
   row need an additional layout row. Text stays at its desktop size instead
   of being scaled or squeezed into broken two-character lines. */
@media (min-width: 1100px) and (max-width: 1299px) {
  .front-page--refactor {
    --wanted-compact-curve-height: clamp(104px, 9vw, 116px);
  }

  .site-footer--refactor .site-footer__stage {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .site-footer--refactor .site-footer__logo,
  .site-footer--refactor .site-footer__entry-links,
  .site-footer--refactor .site-footer__navigation {
    grid-column: 1;
  }

  /* The compact-PC wanted layout follows the same shallow curve system as
     tablet. Keeping the 310px desktop dome here created an abrupt breakpoint
     jump and consumed the shared section gap. */
  .front-page--refactor .front-environment__panel {
    padding-bottom: calc(var(--preview-section-bottom) + var(--wanted-compact-curve-height));
  }

  .front-page--refactor .front-wanted__curve {
    height: var(--wanted-compact-curve-height);
  }

  .front-page--refactor .front-wanted__curve svg {
    height: 100%;
  }

  .front-page--refactor .front-wanted__curve-desktop { display: none; }
  .front-page--refactor .front-wanted__curve-mobile { display: block; }

  .site-footer--refactor .site-footer__logo { top: 0; }
}

@media (min-width: 1100px) and (max-width: 1299px) {
  .site-footer--refactor .site-footer__stage {
    min-height: 0;
    padding-bottom: 118px;
  }

  .site-footer--refactor .site-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .front-page--refactor .front-wanted__stage {
    display: grid;
    min-height: 0;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(32px, 4vw, 48px);
    padding: 48px var(--preview-gutter) 96px;
  }

  .front-page--refactor .front-wanted__heading {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
  }

  .front-page--refactor .front-wanted__cards {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 48px;
  }

  .front-page--refactor .front-wanted-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 116px;
    padding: 20px 14px;
    transform: translateY(18px);
  }

  .front-page--refactor .front-wanted-card::after {
    right: -10px;
    width: 20px;
    height: 20px;
  }

  .front-page--refactor .front-wanted__people {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    align-self: end;
    width: min(100%, 520px);
    height: auto;
    margin-top: 48px;
    justify-self: center;
  }
}

@media (min-width: 1300px) and (max-width: 1439px) {
  .front-page--refactor .front-wanted__people {
    right: 0;
    left: auto;
    width: min(578px, 41vw);
    height: auto;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1099px) {
  .front-page--refactor {
    --preview-gutter: 40px;
    --preview-gap: 16px;
    --preview-section-top: 96px;
    --preview-section-bottom: 96px;
    --front-message-marquee-duration: 123.2s;
    --front-movie-marquee-duration: 78.8s;
  }

  .front-page--refactor .front-hero,
  .front-page--refactor .front-hero__stage {
    /* Supplied tablet artboard: 1024 x 1404. The blue artwork continues past
       the clipped artboard, but the section itself ends at SVG y=1404. */
    min-height: 137.109375vw;
    height: 137.109375vw;
  }
  .front-page--refactor .front-hero__art { left: 50vi; width: 100vi; height: 137.109375vw; }
  .front-page--refactor .front-hero__blue-shape--desktop,
  .front-page--refactor .front-hero__blue-shape--mobile { display: none; }
  .front-page--refactor .front-hero__blue-shape--tablet { top: 91.179883vw; display: block; width: 100%; height: 102.832031vw; }
  /* Tablet SVG: x=-20 / width=1064 at 1024px. Keep the word only 20px
     outside each edge instead of enlarging and over-cropping it. */
  .front-page--refactor .front-hero__word {
    top: 3.90625vw;
    left: 50%;
    width: calc(100vw + 40px);
    height: auto;
    transform: translateX(-50%);
  }
  .front-page--refactor .front-hero__group-photo { top: 3.173047vw; left: 50%; width: 109.375vw; height: auto; transform: translateX(-50%); }
  /* The tablet artwork uses the same outlined catch shape as mobile. Scale
     that 284:156 SVG to the 1024px design coordinates instead of rebuilding
     it with a device-dependent webfont. */
  .front-page--refactor .front-hero__title {
    z-index: 4;
    top: 108.398438vw;
    right: auto;
    bottom: auto;
    /* SVG text begins at x=40; the news pill begins independently at x=537. */
    left: 3.90625vw;
    width: 46.484375vw;
    height: 25.520833vw;
  }
  .front-page--refactor .front-hero__title-outline--desktop { display: none; }
  .front-page--refactor .front-hero__title-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .front-page--refactor .front-hero__title-outline--mobile {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .front-page--refactor .front-hero__news {
    z-index: 5;
    top: 127.636719vw;
    left: 52.441406vw;
    width: 43.652344vw;
    height: 4.296875vw;
    background: #fff;
    color: var(--color-blue);
  }
  .front-page--refactor .front-hero__news b {
    background: var(--color-blue);
    color: #fff;
  }
  .front-page--refactor .front-hero__scroll { --front-hero-scroll-line-length: 31.25vw; top: 93.847656vw; right: 3.808594vw; width: 2.734375vw; height: 31.25vw; }

  .front-page--refactor .front-message__stage { min-height: 700px; padding-inline: 40px; }
  .front-page--refactor .front-message__photos { top: 48px; left: 40px; width: 320px; height: 350px; }
  .front-page--refactor .front-message__photo--large { width: 200px; height: 275px; }
  .front-page--refactor .front-message__photo--small { width: 190px; height: 190px; }
  /* Keep the 320px photo canvas and copy in separate halves. */
  .front-page--refactor .front-message__content { grid-column: 7 / -1; padding-top: 194px; }
  .front-page--refactor .front-message__title-art { top: 64px; width: min(390px, 100%); height: auto; }
  .front-page--refactor .front-message__lead { font-size: 15px; }
  .front-page--refactor .front-message__body { font-size: 14px; line-height: 1.8; }
  .front-page--refactor .front-message__group-logos { width: calc(100% + 80px); margin-left: -40px; }

  .front-page--refactor .front-movie__stage { padding: 56px 0 96px; }
  .front-page--refactor .front-movie__frame { width: min(680px, calc(100% - 80px)); }
  .front-page--refactor .front-movie__marquee { top: 170px; font-size: 48px; }

  .front-page--refactor .front-strengths { padding: 80px 0 96px; }
  .front-page--refactor .front-strengths__stage { padding-inline: 40px; }
  .front-page--refactor .front-strength { grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr); column-gap: 40px; }
  .front-page--refactor .front-strength + .front-strength,
  .front-page--refactor .front-strengths__features + .front-strength { margin-top: var(--preview-section-top); }
  /* The feature panel and item 3 are parts of the same strengths sequence.
     A full 96px section gap left an empty band after the feature copy, so use
     the established compact-component rhythm here. */
  .front-page--refactor .front-strengths__features + .front-strength { margin-top: 64px; }
  .front-page--refactor .front-strength::before { width: calc((100% - 40px) * 0.41); }
  .front-page--refactor .front-strength__number { font-size: 48px; }
  .front-page--refactor .front-strength > h3 { font-size: 20px; }
  .front-page--refactor .front-strength > p:not(.front-strength__number) { font-size: 15px; }
  .front-page--refactor .front-strength__map-panel { width: 100%; }
  .front-page--refactor .front-strength__services {
    width: min(100%, 480px);
    justify-self: end;
  }
  .front-page--refactor .front-strength__services > span { padding: 16px; }
  .front-page--refactor .front-strength__services img { max-height: 42px; }
  .front-page--refactor .front-strength__gallery { width: 100%; max-width: 100%; height: 280px; }
  .front-page--refactor .front-strength__gallery img { width: 252px; height: 280px; }
  .front-page--refactor .front-strengths__features { min-height: 0; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: 40px; padding: 48px 40px; }
  .front-page--refactor .front-strengths__features ol { gap: 24px; }
  .front-page--refactor .front-strengths__feature-icon { width: 72px; height: 72px; flex-basis: 72px; }
  .front-page--refactor .front-strength__it-visual { width: 100%; height: auto; margin: 72px 0 24px; }
  .front-page--refactor .front-strength--it .front-strength__number { margin-top: 0; }
  .front-page--refactor .front-strength--it h3 { white-space: normal; }
  .front-page--refactor .front-strength--it {
    min-height: 0;
    grid-template-rows: none;
  }
  .front-page--refactor .front-strength__services { padding: 40px; }

  .front-page--refactor .front-interview__stage { padding-inline: 40px; }
  .front-page--refactor .front-interview__viewport { --interview-card-height: 500px; --interview-viewport-gap: 48px; }
  .front-page--refactor .front-interview__slots { --interview-main-left: 40px; }
  .front-page--refactor .front-interview__description { margin-top: 19px; }
  .front-page--refactor .front-interview-card,
  .front-page--refactor .front-interview-card--feature { width: 340px; height: 500px; }
  .front-page--refactor .front-interview-card--feature .front-interview-card__body::before { height: 156px; }
  .front-page--refactor .front-interview-card[data-interview-slot="-1"] { left: calc(var(--interview-main-left) - 364px); }
  .front-page--refactor .front-interview-card[data-interview-slot="1"] { left: calc(var(--interview-main-left) + 364px); }
  .front-page--refactor .front-interview-card[data-interview-slot="2"] { left: calc(var(--interview-main-left) + 728px); }
  .front-page--refactor .front-interview-card[data-interview-slot="3"] { left: calc(var(--interview-main-left) + 1092px); }
  .front-page--refactor .front-interview-card__copy p { top: 363px; font-size: 18px; line-height: 26px; }
  .front-page--refactor .front-interview-card__copy h3,
  .front-page--refactor .front-interview-card--feature .front-interview-card__copy h3 { top: 432px; }
  .front-page--refactor .front-interview-card__copy small,
  .front-page--refactor .front-interview-card--feature .front-interview-card__copy small { top: 464px; }
  .front-page--refactor .front-interview-card--feature .front-interview-card__copy small { left: 89px; }
  .front-page--refactor .front-interview__controls { grid-column: 1 / 8; }

  .front-page--refactor .front-culture__stage { grid-template-columns: 46% minmax(0, 1fr); gap: 4%; padding-inline: 40px; }
  .front-page--refactor .front-culture__reels {
    --culture-slide-duration-1: 61.9s;
    --culture-slide-duration-2: 58.8s;
    width: 100%;
  }
  .front-page--refactor .front-culture__reel { top: 24px; width: calc(50% - 4px); height: calc(100% - 48px); overflow: hidden; }
  .front-page--refactor .front-culture__reel--1 { left: 0; }
  .front-page--refactor .front-culture__reel--2 { right: 0; left: auto; }
  .front-page--refactor .front-culture__reel-image { width: 100%; }
  .front-page--refactor .front-culture__content { padding-top: var(--preview-section-top); }
  .front-page--refactor .front-culture__topics { padding-inline: 24px; }
  .front-page--refactor .front-culture__topics a:nth-of-type(2) strong { font-size: 18px; }

  .front-page--refactor .front-environment { padding-top: 350px; }
  .front-page--refactor .front-environment__backdrop {
    --environment-image-position: center top;
    --environment-image-size: cover;
    height: 420px;
  }
  .front-page--refactor .front-environment__stage { padding-inline: 24px; }
  /* Keep the 96px tablet section gap above the following 88-96px curve. */
  .front-page--refactor .front-environment__panel { padding: 72px 40px calc(96px + clamp(88px, 10vw, 96px)); }
  .front-page--refactor .front-environment__cards { gap: 16px; }
  .front-page--refactor .front-environment-card { min-height: 224px; }
  .front-page--refactor .front-environment-card a { min-height: 222px; }
  .front-page--refactor .front-environment-card img { top: 48px; right: 12px; width: calc(100% - 24px); height: 96px; clip-path: inset(0); }
  .front-page--refactor .front-environment-card h3 { right: 60px; font-size: 17px; }

  .front-page--refactor .front-wanted__curve { bottom: 100%; height: clamp(88px, 10vw, 96px); }
  .front-page--refactor .front-wanted__curve svg { height: 100%; }
  .front-page--refactor .front-wanted__curve-desktop { display: none; }
  .front-page--refactor .front-wanted__curve-mobile { display: block; }
  .front-page--refactor .front-wanted__stage {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(24px, 4vw, 48px);
    padding: 48px 40px 96px;
  }
  .front-page--refactor .front-wanted__heading { position: relative; top: auto; left: auto; grid-column: 1 / -1; }
  .front-page--refactor .front-wanted__heading .c-section-heading__title { font-size: clamp(32px, 3.9vw, 40px); }
  .front-page--refactor .front-wanted__cards { position: relative; inset: auto; display: flex; width: auto; flex-direction: column; gap: 24px; padding: 48px 0 0; }
  .front-page--refactor .front-wanted-card { position: relative; top: auto; left: auto; width: 100%; min-height: 116px; padding: 20px 14px; opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .front-page--refactor .front-wanted-card::after { top: 50%; right: -10px; bottom: auto; width: 20px; height: 20px; transform: translateY(-50%) rotate(45deg); }
  .front-page--refactor .front-wanted-card small { font-size: clamp(11px, 1.3vw, 12px); }
  .front-page--refactor .front-wanted-card p { font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }
  .front-page--refactor .front-wanted__people { position: relative; top: auto; right: auto; bottom: auto; left: auto; align-self: end; width: min(100%, 520px); height: auto; margin-top: 48px; justify-self: center; }

  .front-page--refactor .front-recruit__item { min-height: 300px; padding: 88px 40px; }
  .front-page--refactor .front-recruit__item > i { right: 40px; bottom: 48px; }

  .front-page--refactor .front-news__stage { padding-inline: 40px; }

  .site-header--refactor .site-header__stage { width: 100%; }
  .site-header--refactor .site-header__controls { top: 8px; right: 24px; }
  .site-header--refactor .site-header__entries { display: none; }
  .site-footer--refactor .site-footer__stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 72px 40px 0;
  }
  .site-footer--refactor .site-footer__logo,
  .site-footer--refactor .site-footer__entry-links,
  .site-footer--refactor .site-footer__navigation { grid-column: auto; }
  .site-footer--refactor .site-footer__logo { position: static; top: auto; align-self: flex-start; }
  .site-footer--refactor .site-footer__entry-links {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 48px;
  }
  .site-footer--refactor .site-footer__entry-links a { padding: 0 12px 0 16px; }
  .site-footer--refactor .site-footer__navigation {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 40px 24px;
    margin-top: 64px;
  }
  .site-footer--refactor .site-footer__legal {
    position: static;
    width: 100%;
    margin-top: 64px;
  }
}

/* As the tablet composition approaches desktop, ease only the moving image
   group from the 40px tablet gutter to the artwork's 24px desktop inset. The
   copy stays aligned to the standard 40px content gutter. */
@media (min-width: 768px) and (max-width: 1099px) {
  .front-page--refactor .front-culture__stage {
    padding-left: clamp(24px, calc(95.1px - 7.17vw), 40px);
  }
}

/* Keep all four brand marks readable on tablet without shrinking the row. */
@media (min-width: 768px) and (max-width: 1099px) {
  .front-page--refactor .front-message__group-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 40px;
  }
  .front-page--refactor .front-message__group-company:nth-child(3)::before { display: none; }
  .front-page--refactor .front-message__marquee { bottom: 233px; }
}

/* Medium layouts keep the two-column strength composition, but the IT image,
   number and copy occupy distinct rows. This prevents image/label overlap
   without scaling down the text or relying on compensating offsets. */
@media (min-width: 768px) and (max-width: 1299px) {
  .front-page--refactor .front-strength--it {
    grid-template-rows: auto auto auto auto;
  }

  .front-page--refactor .front-strength--it .front-strength__it-visual {
    grid-column: 1;
    grid-row: 1;
    width: min(320px, 100%);
    height: auto;
    margin: 40px 0 0;
    justify-self: start;
  }

  .front-page--refactor .front-strength--it .front-strength__number {
    grid-column: 1;
    grid-row: 2;
    margin-top: 24px;
  }

  .front-page--refactor .front-strength--it h3 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 20px;
    white-space: normal;
  }

  .front-page--refactor .front-strength--it > p:not(.front-strength__number) {
    grid-column: 1;
    grid-row: 4;
    margin-top: 16px;
  }

  .front-page--refactor .front-strength--it .front-strength__services {
    grid-column: 2;
    grid-row: 1 / span 4;
  }
}

@media (min-width: 520px) and (max-width: 767px) {
  .site-footer--refactor .site-footer__entry-links {
    width: min(100%, 392px);
    align-self: center;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  .front-page--refactor {
    --preview-gutter: 24px;
    --preview-gap: 16px;
    --preview-section-top: 80px;
    --preview-section-bottom: 80px;
    --front-message-marquee-duration: 95.4s;
    --front-movie-marquee-duration: 61s;
  }

  /* Scale the complete 375px MV artboard on larger phones. The cap keeps the
     mobile composition usable through the intermediate range before tablet. */
  .front-page--refactor .front-hero,
  .front-page--refactor .front-hero__stage {
    min-height: clamp(768px, 204.8vw, 921.6px);
    height: clamp(768px, 204.8vw, 921.6px);
  }
  .front-page--refactor .front-hero__art {
    left: 50vi;
    width: clamp(375px, 100vw, 450px);
    height: clamp(768px, 204.8vw, 921.6px);
  }
  .front-page--refactor .front-hero__blue-shape--desktop,
  .front-page--refactor .front-hero__blue-shape--tablet { display: none; }
  .front-page--refactor .front-hero__blue-shape--mobile { top: 48.828125%; display: block; width: 100%; height: 51.171875%; }
  .front-page--refactor .front-hero__word {
    top: 5.208333%;
    left: 50%;
    width: 106.933333%;
    height: auto;
    transform: translateX(-50%);
  }
  .front-page--refactor .front-hero__group-photo { top: 7.552083%; left: 0; width: 110.933333%; height: auto; transform: none; }
  .front-page--refactor .front-hero__title { top: 58.723958%; right: auto; bottom: auto; left: 7.2%; width: 75.733333%; height: 20.3125%; }
  .front-page--refactor .front-hero__title .front-hero__title-outline--desktop { display: none; }
  .front-page--refactor .front-hero__title .front-hero__title-outline--mobile { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .front-page--refactor .front-hero__news {
    top: 84.765625%;
    left: 6.4%;
    display: grid;
    width: 87.2%;
    height: 10.026042%;
    grid-template-columns: clamp(60px, 16vw, 72px) auto minmax(0, 1fr);
    grid-template-rows: clamp(17px, 4.533333vw, 20.4px) clamp(20px, 5.333333vw, 24px);
    align-content: start;
    gap: clamp(8px, 2.133333vw, 9.6px);
    padding: clamp(16px, 4.266667vw, 19.2px) clamp(20px, 5.333333vw, 24px);
    border-radius: clamp(22px, 5.866667vw, 26.4px);
    background: #fff;
    color: var(--color-blue);
  }
  .front-page--refactor .front-hero__title { z-index: 4; }
  .front-page--refactor .front-hero__news { z-index: 5; }
  .front-page--refactor .front-hero__news-copy-desktop { display: none; }
  .front-page--refactor .front-hero__news-copy-mobile { display: block; }
  .front-page--refactor .front-hero__news time { font-size: clamp(12px, 3.2vw, 14.4px); line-height: clamp(17px, 4.533333vw, 20.4px); }
  .front-page--refactor .front-hero__news b { width: auto; min-width: clamp(45px, 12vw, 54px); height: clamp(17px, 4.533333vw, 20.4px); background: var(--color-blue); color: #fff; font-size: clamp(12px, 3.2vw, 14.4px); line-height: clamp(17px, 4.533333vw, 20.4px); }
  .front-page--refactor .front-hero__news span { grid-column: 1 / -1; font-size: clamp(14px, 3.733333vw, 16.8px); line-height: clamp(20px, 5.333333vw, 24px); }
  .front-page--refactor .front-hero__scroll { --front-hero-scroll-line-length: clamp(96px, 25.6vw, 115.2px); top: 46.744792%; right: auto; left: 92.533333%; width: 6.4%; height: 12.5%; }
  .front-page--refactor .front-hero__scroll-label text { font-size: clamp(10px, 2.666667vw, 12px); transform: translate(clamp(10px, 2.666667vw, 12px), 0.5px) rotate(90deg); transform-origin: 0 0; }
  .front-page--refactor .front-hero__scroll-line { top: 0; }

  .front-page--refactor .front-message__stage { display: block; padding: 0 24px 64px; }
  .front-page--refactor .front-message__photos { position: relative; top: auto; left: auto; width: 246px; height: 266px; }
  .front-page--refactor .front-message__photo--large { width: 164px; height: 225px; border-radius: 12px; }
  .front-page--refactor .front-message__photo--small { width: 164px; height: 164px; border-radius: 12px; }
  .front-page--refactor .front-message__content { min-height: 0; margin-top: 64px; padding-top: 145px; }
  .front-page--refactor .front-message__title-art { top: 0; width: min(327px, calc(100vw - 48px)); height: auto; }
  .front-page--refactor .front-message__lead { padding-left: 32px; font-size: 16px; }
  .front-page--refactor .front-message__lead::before { width: 24px; }
  .front-page--refactor .front-message__body { margin-top: 24px; font-size: 16px; line-height: 32px; }
  .front-page--refactor .front-message__body p + p { margin-top: 28px; }
  /* The four 120px company rows stay below the blue message transition. */
  .front-page--refactor .front-message__marquee { bottom: 544px; font-size: 40px; }
  .front-page--refactor .front-message__group-logos { grid-template-columns: minmax(0, 1fr); width: calc(100% + 48px); padding-inline: 24px; margin: 64px 0 0 -24px; }
  .front-page--refactor .front-message__group-company { min-height: 120px; justify-content: center; padding-block: 20px; }
  .front-page--refactor .front-message__group-company + .front-message__group-company::before {
    top: 0;
    left: 50%;
    width: 32px;
    height: 1px;
    transform: translateX(-50%);
    background: #ededed;
  }
  .front-page--refactor .front-message__group-company--nishihara img { width: 150px; }
  .front-page--refactor .front-message__group-company--management img { width: 280px; }
  .front-page--refactor .front-message__group-company--engineering img { width: 260px; }

  .front-page--refactor .front-movie__stage { padding: 0 24px 80px; }
  .front-page--refactor .front-movie__frame { --movie-inset-block: 15px; --movie-inset-inline: 19px; width: 100%; min-height: 232px; }
  .front-page--refactor .front-movie__marquee { top: 78px; font-size: 32px; }
  .front-page--refactor .front-movie__play { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 24px; }
  .front-page--refactor .front-movie .c-arrow-link { width: min(327px, 100%); height: 77px; margin-top: 40px; padding: 0 24px; border-radius: 38.5px; }
  .front-page--refactor .front-movie .c-arrow-link > span { width: min(230px, calc(100% - 52px)); line-height: 1.6; white-space: normal; word-break: keep-all; }
  .front-page--refactor .front-movie .c-arrow-link__nowrap { white-space: nowrap; }

  /* The SVG uses a 40px cream cap over blue, followed by the cream section.
     Keeping the blue underlay inside the section prevents the page's white
     background from showing through the rounded corners. The section itself
     owns the shared 80px bottom spacing; it must not be split with the final
     strength component. */
  .front-page--refactor .front-strengths {
    padding: 80px 0;
    border-radius: 0;
    background: linear-gradient(to bottom, var(--color-blue) 0 40px, var(--color-cream) 40px);
  }
  .front-page--refactor .front-strengths::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    border-radius: 40px 40px 0 0;
    background: var(--color-cream);
    content: "";
    pointer-events: none;
  }
  .front-page--refactor .front-strengths__stage { position: relative; z-index: 1; }
  .front-page--refactor .front-strengths__stage { padding-inline: 24px; }
  .front-page--refactor .front-strengths > .front-stage > .c-section-heading { margin-bottom: 40px; text-align: center; }
  .front-page--refactor .front-strengths > .front-stage > .c-section-heading .c-section-heading__label { justify-content: center; }
  .front-page--refactor .front-strength { display: flex; flex-direction: column; }
  .front-page--refactor .front-strength + .front-strength,
  .front-page--refactor .front-strengths__features + .front-strength { margin-top: 64px; }
  .front-page--refactor .front-strength::before { position: relative; width: 100%; margin-bottom: 24px; }
  .front-page--refactor .front-strength__number { margin-top: 0; font-size: 40px; }
  .front-page--refactor .front-strength__number::after { margin-left: 8px; font-size: 12px; letter-spacing: 0.05em; }
  .front-page--refactor .front-strength > h3 { margin-top: 18px; font-size: 20px; line-height: 1.6; }
  .front-page--refactor .front-strength > p:not(.front-strength__number) { margin-top: 12px; font-size: 15px; line-height: 2; }
  .front-page--refactor .front-strength__map-panel,
  .front-page--refactor .front-strength__gallery,
  .front-page--refactor .front-strength__services { width: 100%; margin-top: 28px; }
  .front-page--refactor .front-strength__map-panel { margin-top: 40px; padding: 6px 12px; }
  .front-page--refactor .front-strength--local { padding-bottom: 64px; }
  .front-page--refactor .front-strength--local + .front-strength { margin-top: 0; }
  .front-page--refactor .front-strength__gallery {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 266px;
    margin-top: 40px;
    margin-left: -24px;
    padding-left: 24px;
  }
  .front-page--refactor .front-strength__gallery img { width: 240px; height: 266px; border-radius: 16px; }
  .front-page--refactor .front-strength--factory { padding-bottom: 40px; }
  .front-page--refactor .front-strengths__features { width: calc(100% + 48px); grid-template-columns: 1fr; gap: 32px; margin: 0 0 0 -24px; padding: 40px 24px 0; }
  .front-page--refactor .front-strengths__features-visual { justify-self: center; }
  .front-page--refactor .front-strengths__features ol { gap: 0; padding-top: 0; }
  .front-page--refactor .front-strengths__feature { position: relative; display: block; padding: 32px 0 26px; border-top: 1px solid #ededed; }
  .front-page--refactor .front-strengths__feature:last-child { padding-bottom: 34px; }
  .front-page--refactor .front-strengths__features + .front-strength { margin-top: 64px; }
  .front-page--refactor .front-strengths__feature-icon { position: absolute; top: 32px; left: 0; width: 100px; height: 75px; border-radius: 37.5px; }
  .front-page--refactor .front-strengths__feature-heading { min-height: 75px; align-items: center; gap: 8px; padding-left: 116px; }
  .front-page--refactor .front-strengths__feature-heading b { font-size: 20px; font-style: italic; font-weight: 500; }
  .front-page--refactor .front-strengths__feature-copy { margin-left: 0; }
  .front-page--refactor .front-strengths__feature-copy p { margin-top: 12px; font-size: 15px; line-height: 2; }
  .front-page--refactor .front-strength--it .front-strength__number { margin-top: 0; }
  .front-page--refactor .front-strength__it-visual { order: 2; width: 100%; max-width: 480px; height: auto; aspect-ratio: 327 / 168; align-self: center; margin: 19px 0 0; object-fit: cover; }
  .front-page--refactor .front-strength--it .front-strength__number { order: 1; }
  .front-page--refactor .front-strength--it h3 { order: 3; margin-top: 24px; white-space: normal; }
  .front-page--refactor .front-strength--it > p:not(.front-strength__number) { order: 4; }
  .front-page--refactor .front-strength--it .front-strength__services { order: 5; }
  .front-page--refactor .front-strength--it {
    min-height: 0;
    grid-template-rows: none;
  }
  .front-page--refactor .front-strength--it h3,
  .front-page--refactor .front-strength--it > p:not(.front-strength__number) {
    grid-row: auto;
  }
  .front-page--refactor .front-strength__services { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 56px 57px; width: min(calc(100% + 48px), 480px); min-height: 209px; align-self: center; gap: 16px; margin: 35px 0 0; padding: 40px 24px; }
  .front-page--refactor .front-strength__services > span { height: auto; }
  .front-page--refactor .front-strength__services img { max-width: 100%; max-height: 40px; }
  .front-page--refactor .front-strength__service-logo--bee-netx { width: 108px; }
  .front-page--refactor .front-strength__service-logo--bee-bid { width: 79px; }
  .front-page--refactor .front-strength__service-logo--dustalk { width: 87px; }
  .front-page--refactor .front-strength__service-logo--rebit-japan { width: 103px; }
  .front-page--refactor .front-strength--it { padding-bottom: 0; }

  .front-page--refactor .front-interview { padding: 80px 0; }
  .front-page--refactor .front-interview__stage { display: block; padding-inline: 24px; }
  .front-page--refactor .front-interview__description { margin-top: 19px; font-size: 15px; line-height: 2; }
  .front-page--refactor .front-interview__viewport { --interview-card-height: 461px; --interview-viewport-gap: 37px; width: 100vw; margin-left: -24px; }
  .front-page--refactor .front-interview__slots { --interview-main-left: 24px; }
  .front-page--refactor .front-interview-card,
  .front-page--refactor .front-interview-card--feature { width: 307px; height: 461px; }
  /* The transformed image track and the SVG wave are composited separately
     on touch devices. Give the wave layer an opaque lower backing so their
     subpixel boundary can never reveal the image beneath it. */
  .front-page--refactor .front-interview-card--feature .front-interview-card__body {
    background: linear-gradient(var(--color-blue), var(--color-blue)) bottom / 100% 16px no-repeat;
  }
  .front-page--refactor .front-interview-card--feature .front-interview-card__body::before { height: 149px; }
  .front-page--refactor .front-interview-card[data-interview-slot="-1"] { left: calc(var(--interview-main-left) - 327px); }
  .front-page--refactor .front-interview-card[data-interview-slot="1"] { left: calc(var(--interview-main-left) + 327px); }
  .front-page--refactor .front-interview-card[data-interview-slot="2"] { left: calc(var(--interview-main-left) + 654px); }
  .front-page--refactor .front-interview-card[data-interview-slot="3"] { left: calc(var(--interview-main-left) + 981px); }
  .front-page--refactor .front-interview-card__copy p { top: 333px; left: 20px; width: 230px; font-size: 16px; line-height: 24px; }
  .front-page--refactor .front-interview-card__copy h3,
  .front-page--refactor .front-interview-card--feature .front-interview-card__copy h3 { top: 395px; left: 20px; font-size: 24px; }
  .front-page--refactor .front-interview-card__copy small { top: 424px; left: 20px; font-size: 12px; }
  .front-page--refactor .front-interview-card--feature .front-interview-card__copy small { top: 424px; left: 20px; }
  .front-page--refactor .front-interview-card--feature .front-interview-card__arrow { width: 52px; height: 52px; }
  .front-page--refactor .front-interview-card__meta-mobile { display: inline; }
  .front-page--refactor .front-interview-card__meta-mobile:empty { display: none; }
  .front-page--refactor .front-interview-card__meta-mobile:not(:empty) + .front-interview-card__meta-desktop { display: none; }
  .front-page--refactor .front-interview__controls { width: 100%; height: 74px; flex-wrap: wrap; align-content: flex-start; row-gap: 18px; margin-top: 26px; }
  .front-page--refactor .front-interview__controls::before { width: calc(100% - 88px); max-width: none; flex-basis: calc(100% - 88px); background-size: 21px 4px; }
  .front-page--refactor .front-interview__controls p { width: 64px; flex-basis: 64px; margin-left: 24px; letter-spacing: 0.2em; white-space: nowrap; }
  .front-page--refactor .front-interview__controls button { margin-left: calc((100% - 96px) / 2); }
  .front-page--refactor .front-interview__controls button + button { margin-left: 16px; }
  .front-page--refactor .front-interview .c-arrow-link { margin: 40px auto 0; }

  /* SP SVG: 375x1294 cream panel with only the top-right 40px corner.
     The white section background must sit behind the rounded panel edge. */
  .front-page--refactor .front-culture { background: #fff; }
  .front-page--refactor .front-culture__stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 40px 0 65px;
    border-radius: 0 40px 0 0;
    background: var(--color-cream);
  }
  .front-page--refactor .front-culture__reels {
    --culture-slide-duration-1: 78.6s;
    --culture-slide-duration-2: 78.6s;
    width: 100%;
    height: 420px;
  }
  .front-page--refactor .front-culture__reel { width: max-content; }
  .front-page--refactor .front-culture__reel--1 { top: 40px; left: -20px; }
  .front-page--refactor .front-culture__reel--2 { top: 224px; left: -1431px; }
  .front-page--refactor .front-culture__reel-track,
  .front-page--refactor .front-culture__reel-sequence { width: max-content; flex-direction: row; gap: 8px; }
  /* SP design: the upper row travels left-to-right; the lower row mirrors it. */
  .front-page--refactor .front-culture__reel--1 .front-culture__reel-track { animation-name: preview-culture-right; }
  .front-page--refactor .front-culture__reel--2 .front-culture__reel-track { animation-name: preview-culture-left; }
  .front-page--refactor .front-culture__reel-image,
  .front-page--refactor .front-culture__reel-image--tall,
  .front-page--refactor .front-culture__reel-image--wide { width: 254px; height: 175px; }
  /* Reels end at y=460. The SVG places the heading label at y=494, so the
     34px separation belongs to the content wrapper rather than the heading. */
  .front-page--refactor .front-culture__content { width: 100%; padding: 34px 24px 0; text-align: center; }
  .front-page--refactor .front-culture__content .c-section-heading__label { justify-content: center; }
  .front-page--refactor .front-culture__description { margin-top: 20px; font-size: 15px; line-height: 2; }
  .front-page--refactor .front-culture__description-row > span { display: block; }
  .front-page--refactor .front-culture__description-row > span + span::before { content: none; }
  /* SP SVG: 20px side insets and a 40px inset to the first badge.
     Keep rows in flow so the updated company name can wrap without clipping. */
  .front-page--refactor .front-culture__topics { margin-top: 30px; padding: 16px 20px; }
  /* The supplied 328x417 component places its 397px white panel at y=12.
     Scale the shared quote artwork to the SVG's 24x18 glyph and anchor both
     marks to that component canvas without changing the accurately aligned
     panel rows below. */
  .front-page--refactor .front-culture__quote {
    width: 24px;
    height: 18px;
  }
  .front-page--refactor .front-culture__quote--open { top: -12px; left: 8px; }
  .front-page--refactor .front-culture__quote--close { right: 8px; bottom: -8px; }
  .front-page--refactor .front-culture__quote .c-quote-mark {
    width: 24px;
    height: 18px;
  }
  .front-page--refactor .front-culture__topics a { min-height: 112px; padding: 24px 0 20px; }
  /* Mixed 15px/16px lines occupy 61px; preserve the SVG's 141px row. */
  .front-page--refactor .front-culture__topics a:nth-of-type(2) { min-height: 141px; padding-bottom: 18px; }
  .front-page--refactor .front-culture__topics strong { margin-top: 13px; font-size: 16px; }
  .front-page--refactor .front-culture__topics a:nth-of-type(2) strong { margin-top: 13px; font-size: 15px; font-weight: 400; letter-spacing: 0; }
  .front-page--refactor .front-culture__topics strong em { font-size: 16px; font-weight: 500; letter-spacing: 0.1em; }
  .front-page--refactor .front-culture__mobile-break { display: inline; }
  .front-page--refactor .front-culture .c-arrow-link { margin: 48px auto 0; }

  @keyframes preview-culture-left { to { transform: translateX(calc(-50% - 4px)); } }
  @keyframes preview-culture-right {
    from { transform: translateX(calc(-50% - 4px)); }
    to { transform: translateX(0); }
  }

  .front-page--refactor .front-environment { padding-top: 480px; }
  .front-page--refactor .front-environment__backdrop {
    --environment-image-position: calc(50vw - 327.5px) top;
    --environment-image-size: 780px 520px;
    height: 520px;
  }
  .front-page--refactor .front-environment__stage { padding: 0; }
  .front-page--refactor .front-environment__panel { padding: 80px 24px 160px; border-radius: 40px 40px 0 0; }
  .front-page--refactor .front-environment__description { margin-top: 20px; font-size: 15px; line-height: 2; }
  .front-page--refactor .front-environment__cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .front-page--refactor .front-environment-card { min-height: 224px; border-color: var(--color-blue); }
  .front-page--refactor .front-environment-card a { min-height: 222px; }
  .front-page--refactor .front-environment-card img { clip-path: inset(0); }

  .front-page--refactor .front-wanted { overflow: visible; }
  .front-page--refactor .front-wanted__curve { bottom: 100%; height: 80px; }
  .front-page--refactor .front-wanted__curve svg { height: 80px; }
  .front-page--refactor .front-wanted__curve-desktop { display: none; }
  .front-page--refactor .front-wanted__curve-mobile { display: block; height: 80px; }
  .front-page--refactor .front-wanted__stage { display: flex; min-height: 0; flex-direction: column; padding: 3px 0 65px; }
  .front-page--refactor .front-wanted__heading { position: relative; top: auto; left: auto; padding: 0 24px; }
  .front-page--refactor .front-wanted__heading .c-section-heading__title { font-size: 24px; }
  .front-page--refactor .front-wanted__cards { position: relative; inset: auto; display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
  .front-page--refactor .front-wanted-card { position: relative; top: auto; left: auto; width: min(252px, calc(100% - 48px)); min-height: 116px; padding: 20px 14px; opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .front-page--refactor .front-wanted-card:nth-child(odd) { align-self: flex-start; margin-left: 24px; }
  .front-page--refactor .front-wanted-card:nth-child(even) { align-self: flex-end; margin-right: 24px; }
  .front-page--refactor .front-wanted-card::after { top: auto; right: 50%; bottom: -10px; width: 20px; height: 20px; transform: translateX(50%) rotate(45deg); }
  .front-page--refactor .front-wanted-card small { font-size: 11px; }
  .front-page--refactor .front-wanted-card p { font-size: 15px; line-height: 1.55; }
  /* The approved SP composite has an intentionally asymmetric transparent
     canvas. Centre its visible 639px artwork, not the full 681px file, and
     retain the slight rightward artboard bias shown by the 375px SVG. */
  .front-page--refactor .front-wanted__people {
    position: relative;
    top: auto;
    bottom: auto;
    left: calc(50% + 12px);
    width: min(88vw, 360px);
    height: auto;
    margin-top: 27px;
    transform: translateX(-46.9163%);
  }

  .front-page--refactor .front-recruit__stage { grid-template-columns: 1fr; }
  .front-page--refactor .front-recruit__item { min-height: 277px; padding: 76px 24px; }
  /* SP SVG: the second 270px row starts its copy 40px higher than the first
     row and places the arrow at y=414 within the 547px component. */
  .front-page--refactor .front-recruit__item + .front-recruit__item {
    min-height: 270px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .front-page--refactor .front-recruit__item + .front-recruit__item::before { top: 0; left: 24px; width: calc(100% - 48px); height: 1px; }
  .front-page--refactor .front-recruit__item strong { font-size: 20px; }
  .front-page--refactor .front-recruit__pc-break { display: none; }
  .front-page--refactor .front-recruit__item > i { right: 24px; bottom: 40px; }
  .front-page--refactor .front-recruit__item + .front-recruit__item > i { bottom: 73px; }

  /* SP SVG: 375x731. The heading starts at y=95, article rules sit at
     y=198/301/404/507, and the 240x56 list button starts at y=547. */
  .front-page--refactor .front-news { padding-block: 95px 128px; }
  .front-page--refactor .front-news__stage { display: block; padding-inline: 24px; }
  .front-page--refactor .front-news__list { margin-top: 39px; }
  .front-page--refactor .front-news__list a { grid-template-columns: 70px 1fr; grid-template-rows: 24px 1fr; min-height: 103px; padding: 20px 0 10px; }
  .front-page--refactor .front-news__list b { grid-column: 2; grid-row: 1; justify-self: start; }
  .front-page--refactor .front-news__category-desktop { display: none; }
  .front-page--refactor .front-news__category-mobile { display: inline; }
  .front-page--refactor .front-news__list span { grid-column: 1 / -1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .front-page--refactor .front-news .c-arrow-link { margin: 39px auto 0; }

  .site-header--refactor .site-header__stage { width: 100%; }
  .site-header--refactor .site-header__entries { display: none; }
  .site-header--refactor .site-header__controls { top: 8px; right: 16px; gap: 8px; }

}

/* Use the approved tablet coordinate system from compact portrait widths.
 * Scaling individual mobile parts beyond their 450px artboard caused cream
 * gutters and collisions between the catch and news card. */
@media (min-width: 520px) and (max-width: 767px) {
  /* Bridge the phone and tablet layouts without stretching the CTA. */
  .front-page--refactor .front-movie__stage { padding: 56px 40px 96px; }
  .front-page--refactor .front-movie__frame {
    --movie-inset-block: 23px;
    --movie-inset-inline: 23px;
    width: min(680px, 100%);
    min-height: 248px;
  }
  .front-page--refactor .front-movie .c-arrow-link {
    width: 327px;
    height: 56px;
    margin-top: 35px;
    padding: 0 8px 0 24px;
    border-radius: 28px;
  }
  .front-page--refactor .front-movie .c-arrow-link > span {
    width: auto;
    line-height: normal;
    white-space: nowrap;
  }

  /* The 780px mobile crop must remain wider than the viewport. The former
   * calculated x-position became positive above 655px and exposed a white
   * strip at the left edge of the environment photograph. */
  .front-page--refactor .front-environment__backdrop {
    --environment-image-position: center top;
    --environment-image-size: max(780px, 100vw) auto;
  }

  /* Use a compact horizontal card until three tablet cards fit comfortably. */
  .front-page--refactor .front-environment-card { min-height: 180px; }
  .front-page--refactor .front-environment-card a { min-height: 178px; }
  .front-page--refactor .front-environment-card img {
    top: 16px;
    right: 16px;
    width: 52%;
    height: 104px;
  }

  /* The 375px composition intentionally alternates narrow speech cards.
   * At intermediate widths that creates excessive horizontal travel and one
   * card per row. Let Grid add a second column only when two 252px cards fit;
   * otherwise retain a centred single column. */
  .front-page--refactor .front-wanted__cards {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(252px, 100%), 1fr));
    gap: 28px 16px;
    padding-inline: 24px;
  }

  .front-page--refactor .front-wanted-card,
  .front-page--refactor .front-wanted-card:nth-child(odd),
  .front-page--refactor .front-wanted-card:nth-child(even) {
    width: 100%;
    max-width: 327px;
    margin-inline: 0;
    align-self: stretch;
    justify-self: center;
  }

  .front-page--refactor .front-wanted-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .front-page--refactor .front-hero,
  .front-page--refactor .front-hero__stage {
    min-height: max(921.6px, calc(133.919271vw + 156px));
    height: max(921.6px, calc(133.919271vw + 156px));
  }

  .front-page--refactor .front-hero__art {
    left: 50vi;
    width: 100vi;
    height: max(921.6px, calc(133.919271vw + 156px));
  }

  .front-page--refactor .front-hero__blue-shape--desktop,
  .front-page--refactor .front-hero__blue-shape--mobile { display: none; }
  .front-page--refactor .front-hero__blue-shape--tablet {
    top: 91.179883vw;
    display: block;
    width: 100%;
    height: 102.832031vw;
  }

  .front-page--refactor .front-hero__word {
    top: 3.90625vw;
    left: 50%;
    width: calc(100vw + 40px);
    height: auto;
    transform: translateX(-50%);
  }

  .front-page--refactor .front-hero__group-photo {
    top: 3.173047vw;
    left: 50%;
    width: 109.375vw;
    height: auto;
    transform: translateX(-50%);
  }

  .front-page--refactor .front-hero__title {
    top: 108.398438vw;
    right: auto;
    bottom: auto;
    left: 5.957031vw;
    width: 46.484375vw;
    height: 25.520833vw;
  }

  .front-page--refactor .front-hero__news {
    /* Keep the SP two-row news card through 767px. It follows the tablet
       catch artwork in normal visual order instead of sharing its row. */
    top: calc(133.919271vw + 24px);
    left: 50%;
    display: grid;
    width: min(392px, calc(100% - 48px));
    height: 92px;
    grid-template-columns: 72px auto minmax(0, 1fr);
    grid-template-rows: 20px 24px;
    align-content: start;
    align-items: initial;
    gap: 10px;
    padding: 19px 24px;
    transform: translateX(-50%);
    border-radius: 26px;
    background: #fff;
    color: var(--color-blue);
  }

  .front-page--refactor .front-hero__news-copy-desktop { display: none; }
  .front-page--refactor .front-hero__news-copy-mobile { display: block; }
  .front-page--refactor .front-hero__news time { font-size: 14px; line-height: 20px; }
  .front-page--refactor .front-hero__news b {
    width: auto;
    min-width: 54px;
    height: 20px;
    background: var(--color-blue);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
  }
  .front-page--refactor .front-hero__news span {
    grid-column: 1 / -1;
    font-size: 17px;
    line-height: 24px;
  }

  .front-page--refactor .front-hero__scroll {
    --front-hero-scroll-line-length: 31.25vw;
    top: 93.847656vw;
    right: 3.808594vw;
    left: auto;
    width: 2.734375vw;
    height: 31.25vw;
  }
  .front-page--refactor .front-hero__scroll-label text {
    font-size: 12px;
    transform: translate(15px, 0.5px) rotate(90deg);
    transform-origin: 0 0;
    transform-box: view-box;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  /* At this width the three-card tablet row is clearer than three oversized
   * full-width cards with large unused centres. */
  .front-page--refactor .front-environment__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .front-page--refactor .front-environment-card { min-height: 224px; }
  .front-page--refactor .front-environment-card a { min-height: 222px; }
  .front-page--refactor .front-environment-card img {
    top: 48px;
    right: 12px;
    width: calc(100% - 24px);
    height: 96px;
  }
  .front-page--refactor .front-environment-card h3 {
    right: 60px;
    font-size: 17px;
  }
}

/* The header sits outside main.front-page--refactor, so it cannot inherit the
   MV timeline custom properties declared on main. Keep only its final reveal
   timing here; the rest of the sequence remains owned by the MV. */
.site-header--refactor {
  --front-hero-ui-delay: 2.85s;
  --front-hero-ui-duration: 0.25s;
}

@media (prefers-reduced-motion: no-preference) {
  .front-page--refactor .front-hero__word {
    animation: preview-hero-fade var(--front-hero-word-duration) var(--front-hero-word-delay) cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .front-page--refactor .front-hero__title-line--first {
    animation: preview-hero-copy var(--front-hero-copy-first-duration) var(--front-hero-copy-first-delay) ease-in both;
  }

  .front-page--refactor .front-hero__title-line--second {
    animation: preview-hero-copy var(--front-hero-copy-second-duration) var(--front-hero-copy-second-delay) ease-in both;
  }

  .front-page--refactor .front-hero__group-photo {
    animation: preview-hero-people var(--front-hero-people-duration) var(--front-hero-people-delay) ease-in-out both;
  }

  .front-page--refactor .front-hero__news,
  .front-page--refactor .front-hero__scroll,
  .site-header--refactor .site-header__logo,
  .site-header--refactor .site-header__entries,
  .site-header--refactor .site-header__controls {
    animation: preview-hero-fade var(--front-hero-ui-duration) var(--front-hero-ui-delay) ease-out both;
  }

  .front-page--refactor .front-hero__scroll-line::before {
    animation: preview-scroll-cue 3.4s calc(var(--front-hero-ui-delay) + var(--front-hero-ui-duration)) cubic-bezier(0.45, 0, 0.15, 1) infinite;
  }
}

@keyframes preview-hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes preview-hero-copy {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes preview-hero-people {
  from { opacity: 0; translate: 0 30px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes preview-scroll-cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  8% { opacity: 1; transform: translate(-50%, 0); }
  78% { opacity: 1; transform: translate(-50%, calc(var(--front-hero-scroll-line-length) - 16px)); }
  90%, 100% { opacity: 0; transform: translate(-50%, calc(var(--front-hero-scroll-line-length) - 16px)); }
}
