:root {
  --pink: #ff0085;
  --ink: #070004;
  --line: #b40061;
  --header-h: clamp(86px, 12.5vw, 136px);
  --title-h: clamp(280px, 30.5svh, 329px);
  --edge: 16px;
}

@font-face {
  font-family: "Bigger Display";
  src: url("./Bigger-Display.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fraktion Mono";
  src: url("./PPFraktionMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--pink);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-aigc-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
}

.page-shell {
  background: var(--pink);
}

.site-header {
  display: grid;
  grid-template-columns: 7.35vw 42.45vw 27.55vw 3.85vw 11.85vw 6.95vw;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}

.brand-cell,
.info-cell,
.nav-cell,
.contrast-cell,
.wechat-copy-cell,
.qr-cell {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.brand-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: clamp(58px, 4.05vw, 78px);
  height: auto;
}

.info-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 clamp(18px, 1.55vw, 30px);
  font-size: clamp(12px, 0.86vw, 16px);
  line-height: 1.1;
}

.info-cell p {
  margin: 0;
}

.nav-cell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.nav-cell a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.nav-cell a:hover,
.wechat-copy-cell:hover {
  background: var(--ink);
  color: var(--pink);
}

.contrast-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.contrast-cell span {
  display: block;
  width: clamp(34px, 2.2vw, 42px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%),
    var(--pink);
  border: 1px solid var(--ink);
}

.wechat-copy-cell {
  display: grid;
  grid-template-rows: 1fr 1fr;
  text-decoration: none;
}

.wechat-copy-cell span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 clamp(10px, 0.95vw, 18px);
  overflow-wrap: anywhere;
  text-align: center;
}

.wechat-copy-cell span:first-child {
  border-bottom: 1px solid var(--line);
  font-size: clamp(13px, 0.94vw, 18px);
  line-height: 1.1;
}

.wechat-copy-cell span:last-child {
  font-size: clamp(16px, 1.22vw, 23px);
  line-height: 1;
}

.qr-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 0;
  padding: clamp(9px, 0.85vw, 16px);
}

.qr-cell img {
  display: block;
  width: min(100%, 104px);
  height: auto;
  image-rendering: pixelated;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--title-h);
  min-height: calc(100svh - var(--header-h));
}

.about-page {
  position: relative;
  min-height: 2240px;
  overflow: hidden;
  background: var(--pink);
  color: var(--ink);
}

.about-frame-wrap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100vw;
  margin: 0 auto;
}

.about-frame-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.about-mask-pieces {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-mask-piece {
  position: absolute;
  display: block;
  overflow: hidden;
  background: var(--ink);
  transform: scaleX(1);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.about-hotspot {
  position: absolute;
  z-index: 8;
  overflow: hidden;
  pointer-events: auto;
}

.about-work-anchor {
  position: absolute;
  left: 50%;
  top: 86.8%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.about-work-hit {
  position: absolute;
  left: 43.1%;
  top: 83.6%;
  z-index: 1400;
  width: 13.8%;
  height: 12.3%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.about-particles {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.about-particle {
  position: absolute;
  width: var(--size, 42px);
  height: var(--size, 42px);
  background: center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(5px 6px 0 rgba(7, 0, 4, .5));
  transform: translate3d(0, 0, 0) scale(.35) rotate(0deg);
  will-change: transform, opacity;
}

.studio-work {
  --pill-hover-x: 0px;
  --pill-hover-y: 0px;
  --word-hover-x: 0px;
  --word-hover-y: 0px;
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--pink);
  user-select: none;
}

.studio-work--overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.985);
  transition:
    opacity 520ms cubic-bezier(.22, 1, .36, 1),
    transform 520ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 520ms;
}

.studio-work--overlay * {
  pointer-events: none;
}

.studio-work--overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 520ms cubic-bezier(.22, 1, .36, 1),
    transform 520ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 0s;
}

.studio-work--overlay.is-active,
.studio-work--overlay.is-active * {
  pointer-events: auto;
}

.studio-work::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, .6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .6) 1px, transparent 1px);
  background-position: center;
  background-size: 163px 109px;
  content: "";
  pointer-events: none;
}

.studio-work__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-work__outer {
  position: absolute;
  z-index: 2;
  width: clamp(280px, 17vw, 326px);
  height: clamp(640px, 80.8svh, 872px);
  border: 1px solid rgba(0, 0, 0, .6);
  border-radius: 300px;
  pointer-events: none;
  transition:
    transform 820ms cubic-bezier(.22, 1, .36, 1),
    opacity 420ms ease;
  will-change: transform, opacity;
}

.studio-work__pill {
  position: relative;
  z-index: 3;
  width: clamp(242px, 15.95vw, 306px);
  height: clamp(600px, 75.55svh, 816px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 300px;
  background-color: #080808;
  background-image: radial-gradient(circle, rgba(255, 0, 133, .55) 1.35px, transparent 1.35px);
  background-position: center;
  background-size: 22px 22px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
  color: var(--pink);
  cursor: crosshair;
  transform: translate3d(var(--pill-hover-x), var(--pill-hover-y), 0);
  transform-origin: 50% 50%;
  transition:
    width 860ms cubic-bezier(.22, 1, .36, 1),
    height 860ms cubic-bezier(.22, 1, .36, 1),
    border-radius 860ms cubic-bezier(.22, 1, .36, 1),
    transform 520ms cubic-bezier(.22, 1, .36, 1),
    background-position 520ms cubic-bezier(.22, 1, .36, 1);
  will-change: width, height, border-radius;
}

.studio-work__word {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.15svh, 28px);
  font-family: "Bigger Display", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(146px, 8.7vw, 172px);
  font-weight: 700;
  line-height: .78;
  pointer-events: none;
  transform: translate3d(var(--word-hover-x), var(--word-hover-y), 0);
  transition: opacity 320ms ease, transform 640ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}

.studio-work__word span {
  display: block;
  text-shadow: .055em .05em 0 rgba(44, 0, 7, .9);
}

.studio-work__word span:first-child {
  transform: scaleX(1.05);
}

.studio-work__word span:nth-child(2) {
  transform: scaleX(.98);
}

.studio-work__word span:nth-child(3),
.studio-work__word span:nth-child(4) {
  transform: scaleX(1.03);
}

.studio-work__wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease 80ms;
  will-change: opacity;
}

.studio-work__row {
  position: relative;
  height: 115px;
  flex-shrink: 0;
  overflow: visible;
  transform: translate3d(var(--row-x, 0), var(--row-y, 0), 0);
  will-change: transform;
}

.studio-work__line {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: 60px;
  width: max-content;
  transform: translate3d(-50%, -50%, 0);
}

.studio-work__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  flex-shrink: 0;
  color: var(--pink);
  font-family: Impact, "Bigger Display", Haettenschweiler, "Arial Black", sans-serif;
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transform: scaleY(1.35);
  text-shadow: .055em .05em 0 rgba(44, 0, 7, .9);
}

.studio-work__projects {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease 0ms;
}

.studio-work__project {
  position: absolute;
  left: calc(50% + var(--project-x));
  top: calc(50% + var(--project-y));
  width: var(--project-w);
  height: var(--project-h);
  overflow: hidden;
  border: 1px solid rgba(7, 0, 4, .65);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  cursor: pointer;
  pointer-events: auto;
  transform:
    translate3d(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)), 0)
    scale(1);
  transition: z-index 0ms, transform 700ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}

.studio-work__project--ratio-lock {
  aspect-ratio: var(--project-ratio);
  height: auto;
}

.studio-work__project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1);
  transition: opacity 700ms ease, transform 700ms ease;
}

.studio-work__project--featured {
  background: #000;
}

.studio-work__project--featured img {
  object-fit: contain;
  opacity: 1;
}

.studio-work__project--aigc {
  background: #050505;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .42),
    0 0 0 0 rgba(255, 0, 133, 0);
}

.studio-work__project--aigc img {
  object-fit: contain;
  opacity: 1;
}

.studio-work__project--contain {
  padding: 0;
  background: #050505;
}

.studio-work__project--contain img {
  object-fit: contain;
  opacity: 1;
}

.studio-work__project--natural {
  background: transparent;
}

.studio-work__project--natural img {
  object-fit: contain;
  opacity: 1;
}

.studio-work__project--aigc .studio-work__project-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 34%);
}

.studio-work__project--aigc:hover {
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .55),
    0 0 0 2px rgba(255, 0, 133, .95),
    0 0 32px rgba(255, 0, 133, .42);
}

.studio-work__project--aigc:hover img {
  opacity: 1;
  transform: scale(1.025);
}

.studio-work__project:hover {
  z-index: 50;
}

.studio-work__project:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.studio-work__project::before,
.studio-work__project::after {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: 8px;
  border-color: rgba(255, 255, 255, .2);
  border-style: solid;
  content: "";
  transition: transform 300ms ease;
}

.studio-work__project::before {
  left: 0;
  top: 0;
  border-width: 1px 0 0 1px;
}

.studio-work__project::after {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.studio-work__project:hover::before {
  transform: translate3d(-4px, -4px, 0);
}

.studio-work__project:hover::after {
  transform: translate3d(4px, 4px, 0);
}

.studio-work__project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.studio-work__project:hover .studio-work__project-overlay {
  opacity: 1;
}

.studio-work__meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  opacity: 0;
  color: #fff;
  transform: translate3d(0, 16px, 0);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}

.studio-work__project:hover .studio-work__meta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.studio-work__type {
  margin: 0 0 4px;
  color: var(--pink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1;
  text-transform: uppercase;
}

.studio-work__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.studio-work__code {
  color: rgba(255, 255, 255, .42);
  font-family: "Fraktion Mono", Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
}

.studio-work.is-expanded .studio-work__outer {
  opacity: 0;
  transform: scale3d(9.6, 2.1, 1);
}

.studio-work.is-expanded .studio-work__pill {
  width: 100vw;
  height: 100svh;
  border-radius: 0;
}

.studio-work.is-expanded .studio-work__word {
  opacity: 0;
  transform: translate3d(var(--word-hover-x), var(--word-hover-y), 0) scale3d(1.18, .98, 1);
}

.studio-work.is-expanded .studio-work__wall {
  opacity: 1;
}

.studio-work.is-expanded .studio-work__projects {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 150ms;
}

.aigc-embed {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  grid-template-rows: 1fr;
  background: #050505;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 2.5vh, 0);
  transition:
    opacity 420ms cubic-bezier(.22, 1, .36, 1),
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 420ms;
}

.aigc-embed.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 420ms cubic-bezier(.22, 1, .36, 1),
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 0s;
}

.aigc-embed__frame {
  display: block;
  width: 100%;
  height: 100svh;
  border: 0;
  background: #050505;
}

.aigc-embed__back {
  position: fixed;
  left: clamp(18px, 2vw, 36px);
  top: clamp(18px, 2vw, 36px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  background: rgba(5, 5, 5, .72);
  color: #fff;
  font-family: "Fraktion Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.aigc-embed__back:hover {
  background: #fff;
  color: #050505;
}

.contact-work {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #fb007a;
}

.contact-work__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fb007a;
}

.byebye-work {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #070007;
}

.byebye-work__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #070007;
}

.waves-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.waves {
  --x: -8px;
  --y: 50%;
  position: absolute;
  inset: 0;
  display: block;
  cursor: crosshair;
}

.waves::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);
  content: "";
  pointer-events: none;
}

.waves-svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.waves-svg .wave-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.title-panel {
  position: relative;
  padding: clamp(72px, 8.9svh, 96px) var(--edge) clamp(14px, 1.35vw, 26px);
  overflow: hidden;
}

.title-panel h1 {
  margin: 0;
  padding: 0 0 clamp(30px, 3.15vw, 60px);
  font-family: "Bigger Display", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(86px, 11.98vw, 230px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0;
  text-align: center;
  transform: scaleX(1.295);
  transform-origin: 50% 50%;
  white-space: nowrap;
}

.ornament {
  position: absolute;
  left: var(--edge);
  right: calc(var(--edge) + 18px);
  height: 15px;
  overflow: hidden;
}

.ornament::before,
.ornament::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--line) 0 44px,
      transparent 44px 54px,
      var(--line) 54px 462px,
      transparent 462px 470px
    );
  content: "";
}

.ornament::before {
  top: 0;
}

.ornament::after {
  bottom: 0;
}

.ornament--top {
  top: 0;
}

.ornament--bottom {
  bottom: 14px;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .site-header {
    grid-template-columns: 96px minmax(210px, 1fr) minmax(270px, 0.9fr) 64px 184px 112px;
    min-width: 936px;
  }

  .page-shell {
    min-width: 936px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: auto;
    --title-h: clamp(260px, 38svh, 329px);
    --edge: 10px;
  }

  .page-shell,
  .site-header {
    min-width: 0;
  }

  .site-header {
    grid-template-columns: 76px 1fr 70px;
    grid-auto-rows: 72px;
    height: auto;
  }

  .brand-cell {
    grid-row: 1;
  }

  .info-cell {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }

  .contrast-cell {
    grid-column: 3;
    grid-row: 1;
  }

  .nav-cell {
    grid-column: 1 / 4;
    grid-row: 2;
    border-top: 1px solid var(--line);
  }

  .wechat-copy-cell {
    grid-column: 1 / 3;
    grid-row: 3;
    border-top: 1px solid var(--line);
  }

  .qr-cell {
    grid-column: 3;
    grid-row: 3;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: calc(100svh - 216px);
  }

  .about-frame-wrap {
    width: 100vw;
  }

  .studio-work__outer {
    width: min(72vw, 280px);
    height: min(77svh, 660px);
  }

  .studio-work__pill {
    width: min(62vw, 244px);
    height: min(72svh, 606px);
  }

  .studio-work__word {
    font-size: clamp(108px, 29vw, 140px);
  }

  .studio-work__line {
    gap: 42px;
  }

  .studio-work__letter {
    width: 54px;
    font-size: 74px;
  }

  .studio-work__project {
    width: min(var(--project-w), 76vw);
    height: min(var(--project-h), 52vh);
  }

  .studio-work__project--ratio-lock {
    width: min(var(--project-w), 76vw, var(--project-max-vh-width, 76vw));
    height: auto;
  }

  .title-panel h1 {
    font-size: clamp(54px, 20vw, 104px);
    transform: none;
    white-space: normal;
  }
}

.icp-record {
  position: fixed;
  left: 50%;
  bottom: 6px;
  z-index: 2147483640;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font: 11px/1.4 Arial, sans-serif;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.icp-record a {
  color: #222;
  text-decoration: none;
}

.icp-record a:hover {
  text-decoration: underline;
}
