:root {
  color-scheme: light;
  --paper: #efeeeb;
  --ink: #20211f;
  --muted: #686963;
  --red: #af3929;
  --pad: clamp(18px, 2.3vw, 52px);
  font:
    14px/1.25 "Helvetica Neue",
    Arial,
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
h1,
h2,
p {
  margin: 0;
}
a,
button {
  color: inherit;
  font: inherit;
}
button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
a {
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.mast {
  position: fixed;
  z-index: 4;
  inset: var(--pad) var(--pad) auto;
  display: grid;
  grid-template-columns: 12% 24% 1fr auto;
  align-items: start;
  pointer-events: none;
}
.mast a,
.mast button {
  pointer-events: auto;
}
.signature {
  display: flex;
  position: relative;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: start;
  font-weight: 800;
  font-size: clamp(23px, 2vw, 41px);
  letter-spacing: -0.085em;
  line-height: 0.84;
}
.signature span {
  color: var(--red);
}
.signature sup {
  font-size: 0.32em;
  letter-spacing: 0;
}
nav {
  display: grid;
  justify-items: start;
  gap: 5px;
  font-weight: 600;
}
nav button {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.studio,
.contact {
  font-size: 12px;
}
.studio {
  justify-self: start;
}
.studio b {
  font-weight: 500;
}
.contact {
  justify-self: end;
  border-bottom: 1px solid;
}
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: pan-x pinch-zoom;
  user-select: none;
  cursor: ns-resize;
}
.sheets,
.mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mesh {
  pointer-events: none;
  z-index: 2;
}
.sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform-origin: center;
  cursor: pointer;
}
.sheet img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mesh-ready .sheet img {
  opacity: 0;
}
.spec {
  position: fixed;
  left: var(--pad);
  top: 45%;
  width: 22%;
  pointer-events: none;
}
.spec div {
  display: grid;
  grid-template-columns: minmax(65px, 36%) 1fr;
  align-items: baseline;
  margin-bottom: 24px;
}
.spec small,
.counter span,
.hint,
.title small {
  color: var(--muted);
  font-size: 12px;
}
.spec span {
  font-size: 14px;
  font-weight: 550;
}
.titles {
  position: fixed;
  inset: 0 2% 0 auto;
  width: 26%;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(transparent 7%, black 23% 77%, transparent 93%);
}
.title {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  pointer-events: auto;
  padding: 8px;
  cursor: pointer;
}
.title strong {
  display: block;
  font-size: clamp(22px, 2vw, 42px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 7px 0;
  text-wrap: balance;
}
.title span {
  display: block;
  font-size: 12px;
  text-wrap: balance;
}
.counter {
  position: fixed;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  left: 13.8%;
  bottom: 8%;
  pointer-events: none;
}
.counter span {
  padding-top: 6px;
}
.counter sup {
  font-size: 13px;
  padding-top: 8px;
}
.digits {
  display: flex;
  height: 1em;
  overflow: hidden;
  font-size: clamp(88px, 9vw, 184px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.09em;
  font-variant-numeric: tabular-nums;
}
.digits i {
  display: block;
  font-style: normal;
}
footer {
  position: fixed;
  inset: auto var(--pad) 18px;
  display: flex;
  align-items: center;
  pointer-events: none;
  gap: 12px;
}
footer a,
footer button {
  pointer-events: auto;
}
.hint i {
  font-size: 17px;
  font-style: normal;
}
.controls {
  display: flex;
}
.controls button {
  width: 38px;
  height: 42px;
  font-size: 20px;
}
.visit {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid;
}
@media (max-width: 720px) {
  .mast {
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 18px;
  }
  .signature {
    writing-mode: initial;
    transform: none;
    font-size: 24px;
    align-items: start;
    flex-direction: row;
  }
  nav {
    font-size: 12px;
    gap: 7px;
  }
  .studio,
  .spec {
    display: none;
  }
  .stage {
    top: 11%;
    bottom: 28%;
    mask-image: linear-gradient(transparent, black 8% 92%, transparent);
  }
  .titles {
    top: 73%;
    bottom: auto;
    left: 6%;
    width: 88%;
    height: 16%;
    mask-image: none;
  }
  .title {
    padding: 0;
  }
  .title strong {
    font-size: clamp(21px, 6.5vw, 32px);
    margin: 3px 0;
  }
  .title small,
  .title span {
    font-size: 11px;
  }
  .counter {
    left: var(--pad);
    bottom: 16px;
    gap: 6px;
    align-items: baseline;
  }
  .counter span {
    display: none;
  }
  .digits {
    font-size: 51px;
  }
  footer {
    bottom: 15px;
    left: 34%;
  }
  .hint {
    display: none;
  }
}
@media (max-height: 460px) and (min-width: 721px) {
  .counter {
    bottom: 12%;
  }
  .digits {
    font-size: 68px;
  }
}
:root[data-mode="film"] {
  --paper: #1c1b18;
  --ink: #fcf2cf;
  --muted: #c3bba6;
  --red: #ffc667;
  color-scheme: dark;
}
:root[data-mode="fold"] {
  --paper: #ede3d3;
  --ink: #35221d;
  --muted: #6d5147;
  --red: #a3301b;
}
:root[data-mode="prism"] {
  --paper: #101925;
  --ink: #eef6ff;
  --muted: #adbfd2;
  --red: #a5d9ff;
  color-scheme: dark;
}
:root:not([data-mode="gallery"]) .stage {
  touch-action: pinch-zoom;
  cursor: grab;
}
:root:not([data-mode="gallery"]) .stage:active {
  cursor: grabbing;
}
[data-mode="film"] .stage {
  top: 13%;
  bottom: 24%;
  background: radial-gradient(
    ellipse at center,
    #3b342a 0%,
    #25231e 52%,
    #1c1b18 83%
  );
}
[data-mode="fold"] .stage {
  top: 12%;
  bottom: 18%;
  background: radial-gradient(ellipse at 49% 55%, #c5ad955c, transparent 52%);
}
[data-mode="prism"] .stage {
  top: 11%;
  bottom: 21%;
  background: radial-gradient(
    ellipse at 50% 48%,
    color-mix(in srgb, var(--work-color) 22%, #101925),
    #101925 72%
  );
}
:root:not([data-mode="gallery"]) .spec {
  display: none;
}
:root:not([data-mode="gallery"]) .titles {
  top: auto;
  bottom: 5.5%;
  left: 28%;
  width: 44%;
  height: 17%;
  mask-image: none;
}
:root:not([data-mode="gallery"]) .counter {
  left: var(--pad);
  bottom: 8%;
}
:root:not([data-mode="gallery"]) .digits {
  font-size: clamp(56px, 6.9vw, 114px);
}
[data-mode="film"] .title strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  font-size: clamp(26px, 3.8vw, 66px);
}
[data-mode="fold"] .title strong {
  font:
    italic 500 clamp(30px, 4.8vw, 78px) / 0.98 Georgia,
    serif;
  letter-spacing: -0.065em;
}
[data-mode="prism"] .title strong {
  font-size: clamp(28px, 3.8vw, 68px);
  font-weight: 400;
  letter-spacing: -0.06em;
}
[data-mode="prism"] .title small {
  color: #b9eaff;
}
[data-mode="film"] .title small {
  color: #f3ca86;
}
@media (max-width: 720px) {
  .mast {
    grid-template-columns: 1fr auto auto;
    column-gap: 12px;
  }
  .mast {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand contact" "menu menu";
    row-gap: 6px;
    align-items: center;
  }
  .signature {
    grid-area: brand;
  }
  .mast nav {
    grid-area: menu;
    display: flex;
    gap: 16px;
  }
  .contact {
    grid-area: contact;
  }
  :root:not([data-mode="gallery"]) .stage {
    top: 14%;
    bottom: 25%;
    mask-image: none;
  }
  :root:not([data-mode="gallery"]) .titles {
    top: auto;
    bottom: 10.5%;
    left: 4%;
    width: 92%;
    height: 15%;
  }
  :root:not([data-mode="gallery"]) .counter {
    left: var(--pad);
    bottom: 16px;
  }
  :root:not([data-mode="gallery"]) .digits {
    font-size: 51px;
  }
  [data-mode="film"] .title strong,
  [data-mode="prism"] .title strong {
    font-size: clamp(23px, 7vw, 38px);
  }
  [data-mode="fold"] .title strong {
    font-size: clamp(26px, 8vw, 42px);
  }
}

.lens-hint {
  display: none;
  position: absolute;
  bottom: 2%;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.mesh-ready .lens-hint {
  display: block;
}
.lens-hint span:last-child {
  display: none;
}
@media (pointer: coarse) {
  .lens-hint span:first-child {
    display: none;
  }
  .lens-hint span:last-child {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mesh-ready .lens-hint {
    display: none;
  }
}

/* White editions. Each surface gives the picture and its caption a different stage. */
:root:is([data-mode="shutters"], [data-mode="table"], [data-mode="iris"]) {
  --paper: #fff;
  --ink: #191a18;
  --muted: #555953;
  --red: #9b3029;
  color-scheme: light;
}
:is([data-mode="shutters"], [data-mode="iris"]) .sheets {
  display: none;
}
.projection {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 4/3;
  user-select: none;
}
.projection-link {
  display: block;
  position: absolute;
  inset: 0;
  perspective: 1200px;
  cursor: pointer;
}
.strip {
  height: calc(100% / 9 + 0.3px);
  width: 100%;
  top: calc(var(--row) * 100% / 9);
  position: absolute;
  transform-style: preserve-3d;
}
.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: white;
  backface-visibility: hidden;
}
.face-1 {
  transform: rotateX(180deg);
}
.face img {
  position: absolute;
  top: calc(-100% * var(--row));
  width: 100%;
  height: 900%;
  object-fit: cover;
  pointer-events: none;
}
.face:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #171c1b;
  opacity: var(--shade, 0);
}
[data-mode="shutters"] .stage {
  inset: 14% 2% 12% 39%;
}
:root[data-mode="shutters"] .titles {
  inset: 27% auto auto var(--pad);
  width: 36%;
  height: 46%;
}
[data-mode="shutters"] .title {
  text-align: left;
  padding: 0;
}
[data-mode="shutters"] .title strong {
  font-size: clamp(38px, 5.2vw, 100px);
  line-height: 0.92;
  font-weight: 650;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
  margin: 14px 0 20px;
}
[data-mode="shutters"] .title span {
  font-size: clamp(14px, 1.2vw, 24px);
}
[data-mode="shutters"] .title small {
  padding: 4px 0;
  border-top: 2px solid currentColor;
  color: var(--ink);
}
:root[data-mode="shutters"] .counter {
  left: var(--pad);
  bottom: 12%;
}
[data-mode="table"] .stage {
  inset: 10% 1% 15%;
}
[data-mode="table"] .sheet:after {
  content: attr(data-caption);
  display: block;
  color: #252722;
  font-size: clamp(9px, 0.75vw, 13px);
  position: absolute;
  top: 100%;
  padding-top: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-mode="table"] .sheets {
  z-index: 3;
}
:root[data-mode="table"] .titles {
  height: 13%;
  bottom: 3.5%;
}
[data-mode="table"] .title strong {
  font:
    italic 500 clamp(26px, 3.2vw, 64px) / 0.97 Georgia,
    serif;
  letter-spacing: -0.045em;
}
[data-mode="table"] .title small {
  display: none;
}
[data-mode="iris"] .stage {
  inset: 24% 4% 9%;
}
[data-mode="iris"] .projection-link {
  overflow: hidden;
}
[data-mode="iris"] .projection-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.peek {
  position: absolute;
  left: 83%;
  top: 65%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: white;
  color: #141414;
  width: 42px;
  height: 42px;
  font-size: 20px;
}
:root[data-mode="iris"] .titles {
  height: 18%;
  top: 9%;
  bottom: auto;
  left: 11%;
  width: 78%;
}
[data-mode="iris"] .title {
  padding: 0;
}
[data-mode="iris"] .title strong {
  font:
    500 clamp(42px, 5.5vw, 105px) / 0.94 Georgia,
    serif;
  letter-spacing: -0.065em;
  margin: 3px 0;
}
[data-mode="iris"] .title small {
  display: none;
}
@media (max-width: 720px) {
  [data-mode="shutters"] .stage {
    inset: 29% 0 13%;
  }
  :root[data-mode="shutters"] .titles {
    inset: 11% 5% auto;
    width: 90%;
    height: 20%;
  }
  [data-mode="shutters"] .title strong {
    font-size: clamp(33px, 10vw, 58px);
    margin: 6px 0;
  }
  :root[data-mode="shutters"] .counter {
    bottom: 16px;
  }
  [data-mode="table"] .stage {
    inset: 14% 1% 22%;
  }
  [data-mode="table"] .sheet:after {
    font-size: 9px;
  }
  :root[data-mode="table"] .titles {
    inset: auto 4% 9%;
    width: 92%;
    height: 12%;
  }
  [data-mode="iris"] .stage {
    inset: 30% 0 12%;
  }
  :root[data-mode="iris"] .titles {
    inset: 12% 4% auto;
    width: 92%;
    height: 20%;
  }
  [data-mode="iris"] .title strong {
    font-size: clamp(36px, 11vw, 62px);
  }
}
.iris-layer {
  position: absolute;
  inset: 0;
}
[data-mode="iris"] .peek {
  width: 23%;
  height: auto;
  aspect-ratio: 1;
  background: none;
  display: grid;
  place-items: end;
}
.peek span {
  display: grid;
  place-items: center;
  width: clamp(26px, 2.6vw, 40px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  color: #141414;
  line-height: 1;
  margin: 0 4% 4% 0;
}
@media (max-width: 720px) {
  [data-mode="shutters"] .long-name strong,
  [data-mode="iris"] .long-name strong {
    font-size: clamp(25px, 7vw, 37px);
  }
}
