@charset "UTF-8";

:root {

  --color-black: #000;
  --color-bg: #090909;
  --color-ink: #090909;
  --color-paper: #f0eee8;
  --color-white: #fff;
  --color-accent: #36f5ff;

  --motion: 1.2;

  --font-kv: "Instrument Sans", sans-serif;
  --font-base: "Inter", sans-serif;
  --font-en-serif: "Playfair Display", serif;
  --font-ja-serif: "Noto Serif JP", serif;

  --content-width: 960px;
  --gutter: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--color-accent);
  color: var(--color-ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.u-nowrap {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .u-br-pc {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kv {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background: var(--color-black);
  overflow: hidden;
}

.kv__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
}

.kv__letter {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-white);
  font-family: var(--font-kv);
  font-weight: 400;
  line-height: 1;
  white-space: pre;
  pointer-events: none;
  will-change: transform;
}

.kv__vertical,
.kv__scroll {
  display: none;
}

@media (max-width: 767px) {
  .kv__stage {
    display: none;
  }

  .kv__vertical {

    --kv-v-pitch: min(34px, calc((100vh - 260px) / 13));
    --kv-v-pitch: min(34px, calc((100svh - 260px) / 13));
    --kv-wipe-start: 1.5s;
    --kv-wipe-time: 2s;
    position: absolute;
    top: 48%;
    right: 0;
    left: 0;
    display: block;
    padding-block: calc(var(--kv-v-pitch) * 0.7);
    translate: 0 -50%;
  }

  .kv__wipe {
    position: absolute;
    inset: 0;
    clip-path: inset(100% 0 0 0);
    animation: kv-wipe var(--kv-wipe-time) var(--kv-wipe-start) both;
  }

  .kv__wipe--accent {
    background: var(--color-accent);
  }

  .kv__wipe--white {
    padding-block: inherit;
    background: var(--color-white);
    color: var(--color-black);
    animation-delay: calc(var(--kv-wipe-start) + var(--kv-wipe-time) * 0.55);
  }

  .kv__wipe--white .kv__vertical-text {
    animation: none;
  }

  .kv__vertical-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    font-size: calc(var(--kv-v-pitch) * 0.72);
    line-height: var(--kv-v-pitch);
    animation: kv-v-in 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .kv__vertical-space {
    height: var(--kv-v-pitch);
  }

  .kv__scroll {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.08em;
    translate: -50% 0;
    animation: kv-v-fade 0.9s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .kv__scroll-line {
    position: relative;
    width: 1px;
    height: 40px;
    background: rgb(255 255 255 / 0.3);
    overflow: hidden;
  }

  .kv__scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--color-accent);
    translate: 0 -100%;
    animation: kv-scroll-flow 2.2s 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}

@keyframes kv-scroll-flow {
  0% {
    translate: 0 -100%;
  }
  65%,
  100% {
    translate: 0 250%;
  }
}

@keyframes kv-wipe {
  0% {
    clip-path: inset(100% 0 0 0);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  45%,
  55% {
    clip-path: inset(0 0 0 0);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  100% {
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes kv-v-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}

@keyframes kv-v-fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv__wipe,
  .kv__vertical-text,
  .kv__scroll {
    animation: none;
  }

  .kv__scroll-line {
    background: currentColor;
  }

  .kv__scroll-line::after {
    display: none;
  }
}

.site-header {
  position: absolute;
  top: 48px;
  right: var(--gutter);
  left: var(--gutter);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: normal;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.site-header__logo {
  white-space: nowrap;
}

.back-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.back-link__arrow {
  font-variant-emoji: text;
}

.back-link__label {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 0.32em;
  justify-items: center;
}

.members {

  padding: 249px 0 208.5px;
  background: var(--color-bg);
}

.members__inner {
  width: min(var(--content-width), 100% - var(--gutter) * 2);
  margin: 0 auto;
}

.members__title {
  height: 36px;
  color: var(--color-paper);
  font-weight: 500;
  font-size: 45px;
  letter-spacing: 0.03em;
  line-height: 0.88;
}

.members__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 120px 24px;
  margin-top: 120px;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.member-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 304 / 405;
  overflow: hidden;
  background: #1a1a1a;
}

.member-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card__img--blur {
  transition: opacity calc(0.5s * var(--motion)) ease;
}

.member-card__img--sharp {
  opacity: 0;
  filter: blur(10px);
  transform: scaleX(1.08);
  transition:
    opacity calc(0.5s * var(--motion)) ease,
    filter calc(0.6s * var(--motion)) cubic-bezier(0.16, 1, 0.3, 1),
    transform calc(0.7s * var(--motion)) cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 6px;
}

.member-card:focus-visible .member-card__img--blur {
  opacity: 0;
}

.member-card:focus-visible .member-card__img--sharp {
  opacity: 1;
  filter: blur(0);
  transform: scaleX(1);
}

@media (hover: hover) {
  .member-card:hover .member-card__img--blur {
    opacity: 0;
  }

  .member-card:hover .member-card__img--sharp {
    opacity: 1;
    filter: blur(0);
    transform: scaleX(1);
  }
}

.is-scroll-focus .member-card__img--blur {
  opacity: calc(1 - var(--focus, 0));
  transition: none;
}

.is-scroll-focus .member-card__img--sharp {
  opacity: var(--focus, 0);
  filter: blur(calc((1 - var(--focus, 0)) * 10px));
  transform: scaleX(calc(1.08 - var(--focus, 0) * 0.08));
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .member-card__img--blur,
  .member-card__img--sharp {
    filter: none;
    transform: none !important;
    transition: opacity 0.3s ease;
  }
}

.member-card__caption {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.5;
}

.member-card__name {
  font-weight: 600;
}

.member-card__role {
  font-weight: 300;
}

.member-card__arrow {
  margin-left: 0.6em;
  font-variant-emoji: text;
}

@media (max-width: 1199px) {
  :root {
    --gutter: 40px;
  }

  .members {
    padding: 180px 0 145px;
  }

  .members__list {
    gap: 80px 20px;
    margin-top: 80px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 24px;
  }

  .site-header {
    top: 24px;
    font-size: 14px;
  }

  .members {
    padding: 120px 0 90px;
  }

  .members__title {
    height: auto;
    font-size: 32px;
  }

  .members__list {
    grid-template-columns: 1fr;
    gap: 64px;
    margin-top: 56px;
  }
}

.js [data-reveal] {
  --reveal-time: var(--reveal-duration, calc(1.4s * var(--motion)));
  --reveal-curve: var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1));
  opacity: 0;
  translate: 0 var(--reveal-distance, 40px);
  filter: var(--reveal-filter, none);
  transition:
    opacity var(--reveal-fade-duration, var(--reveal-time)) var(--reveal-ease-fade, var(--reveal-curve)),
    translate var(--reveal-time) var(--reveal-ease-move, var(--reveal-curve)),
    filter var(--reveal-blur-duration, var(--reveal-time)) var(--reveal-ease-blur, var(--reveal-curve));
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    translate: none;
    filter: none;
    transition: opacity 0.4s ease;
    transition-delay: 0s;
  }
}

html.is-profile-open {
  overflow: hidden;
}

.profile {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 80px 120px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.profile[open],
.profile[open]::backdrop {
  animation: profile-fade-in calc(0.4s * var(--motion)) ease both;
}

.profile.is-closing,
.profile.is-closing::backdrop {
  animation: profile-fade-out calc(0.3s * var(--motion)) ease both;
}

@keyframes profile-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes profile-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.profile__panel {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-white);
}

.profile__masthead {
  position: relative;
  display: grid;
  grid-template-columns: 550fr 67fr 483fr;
  padding: 40px 40px 257px 60px;
}

.profile__photo {
  position: relative;
  grid-column: 1;
  margin: 0;
  aspect-ratio: 550 / 683;
  overflow: hidden;
  container-type: inline-size;
}

.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__copy {
  --copy-text-delay: 1.5s;
  --copy-text-duration: 0.9s;
  --copy-band-delay: 2.2s;
  --copy-band-duration: 0.7s;
  --copy-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: absolute;
  top: var(--copy-y);
  left: var(--copy-x);
  z-index: 1;
  isolation: isolate;
  margin: 0;
  padding: 0 0.12em;
  color: #000;
  font-family: var(--font-ja-serif);
  font-size: calc(var(--copy-size) / 550 * 100cqw);
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.profile__copy--multi {
  line-height: 1.3;
}

.profile__copy--en {
  font-family: var(--font-en-serif);
  letter-spacing: 0.05em;
}

.profile__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-accent);
}

.profile__copy-text {
  display: block;
}

.js .profile__copy::before {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform calc(var(--copy-band-duration) * var(--motion)) var(--copy-ease) calc(var(--copy-band-delay) * var(--motion));
}

.js .profile__copy-text {
  clip-path: inset(-10% -10% 110% -10%);
  transition: clip-path calc(var(--copy-text-duration) * var(--motion)) var(--copy-ease) calc(var(--copy-text-delay) * var(--motion));
}

.js .profile__photo.is-revealed .profile__copy::before {
  transform: scaleY(1);
}

.js .profile__photo.is-revealed .profile__copy-text {
  clip-path: inset(-10% -10% -10% -10%);
}

@media (prefers-reduced-motion: reduce) {
  .js .profile__copy::before,
  .js .profile__copy-text {
    transition: none;
  }
}

.profile__intro {
  grid-column: 3;
  padding-top: 192px;
}

.profile__name {
  font-weight: 600;
  font-size: 60px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.profile__meta {
  margin-top: 67px;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.profile__back {
  position: absolute;
  top: 36px;
  right: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  cursor: pointer;
}

.profile:focus {
  outline: none;
}

.profile__back:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 6px;
}

.profile__bio,
.profile__works {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 64px;
}

.profile__bio {
  min-height: 760px;
}

.profile__heading {
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.03em;
  line-height: normal;
}

.profile__bio-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 60px;
  margin-top: 32px;
  padding-top: 60px;
}

.profile__bio-ja {
  position: relative;
  z-index: 0;
  height: max-content;
  max-height: 30em;
  font-family: var(--font-ja-serif);
  font-size: 15px;
  line-height: 1.6;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-variant-east-asian: full-width;
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
}

.profile__bio-en {
  width: max-content;
  max-width: 100%;
  text-wrap: pretty;
  font-family: var(--font-en-serif);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.profile__bio-en {
  transition: background-color calc(0.3s * var(--motion)) ease;
}

.profile__bio-ja::before {
  content: "";
  position: absolute;
  inset: 0 0.3em;
  z-index: -1;
  background-color: var(--color-accent);
  opacity: 0;
  transition: opacity calc(0.3s * var(--motion)) ease;
}

@media (hover: hover) {
  .profile__bio-ja:hover::before {
    opacity: 1;
  }

  .profile__bio-en:hover {
    background-color: var(--color-accent);
  }
}

.profile ::selection {
  background: var(--color-ink);
  color: var(--color-white);
}

.profile__works {
  padding-bottom: 160px;
}

.profile[data-show-works="false"] .profile__works {
  display: none;
}

.profile__works-list {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 0;
  width: min(1072px, 100%);
  margin-top: 92px;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card__img {
  position: relative;
  display: block;
  aspect-ratio: 357 / 201;
  overflow: hidden;
  background: #ddd;
}

.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(54, 245, 255, 0.45);
  opacity: 0;
  transition: opacity calc(0.3s * var(--motion)) ease;
}

.work-card__caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 16px;
  padding: 0 8px 0 0;
  transition: background-color calc(0.3s * var(--motion)) ease;
}

.work-card__title,
.work-card__meta {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.work-card__phrase {
  display: inline-block;
}

.work-card__title {
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
}

.work-card__meta {
  font-weight: 300;
  font-size: 10px;
  line-height: normal;
}

.work-card__arrow {
  margin-left: 0.8em;
}

@media (hover: hover) {
  .work-card:hover .work-card__img::after {
    opacity: 1;
  }

  .work-card:hover .work-card__caption {
    background-color: var(--color-accent);
  }
}

.work-card:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

@media (max-width: 1199px) {
  .profile {
    padding: 40px;
  }

  .profile__masthead {
    padding-bottom: 160px;
  }

  .profile__intro {
    padding-top: 120px;
  }

  .profile__name {
    font-size: 44px;
  }

  .profile__meta {
    margin-top: 40px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .profile__works-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .profile {
    padding: 0;
  }

  .profile__panel {
    min-height: 100%;
  }

  .profile__masthead {
    grid-template-columns: 1fr;
    padding: 72px 24px 64px;
  }

  .profile__intro {
    grid-column: 1;
    padding-top: 32px;
  }

  .profile__name {
    font-size: 36px;
  }

  .profile__meta {
    margin-top: 16px;
    font-size: 13px;
  }

  .profile__back {
    top: 16px;
    right: 24px;
  }

  .profile__bio,
  .profile__works {
    padding: 64px 24px;
  }

  .profile__bio {
    min-height: 0;
  }

  .profile__works {
    padding-bottom: 96px;
  }

  .profile__works-list {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
}

.has-cursor-trail,
.has-cursor-trail *,
.has-cursor-trail ::backdrop {
  cursor: none !important;
}
