@charset "UTF-8";

.PortfolioFilmPreviewLink {
  cursor: pointer;
  outline: none;
}

.PortfolioFilmPreviewLink::after {
  content: none;
  display: none;
}

.PortfolioFilmPreviewLink:hover::after,
.PortfolioFilmPreviewLink:focus-visible::after {
  color: #000;
  background: #fff;
}

.PortfolioFilmPreviewLink:focus-visible {
  box-shadow: inset 0 0 0 1px #fff;
}

.PortfolioFilmPreviewCta {
  position: fixed;
  right: 5%;
  bottom: 8vh;
  z-index: 21;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  color: #fff;
  background: transparent;
  font-family: "Courier New", monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.11em;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

/* Descriptions share the title's right edge, rather than starting from the
   left side of their column. */
.Service__item_description {
  align-self: flex-end;
  padding-left: 0;
  text-align: right;
}

.PortfolioFilmPreviewCta:hover,
.PortfolioFilmPreviewCta:focus-visible {
  color: rgba(255, 255, 255, 0.66);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateX(-3px);
}

.PortfolioFilmPreviewCta:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
}

/* The tenth video is the hand-off into the original full-screen wireframe.
   One viewport advances the video, and the next completes the pinned scene. */
.Service__scroll_item:last-child,
.PageTop__stellla {
  height: 100lvh;
}

/* Keep the completed transition locked to the viewport. The original absolute
   wrapper could slide upward and reveal the outro while the frame was visible. */
.PageTop__stelllaContent {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
}

.PageTop__stelllaContent_inner {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
}

body:not([data-current_section="stellla"]):not([data-product-transition-active="true"]) .PageTop__stelllaContent {
  visibility: hidden;
}

body[data-product-transition-active="true"] .PageTop__stelllaContent {
  visibility: visible;
  opacity: 1 !important;
}

.Stellla__main_logo.PortfolioProductTransition__title {
  width: auto;
  margin-bottom: 3.25%;
  color: #fff;
  font-family: acumin-pro, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(72px, 9vw, 150px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.PortfolioProductTransition__next {
  appearance: none;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  margin-top: 18px;
  padding: 10px 13px 9px;
  color: #050505;
  background: #fff;
  font-family: "Noto Sans JP Variable", "Noto Sans JP", sans-serif;
  font-size: 1.08em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  box-shadow: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.PortfolioProductTransition__next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.PortfolioProductTransition__storyLink {
  position: absolute;
  right: 1.75%;
  bottom: 2.5%;
  z-index: 5;
  min-width: 280px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 22px;
  row-gap: 5px;
  padding: 4px 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: "Noto Sans JP Variable", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: left;
  pointer-events: auto;
  backdrop-filter: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.PortfolioProductTransition__storyKicker {
  grid-column: 1;
  font-family: "Google Sans Code", "Courier New", monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  opacity: 0.58;
}

.PortfolioProductTransition__storyLink > span:last-child {
  grid-column: 1;
}

.PortfolioProductTransition__storyLink::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
}

.PortfolioProductTransition__storyLink:hover,
.PortfolioProductTransition__storyLink:focus-visible {
  color: #fff;
  background: transparent;
  opacity: 0.72;
  transform: translateX(3px);
}

.PortfolioProductTransition__storyLink:hover::after,
.PortfolioProductTransition__storyLink:focus-visible::after {
  transform: translateX(5px);
}

.PortfolioProductTransition__storyLink:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

@media not screen and (min-width: 769px) {
  .PortfolioFilmPreviewLink::after {
    display: none;
  }

  .PortfolioFilmPreviewCta {
    right: 7%;
    bottom: 6%;
    align-self: flex-end;
    margin: 0;
    padding-bottom: 5px;
    font-size: 9px;
  }

  .Stellla__main_logo.PortfolioProductTransition__title {
    width: 100%;
    margin-bottom: 24px;
    font-size: clamp(68px, 16vw, 106px);
    line-height: 0.82;
  }

  .Stellla__content {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .Stellla__main {
    position: absolute;
    top: 46%;
    left: 7%;
    width: 86%;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
  }

  .Stellla__main_text {
    font-size: 13px;
    line-height: 1.72;
    letter-spacing: 0.055em;
  }

  .PortfolioProductTransition__next {
    margin-top: 16px;
    padding: 8px 10px 7px;
    font-size: 0.96em;
    letter-spacing: 0.08em;
  }

  .Stellla__en {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    width: 230px;
    margin: 0;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: 0.045em;
    opacity: 0.72;
  }

  .PortfolioProductTransition__storyLink {
    right: 6%;
    bottom: 6%;
    min-width: min(250px, 76vw);
    padding: 3px 0;
    font-size: 11px;
  }
}

@media not screen and (min-width: 769px) and (max-height: 700px) {
  .Stellla__main {
    top: 43%;
  }

  .Stellla__main_logo.PortfolioProductTransition__title {
    margin-bottom: 18px;
    font-size: clamp(62px, 14.5vw, 92px);
  }

  .Stellla__main_text {
    font-size: 12px;
  }

  .Stellla__en {
    top: calc(100% + 12px);
  }

  .PortfolioProductTransition__storyLink {
    bottom: 3.5%;
  }
}
