:root {
  --project-title-left: 14.5rem;
}

[local-style="37603894"],
[local-style="18059028"] {
  mix-blend-mode: difference;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #000;
  overflow: hidden;
  cursor: none !important;
  height: 100%;
}

a:active {
  opacity: 0.7;
}

.page a.active {
  opacity: 0.4;
}

img {
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0 0 0 2em;
}

blockquote {
  margin: 0;
  padding: 0 0 0 2em;
}

hr {
  background: rgba(127, 127, 127, 0.2);
  border: 0;
  height: 1px;
}

[data-css-preset] body {
  background-color: #000;
}

[data-css-preset] .page {
  background-color: initial;
}


/* ========================================
   WebGL Homepage
======================================== */

#homeViewer {
  position: fixed;
  inset: 0;
  z-index: 10;

  width: 100vw;
  height: 100vh;

  background: #000;
  overflow: hidden;

  cursor: none !important;
  border-radius: 0 !important;
}

#heroCanvas {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  display: block;

  cursor: none !important;
  border-radius: 0 !important;
}


/* ========================================
   Top Bar
======================================== */

#topBar {
  position: fixed;
  top: 0.7rem;
  left: 0.8rem;
  right: 0.8rem;
  z-index: 40;

  display: flex;
  justify-content: space-between;

  color: #fff;

  font-family: "Times New Roman", Times, serif;
  font-size: 1.6rem;
  line-height: 1;

  mix-blend-mode: difference;
}

#topBar.hidden {
  opacity: 0;
  pointer-events: none;
}

#topLeft {
  display: flex;
  gap: 1.2rem;
}

#topRight {
  display: flex;
  gap: 1.8rem;
}

#topRight button,
#closeAbout {
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#autoplayBtn {
  display: none !important;
}


/* ========================================
   Cursor
======================================== */

#navZone {
  position: fixed;
  inset: 0;
  z-index: 25;

  cursor: none !important;
}

#navZone.hidden {
  pointer-events: none;
}

#cursorHint {
  position: fixed;
  z-index: 50;

  pointer-events: none;

  color: #fff;

  font-family: "Times New Roman", Times, serif;
  font-size: 1.5rem;
  line-height: 1;

  transform: translate(-50%, -50%);
  white-space: nowrap;

  mix-blend-mode: difference;
}


/* ========================================
   About Panel
======================================== */

#aboutPanel {
  position: fixed;
  inset: 0;
  z-index: 80;

  background: #000;
  color: #fff;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.45s ease;

  overflow-y: auto;

  border-radius: 0 !important;
}

#aboutPanel.active {
  opacity: 1;
  pointer-events: auto;
}

#aboutPanel,
#aboutPanel * {
  cursor: auto !important;
}


/* ========================================
   About Top Bar
======================================== */

#aboutTopBar {
  position: fixed;
  top: 0.7rem;
  left: 0.8rem;
  right: 0.8rem;
  z-index: 90;

  display: flex;
  justify-content: space-between;

  color: #fff;

  font-family: "Times New Roman", Times, serif;
  font-size: 1.6rem;
  line-height: 1;

  mix-blend-mode: difference;
}

#aboutLeft {
  display: flex;
  gap: 1.2rem;
}

#aboutRight {
  display: flex;
  gap: 1.8rem;
}


/* ========================================
   About Text
======================================== */

#aboutText {
  padding: 0.8rem 1.2rem 4rem 1.2rem;
  max-width: 96vw;

  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

#aboutText p {
  margin: 0 0 2.5rem 0;
}

/* English introduction */

#aboutText p:nth-of-type(-n+3) {
  margin-left: 0;
  max-width: 96vw;
}

/* Chinese introduction */

#aboutText p:nth-of-type(n+4) {
  margin-left: var(--project-title-left);
  max-width: calc(96vw - var(--project-title-left));

  font-size: 2rem;
  line-height: 1.5;
}

#aboutText p:nth-of-type(4) {
  margin-top: 4rem;
}


/* ========================================
   About Portrait
======================================== */

.aboutPortrait {
  margin: 1.2rem 0 2.2rem 0;
  padding: 0;

  width: min(31vw, 600px);
}

.aboutPortrait img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
  padding: 0;
}

.aboutPortrait figcaption {
  margin-top: 0.5rem;

  color: #fff;

  font-family: "Times New Roman", Times, serif;
  font-size: 1.1rem;
  line-height: 1;

  letter-spacing: 0;
  text-transform: uppercase;
}


/* ========================================
   Info List
======================================== */

.infoList {
  margin-top: 4rem;

  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.2;
}

.infoRow {
  display: grid;

  grid-template-columns: var(--project-title-left) 1fr;
  column-gap: 0;

  margin-bottom: 0.35rem;
}

.infoRow div:first-child:not(:empty) {
  grid-column: 1 / -1;

  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
}

.infoRow div:first-child:empty {
  display: none;
}

.infoRow div:nth-child(2) {
  grid-column: 1;
}

.infoRow div:nth-child(3) {
  grid-column: 2;
}

.infoDivider {
  border: 0;
  margin: 2.8rem 0 0 0;
}


/* ========================================
   Contact
======================================== */

.contactBlock {
  margin-top: 6rem;
  margin-left: 0;

  max-width: 96vw;

  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.contactBlock p {
  margin: 0 0 2.5rem 0;
}

.contactBlock a {
  color: #fff;
  text-decoration: none;
}

.contactBlock a:hover {
  opacity: 0.6;
}


/* ========================================
   Hide Chinese About Text
======================================== */

#aboutText p:nth-of-type(n+4):nth-of-type(-n+6) {
  display: none;
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 768px) {

  #homeViewer,
  #heroCanvas {
    height: 100vh;
  }


  /* ---------- Homepage Top ---------- */

  #topBar {
    top: 0.6rem;
    bottom: auto;

    left: 0.7rem;
    right: 0.7rem;

    font-size: 1.5rem;
    line-height: 1;

    display: flex;
    justify-content: space-between;
  }

  #topLeft {
    position: static;
    display: block;

    max-width: 60vw;
  }

  #topLeft span:first-child {
    display: block;
    margin-bottom: 0;
  }

  #projectIndex,
  #projectTitle {
    display: none;
  }

  #topRight {
    position: static;

    display: flex;
    gap: 0.8rem;
  }


  /* ---------- Homepage Bottom ---------- */

  #projectIndex {
    display: inline;

    position: fixed;
    bottom: 0.7rem;
    left: 0.7rem;

    margin-right: 0.4rem;
  }

  #projectTitle {
    display: inline;

    position: fixed;
    bottom: 0.7rem;
    left: 5.2rem;

    max-width: calc(100vw - 5.9rem);

    white-space: normal;
  }


  /* ---------- About Top Bar ---------- */

  #aboutTopBar {
    top: 0.6rem;
    left: 0.7rem;
    right: 0.7rem;

    font-size: 1.5rem;
  }


  /* ---------- Cursor ---------- */

  #cursorHint {
    display: none;
  }

  #navZone {
    cursor: auto;
  }


  /* ---------- About Text ---------- */

  #aboutText {
    padding: 0.7rem;

    font-size: 1.85rem;
    line-height: 1.35;
  }

  #aboutText p:nth-of-type(-n+3) {
    margin-left: 0;

    max-width: 100%;

    font-size: 1.8rem;
    line-height: 1.2;
  }

  #aboutText p:nth-of-type(n+4) {
    margin-left: 0;

    max-width: 100%;

    font-size: 1.6rem;
    line-height: 1.5;
  }


  /* ---------- Portrait ---------- */

  .aboutPortrait {
    width: 76vw;
    max-width: none;

    margin: 0.8rem 0 1.8rem 0;
    padding: 0;
  }

  .aboutPortrait img {
    display: block;

    width: 100%;
    height: auto;
  }

  .aboutPortrait figcaption {
    margin-top: 0.5rem;

    font-size: 1rem;
    line-height: 1;
  }


  /* ---------- Info ---------- */

  .infoList {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .infoRow {
    grid-template-columns: 6.5rem 1fr;
  }

  .infoRow div:nth-child(3) {
    line-height: 1.3;
  }


  /* ---------- Contact ---------- */

  .contactBlock {
    margin-left: 0;

    max-width: 100%;

    font-size: 1.85rem;
    line-height: 1.35;
  }
}


/* ========================================
   Remove possible Cargo radius
======================================== */

html,
body,
#homeViewer,
#heroCanvas,
#aboutPanel,
.main_container,
.content_container,
.page,
.container {
  border-radius: 0 !important;
}

/* ========================================
   Custom Font — TWK Ghost Regular
======================================== */

@font-face {
  font-family: "TWK Ghost";
  src: url("https://files.cargocollective.com/c645706/TWKGhost-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Global Font */

body {
  font-family: "TWK Ghost", "Times New Roman", serif;
}

/* Homepage Navigation */

#topBar,
#cursorHint {
  font-family: "TWK Ghost", "Times New Roman", serif;
}

/* About Page */

#aboutTopBar,
#aboutText,
.aboutPortrait figcaption,
.infoList,
.contactBlock {
  font-family: "TWK Ghost", "Times New Roman", serif;
}

/* Buttons */

#topRight button,
#closeAbout {
  font-family: inherit;
}