/*
 * Shared fade-up motion
 * Baseline: approved /about/ fade-up demo.
 * This layer intentionally uses the individual `translate` property so it does
 * not overwrite existing `transform` based effects (slick, fluid motion, etc.).
 */
html.motion-reveal-js .motion-reveal-up {
  --motion-reveal-y: 22px;
  --motion-reveal-delay: 0ms;
  opacity: 0;
  translate: 0 var(--motion-reveal-y);
  transition:
    opacity 520ms cubic-bezier(.25, .46, .45, .94) var(--motion-reveal-delay),
    translate 760ms cubic-bezier(.16, 1, .3, 1) var(--motion-reveal-delay);
  will-change: opacity, translate;
}

html.motion-reveal-js .motion-reveal-up.is-motion-reveal-visible {
  opacity: 1;
  translate: 0 0;
}

html.motion-reveal-js .motion-reveal-up.is-motion-reveal-settled {
  will-change: auto;
}

@media (max-width: 767px) {
  html.motion-reveal-js .motion-reveal-up {
    --motion-reveal-y: 16px;
    transition:
      opacity 480ms cubic-bezier(.25, .46, .45, .94) var(--motion-reveal-delay),
      translate 680ms cubic-bezier(.16, 1, .3, 1) var(--motion-reveal-delay);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion-reveal-js .motion-reveal-up {
    opacity: 1;
    translate: none;
    transition: none;
    will-change: auto;
  }
}

/* ------------------------------------------------------------
   Shared interaction motion
   Centralized here so both new-graduate and career pages use the
   same behavior without duplicating rules in each style.css.
------------------------------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  .com-Btn a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    opacity: 1;
    transition: background-color 280ms ease;
  }

  .com-Btn a::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 78%;
    height: 230%;
    border-radius: 50%;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, .96) 0%,
      rgba(255, 248, 249, .72) 18%,
      rgba(255, 255, 255, .28) 42%,
      rgba(255, 255, 255, 0) 72%
    );
    content: "";
    pointer-events: none;
    transform: translate3d(-155%, -50%, 0) rotate(-18deg);
    transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
    z-index: 2;
  }

  .com-Btn.white a::before,
  .com-Link-Box .com-Btn a::before {
    background: radial-gradient(
      ellipse at center,
      rgba(178, 184, 191, .50) 0%,
      rgba(202, 207, 212, .28) 22%,
      rgba(215, 219, 223, .12) 44%,
      rgba(220, 223, 226, 0) 72%
    );
  }

  .com-Btn a:hover {
    opacity: 1;
    background-color: #eb1231;
  }

  .com-Btn.white a:hover,
  .com-Link-Box .com-Btn a:hover {
    background-color: #f5f5f5;
  }

  .com-Btn a:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }

  .com-list-Ul .image,
  .com-Link03 .image {
    overflow: hidden;
  }

  .com-list-Ul .image img,
  .com-Link03 .image img {
    transition: transform 820ms cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
  }

  .com-list-Ul .image:hover {
    opacity: 1;
  }

  .com-list-Ul .image:hover img,
  .com-Link03 a:hover .image img {
    transform: scale(1.045);
  }

  .com-Link03 a:hover {
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   Page top
------------------------------------------------------------ */
.site-page-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  cursor: pointer;
  transition:
    opacity 320ms cubic-bezier(.25, .46, .45, .94),
    translate 500ms cubic-bezier(.16, 1, .3, 1);
  z-index: 120;
}

.site-page-top.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.site-page-top img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-page-top:focus-visible {
  outline: 2px solid #df0523;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .site-page-top {
    right: 10px;
    bottom: 10px;
    width: 44px;
    height: 44px;
    translate: 0 8px;
  }

  .site-page-top.is-visible {
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .com-Btn a::before {
    display: none;
  }

  .com-list-Ul .image img,
  .com-Link03 .image img,
  .site-page-top {
    transition: none;
  }
}



/* ------------------------------------------------------------
   Scroll-direction header
   The original top header remains unchanged at page top. Once the
   document is scrolled, it becomes a hidden fixed header and only
   fades/slides down when the user scrolls upward.
------------------------------------------------------------ */
#gHeader.is-scroll-aware {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translate3d(0, -110%, 0);
  pointer-events: none;
  box-shadow: 0 0.6rem 2rem rgba(26, 20, 17, .06);
  transition:
    opacity 280ms cubic-bezier(.25, .46, .45, .94),
    transform 420ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
  z-index: 140;
}

#gHeader.is-scroll-aware.is-scroll-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* ------------------------------------------------------------
   Menu fit for low-height desktop viewports
------------------------------------------------------------ */
@media all and (min-width: 768px) and (max-height: 900px) {
  .menu-Box .inner-Box {
    min-height: 100%;
    padding-top: 8.5rem;
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .menu-Box .inner-Box > .flex-Box {
    width: 100%;
  }

  .menu-Box .flex-Box .photo {
    width: clamp(34rem, 33vw, 42rem);
  }

  .menu-Box .flex-Box .right-Box {
    margin-left: clamp(5rem, 6vw, 8rem);
  }

  .menu-Box .navi-Ul {
    gap: clamp(4rem, 5vw, 7rem);
  }

  .menu-Box .com-Link-Box {
    margin-top: clamp(2.5rem, 4vh, 4.5rem);
  }
}

/* ------------------------------------------------------------
   Shared text-link feedback
------------------------------------------------------------ */
.menu-Box .navi-Ul a,
#gFooter .f-Navi a,
.com-Link a {
  transition:
    color 260ms ease,
    opacity 260ms ease;
}

.com-Link a::after {
  translate: 0 0;
  transition: translate 360ms cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .menu-Box .navi-Ul a:hover,
  #gFooter .f-Navi a:hover,
  .com-Link a:hover {
    color: #df0523 !important;
    opacity: 1 !important;
  }

  .com-Link a:hover::after {
    translate: 3px 0;
  }
}

/* ------------------------------------------------------------
   Linked image hover: crop-local gentle zoom
------------------------------------------------------------ */
.motion-image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.people-slides .motion-image-link {
  border-radius: .6rem;
}

.motion-image-link img {
  display: block;
  width: 100%;
  transition: transform 820ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .motion-image-link:hover img {
    transform: scale(1.045);
  }
}

/* ------------------------------------------------------------
   About / FIELDS anchor cards: lift instead of opacity fade
------------------------------------------------------------ */
#main .fields-Box .show-Box .link a {
  opacity: 1;
  translate: 0 0;
  transition: translate 440ms cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) and (pointer: fine) {
  #main .fields-Box .show-Box .link a:hover {
    opacity: 1 !important;
    translate: 0 -6px;
  }
}

/* ------------------------------------------------------------
   New-graduate PEOPLE slider controls: same light sweep on prev/next
   as the Index button.
------------------------------------------------------------ */
.people-slides .people-slides-btns .arrow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: .4rem;
  opacity: 1;
}

.people-slides .people-slides-btns .arrow::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 78%;
  height: 230%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, .96) 0%,
    rgba(255, 255, 255, .62) 20%,
    rgba(255, 255, 255, .22) 44%,
    rgba(255, 255, 255, 0) 72%
  );
  content: "";
  pointer-events: none;
  transform: translate3d(-155%, -50%, 0) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 2;
}

.people-slides .people-slides-btns .arrow img {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .people-slides .people-slides-btns .arrow:hover {
    opacity: 1 !important;
  }

  .people-slides .people-slides-btns .arrow:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }
}

/* ------------------------------------------------------------
   Career OPEN POSITIONS cards
   Card enlarges slightly; only the red arrow tile receives the light sweep.
------------------------------------------------------------ */
html[data-static-preview] .com-info .com-Link-Ul a {
  position: relative;
  opacity: 1;
  scale: 1;
  transition: scale 520ms cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}

html[data-static-preview] .com-info .com-Link-Ul a::after {
  position: absolute;
  right: 3rem;
  bottom: 2.9rem;
  width: 6rem;
  height: 6rem;
  border-radius: .6rem;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 18%,
    rgba(255,255,255,.56) 45%,
    rgba(255,255,255,.08) 58%,
    rgba(255,255,255,0) 76%
  );
  background-size: 260% 100%;
  background-position: 165% 0;
  content: "";
  pointer-events: none;
  transition: background-position 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  html[data-static-preview] .com-info .com-Link-Ul a {
    z-index: 1;
  }

  html[data-static-preview] .com-info .com-Link-Ul a:hover {
    opacity: 1 !important;
    scale: 1.045;
    z-index: 5;
  }

  html[data-static-preview] .com-info .com-Link-Ul a:hover::after {
    background-position: -75% 0;
  }
}

/* Career OPEN POSITIONS mobile arrow tile is 44px. */
@media all and (max-width: 767px) {
  html[data-static-preview] .com-info .com-Link-Ul a::after {
    right: 2rem;
    bottom: 50%;
    width: 4.4rem;
    height: 4.4rem;
    translate: 0 50%;
  }
}

/* ------------------------------------------------------------
   Career jobs in-page navigation: same restrained white-button feedback
------------------------------------------------------------ */
html[data-static-preview] #main .show-Box > .content > .com-Link-Ul a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  transition: background-color 280ms ease;
}

html[data-static-preview] #main .show-Box > .content > .com-Link-Ul a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 78%;
  height: 230%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(178, 184, 191, .50) 0%,
    rgba(202, 207, 212, .28) 22%,
    rgba(215, 219, 223, .12) 44%,
    rgba(220, 223, 226, 0) 72%
  );
  content: "";
  pointer-events: none;
  transform: translate3d(-155%, -50%, 0) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 2;
}

html[data-static-preview] #main .show-Box > .content > .com-Link-Ul a > * {
  position: relative;
  z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  html[data-static-preview] #main .show-Box > .content > .com-Link-Ul a:hover {
    opacity: 1 !important;
    background-color: #f5f5f5;
  }

  html[data-static-preview] #main .show-Box > .content > .com-Link-Ul a:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }
}

/* ------------------------------------------------------------
   Page top refinement: borderless tile + white light sweep + #333 hover
------------------------------------------------------------ */
.site-page-top {
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 4px;
  background-color: #1a1411;
  transition:
    opacity 320ms cubic-bezier(.25, .46, .45, .94),
    translate 500ms cubic-bezier(.16, 1, .3, 1),
    background-color 280ms ease;
}

.site-page-top::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 78%;
  height: 230%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, .94) 0%,
    rgba(255, 255, 255, .58) 20%,
    rgba(255, 255, 255, .20) 44%,
    rgba(255, 255, 255, 0) 72%
  );
  content: "";
  pointer-events: none;
  transform: translate3d(-155%, -50%, 0) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 1;
}

.site-page-top img {
  position: relative;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .site-page-top:hover {
    background-color: #333;
  }

  .site-page-top:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #gHeader.is-scroll-aware,
  .motion-image-link img,
  #main .fields-Box .show-Box .link a,
  .people-slides .people-slides-btns .arrow::before,
  html[data-static-preview] .com-info .com-Link-Ul a,
  html[data-static-preview] .com-info .com-Link-Ul a::after,
  html[data-static-preview] #main .show-Box > .content > .com-Link-Ul a::before,
  .site-page-top::before {
    transition: none;
  }
}

/* ------------------------------------------------------------
   Menu button: restrained white-button light sweep
   The original menu open/close behavior is untouched; this only replaces
   the old opacity hover feedback.
------------------------------------------------------------ */
.menu-Btn {
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  transition: background-color 280ms ease, opacity 280ms ease;
}

.menu-Btn::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 78%;
  height: 230%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(178, 184, 191, .50) 0%,
    rgba(202, 207, 212, .28) 22%,
    rgba(215, 219, 223, .12) 44%,
    rgba(220, 223, 226, 0) 72%
  );
  content: "";
  pointer-events: none;
  transform: translate3d(-155%, -50%, 0) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 1;
}

.menu-Btn .menu {
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .menu-Btn:hover {
    opacity: 1 !important;
    background-color: #f5f5f5;
  }

  .menu-Btn:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-Btn::before {
    display: none;
  }
}

/* ------------------------------------------------------------
   Footer copyright clearance for fixed page-top button (desktop)
------------------------------------------------------------ */
@media (min-width: 768px) {
  #gFooter .btm-Box address {
    margin-right: 20px;
  }
}

/* ------------------------------------------------------------
   ABOUT WORK STYLE slider controls: reuse the same light sweep
   as the new-graduate PEOPLE slider prev/next controls.
------------------------------------------------------------ */
#main .work-Box .work-slider-arrows .arrow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: .4rem;
  opacity: 1;
}

#main .work-Box .work-slider-arrows .arrow::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 78%;
  height: 230%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, .96) 0%,
    rgba(255, 255, 255, .62) 20%,
    rgba(255, 255, 255, .22) 44%,
    rgba(255, 255, 255, 0) 72%
  );
  content: "";
  pointer-events: none;
  transform: translate3d(-155%, -50%, 0) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 2;
}

#main .work-Box .work-slider-arrows .arrow img {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  #main .work-Box .work-slider-arrows .arrow:hover {
    opacity: 1 !important;
  }

  #main .work-Box .work-slider-arrows .arrow:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }
}


/* ------------------------------------------------------------
   Career entry modal actions: align with shared button light sweep
------------------------------------------------------------ */
.career-entry-modal__button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.career-entry-modal__button::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 78%;
  height: 230%;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate3d(-155%, -50%, 0) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
  z-index: 1;
}

.career-entry-modal__button--mail::before {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, .96) 0%,
    rgba(255, 248, 249, .72) 18%,
    rgba(255, 255, 255, .28) 42%,
    rgba(255, 255, 255, 0) 72%
  );
}

.career-entry-modal__button--cancel::before {
  background: radial-gradient(
    ellipse at center,
    rgba(178, 184, 191, .50) 0%,
    rgba(202, 207, 212, .28) 22%,
    rgba(215, 219, 223, .12) 44%,
    rgba(220, 223, 226, 0) 72%
  );
}

.career-entry-modal__button > * {
  position: relative;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .career-entry-modal__button:hover::before {
    transform: translate3d(185%, -50%, 0) rotate(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-entry-modal__button::before {
    display: none;
  }
}
