@font-face {
  font-family: "Lama Sans Expanded";
  src: url("./assets/fonts/LamaSans-LightExpanded.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lama Sans Expanded";
  src: url("./assets/fonts/LamaSans-ExtraLightExpanded.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lama Sans Expanded";
  src: url("./assets/fonts/LamaSans-RegularExpanded.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --design-width: 2048;
  --scale: 1;
  --ink: #1f1f1f;
  --muted: #959595;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --stage-x: 0px;
  --header-h: calc(111px * var(--scale));
  --side-x: calc(28px * var(--scale));
  --right-x: calc(1037px * var(--scale));
  --tile-w: calc(983px * var(--scale));
  --tile-h: calc(553px * var(--scale));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Lama Sans Expanded", "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

body.project-open {
  background: var(--project-bg, var(--paper));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--header-h);
  background: var(--paper);
  pointer-events: none;
}

.brand,
.discipline {
  position: absolute;
  top: calc(46px * var(--scale));
  margin: 0;
  width: calc(320px * var(--scale));
  color: var(--ink);
  font-size: calc(28px * var(--scale));
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.16;
  white-space: nowrap;
}

.brand {
  left: calc(var(--stage-x) + var(--side-x));
  pointer-events: auto;
}

.discipline {
  left: calc(var(--stage-x) + var(--right-x));
}

.portfolio {
  position: relative;
  width: 100vw;
  min-height: 100vh;
}

.home-view {
  position: relative;
  width: 100%;
  min-height: calc(8700px * var(--scale));
  background: var(--paper);
}

.home-stage,
.project-stage {
  position: absolute;
  left: var(--stage-x);
  top: 0;
  width: 2048px;
  transform: scale(var(--scale));
  transform-origin: top left;
}

.home-stage {
  height: 8700px;
}

.home-tile {
  position: absolute;
  display: block;
  width: 983px;
  height: 552.94px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f3f3;
}

.home-tile.wide {
  width: 985px;
  height: 554px;
}

.home-tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-tile .base-img {
  opacity: 1;
  transition: opacity 120ms linear;
}

.home-tile:hover .base-img,
.home-tile:focus-visible .base-img {
  opacity: 0.65;
}

.home-tile:focus-visible {
  outline: calc(3px / var(--scale)) solid rgba(0, 0, 0, 0.38);
  outline-offset: calc(5px / var(--scale));
}

.home-about-image {
  position: absolute;
  left: 28px;
  top: 6616px;
  width: 983px;
  height: 983px;
  overflow: hidden;
}

.home-about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about-copy {
  position: absolute;
  left: 1052px;
  top: 6616px;
  width: 951px;
  min-height: 423px;
  margin: 0;
  color: #000000;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.22;
}

.home-about-copy p {
  margin: 0 0 21px;
}

.home-about-copy p:last-child {
  margin-bottom: 0;
}

.home-big-word {
  position: absolute;
  margin: 0;
  color: rgba(0, 0, 0, 0.08);
  font-family: "Lama Sans Expanded", "Helvetica Neue", Arial, sans-serif;
  font-size: 250px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: pre-line;
}

.home-big-word.portfolio-word {
  left: 1043px;
  top: 7170px;
  width: 980px;
}

.home-big-word.contact-word {
  left: 28px;
  top: 7857px;
  width: 1800px;
  line-height: 1.12;
}

.project-view {
  position: relative;
  width: 100%;
  min-height: calc(var(--project-height) * 1px * var(--scale));
  background: var(--project-bg, var(--paper));
}

.project-stage {
  height: calc(var(--project-height) * 1px);
  background: var(--project-bg, var(--paper));
}

.project-title {
  position: fixed;
  z-index: 40;
  left: calc(var(--stage-x) + var(--side-x));
  bottom: calc(18px * var(--scale));
  width: calc(700px * var(--scale));
  color: var(--ink);
  font-size: calc(28px * var(--scale));
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.16;
  pointer-events: none;
}

.project-title p {
  margin: 0;
}

.project-title .muted {
  color: var(--muted);
  font-weight: 200;
}

.media,
.media-bg {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: transparent;
}

.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media video {
  background: #000000;
  transform: scale(1.008);
  transform-origin: center;
  backface-visibility: hidden;
}

.frame-fallback,
.motion-fallback {
  user-select: none;
  pointer-events: none;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #f3f3f3;
}

.mobile-home,
.mobile-project {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --scale: 1;
    --stage-x: 0px;
    --header-h: 70px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    height: var(--header-h);
    max-width: 100%;
    overflow: hidden;
  }

  .brand,
  .discipline {
    top: 24px;
    width: auto;
    font-size: 17px;
    line-height: 1.1;
  }

  .brand {
    left: 18px;
  }

  .discipline {
    left: auto;
    right: 18px;
  }

  .home-view,
  .project-view {
    min-height: 100vh;
    padding: 92px 14px 36px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-stage,
  .project-stage,
  .project-title {
    display: none;
  }

  .mobile-home,
  .mobile-project {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .mobile-grid,
  .mobile-stack {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .mobile-grid {
    grid-template-columns: 1fr;
  }

  .mobile-tile,
  .mobile-media {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #f3f3f3;
  }

  .mobile-tile {
    aspect-ratio: 983 / 553;
  }

  .mobile-tile img,
  .mobile-media img,
  .mobile-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-about {
    display: grid;
    gap: 18px;
    margin-top: 38px;
  }

  .mobile-about img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .mobile-about-copy {
    margin: 0;
    color: #000000;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    line-height: 1.34;
  }

  .mobile-big-words {
    display: grid;
    gap: 44px;
    margin-top: 52px;
    padding-bottom: 104px;
    width: 100%;
    max-width: 100%;
  }

  .mobile-big-words .home-big-word {
    position: static;
    width: 100%;
    margin: 0;
    color: rgba(0, 0, 0, 0.08);
    font-size: clamp(58px, 18vw, 108px);
    line-height: 1.12;
    white-space: pre-line;
  }

  .mobile-project-title {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.2;
  }

  .mobile-project-title p {
    margin: 0;
  }

  .mobile-project-title .muted {
    color: var(--muted);
    font-weight: 200;
  }

  .mobile-media {
    aspect-ratio: var(--media-ratio, 983 / 553);
  }

  .mobile-media-composite {
    isolation: isolate;
  }

  .mobile-composite-base {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-composite-layer {
    position: absolute;
    display: block;
    overflow: hidden;
  }

  .mobile-composite-layer img,
  .mobile-composite-layer video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-media video,
  .mobile-composite-layer video {
    background: #000000;
    transform: scale(1.008);
    transform-origin: center;
    backface-visibility: hidden;
  }
}
