

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

html {
  margin: 0;
  padding: 0;
  background: #050505;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;

  background: #050505;
  color: #ffffff;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.is-booting {
  overflow: hidden;
}

button,
a {
  font: inherit;
}




.loader {
  position: fixed;
  z-index: 1000;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 24px;

  background: url('./image/loadingbackground.webp') no-repeat center center;
  background-size: cover;
  color: #000000;
}

.loader__content {
  width: min(560px, 100%);
}

.loader__eyebrow {
  margin: 0 0 18px;

  color: rgba(0, 0, 0, 0.6);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.loader__status {
  margin: 0 0 28px;

  font-size: clamp(30px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.loader__track {
  position: relative;

  width: 100%;
  height: 2px;

  overflow: hidden;

  background: rgba(0, 0, 0, 0.15);
}

.loader__bar {
  width: 0%;
  height: 100%;

  background: #000000;

  transform-origin: left center;
}

.loader__information {
  display: flex;
  justify-content: space-between;
  gap: 24px;

  margin-top: 14px;

  color: rgba(0, 0, 0, 0.6);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}




.story {
  position: relative;
  background: #050505;
}

.stage {
  position: sticky;
  z-index: 1;
  top: 0;

  width: 100%;
  height: 100svh;

  overflow: hidden;
  background: #050505;

  transform-origin: center center;
}



.stage__canvas {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  background: #050505;

  will-change: contents;
}

.stage__shade {
  position: absolute;
  z-index: 1;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.15) 32%,
      rgba(0, 0, 0, 0.02) 50%,
      rgba(0, 0, 0, 0.15) 68%,
      rgba(0, 0, 0, 0.62) 100%
    );

  opacity: 0.36;
}

.stage__darken {
  position: absolute;
  z-index: 2;
  inset: 0;

  pointer-events: none;

  background: #000000;
  opacity: 0;
  visibility: hidden;

  will-change: opacity, visibility;
}



.progress-line {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: rgba(255, 255, 255, 0.12);
}

.progress-line__fill {
  display: block;

  width: 0%;
  height: 100%;

  background: rgba(255, 255, 255, 0.68);

  will-change: width;
}




.content-panel {
  position: absolute;
  z-index: 3;
  top: 50%;

  width: min(520px, calc(100vw - 48px));

  pointer-events: none;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-50%);

  will-change: transform, opacity;
}

.content-panel--left {
  left: clamp(24px, 7vw, 140px);
  text-align: left;
}

.content-panel--right {
  right: clamp(24px, 7vw, 140px);
  text-align: right;
}

.content-panel__number {
  margin: 0 0 18px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.content-panel__heading {
  max-width: 11ch;
  margin: 0;

  font-size: clamp(38px, 5.8vw, 88px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.content-panel--right .content-panel__heading {
  margin-left: auto;
}

.content-panel__description {
  max-width: 470px;
  margin: 28px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.6;
}

.content-panel--right .content-panel__description {
  margin-left: auto;
}




.scroll-hint {
  position: absolute;
  z-index: 4;

  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  opacity: 0;
  visibility: hidden;

  transform: translateX(-50%);
}

.scroll-hint__mouse {
  position: relative;

  display: block;

  width: 19px;
  height: 30px;

  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
}

.scroll-hint__wheel {
  position: absolute;
  top: 6px;
  left: 50%;

  width: 2px;
  height: 5px;

  border-radius: 999px;
  background: #ffffff;

  transform: translateX(-50%);

  animation: mouse-wheel 1.5s ease-in-out infinite;
}

@keyframes mouse-wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 9px);
  }
}


.content-panel__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.content-panel__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.75;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.content-panel__social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.content-panel__social-btn:hover,
.content-panel__social-btn:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.content-panel__social-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


.content-panel--wide {
  width: min(560px, calc(100vw - 48px));
}



.carousel {
  pointer-events: auto;
  margin-top: 22px;
}

.carousel__viewport {
  position: relative;

  height: 250px;
  overflow: hidden;
}

.carousel__track {
  position: relative;

  margin: 0;
  padding: 0;

  list-style: none;
  will-change: transform;
}

.carousel__item {
  height: 206px;
  overflow: hidden;
}

.carousel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;

  margin: 0 0 10px;

  opacity: 0.5;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  transition: opacity 0.35s ease;
}

.carousel__period {
  opacity: 0.62;
  font-weight: 600;
}

.carousel__role {
  margin: 0 0 12px;

  opacity: 0.42;

  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;

  transition: opacity 0.35s ease;
}

.carousel__desc {
  max-width: 460px;
  margin: 0;

  opacity: 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 14px;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;

  transition: opacity 0.35s ease;
}

.carousel__item.is-active .carousel__meta {
  opacity: 0.85;
}

.carousel__item.is-active .carousel__role {
  opacity: 1;
}

.carousel__item.is-active .carousel__desc {
  opacity: 1;
}

.carousel__rule {
  height: 0;
  margin: 0;

  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.carousel__count {
  margin: 16px 0 0;

  color: rgba(255, 255, 255, 0.46);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.carousel__count-current {
  color: rgba(255, 255, 255, 0.78);
}



.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 26px 20px;

  margin: 22px 0 0;
  padding: 0;

  list-style: none;
}

.skills__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills__item--wide {
  grid-column: span 2;
}

.skills__logo {
  display: block;

  width: 30px;
  height: 30px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 10px;
}

.skills__logo-img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: left center;
}

.skills__label {
  color: rgba(255, 255, 255, 0.74);

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}



.skills__cta {
  margin-top: 28px;
  pointer-events: auto;
}

.btn-masterpiece {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 9em;
  height: 3em;
  border-radius: 30em;
  font-size: 15px;
  font-family: inherit;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.45),
    -6px -6px 12px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: color 0.4s ease;
}

.btn-masterpiece::before {
  content: '';
  width: 0;
  height: 3em;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
  transition: width 0.5s ease;
  display: block;
  z-index: -1;
}

.btn-masterpiece:hover {
  color: #111;
}

.btn-masterpiece:hover::before {
  width: 9em;
}




.education {
  margin-top: 24px;
}

.education__rule {
  margin: 24px 0;

  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.education__header {
  margin: 0 0 8px;

  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.education__remark {
  margin: 0 0 4px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 14px;
  line-height: 1.5;
}

.education__meta {
  margin: 0;

  color: rgba(255, 255, 255, 0.5);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.education__notes {
  margin: 16px 0 0;
  padding: 0;

  list-style: none;
}

.education__notes li {
  position: relative;

  margin: 0 0 10px;
  padding-right: 1.1em;

  color: rgba(255, 255, 255, 0.66);

  font-size: 13.5px;
  line-height: 1.55;
}

.education__notes li::after {
  content: "—";

  position: absolute;
  top: 0;
  right: 0;

  opacity: 0.5;
}

.content-panel--right .education__notes li {
  padding-right: 0;
  padding-left: 1.1em;
}

.content-panel--right .education__notes li::after {
  content: none;
}

.content-panel--right .education__notes li::before {
  content: "—";

  position: absolute;
  top: 0;
  left: 0;

  opacity: 0.5;
}



.contact__email {
  display: inline-block;

  margin-top: 22px;

  color: #ffffff;
  text-decoration: none;

  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;

  border-bottom: 1px solid rgba(255, 255, 255, 0.35);

  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
}



.chapter-track {
  position: relative;
  z-index: 2;

  pointer-events: none;
}

.chapter {
  min-height: 120vh;
}





@media (max-width: 760px) {
  .stage__shade {
    opacity: 0.58;
  }

  .body {
    filter: drop-shadow(rgb(0, 0, 0) -1px 4px 14px);
  }

  .content-panel {
    top: auto;
    bottom: 110px;

    width: calc(100% - 48px);

    transform: none;
  }

  .content-panel--left,
  .content-panel--right {
    right: auto;
    left: 24px;

    text-align: left;
  }

  .content-panel--right .content-panel__heading,
  .content-panel--right .content-panel__description {
    margin-left: 0;
  }

  .content-panel__heading {
    max-width: 12ch;
  }

  .content-panel__description {
    max-width: 38ch;
    margin-top: 20px;
  }

  .scroll-hint {
    right: 24px;
    bottom: 28px;
    left: auto;

    transform: none;
  }

  .content-panel--wide {
    width: calc(100% - 48px);
  }

  .carousel__viewport {
    height: 196px;
  }

  .carousel__item {
    height: 168px;
  }

  .carousel__role {
    margin-bottom: 8px;
    font-size: clamp(18px, 5vw, 22px);
  }

  .carousel__desc {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
  }

  .skills__item--wide {
    grid-column: span 1;
  }

  .education__notes li {
    padding-right: 0;
    padding-left: 1.1em;
  }

  .education__notes li::after {
    content: none;
  }

  .education__notes li::before {
    content: "—";

    position: absolute;
    top: 0;
    left: 0;

    opacity: 0.5;
  }

  .contact__email {
    font-size: clamp(20px, 7vw, 26px);
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}