@property --tint {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(149 104 67);
}
@scope (.video-surface) {
:scope {
  --dark: #0b0b0d;
  --paper: #f3f3f1;
  --ink: #19191b;
  --muted: #57575a;
  --line: #d9d9d6;
  --red: #b51f34;
  --tint: rgb(149 104 67);
  --curve: cubic-bezier(.22, .72, .2, 1);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  background: var(--dark);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, h1, h2, p, figure, dl, dd { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; }
button, a, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #74a1df; outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; }

.gallery {
  --x-unit: min(.0694444vw, 1.2px);
  --y-unit: min(.0694444vw, .111111svh, 1.12px);
  min-height: max(620px, 100svh);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: #f5f4f3;
  background:
    radial-gradient(ellipse 45% 42% at 50% 62%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 97%),
    radial-gradient(ellipse 66% 53% at 50% 80%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 96%),
    var(--dark);
  transition: --tint 540ms var(--curve);
}
.nav {
  position: absolute;
  z-index: 8;
  top: clamp(14px, 3.56svh, 32px);
  left: 50%;
  translate: -50%;
  width: min(602px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 1.15fr 1.17fr 1.29fr .67fr;
  padding: 3px;
  border: 1px solid #ffffff24;
  border-radius: 28px;
  background: #181819db;
  color: #bcbabd;
  font-size: 14px;
  line-height: 17px;
}
.nav span { padding: 10px 3px; border-radius: 26px; white-space: nowrap; }
.nav [aria-current] { background: #eeedee; color: #171717; font-weight: 650; }
.gallery > h1 {
  position: absolute;
  inset: max(97px, calc(161 * var(--y-unit))) 0 auto;
  font-size: min(146px, calc(100vw * 146 / 1440), calc(100svh * 146 / 900));
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -.042em;
  color: #f2f1f0;
  white-space: nowrap;
}
.carousel {
  position: absolute;
  top: max(182px, calc(279 * var(--y-unit)));
  left: 50%;
  translate: -50% 0;
  width: min(100%, 1728px);
  height: calc(465 * var(--y-unit));
  z-index: 2;
  touch-action: pan-y;
}
.covers { position: absolute; inset: 0; }
.cover {
  position: absolute;
  z-index: var(--layer);
  left: calc(50% + var(--left) * var(--x-unit));
  top: calc(var(--top) * var(--y-unit));
  width: calc(var(--w) * var(--x-unit));
  height: calc(var(--h) * var(--y-unit));
  padding: 4px;
  border: 1px solid #f5ede54a;
  border-radius: 25px;
  appearance: none;
  background: linear-gradient(152deg, #f3e8e331, #ebe3e518 56%, #e2cfce2d);
  transform: perspective(1050px) rotateY(var(--twist)) rotateZ(var(--roll));
  box-shadow: 0 18px 40px #0705079c, inset 0 1px 0 #fff2;
  backdrop-filter: blur(10px);
  transition: left 540ms var(--curve), top 540ms var(--curve), width 540ms var(--curve),
    height 540ms var(--curve), transform 540ms var(--curve), box-shadow 300ms, border-color 300ms, opacity 300ms;
  user-select: none;
  -webkit-user-select: none;
}
.cover img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: var(--focus);
  filter: brightness(var(--light));
  pointer-events: none;
  transition: filter 340ms;
}
.cover[data-offset="-2"] { --left: -660; --top: 87; --w: 352; --h: 309; --twist: 37deg; --roll: -11deg; --light: .69; --layer: 2; }
.cover[data-offset="-1"] { --left: -474; --top: 38; --w: 378; --h: 377; --twist: 24deg; --roll: -7deg; --light: .83; --layer: 3; }
.cover[data-offset="0"] { --left: -211; --top: 0; --w: 422; --h: 428; --twist: 0deg; --roll: 0deg; --light: .96; --layer: 4; border-color: #f8eee885; padding: 5px; }
.cover[data-offset="1"] { --left: 96; --top: 38; --w: 378; --h: 377; --twist: -24deg; --roll: 7deg; --light: .83; --layer: 3; }
.cover[data-offset="2"] { --left: 308; --top: 87; --w: 352; --h: 309; --twist: -37deg; --roll: 11deg; --light: .69; --layer: 2; }
.cover[data-offset="-3"] { visibility: hidden; opacity: 0; pointer-events: none; }
.cover[data-entering] { transition-property: opacity; }
.carousel[data-intro] .cover { transition: none; }
.carousel[data-intro] .cover[data-offset="-2"] { --left: -468; --twist: 68deg; --roll: -10deg; }
.carousel[data-intro] .cover[data-offset="-1"] { --left: -381; --twist: 53deg; --roll: -6deg; }
.carousel[data-intro] .cover[data-offset="0"] { --twist: 17deg; }
.carousel[data-intro] .cover[data-offset="1"] { --left: 3; --twist: -53deg; --roll: 6deg; }
.carousel[data-intro] .cover[data-offset="2"] { --left: 116; --twist: -68deg; --roll: 10deg; }
@media (hover: hover) and (pointer: fine) {
  .cover:hover {
    --light: 1.1;
    border-color: color-mix(in srgb, var(--tint) 40%, #fff7ee);
    box-shadow: 0 19px 52px #0a0305a8, 0 0 25px color-mix(in srgb, var(--tint) 52%, transparent), inset 0 1px 0 #fff8;
  }
}
.selected-work {
  position: absolute;
  z-index: 5;
  top: max(476px, calc(740 * var(--y-unit)));
  inset-inline: 12px;
}
.selected-work h2 { font-size: clamp(23px, 2.37vw, 34px); line-height: 1.25; font-weight: 680; letter-spacing: -.025em; }
.selected-work p { margin-top: 7px; font-size: clamp(14px, 1.12vw, 16px); color: #cdc9c8; }
.page-dots {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 11px auto 0;
  padding-inline: 8px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.page-dots[data-dragging], .page-dots[data-dragging] button { cursor: grabbing; }
.page-dot {
  appearance: none;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  width: 19px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}
.page-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8a8488; }
.page-dot[aria-current]::before { width: 9px; height: 9px; background: #f9f5f3; }
.page-dot:hover::before { background: #f9f5f3; }

.case-window {
  --window-height: min(820px, calc(100dvh - 2 * clamp(22px, 6vh, 64px)));
  --case-gutter: clamp(24px, 3.65vw, 54px);
  --case-color: #956843;
  inset: 0;
  width: min(1180px, calc(100vw - 2 * clamp(22px, 5.5vw, 88px)));
  height: var(--window-height);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #ffffffdb;
  border-radius: 27px;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  overflow: hidden;
  box-shadow: 0 34px 100px #08050996, 0 5px 24px #0d0a0c4a;
}
.case-window[open] { display: flex; flex-direction: column; }
.case-window::backdrop { background: #1411167d; backdrop-filter: blur(5px); }
.detail-nav {
  flex: none;
  min-height: 61px;
  padding-inline: var(--case-gutter);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #f8f8f6;
}
.case-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8b6b2 transparent;
}
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 0;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #303032;
  font-size: 16px;
  line-height: 28px;
}
.back-button:hover { color: #000; }
.back-button svg { width: 20px; height: 20px; margin-left: -6px; }
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(27px, 4.4vw, 60px);
  padding: 35px var(--case-gutter) 54px;
}
.case-window[data-work="yige"] .case-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  column-gap: clamp(28px, 3.9vw, 54px);
}
.media-col { align-self: stretch; min-width: 0; }
.player {
  position: sticky;
  top: 23px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.player::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -10px -34px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--case-color) 24%, transparent), transparent 70%);
}
.screen {
  width: min(272px, 100%, max(84px, calc((var(--window-height) - 166px) * .5625)));
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 16px 38px #00000016;
}
.wide .screen { width: 100%; aspect-ratio: 80 / 33; }
.screen video {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  object-fit: cover;
  background: #1b1a1a;
}
.screen-hit { position: absolute; inset: 0; padding: 0; background: transparent; border: 0; border-radius: inherit; }
.media-error {
  position: absolute;
  inset: auto 8px 8px;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  color: white;
  background: #222e;
  pointer-events: none;
}
.controls {
  width: min(300px, 100%);
  min-height: 54px;
  padding: 0 17px 0 11px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #fff;
  border-radius: 38px;
  background: #ffffffb3;
  box-shadow: 0 4px 16px #21212711, inset 0 0 0 1px #201c2409;
  backdrop-filter: blur(16px);
}
.transport { display: flex; align-items: center; gap: 2px; color: #393a3c; }
.transport button { width: 33px; height: 33px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.transport button:hover { background: #29262912; }
.transport svg { width: 20px; height: 20px; }
.transport #video-play { background: #242427; color: white; }
.transport #video-play:hover { background: #424247; }
.timeline { flex: 1; min-width: 0; display: grid; gap: 0; }
.timeline input {
  appearance: none;
  width: 100%;
  height: 13px;
  margin: 0;
  cursor: pointer;
  background: transparent;
}
.timeline input:disabled { cursor: default; }
.timeline input::-webkit-slider-runnable-track { height: 2px; border-radius: 4px; background: linear-gradient(90deg, #424245 var(--played, 0%), #d0d0d0 var(--played, 0%)); }
.timeline input::-moz-range-track { height: 2px; border-radius: 4px; background: linear-gradient(90deg, #424245 var(--played, 0%), #d0d0d0 var(--played, 0%)); }
.timeline input::-webkit-slider-thumb { appearance: none; width: 7px; height: 7px; margin-top: -2.5px; border: 0; border-radius: 50%; background: #393a3c; }
.timeline input::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #393a3c; }
.time { color: #4f4e50; font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time i { color: #777; font-style: normal; margin: 0 5px; }
.case-copy { min-width: 0; }
.case-head { margin-bottom: 21px; }
.case-head h1 { font-size: clamp(27px, 2.87vw, 43px); line-height: 1.15; letter-spacing: -.04em; font-weight: 730; }
.case-head h1:focus { outline: none; }
.case-head p { color: var(--muted); font-size: 19px; line-height: 1.5; margin-top: 9px; }
.case-window.no-metrics .case-head { padding-bottom: 21px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.metrics {
  display: flex;
  column-gap: 39px;
  border-block: 1px solid var(--line);
  padding: 15px 0 16px;
  margin-bottom: 29px;
}
.metrics div { display: flex; min-width: 114px; flex-direction: column; gap: 3px; }
.metrics div + div { padding-left: 33px; border-left: 1px solid var(--line); }
.metrics dt { color: var(--red); font-size: clamp(30px, 2.65vw, 38px); line-height: 1.15; letter-spacing: -.043em; font-weight: 700; }
.metrics dd { color: var(--muted); font-size: 14px; line-height: 20px; }
.copy + .copy { margin-top: 23px; }
.copy h2, .documents h2 { font-size: 21px; line-height: 1.4; font-weight: 650; letter-spacing: -.018em; }
.copy p { margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.72; line-break: strict; }
mark { background: transparent; color: var(--red); font-weight: 600; }
.documents { border-top: 1px solid var(--line); margin-top: 37px; padding-top: 24px; }
.documents h2 { margin-bottom: 17px; }
.documents a { display: block; }
.documents img { width: 100%; height: auto; }
.documents figure + figure { margin-top: 25px; }
.documents figcaption { color: var(--muted); font-size: 14px; margin-top: 9px; }

@media (min-width: 761px) and (max-height: 680px) {
  .detail-nav { min-height: 52px; }
  .case-grid { padding-top: 25px; }
  .player { top: 17px; }
}
@media (max-width: 900px) {
  .gallery { --y-unit: min(.088vw, .11svh); }
  .carousel { top: max(178px, calc(278 * var(--y-unit))); }
  .selected-work { top: max(445px, calc(740 * var(--y-unit))); }
}
@media (max-width: 680px) {
  .gallery { min-height: max(570px, 100svh, calc(min(43vw, 225px) + min(75vw, 407px) + 192px)); }
  .nav { max-width: 420px; font-size: clamp(10px, 2.75vw, 13px); }
  .nav span { padding: 8px 2px; }
  .gallery > h1 {
    top: 110px;
    font-size: min(9.8vw, 65px);
    letter-spacing: -.038em;
  }
  .carousel {
    top: min(43vw, 225px);
    margin-top: 38px;
    height: min(92vw, 492px);
  }
  .cover {
    top: calc(12px + var(--top) * .12px);
    width: min(64vw, 340px);
    height: min(75vw, 407px);
    border-radius: 18px;
    padding: 3px;
  }
  .cover img { border-radius: 14px; }
  .cover[data-offset="0"] { left: 50%; transform: translateX(-50%) perspective(860px) rotateY(var(--twist)); padding: 4px; }
  .cover[data-offset="-1"] { left: 16%; transform: translateX(-50%) rotateY(22deg) rotateZ(-10deg) scale(.84); }
  .cover[data-offset="1"] { left: 84%; transform: translateX(-50%) rotateY(-22deg) rotateZ(10deg) scale(.84); }
  .cover:is([data-offset="-2"], [data-offset="2"]) { visibility: hidden; pointer-events: none; }
  .carousel[data-intro] .cover[data-offset="-1"] { left: 30%; transform: translateX(-50%) rotateY(55deg) rotateZ(-7deg) scale(.8); }
  .carousel[data-intro] .cover[data-offset="1"] { left: 70%; transform: translateX(-50%) rotateY(-55deg) rotateZ(7deg) scale(.8); }
  .selected-work { top: calc(min(43vw, 225px) + min(75vw, 407px) + 72px); }
  .page-dots { margin-top: 7px; }
  .page-dot { width: 32px; }
}
@media (max-width: 760px) {
  .case-window {
    --window-height: calc(100dvh - 26px);
    --case-gutter: clamp(17px, 4.9vw, 25px);
    width: calc(100% - 24px);
    border-radius: 21px;
  }
  .detail-nav { min-height: 48px; }
  .case-grid { display: block; padding: 0 var(--case-gutter) 38px; }
  .media-col { position: sticky; top: 0; z-index: 3; }
  .player {
    position: relative;
    margin-inline: calc(-1 * var(--case-gutter));
    padding: 10px var(--case-gutter) 12px;
    background: #f3f3f1f5;
    backdrop-filter: blur(14px);
    gap: 9px;
    border-bottom: 1px solid var(--line);
    overflow: clip;
  }
  .player::before { inset: -10px 12% 0; }
  .screen { width: min(148px, calc(29dvh * .5625)); border-radius: 12px; box-shadow: 0 6px 21px #00000014; }
  .wide .screen { width: min(100%, 66dvh, 420px); }
  .controls { min-height: 46px; width: min(267px, 100%); gap: 11px; }
  .case-copy { padding-top: 24px; }
  .case-head { margin-bottom: 19px; }
  .case-head p { font-size: 16px; }
  .metrics { margin-bottom: 23px; column-gap: 22px; padding-block: 13px; }
  .metrics div + div { padding-left: 19px; }
  .copy h2, .documents h2 { font-size: 20px; }
  .copy p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

}
