@font-face {
  font-family: Inter;
  src: url("assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, Arial, sans-serif;
  color: #050505;
  background: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { opacity: .62; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.home, .slide-images {
  position: fixed;
  inset: 0;
}

.home {
  overflow: hidden;
  isolation: isolate;
}

.slide-images {
  z-index: -1;
  background: #e7e8e7;
}

.slide-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#incoming-image { visibility: hidden; }
.slide-images.is-moving #current-image { animation: leave-left .65s cubic-bezier(.65, 0, .35, 1) both; }
.slide-images.is-moving #incoming-image { visibility: visible; animation: enter-right .65s cubic-bezier(.65, 0, .35, 1) both; }
.slide-images.is-moving.is-backwards #current-image { animation-name: leave-right; }
.slide-images.is-moving.is-backwards #incoming-image { animation-name: enter-left; }

@keyframes leave-left { to { transform: translateX(-100%); } }
@keyframes enter-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes leave-right { to { transform: translateX(100%); } }
@keyframes enter-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.header {
  position: fixed;
  z-index: 5;
  top: max(4.7vh, env(safe-area-inset-top));
  left: max(3.75vw, env(safe-area-inset-left));
  right: max(3.75vw, env(safe-area-inset-right));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  pointer-events: none;
}

.header a { pointer-events: auto; }

.brand {
  display: block;
  flex: 0 0 auto;
  font-size: clamp(22px, 3vw, 58px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.header nav {
  width: 41%;
  display: flex;
  justify-content: space-between;
  font-size: clamp(17px, 2.25vw, 43px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.025em;
}

body.dark-slide .header { color: #fff; }

.project-caption {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: max(4.8vh, env(safe-area-inset-bottom));
  width: 44%;
  transform: translateX(-50%);
  padding: .02em .45em .06em;
  background: #050505;
  color: #fff;
  font-size: clamp(16px, 2.25vw, 43px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-align: center;
  white-space: nowrap;
}

.slide-arrow {
  position: fixed;
  z-index: 6;
  bottom: max(4.8vh, env(safe-area-inset-bottom));
  width: clamp(24px, 2.25vw, 43px);
  height: clamp(24px, 2.25vw, 43px);
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #050505;
  cursor: pointer;
}

.slide-arrow--previous { left: max(3.75vw, env(safe-area-inset-left)); }
.slide-arrow--next { right: max(3.75vw, env(safe-area-inset-right)); }

.slide-arrow img {
  width: 48%;
  height: 55%;
  filter: invert(1);
  pointer-events: none;
}

.slide-arrow--previous img { transform: scaleX(-1); }
.slide-arrow:hover { opacity: .68; }
.slide-arrow:focus-visible { outline-color: #fff; outline-offset: 4px; }

.dialog-layer[hidden] { display: none; }
.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .18);
}

#notice-layer { background: transparent; }

.notice-panel {
  position: relative;
  width: 31.25vw;
  min-width: 345px;
  max-width: calc(100vw - 36px);
  height: 40vh;
  height: 40dvh;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 1.35vw, 22px);
  display: flex;
  flex-direction: column;
  background: #050505;
  color: #fff;
  font-size: clamp(15px, 1.55vw, 21px);
  font-weight: 700;
  line-height: 1.18;
}

.notice-panel h2 {
  font-size: inherit;
  line-height: inherit;
  margin: 0 35px 1em 0;
  letter-spacing: 0;
}

.notice-panel h3 {
  margin: 0 0 .7em;
  font-size: inherit;
  line-height: inherit;
}

.notice-panel p { margin: 0 0 1.05em; }
.notice-panel address { font-style: normal; margin: 0 0 1em; }
.notice-panel > a { width: fit-content; margin-bottom: .2em; }
.notice-panel a:hover { color: #c7c6c4; opacity: 1; }

.professional-details,
.privacy-details {
  margin-top: 1.35em;
  padding-top: 1em;
  border-top: 1px solid #fff;
}

.professional-details p { margin: 0 0 .65em; }
.professional-details p:last-child,
.privacy-details p:last-child { margin-bottom: 0; }

.notice-close {
  position: absolute;
  top: 9px;
  right: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  cursor: pointer;
}

.notice-close:hover { color: #c7c6c4; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header {
    top: max(18px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    display: block;
  }

  .brand {
    font-size: clamp(19px, 6vw, 28px);
    white-space: normal;
  }

  .header nav {
    width: 100%;
    margin-top: 12px;
    font-size: clamp(15px, 4.5vw, 20px);
  }

  .project-caption {
    bottom: max(24px, env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100% - 112px);
    padding: 3px 7px 4px;
    font-size: clamp(13px, 3.8vw, 18px);
    white-space: normal;
  }

  .slide-arrow {
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 32px;
    height: 32px;
  }

  .slide-arrow--previous { left: max(16px, env(safe-area-inset-left)); }
  .slide-arrow--next { right: max(16px, env(safe-area-inset-right)); }

  .notice-panel {
    width: min(345px, calc(100vw - 36px));
    min-width: 0;
    padding: 18px 16px;
    font-size: 15px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .header { top: max(14px, env(safe-area-inset-top)); }
  .brand { font-size: 20px; }
  .header nav { width: 42%; margin-top: 0; font-size: 16px; }
  .header { display: flex; }
  .project-caption,
  .slide-arrow { bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-images.is-moving #current-image,
  .slide-images.is-moving #incoming-image { animation-duration: .01ms; }
}
