@font-face {
  font-family: Depth Sans;
  src: url("./assets/fonts/DejaVuSans-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: Depth Japanese;
  src: url("./assets/fonts/DepthJP-Regular.otf") format("opentype");
  font-display: swap;
}
* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --travel: 320px;
  --inset: 4.55%;
  color: #edede8;
  background: #000;
  font-family: Arial, sans-serif;
}
body, h1, p { margin: 0; }
.track { padding-bottom: var(--travel); }
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  position: sticky;
  top: 0;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 93%, transparent 99%);
}
.plate {
  position: absolute;
  left: 23.2%;
  top: -15.1%;
  width: 82%;
  height: 112%;
  mask-image: linear-gradient(to right, transparent, #000 9%);
}
.fallback, .layer { position: absolute; display: block; }
.fallback { width: 100%; height: 100%; inset: 0; }
.layer {
  left: calc(-100% * 24 / 1672);
  top: calc(-100% * 24 / 941);
  width: calc(100% * 1720 / 1672);
  height: calc(100% * 989 / 941);
  visibility: hidden;
}
.structure-window { overflow: hidden; }
.structure-motion {
  position: absolute;
  display: block;
  inset: 0 auto auto 0;
  width: 100%;
  height: calc(100% * 1037 / 989);
}
.ready .layer { visibility: visible; }
.ready .fallback { visibility: hidden; }
.structure, .rear-wall {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
}
.rear-aperture {
  position: absolute;
  left: calc(100% * 684 / 1720);
  top: calc(100% * 718 / 1037);
  width: calc(100% * 460 / 1720);
  height: calc(100% * 156 / 1037);
  mask: url("./assets/depth/rear-matte.webp") 0 0 / 100% 100% no-repeat;
}
.ready .structure-motion, .ready .rear-wall { will-change: transform; }
header {
  position: relative;
  margin-inline: var(--inset);
  height: 11.7%;
  border-bottom: 1px solid #292929;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { font: 200 clamp(22px, 2.85vw, 63px)/1 Depth Sans, sans-serif; letter-spacing: -.08em; }
.sections { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 47px); font-size: clamp(12px, 1.38vw, 27px); }
i { font-style: normal; color: #969696; }
.intro { position: absolute; top: 18.6%; left: 5%; }
.chapter, .subline { font-size: clamp(10px, 1.18vw, 24px); line-height: 1.55; letter-spacing: .28em; text-transform: uppercase; }
h1 {
  margin-top: .56em;
  font: 200 clamp(26px, 5.95vw, 122px)/1.04 Depth Sans, sans-serif;
  letter-spacing: -.085em;
  white-space: nowrap;
}
h1 span { color: #cabb9f; }
.subline::before {
  content: "";
  display: block;
  background: #bfbfb9;
  width: 2.8em;
  height: 1px;
  margin: 2.8em 0 2.15em;
}
.principles {
  position: absolute;
  left: 5%;
  bottom: 8%;
  font: clamp(12px, 1.65vw, 33px)/1.3 Depth Japanese, sans-serif;
}
.principles i { margin-inline: .7em; }
.hero::after {
  content: "";
  position: absolute;
  right: var(--inset);
  bottom: 7%;
  height: 9%;
  width: 1px;
  background: #777;
}
@media (max-width: 700px) and (orientation: portrait), (max-width: 540px) {
  :root { --inset: 6%; --travel: 240px; }
  .hero { min-height: 580px; }
  header { height: 9%; }
  .wordmark { font-size: 23px; }
  .sections { font-size: 10px; gap: clamp(4px, 1.35vw, 10px); }
  .intro { left: var(--inset); top: 15.5%; }
  h1 { font-size: clamp(26px, 9.2vw, 59px); }
  .subline::before { margin: 2.25em 0 1.6em; }
  .scene {
    top: 45%;
    bottom: 4%;
    mask-image: linear-gradient(to bottom, transparent, #000 24%);
  }
  .plate { top: 0; left: -40%; width: 178%; height: 100%; mask-image: none; }
  .principles { left: var(--inset); bottom: 3%; }
  .hero::after { bottom: 2.7%; height: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .track { padding-bottom: 0; }
  .hero { position: relative; }
  .rear-aperture { display: none; }
  .ready .structure-motion, .ready .rear-wall { will-change: auto; transform: none !important; }
}
