@font-face {
  font-family: "TikTok Sans";
  src: url("../fonts/TikTokSans-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Departure Mono";
  src: url("../fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #fbfaf4;
  --bg-elev: #efede7;
  --ink: #000;
  --quiet: #61615b;
  --l3: rgba(54, 54, 48, 0.32);
  --line: rgba(54, 54, 48, 0.1);
  --fill: rgba(54, 54, 48, 0.05);
  --accent: #c0fe04;
  --scramble-1: #c0fe04;
  --scramble-2: #607f02;
  --sans: "TikTok Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", "Droid Sans Fallback", sans-serif;
  --mono: "Geist Mono", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", ui-monospace, monospace;
  --hud: "Departure Mono", "Geist Mono", ui-monospace, monospace;
  --ease-66: cubic-bezier(0.66, 0, 0.01, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] {
  --bg: #0f1111;
  --bg-elev: #191b1b;
  --ink: #fff;
  --quiet: #aaacab;
  --l3: rgba(230, 232, 232, 0.32);
  --line: rgba(230, 232, 232, 0.08);
  --fill: rgba(230, 232, 232, 0.05);
  --scramble-2: #dfff81;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0f1111;
    --bg-elev: #191b1b;
    --ink: #fff;
    --quiet: #aaacab;
    --l3: rgba(230, 232, 232, 0.32);
    --line: rgba(230, 232, 232, 0.08);
    --fill: rgba(230, 232, 232, 0.05);
    --scramble-2: #dfff81;
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 96px; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "opsz" 16, "wdth" 100, "wght" 400;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--accent);
  color: #000;
  padding: 8px 12px;
  z-index: 200;
  text-decoration: none;
  font-family: var(--hud);
  font-size: 14px;
  text-transform: uppercase;
}
.skip:focus { transform: none; }

.page {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
@media (min-width: 1024px) {
  .page { padding-left: 56px; padding-right: 56px; }
}

.hud {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1024px) {
  .hud { padding: 28px 56px 24px; }
}
.hud a, .hud button { pointer-events: auto; }
.hud-top, .hud-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.logo {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  text-transform: uppercase;
  font-variation-settings: "opsz" 16, "wdth" 120, "wght" 700;
  padding: 8px;
  margin: -8px;
  transition: opacity 180ms linear;
}
.logo.is-yield {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.desk-nav { display: flex; align-items: center; }
.hud-link, .hud-bot {
  font-family: var(--hud);
  font-variation-settings: normal;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
}
.hud-link {
  position: relative;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hud-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dotted transparent;
  pointer-events: none;
  transition: border-color 200ms linear;
}
@media (hover: hover) and (min-width: 1024px) {
  .hud-link:hover::before { border-color: var(--ink); }
}
.hud-link[aria-current="true"]::before { border-bottom-color: var(--ink); }
.clock { font-family: var(--hud); font-variation-settings: normal; padding: 8px; }

.burger {
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}
.burger i {
  position: absolute;
  left: 0;
  height: 2px;
  background: currentColor;
  transition: width 1200ms var(--ease-66), opacity 1200ms var(--ease-66);
}
.burger i:nth-child(1) { top: 6px; width: 24px; }
.burger i:nth-child(2) { bottom: 6px; width: 24px; transition-delay: 150ms; }
.burger i:nth-child(3) { right: 0; left: auto; top: 11px; width: 0; opacity: 0; rotate: 45deg; }
.burger i:nth-child(4) { right: 0; left: auto; bottom: 11px; width: 0; opacity: 0; rotate: -45deg; transition-delay: 150ms; }
.burger[aria-expanded="true"] i:nth-child(1) { width: 0; opacity: 0; transition-delay: 150ms; }
.burger[aria-expanded="true"] i:nth-child(2) { width: 0; opacity: 0; transition-delay: 0ms; }
.burger[aria-expanded="true"] i:nth-child(3) { width: 24px; opacity: 1; transition-delay: 150ms; }
.burger[aria-expanded="true"] i:nth-child(4) { width: 24px; opacity: 1; transition-delay: 0ms; }

@media (max-width: 1023px) {
  .desk-nav, .hud-bot { display: none; }
}
@media (min-width: 1024px) {
  .burger { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: max(72px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  font-family: var(--hud);
  font-variation-settings: normal;
  font-size: 10svw;
  line-height: 1.35;
  text-transform: uppercase;
  text-decoration: none;
  padding: 2px 0;
}
.menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-family: var(--hud);
  font-variation-settings: normal;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
}
.menu-foot button {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--hud);
  font-variation-settings: normal;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 0;
  padding-top: 112px;
  padding-bottom: 88px;
}
.identity { grid-column: 1 / span 4; grid-row: 1; align-self: start; }
.intro {
  grid-column: 8 / span 5;
  grid-row: 1;
  align-self: start;
  font-family: var(--mono);
  font-variation-settings: normal;
  font-size: 16px;
  line-height: 24px;
  max-width: 28em;
  text-wrap: pretty;
}
.display {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  font-weight: 700;
  font-size: clamp(34px, 8vw, 118px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  font-variation-settings: "opsz" 36, "wdth" 120, "wght" 700;
}
.display > span { display: block; }
h1 {
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 30, "wdth" 100, "wght" 500;
}
.place {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 1023px) {
  .hero {
    grid-template-rows: auto auto 1fr auto;
    padding-top: 88px;
    padding-bottom: 36px;
  }
  .identity, .intro, .display { grid-column: 1 / -1; }
  .intro { grid-row: 2; margin-top: 22px; }
  .display { grid-row: 4; }
}
@media (max-width: 720px) {
  .display {
    font-size: clamp(32px, 9vw, 68px);
    font-variation-settings: "opsz" 36, "wdth" 108, "wght" 700;
  }
}
@media (max-width: 380px) {
  .display {
    font-size: 31px;
    font-variation-settings: "opsz" 32, "wdth" 96, "wght" 700;
  }
  h1 { font-size: 26px; }
}

.band { padding: 72px 0; }
@media (min-width: 1024px) {
  .band { padding: 104px 0 96px; }
}
.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 0;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hud);
  font-variation-settings: normal;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex: none;
}
.work-grid .kicker { grid-column: 1; grid-row: 1; padding-top: 10px; }
.work-main { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
@media (max-width: 1023px) {
  .work-grid .kicker { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .work-main { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.shot img {
  width: 100%;
  height: auto;
  background: var(--fill);
  box-shadow: 0 0 0 1px var(--line);
}
/* 1600×1092 封面在满列宽下高度约是 2150×648 菜单栏图的 2.26 倍。
   桌面 .work-main 占 11 列，收成其中 5 列后两张图的显示高度几乎对齐，且不裁切。 */
.shot--compact {
  width: calc(100% * 5 / 11);
}
.work-item + .work-item {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px dashed var(--line);
}
html.js:not(.reduced) .shot img { filter: invert(1); }
html.js:not(.reduced) .shot img.is-in {
  filter: invert(0);
  transition: filter 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.shot .curl {
  position: absolute;
  left: -3%;
  top: -8%;
  width: 106%;
  height: 116%;
  pointer-events: none;
  opacity: 0;
}
.shot.is-curling .curl { opacity: 1; }
.shot.is-curling img { opacity: 0; }
@media (max-width: 1023px) {
  .shot { overflow: hidden; }
  .shot .curl { left: 0; top: 0; width: 100%; height: 100%; }
}

.cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  margin-top: 12px;
}
.cap-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  font-variation-settings: "opsz" 14, "wdth" 110, "wght" 500;
}
.cap-title:hover, .cap-title:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.cap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  font-size: 14px;
  line-height: 20px;
}
.cap-meta .year {
  font-family: var(--hud);
  font-variation-settings: normal;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}
.cap-meta a {
  text-decoration: underline;
  text-decoration-color: var(--l3);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 150ms var(--ease-out);
}
.cap-meta a:hover, .cap-meta a:focus-visible { text-decoration-color: var(--ink); }
.tag {
  margin-top: 10px;
  max-width: 42em;
  font-family: var(--mono);
  font-variation-settings: normal;
  font-size: 15px;
  line-height: 1.55;
  color: var(--quiet);
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .cap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cap-meta { justify-content: flex-start; }
}

.notes-copy { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .notes-copy { grid-column: 3 / span 9; }
}
.statement {
  margin-top: 16px;
  max-width: 12em;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.35;
  text-wrap: pretty;
  font-variation-settings: "opsz" 36, "wdth" 100, "wght" 400;
}
.statement.dim { color: var(--quiet); margin-top: 0; }
.ulink {
  display: inline-block;
  margin-top: 18px;
  text-decoration: underline;
  text-decoration-color: var(--l3);
  text-underline-offset: 0.16em;
  transition: text-decoration-color 150ms var(--ease-out);
}
.ulink:hover, .ulink:focus-visible { text-decoration-color: var(--ink); }

#tools .kicker { margin-bottom: 16px; }
.tool {
  display: grid;
  grid-template-columns: minmax(10.5rem, 18rem) minmax(0, 1fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 14px 8px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.tool:last-of-type { border-bottom: 1px solid var(--line); }
.tn {
  font-family: var(--hud);
  font-variation-settings: normal;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.td {
  font-family: var(--mono);
  font-variation-settings: normal;
  font-size: 14px;
  line-height: 1.45;
  color: var(--quiet);
}
.tool:hover .tn, .tool:focus-visible .tn { text-decoration: underline; text-underline-offset: 3px; }
.more { margin-top: 18px; color: var(--quiet); }
.more:hover, .more:focus-visible { color: var(--ink); }
@media (max-width: 640px) {
  .tool { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.4;
}
.colo-links { display: flex; gap: 18px; }
.colo-links a { margin-top: 0; color: var(--ink); }
@media (max-width: 1023px) {
  .colophon { padding-bottom: 96px; }
}

#work, #notes, #tools { scroll-margin-top: 96px; }

.veil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--bg-elev);
}
html.booting .veil { display: block; }
.loader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 16px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.25, 1, 0.5, 1);
}
.loader-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--l3);
}
.loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ht {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}
.ht.is-on { visibility: visible; }

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 1;
  transition: opacity 400ms linear;
}
.grid-overlay svg { display: block; width: 100%; height: 100%; }
html.booting:not(.revealing) .grid-overlay { opacity: 0; }

html.booting:not(.revealing) .hud,
html.booting:not(.revealing) .totop,
html.booting:not(.revealing) .scrub,
html.booting:not(.revealing) [data-scramble] { visibility: hidden; }

.totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 65;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.totop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.totop svg { display: block; width: 24px; height: 24px; transform: scale(0.5); transition: transform 0.66s var(--ease-66); }
.totop circle {
  stroke-width: 8;
  transition: stroke-opacity 0.66s var(--ease-66), stroke-width 0.66s var(--ease-66);
}
.totop .trk { stroke-opacity: 1; }
.totop.is-active svg { transform: scale(1); }
.totop.is-active circle { stroke-width: 4; }
.totop.is-active .trk { stroke-opacity: 0.2; }
@media (min-width: 1024px) { .totop { display: none; } }

.scrub {
  position: fixed;
  top: 50%;
  right: 8px;
  z-index: 45;
  width: 32px;
  height: 200px;
  transform: translateY(-50%);
  cursor: pointer;
  touch-action: none;
}
.scrub svg { display: block; width: 32px; height: 200px; }
@media (max-width: 1023px) { .scrub { display: none; } }

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
}
.lb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background-color 500ms ease-out;
}
.lb-img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  box-shadow: none;
  background: transparent;
}
.lb-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  font-family: var(--hud);
  font-variation-settings: normal;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: auto;
  pointer-events: none;
}
.lb-hud a { pointer-events: auto; text-decoration: underline; text-underline-offset: 3px; }

html.scroll-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html.booting .veil { display: none !important; }
  .ht { display: none !important; }
  .shot img, .shot img.is-in { filter: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
