* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --page-x: clamp(3rem, 5.5vw, 6.25rem);
  color: #17120f;
  background: #f4efe7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-width: 320px;
  color: #17120f;
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 18, 15, 0.04) 1px, transparent 1px),
    #f4efe7;
  background-size: 42px 42px;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

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

button {
  color: inherit;
  font: inherit;
}

.webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  outline: none;
}

.portfolio-app {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  pointer-events: none;
}

.portfolio-app a,
.portfolio-app button {
  pointer-events: auto;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0;
  height: 0;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 0.45rem;
  height: 0.45rem;
  background: #fff;
}

.cursor__ring {
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  color: #17120f;
  background: #f4efe7;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading__inner {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0.65rem 1.2rem;
  width: min(18rem, calc(100vw - 3rem));
}

.loading__label {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.loading__percent {
  justify-self: end;
  font-size: 0.78rem;
  font-weight: 900;
}

.loading__track {
  grid-column: 1 / -1;
  height: 0.42rem;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.24);
  background: rgba(255, 255, 255, 0.42);
}

.loading__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #17120f;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
}

.topbar__links {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar__links a {
  padding: 0.45rem 0;
  color: rgba(23, 18, 15, 0.68);
}

.topbar__links a:hover {
  color: #17120f;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  height: 2.2rem;
  border: 1px solid rgba(23, 18, 15, 0.18);
  border-radius: 999px;
  color: rgba(23, 18, 15, 0.72);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  cursor: none;
}

.language-toggle:hover {
  color: #17120f;
  background: rgba(255, 255, 255, 0.72);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(23, 18, 15, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.hero {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.36fr);
  align-items: end;
  gap: clamp(1rem, 5vw, 4rem);
  padding: 5.5rem var(--page-x) clamp(0.8rem, 3vw, 2.2rem);
  pointer-events: none;
  z-index: 22;
}

.intro {
  max-width: 48rem;
  align-self: end;
}

.intro__kicker {
  color: #8f3e31;
  font-size: 0.74rem;
  font-weight: 800;
}

.intro__identity {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-top: 0.38rem;
}

.intro__avatar {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 18, 15, 0.18);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0.45rem 1.5rem rgba(23, 18, 15, 0.1);
}

.intro h1 {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.28em;
  align-items: baseline;
  margin: 0;
  font-size: clamp(1.45rem, 2.4rem, 2.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.intro h1 span {
  display: inline-block;
}

.intro__copy {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: rgba(23, 18, 15, 0.72);
  font-size: 0.82rem;
  line-height: 1.62;
}

.progress-panel {
  align-self: end;
  width: min(100%, 22rem);
  justify-self: end;
}

.progress-panel__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(23, 18, 15, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  height: 0.45rem;
  margin-top: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.24);
  background: rgba(255, 255, 255, 0.42);
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #17120f;
  transform: scaleX(0);
  transform-origin: left center;
}

.scroll-hint {
  position: fixed;
  left: 50%;
  top: clamp(1rem, 3vh, 2rem);
  z-index: 23;
  display: grid;
  justify-items: center;
  gap: 0.58rem;
  color: rgba(23, 18, 15, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.scroll-hint.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 0.8rem);
}

.scroll-hint__motion {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  animation: scrollHintFloat 1.55s ease-in-out infinite;
}

.scroll-hint__wheel {
  width: 1.38rem;
  height: 2.05rem;
  border: 2px solid rgba(23, 18, 15, 0.45);
  border-radius: 999px;
}

.scroll-hint__wheel::before {
  content: '';
  position: absolute;
  top: 1.07rem;
  left: 50%;
  width: 0.22rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(23, 18, 15, 0.68);
  transform: translateX(-50%);
  animation: scrollHintDot 1.55s ease-in-out infinite;
}

.scroll-hint__arrow {
  width: 0.48rem;
  height: 0.48rem;
  border: solid rgba(23, 18, 15, 0.52);
  transform: rotate(45deg);
}

.scroll-hint__arrow--up {
  border-width: 2px 0 0 2px;
}

.scroll-hint__arrow--down {
  border-width: 0 2px 2px 0;
}

@keyframes scrollHintFloat {
  0%,
  100% {
    transform: translateY(-0.18rem);
  }
  50% {
    transform: translateY(0.36rem);
  }
}

@keyframes scrollHintDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -0.36rem);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 0.22rem);
  }
}

.project-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.project-layer::before {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: min(54vw, 48rem);
  background: linear-gradient(
    90deg,
    #f4efe7 0%,
    rgba(244, 239, 231, 0.94) 34%,
    rgba(244, 239, 231, 0.58) 68%,
    rgba(244, 239, 231, 0) 100%
  );
  pointer-events: none;
}

.project-layer.is-right::before {
  right: 0;
  left: auto;
  background: linear-gradient(
    270deg,
    #f4efe7 0%,
    rgba(244, 239, 231, 0.94) 34%,
    rgba(244, 239, 231, 0.58) 68%,
    rgba(244, 239, 231, 0) 100%
  );
}

.project-card {
  position: absolute;
  top: 3.25rem;
  left: calc(var(--page-x) - 18px);
  --media-inset: 18px;
  --scrollbar-safe: 28px;
  width: min(31rem, calc(100vw - var(--page-x) * 2));
  max-height: min(76vh, 42rem);
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  color: #17120f;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(-1.4rem, 0, 0) scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease, border-color 220ms ease;
  text-align: left;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  isolation: isolate;
}

.project-card::-webkit-scrollbar {
  width: 4px;
}

.project-card::-webkit-scrollbar-thumb {
  background: var(--accent);
}

.project-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.project-card.is-right {
  right: var(--page-x);
  left: auto;
  transform: translate3d(1.4rem, 0, 0) scale(0.96);
}

.project-card.is-right.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.project-card__image {
  position: absolute;
  top: -1rem;
  left: -1.5rem;
  z-index: 0;
  display: block;
  width: min(26rem, 88%);
  aspect-ratio: 1.55;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.8) contrast(0.9);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.project-card.is-right .project-card__image {
  right: -1.5rem;
  left: auto;
}

.project-card__content-root,
.project-card__content {
  position: relative;
  z-index: 1;
}

.project-card__content[hidden] {
  display: none;
}

.project-card__video,
.project-card__links,
.project-card__media {
  position: relative;
  z-index: 1;
}

.project-card__video {
  z-index: 3;
}

.project-card__video,
.project-card__media {
  display: grid;
  gap: 0.8rem;
  margin: 0 var(--scrollbar-safe) 0.95rem var(--media-inset);
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 var(--scrollbar-safe) 0.95rem var(--media-inset);
  pointer-events: auto;
}

.project-card__links:empty {
  display: none;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(23, 18, 15, 0.18);
  border-radius: 999px;
  color: rgba(23, 18, 15, 0.78);
  background: rgba(244, 239, 231, 0.86);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.project-card__link:first-child {
  border-color: color-mix(in srgb, var(--accent) 54%, rgba(23, 18, 15, 0.18));
  color: #17120f;
  background: color-mix(in srgb, var(--accent) 18%, rgba(244, 239, 231, 0.92));
}

.project-card__video:empty,
.project-card__media:empty {
  display: none;
}

.project-card__media-item {
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.project-card__media-item--image {
  position: relative;
}

.project-card__media-item img,
.project-card__media-item iframe {
  display: block;
  width: 100%;
  border: 1px solid rgba(23, 18, 15, 0.13);
  border-radius: 4px;
  box-shadow: 0 0.8rem 2.4rem rgba(23, 18, 15, 0.1);
}

.project-card__media-item img {
  height: auto;
  max-height: none;
  object-fit: contain;
  opacity: 1;
  transition: opacity 220ms ease;
}

.project-card__media-item iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  background: rgba(23, 18, 15, 0.08);
  pointer-events: auto;
  cursor: none;
}

.project-card__media-item--embed iframe {
  aspect-ratio: 404 / 316;
}

.project-card__media-item--image.is-loading img {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.project-card__image-placeholder {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(244, 239, 231, 0), rgba(255, 255, 255, 0.56), rgba(244, 239, 231, 0)) -120% 0 / 48% 100% no-repeat,
    rgba(23, 18, 15, 0.07);
  box-shadow: 0 0.8rem 2.4rem rgba(23, 18, 15, 0.08);
  animation: image-placeholder-sweep 1.2s ease-in-out infinite;
}

.project-card__media-item--image:not(.is-loading) .project-card__image-placeholder {
  display: none;
}

.project-card__media-item--image.is-error .project-card__image-placeholder {
  display: block;
  animation: none;
}

@keyframes image-placeholder-sweep {
  0% {
    background-position: -120% 0, 0 0;
  }

  100% {
    background-position: 220% 0, 0 0;
  }
}

.project-card__caption {
  color: rgba(23, 18, 15, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-card__intro-text,
.project-card__body-text,
.project-card__tags-text {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  padding-right: 1.5rem;
}

.project-card__body-text {
  margin-top: 0.25rem;
}

.project-card__tags-text {
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-top: 2rem;
  }

  .intro {
    align-self: start;
    padding-top: 0.9rem;
  }

  .intro h1 {
    font-size: 1.9rem;
  }

  .project-layer::before,
  .project-layer.is-right::before {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(56vh, 34rem);
    background: linear-gradient(
      0deg,
      #f4efe7 0%,
      rgba(244, 239, 231, 0.96) 34%,
      rgba(244, 239, 231, 0.62) 70%,
      rgba(244, 239, 231, 0) 100%
    );
  }

  .intro__avatar {
    width: 2.1rem;
    height: 2.1rem;
  }

  .progress-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 25;
    width: auto;
    pointer-events: none;
  }

  .progress-panel__meta {
    display: block;
  }

  .progress-panel__meta span {
    display: none;
  }

  .progress-value {
    display: block;
    color: rgba(23, 18, 15, 0.68);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
  }

  .progress-track {
    display: none;
  }

  .project-card {
    --media-inset: 14px;
    left: 1rem !important;
    top: auto !important;
    right: auto !important;
    bottom: 1rem;
    max-height: 42vh;
    transform: translate3d(0, 1.2rem, 0) scale(0.94);
  }

  .project-card.is-visible,
  .project-card.is-right.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 1.15rem;
  }

  .topbar {
    align-items: flex-start;
    padding-top: 0.75rem;
  }

  .topbar__links {
    max-width: 9.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }

  .intro h1 {
    font-size: 1.52rem;
  }

  .intro__identity {
    gap: 0.58rem;
  }

  .intro__avatar {
    width: 1.65rem;
    height: 1.65rem;
  }

  .intro__copy {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.64;
  }

  .project-card {
    width: calc(100vw - 2rem);
    max-height: 44vh;
  }

  .scroll-hint {
    top: 0.9rem;
    font-size: 0.68rem;
  }

  .progress-panel {
    right: 0.82rem;
    bottom: 0.82rem;
  }

}

@media (hover: none) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}


/*# sourceMappingURL=main.css.map*/