*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-putty);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-ink);
  background: var(--color-putty);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

.image-fallback {
  display: grid;
  width: 100%;
  min-height: 240px;
  place-items: center;
  padding: 24px;
  color: var(--color-ink);
  background: var(--color-bone);
  text-align: center;
}

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

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--color-paper);
  background: var(--color-ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 20px;
}

.brand-mark,
.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1.5px solid;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.header-link {
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 112px 20px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
}

.eyebrow,
.micro-label,
.section-kicker,
.project-number,
.project-status,
.scroll-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 28px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.94;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  font-weight: 400;
}

.hero-intro {
  max-width: 520px;
  margin: 0 auto 24px;
}

.hex-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 24px;
  color: var(--color-paper);
  background: var(--color-ink);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  font-size: 12px;
}

.hero-wordmark {
  position: absolute;
  inset: auto 50% -0.1em auto;
  margin: 0;
  transform: translateX(50%);
  font-family: var(--font-display);
  font-size: clamp(118px, 24vw, 374px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.84;
  white-space: nowrap;
}

.about {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
}

.about-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  min-height: 420px;
  padding: 36px;
  color: var(--color-paper);
  background: var(--color-ink);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
}

.about-card h2 {
  margin: 72px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.scroll-label {
  position: absolute;
  inset: auto auto 28px 36px;
}

.works {
  padding: 120px 20px 128px;
  color: var(--color-paper);
  background: var(--color-ink);
}

.section-kicker,
.display-title {
  text-align: center;
}

.display-title {
  max-width: 1200px;
  margin: 36px auto 96px;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.84;
}

.work-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1360px;
  margin: 0 auto;
}

.work-index-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 44px;
  text-align: center;
}

.work-orb {
  width: min(17vw, 220px);
  aspect-ratio: 1;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-graphite);
}

.work-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms var(--ease-out);
}

.work-index-item:hover img {
  transform: scale(1.04);
}

.work-index-item strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.work-index-item span:not(.work-orb) {
  margin-top: 6px;
  color: var(--color-vellum);
  font-size: 13px;
}

.work-index-item > i {
  width: 14px;
  height: 12px;
  margin-top: 18px;
  border: 1px solid var(--color-paper);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
  min-height: 100svh;
  padding: clamp(80px, 10vw, 160px) clamp(20px, 6vw, 96px);
}

.project--light {
  background: var(--color-putty);
}

.project--dark {
  color: var(--color-paper);
  background: var(--color-ink);
}

.project-copy {
  align-self: center;
  max-width: 620px;
}

.project-copy h2 {
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

.project-lead {
  max-width: 520px;
  font-size: clamp(20px, 2.2vw, 30px);
}

.project-copy ul {
  margin: 36px 0;
  padding: 0;
  list-style: none;
}

.project-copy li {
  padding: 12px 0;
  border-top: 1px solid currentColor;
}

.project-copy li:last-child {
  border-bottom: 1px solid currentColor;
}

.project-status {
  max-width: 560px;
  color: var(--color-graphite);
  line-height: 1.7;
}

.project--dark .project-status {
  color: var(--color-vellum);
}

.project-visual {
  position: relative;
  align-self: center;
  min-height: 560px;
  overflow: hidden;
}

.project-visual--douzi {
  display: grid;
  place-items: center;
  background: var(--color-bone);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
}

.project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-avatar {
  position: relative;
  width: min(58%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.project-visual--checklist {
  display: grid;
  align-self: center;
  place-items: center;
  margin: 0;
}

.project-visual--checklist img {
  width: min(72%, 480px);
  max-height: 720px;
  object-fit: contain;
}

.project-visual--checklist figcaption {
  margin-top: 16px;
  color: var(--color-vellum);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

.project-visual--screen {
  display: grid;
  place-items: center;
  background: var(--color-bone);
}

.project-visual--screen img {
  width: min(72%, 480px);
  max-height: 720px;
  object-fit: contain;
}

.tea-visual {
  display: grid;
  place-items: center;
}

.tea-visual img {
  width: min(72%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.tea-visual span {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 40px;
  background: var(--color-chalk);
  font-size: 12px;
}

.site-footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 0;
  text-align: center;
}

.site-footer__filing {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 160ms var(--ease-out);
}

.site-footer__filing:hover,
.site-footer__filing:focus-visible {
  text-decoration-thickness: 2px;
}

.site-footer__filing:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 901px) {
  .motion-ready [data-motion-layer="works-title"].reveal {
    opacity: var(--motion-progress);
    clip-path: inset(
      calc((1 - var(--motion-progress)) * 100%) 0 0
    );
    transform: translate3d(
      0,
      calc((1 - var(--motion-progress)) * 60px),
      0
    );
  }

  .motion-ready [data-motion-index].reveal {
    --item-progress: 0;
    opacity: var(--item-progress);
    transform: translate3d(
        0,
        calc((1 - var(--item-progress)) * 72px),
        0
      )
      rotate(calc(
        var(--item-rotation) * (1 - var(--item-progress))
      ))
      scale(calc(0.88 + var(--item-progress) * 0.12));
  }

  .motion-ready [data-motion-index="0"] { --item-rotation: -5deg; }
  .motion-ready [data-motion-index="1"] { --item-rotation: 3deg; }
  .motion-ready [data-motion-index="2"] { --item-rotation: -3deg; }
  .motion-ready [data-motion-index="3"] { --item-rotation: 5deg; }

  .motion-ready [data-motion-section="project"] {
    --motion-progress: 0;
    min-height: 132svh;
  }

  .motion-ready [data-motion-layer="project-visual"] {
    position: sticky;
    top: 12svh;
    align-self: start;
    height: 64svh;
    min-height: 0;
    opacity: 1;
    transform: none;
  }

  .motion-ready [data-motion-layer="project-visual"] img {
    transform: translate3d(
        0,
        calc((1 - var(--motion-progress)) * 40px),
        0
      )
      scale(calc(1.08 - var(--motion-progress) * 0.08));
    transform-origin: 50% 50%;
  }

  .motion-ready [data-motion-layer="project-visual"] img:not(.project-bg) {
    max-width: 92.5926%;
    max-height: calc(59.2593svh - 74.0741px);
  }
}

.motion-ready [data-motion-section="hero"] {
  --motion-progress: 0;
}

.motion-ready [data-motion-layer="hero-copy"].reveal {
  opacity: calc(1 - var(--motion-progress) * 0.8);
  transform: translate3d(
    0,
    calc(var(--motion-progress) * -56px),
    0
  );
}

.motion-ready [data-motion-layer="hero-wordmark"] {
  transform: translate3d(
      calc(50% - var(--motion-progress) * 8vw),
      0,
      0
    )
    scale(calc(1 + var(--motion-progress) * 0.05));
  transform-origin: 50% 100%;
}

.motion-ready [data-motion-section="about"] {
  --motion-progress: 0;
}

.motion-ready [data-motion-layer="about-art"] {
  transform: translate3d(
      0,
      calc(-6% + var(--motion-progress) * 12%),
      0
    )
    scale(calc(1.1 - var(--motion-progress) * 0.08));
}

.motion-ready [data-motion-layer="about-card"].reveal {
  opacity: 1;
  transform: translate3d(
    0,
    calc(36px - var(--motion-progress) * 72px),
    0
  );
}

@media (max-width: 900px) {
  .motion-ready [data-motion-layer="hero-copy"].reveal {
    transform: translate3d(
      0,
      calc(var(--motion-progress) * -20px),
      0
    );
  }

  .motion-ready [data-motion-layer="hero-wordmark"] {
    transform: translate3d(
      calc(50% - var(--motion-progress) * 20px),
      0,
      0
    );
  }

  .motion-ready [data-motion-layer="about-art"],
  .motion-ready [data-motion-layer="about-card"].reveal {
    transform: none;
  }

  .motion-ready [data-motion-section="project"] {
    min-height: 100svh;
  }

  .motion-ready [data-motion-layer="project-visual"] {
    position: relative;
    top: auto;
    align-self: center;
  }

  .motion-ready [data-motion-layer="project-visual"] img {
    transform: none;
  }

  .motion-ready [data-motion-index="0"] { --item-rotation: -2deg; }
  .motion-ready [data-motion-index="1"] { --item-rotation: 1deg; }
  .motion-ready [data-motion-index="2"] { --item-rotation: -1deg; }
  .motion-ready [data-motion-index="3"] { --item-rotation: 2deg; }

  .motion-ready [data-motion-layer="works-title"].reveal {
    transform: translate3d(
      0,
      calc((1 - var(--motion-progress)) * 24px),
      0
    );
  }

  .motion-ready [data-motion-index].reveal {
    transform: translate3d(
        0,
        calc((1 - var(--item-progress)) * 32px),
        0
      )
      rotate(calc(
        var(--item-rotation) * (1 - var(--item-progress))
      ))
      scale(calc(0.94 + var(--item-progress) * 0.06));
  }

  .hero {
    min-height: 900px;
  }

  .work-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 64px;
  }

  .work-orb {
    width: min(36vw, 220px);
  }

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

  .project-visual {
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 16px;
  }

  .hero {
    min-height: 760px;
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-wordmark {
    font-size: 31vw;
  }

  .about-card {
    min-height: 390px;
    padding: 28px;
  }

  .about-card h2 {
    margin-top: 54px;
  }

  .works {
    padding-inline: 16px;
  }

  .work-index {
    gap: 48px 16px;
  }

  .work-index-item strong {
    font-size: 17px;
  }

  .project {
    padding-inline: 20px;
  }

  .project-visual {
    min-height: 420px;
  }

  .site-footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .work-index-item:hover img {
    transform: none;
  }
}
