:root {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #23222b;
  color: #fff;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
#stage {
  height: 100svh;
  min-height: 420px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
}
#gallery,
.layer,
.layer video,
#gallery:after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#gallery {
  z-index: -1;
}
.layer {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.33, 0.02, 0.25, 1);
  background: #437fac;
}
.layer.current {
  opacity: 1;
}
.layer video {
  object-fit: cover;
  object-position: 50% 50%;
}
#gallery:after {
  content: "";
  background: linear-gradient(
    180deg,
    #130d1a8a,
    transparent 23%,
    transparent 53%,
    #180f1922 64%,
    #190d177a 100%
  );
  pointer-events: none;
}
header,
.index,
#motion,
.credit,
.signature {
  position: absolute;
}
header {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(18px, 3svh, 32px) 2.2vw;
}
nav {
  display: flex;
  gap: clamp(10px, 1.6vw, 32px);
}
nav button,
.index button,
.location,
#motion {
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: 0.012em;
  font-size: clamp(10px, 0.86vw, 15px);
  line-height: 1.35;
  text-shadow: 0 1px 8px #0008;
}
nav button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.location {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.location time {
  font-weight: 450;
}
.index {
  left: 2.2vw;
  top: 57%;
  display: grid;
  gap: 2px;
  transform: translateY(-50%);
}
.index button {
  padding: 3px 12px 3px 0;
  opacity: 0.68;
  transition: opacity 0.25s;
  width: fit-content;
}
.index button[aria-pressed="true"],
.index button:hover,
.index button:focus-visible {
  opacity: 1;
}
.index button[aria-pressed="true"]:after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: currentColor;
}
#motion {
  right: 2.2vw;
  top: 57%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  transform: translateY(-50%);
}
#motion span:first-child {
  display: grid;
  border: 1px solid #fffa;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
}
.signature {
  left: 1.6vw;
  right: 2.2vw;
  bottom: 5.7svh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5vw;
}
.signature h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: min(20vw, 29svh);
  font-weight: 450;
  letter-spacing: -0.09em;
  line-height: 0.74;
}
.signature h1 span {
  margin-left: 0.015em;
}
.intro {
  width: clamp(215px, 27%, 450px);
}
.intro p {
  font-size: clamp(0.95rem, 1.35vw, 1.65rem);
  line-height: 1.27;
  letter-spacing: -0.025em;
  margin: 0 0 13px;
  text-wrap: pretty;
}
.project {
  border: 1px solid #fffa;
  border-radius: 2px;
  padding: 9px 14px;
  font-weight: 550;
  font-size: clamp(12px, 0.95vw, 17px);
  backdrop-filter: blur(5px);
  background: #21122324;
}
.project span {
  margin-left: 12px;
}
.project:hover {
  background: #fff;
  color: #24202a;
}
.credit {
  right: 2.2vw;
  bottom: 1svh;
}
.credit img {
  height: clamp(17px, 2.45svh, 25px);
  display: block;
}
dialog {
  border: 0;
  color: #2b252d;
  background: #f5f1e9;
  width: min(860px, 94vw);
  max-height: 88svh;
  padding: clamp(23px, 3.7vw, 58px);
  overflow: auto;
}
dialog::backdrop {
  background: #15111c99;
  backdrop-filter: blur(7px);
}
#close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 13px;
}
dialog h2 {
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  font-weight: 450;
  letter-spacing: -0.07em;
  margin: 0 0 0.32em;
  line-height: 1;
}
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  display: block;
}
.card img,
.study-img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.card img {
  height: clamp(105px, 21svh, 200px);
}
.card span {
  display: block;
  padding: 0.5em 0;
  font-size: 14px;
}
.card:hover span {
  text-decoration: underline;
}
.study-img {
  height: min(36svh, 320px);
}
dialog p {
  max-width: 58ch;
  font-size: clamp(1rem, 1.16vw, 1.3rem);
  line-height: 1.45;
}
dialog .line {
  border-bottom: 1px solid #25202c33;
  padding: 12px 0;
}
dialog h3 {
  margin: 0;
  font-size: 1.3rem;
}
dialog .line p {
  margin: 0.3em 0;
}
.detail-action {
  display: inline-block;
  padding: 10px 16px;
  background: #302a32;
  color: #fff;
  margin: 3px 7px 3px 0;
  font-size: 14px;
  text-decoration: none;
}
.note-field {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid #aa9ba6;
  font: inherit;
}
.note-label {
  display: block;
}
@media (max-width: 660px) {
  header {
    padding: 18px 5vw;
    gap: 12px;
  }
  nav {
    gap: 6px 13px;
    display: grid;
    grid-template-columns: auto auto;
  }
  nav button,
  .index button,
  .location,
  #motion {
    font-size: 11px;
  }
  .index {
    left: 5vw;
    top: 48%;
  }
  .index button {
    min-height: 31px;
  }
  #motion {
    right: 5vw;
    top: 48%;
  }
  .signature {
    left: 4%;
    right: 5%;
    bottom: 7%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .signature h1 {
    font-size: 25.5vw;
    line-height: 0.77;
  }
  .intro {
    margin-left: 1%;
    width: min(88%, 350px);
  }
  .intro p {
    font-size: 16px;
  }
  .credit {
    right: 5%;
    bottom: 1.5%;
  }
  .works {
    grid-template-columns: 1fr;
  }
  .card {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: center;
    gap: 10px;
  }
  .card img {
    height: 68px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition-duration: 0s !important;
  }
}

.location a {
  text-decoration: none;
}
.location a:hover {
  text-decoration: underline;
}
.availability {
  position: absolute;
  right: 2.2vw;
  top: 57%;
  transform: translateY(-50%);
  text-transform: uppercase;
  font-size: clamp(10px, 0.86vw, 15px);
  font-weight: 650;
  text-shadow: 0 1px 8px #0008;
}
.availability:before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  background: #fff;
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: 0.15em;
}
#motion {
  top: calc(57% + 29px);
  font-size: clamp(10px, 0.7vw, 13px);
}
@media (max-width: 660px) {
  .availability {
    top: 48%;
    right: 5vw;
    font-size: 10px;
  }
  #motion {
    top: calc(48% + 30px);
  }
}

.privacy-link { position: absolute; top: 14px; right: 86px; font-size: 13px; }
